Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a new doc for automating listview table NLPs #434

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ Using the **Testsigma Recorder**, you can swiftly capture elements in mobile web
2. This will open a new window. Enter the URL from which you want to capture the elements. The **Testsigma Recorder** will appear and be ready to start recording. In this case, we are recording elements for the 1mg website.
![New Window](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/mwaelmcdt.png)

3. Press **F12** to open **Chrome Developer Tools**.
3. Press **F12** to open **Chrome Developer Tools** and dock the tools to the right side of the window for a better experience.
![Dev Tools](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/mwaelmcdo.png)

[[info | **NOTE**:]]
| Make sure you have selected **Companion Mode** located in the action bar at the top.
| ![Companion Mode](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/compmode.png)

4. Click on **>>** and select **Testsigma Recorder** from the dropdown menu.
![Testsigma Recorder](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/mwaelmstsrec.png)

Expand Down
22 changes: 22 additions & 0 deletions src/pages/docs/salesforce-testing/sf-test-cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ contextual_links:
- type: link
name: "Sample Test Case for Salesforce Automation"
url: "#sample-test-case-for-salesforce-automation"
- type: link
name: "Parametrization of Login NLP"
url: "#parametrization-of-login-nlp"
---


Expand Down Expand Up @@ -96,4 +99,23 @@ Here, we open the edit form with the record ID stored in the variable in the pre
![Test Case Details](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcalltss.png)


---

## **Parametrization of Login NLP**

1. From the **Test Case Details** page, create the test steps using the inbuilt Login NLP.
![Test Step](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/polnts.png)

2. Click on **Salesforce Connections**, type ‘**/**’ and choose ***Environment** from the dropdown menu.
![Parametrize](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/polnen.png)

[[info | **NOTE**:]]
| You can choose any **test data type** as needed from the dropdown menu.

4. In the ***Environment** overlay, select an environment from the available Environments.
![Env Overlay](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/polnenol.png)

[[info | **NOTE**:]]
| Make sure that the value added in **Environment** has the same name as in **User Connections**.

---
59 changes: 59 additions & 0 deletions src/pages/docs/salesforce-testing/table-nlps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
title: "Automating Listview Table NLPs"
page_title: "Automate Listview table NLPs"
metadesc: "Salesforce listview tables are dynamic tables, which have various cell properties. You can automate these dynamic tables efficiently by using Testsigma's built-in table NLPs"
noindex: false
order: 27.91
page_id: "Automate Listview table NLPs"
warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Prerequisites"
url: "#prerequisites"
- type: link
name: "Available NLPs to Automate Listview Table"
url: "#available-nlps-to-automate-listview-table"
- type: link
name: "Steps to Resolve Errors in Test Case"
url: "#steps-to-resolve-errors-in-test-case"
---

---

Automate salesforce listview virtual tables using built-in table NLPs!

In Salesforce, listview virtual tables have various cell properties: some cells are editable, some are dropdowns, and some include checkboxes. You can automate these dynamic tables efficiently by using built-in table NLPs. This article discusses using table NLPs to automate Listview tables in Testsigma.


---

> ## **Prerequisites**
>
> - Salesforce organization with the test setup.
>
> - Salesforce connected app. For more information, refer to [creating a connected app](https://testsigma.com/docs/salesforce-testing/special-nlps/).
>
> - Salesforce metadata connected to Testsigma. For more information, refer to [creating metadata connections](https://testsigma.com/docs/salesforce-testing/metadata-connections/).
>

---

## **Available NLPs to Automate Listview Table**

1. From the left navigation bar, go to **Create Tests > Test Cases** and click on **Create Test Case**.

2. From the **Test Case Details** page, you can create the test steps using inbuilt NLPs.

Here are the available NLPs to perform actions on Listview table in Salesforce:
![Table NLPs](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/tablenlps.png)

[[info | **NOTE**:]]
| You must create a table element before using these NLPs in your test cases to avoid execution failures.

Here’s a quick GIF demonstrating how to create table elements and use them in your Table NLPs.
![Using table NLPs](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/tablenlpswf.gif)


---
2 changes: 2 additions & 0 deletions src/pages/docs/salesforce-testing/user-connections.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Once you've set up the Salesforce Metadata connection, you can add user connecti
3. On the **User connection** prompt,
- Enter **Connection name**
![Connection Name](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfucncname.png)
- Choose the environment of the user that you want to use.
![Environment](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ucsfts.png)
- Choose the Authentication type from the dropdown.
- For **OAuth**, enter **Username**, **Consumer key**, **Consumer secret**, and **Callback URL**.
- For **User name & Password**, enter the **Username**, **Password**, **Security token**, **Consumer key**, and **Consumer secret**. In this example, we are choosing **OAuth 2.0**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ Using the Testsigma test recorder, you can easily create test cases for mobile w
3. This will open a new window. Enter the URL from which you want to capture the test cases. The **Testsigma Recorder** will appear and be ready to start recording. In this case, we are recording a test case for the 1mg website.
![New Window](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/mwanwowrc.png)

4. Press **F12** to open **Chrome Developer Tools**.
4. Press **F12** to open **Chrome Developer Tools** and dock the tools to the right side of the window for a better experience.
![F12](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/mwacdtools.png)

[[info | **NOTE**:]]
| Make sure you have selected **Companion Mode** located in the action bar at the top.
| ![Companion Mode](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/compmode.png)

5. Click on **>>** and select **Testsigma Recorder** from the dropdown menu.
![Testsigma Recorder](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/mwaae.png)

Expand Down
Loading