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

Updated Support & SF Docs as per Feedback #412

Merged
merged 1 commit into from
May 21, 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
28 changes: 19 additions & 9 deletions src/pages/docs/salesforce-testing/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ contextual_links:
name: "Prerequisites"
url: "#prerequisites"
- type: link
name: "Steps to Check Errors in Test Case List Page"
url: "#steps-to-check-errors-in-test-case-list-page"
name: "Steps to Check Errors on Test Case List"
url: "#steps-to-check-errors-on-test-case-list"
- type: link
name: "Steps to Resolve Errors in Test Case"
url: "#steps-to-resolve-errors-in-test-case"
Expand All @@ -36,36 +36,46 @@ On metadata refresh, Testsigma identifies potential causes of test case failures
---


## **Steps to Check Errors in Test Case List Page**
## **Steps to Check Errors on Test Case List**

1. From the **Dashboard**, navigate to **Create Tests > Test Cases**.
![Test Cases](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehtcpagehl.png)

![Test Cases](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehtcsnavg.png)

2. You can find the impacted test cases highlighted on the **Test Cases** page with a Warning.
![Warning](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehtcrp.png)

![Warning](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehallerrorsotcp.png)

3. Click on **View All** to filter only the deprecated test cases.

![View All](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehtcrpva.png)

4. Alternatively, select the highlighted filter to display test cases that contain errors.

![Filter](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehfilter.png)

---

## **Steps to Resolve Errors in Test Case**

1. Select the deprecated test case to view the errors.
![Erorrs](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehtcspagerrs.png)

![Erorrs](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/eheitcpage.png)

2. Hover over to the highlighted step to check the error.
![Highligted](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/eheitslvl.png)

![Highligted](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/eheielemonts.png)

3. Hover over the element and click on **View/Edit element**.
![View/Edit Element](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehitcvoeel.png)

![View/Edit Element](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehvoeelm.png)

4. This will open the **Element details** overlay where you can find the details of deprecated elements.
![Element Details](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehedol.png)

![Element Details](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehelemerroverl.png)

5. To resolve the error, replace them with new elements or disable/remove the test step as needed.

![Disable/Review](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehvoeelement.png)

[[info | **NOTE**:]]
Expand Down
32 changes: 16 additions & 16 deletions src/pages/docs/salesforce-testing/sf-test-cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ Here’s a quick video demonstrating how create test cases for Salesforce testin
## **Steps to Create Test Cases for Salesforce**

1. Navigate to **Create Tests > Test Cases** and click on **Create Test Case**.
![Test Cases](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcsnav.png)
![Test Cases](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfnavtcs.png)

2. From the **Test Case Details** page, you can create the test steps for your test case using either of the following methods:
- Write test steps manually using **Smart NLPs** by clicking **Add new step**.
- Use **Recorder** to record steps.
![Manual + Live](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcmanarec.png)
- Use **Debugger** to record steps.
![Manual + Live](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcslpdbe.png)

3. Once the test steps are created, click on **Run** to execute the Test Case.
![Run](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcsrun.png)
![Run](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcrun.png)

[[info | **NOTE**:]]
| For advanced options, refer to [test case advanced options](https://testsigma.com/docs/test-cases/manage/add-edit-delete/#test-case----advanced-options).
Expand All @@ -63,22 +63,22 @@ Let's say we have a scenario where we want to log in to Salesforce, navigate to

1. Use the NLP, **Login to Salesforce using *Salesforce Connection***.
Here, we can choose a connection or create a connection by clicking on **Add Connection**.
![Add Connection](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcltsf.png)
![Add Connection](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcltsfts.png)

2. Use the NLP, **Switch to *Application*** and replace application from the dropdown.
![Sales](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcsts.png)
![Sales](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcsapp.png)

3. Use the NLP, **Create record using *Salesforce Connection* in *Salesforce Object Form* and store *RECORD_ID* in variable *test data***.
![API Step](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcslrds.png)
![API Step](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftsflr.png)

This is API Step where we create a **Lead** record using **Salesforce Connection** in **Lead** and store the record ID in a **Variable**. We will use this variable to open the editing form with the **record ID**.
This is API Step where we create a **Lead** record using **Salesforce Connection** in **Lead** and store the record ID in a **Variable**. We will use this variable to open the editing form with the **record ID**.

4. Use the NLP, **Open edit form for record with *Record ID* on *Salesforce Object***.
Here, we open the edit form with the record ID stored in the variable in the previous step.
![Edit Form](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcerf.png)
![Edit Form](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfofwrtvold.png)

5. Click on **Record**. This will open a Chrome window along with the test recorder. All the steps will be executed up to that point, and you can start recording UI interactions by clicking on the play icon.
![Record](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftccor.png)
5. Click on **Debug & Record**. This will open a Chrome window along with the test recorder. All the steps will be executed up to that point, and you can start recording UI interactions by clicking on the play icon.
![Record](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcdbarec.png)

[[info | **NOTE**:]]
| When recording test steps through the debugger, if you switch to other organizations for which metadata is not synced, the debugger treats the application as any other web application. A warning will notify you of this, and you can continue recording test steps or elements similar to web applications by clicking **Okay, Got it**.
Expand All @@ -87,14 +87,14 @@ Here, we open the edit form with the record ID stored in the variable in the pre



6. Perform the actions and click on **Stop Recording**. This will open the **Stop Web Debugger** warning prompt.
![Stop Recording](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcdbp.png)
6. Perform the actions and click on **Stop**. This will open the **End session** warning prompt.
![Stop Recording](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftctsdbarcscn.png)

7. On the **Stop Web Debugger** run warning prompt, click on **Stop**.
![Stop Warning](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcsdbwp.png)
7. On the **End session** warning prompt, click on **Stop**.
![Stop Warning](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/dbgstop.png)

8. Refresh the **Test Case Details** page to see all the recorded steps.
![Test Case Details](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcsrttcp.png)
![Test Case Details](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sftcalltss.png)


---
7 changes: 4 additions & 3 deletions src/pages/docs/test-data/types/random.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ Many test cases need random inputs such as inputting an account number, ID numbe
---

## **Using Random Test Data**

You can use the Random Test Data feature in your test cases by specifying a number ranging from 1 to 256. This will generate a random alphanumeric string with a length as specified by the number during the execution of the test case.

For example, you have a test case that requires entering an account number, and you want to generate a random 10-digit account number for every execution. You can achieve this using the format ~|10| within your Test Case.
For example, you have a test case that requires entering a passport number, and you want to generate a random 9-digit passport number for every execution. You can achieve this using Random test data type in your Test Case.

![Random Test Data](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/RTDTDT.png)
![Random Test Data](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/rndmtdtype.png)

Here is a quick GIF demonstrating how to add Random Data to a Test Case in Testsigma.
![Random Test Data](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/rdtdgif.gif)
![Random Test Data](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/RandomTestData.gif)


[[info | **NOTE**:]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,10 @@ In such cases, it is recommended to use only the **<id_value>** portion of

Testsigma simplifies this process by automatically appending the appropriate package name, from the test app selected, to the resource ID.

---
**One more example:** Testsigma shows the attributes of selected elements on the login page below with ID values only.

![Example](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/dynlocandroid.png)

*For more information, refer to [create dynamic elements using parameter](https://testsigma.com/docs/elements/dynamic-elements/with-parameter-test-data/#creating-dynamic-elements-using-parameter).*

---
Loading