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 Following Salesforce Documents #396

Merged
merged 1 commit into from
Apr 19, 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
3 changes: 3 additions & 0 deletions src/left-nav-title.json
Original file line number Diff line number Diff line change
Expand Up @@ -646,5 +646,8 @@
},
"introduction":{
"/docs/salesforce-testing/introduction/": "Intro: Testsigma for Salesforce Testing"
},
"sf-test-cases":{
"/docs/salesforce-testing/sf-test-cases/": " Build Test Cases: Manual+Live"
}
}
6 changes: 3 additions & 3 deletions src/pages/docs/salesforce-testing/create-sf-project.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Creating a Salesforce Project"
page_title: "Introduction: Testsigma for Salesforce Test Automation"
page_title: "Creating a Salesforce Project"
metadesc: "Create and manage projects for Salesforce applications. This article discusses how to create a project for Salesforce testing in Testsigma."
noindex: false
order: 29.3
Expand Down Expand Up @@ -28,7 +28,7 @@ In Testsigma, users can create and manage multiple projects and applications. Cr
## **Prerequisites**

- A Salesforce org with test setup
- Salesforce Connected App
- Salesforce connected app

---

Expand All @@ -43,7 +43,7 @@ In Testsigma, users can create and manage multiple projects and applications. Cr
- Enter **Application** name, **Version** and click on **Create**.
![App Name & Version](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfpccoc.png)

3. You’ll be redirected to the Salesforce connections page.
3. You’ll be redirected to the **Salesforce connections** page.
![SF Connections](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfprtsfc.png)


Expand Down
50 changes: 45 additions & 5 deletions src/pages/docs/salesforce-testing/element-repos.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Element Repositories"
title: "Salesforce Element Repositories"
page_title: "Element Repositories"
metadesc: "How to check Element Repositories"
metadesc: "Elements repositories from Salesforce are imported after successfully synchronizing metadata. This article discusses Salesforce elements repositories."
noindex: false
order: 29.7
page_id: "Element Repositories"
Expand All @@ -10,10 +10,50 @@ contextual_links:
- type: section
name: "Contents"
- type: link
name: "Prerequisites"
url: "#prerequisites"
name: "Naming Conventions"
url: "#naming-conventions"
- type: link
name: "Steps to Check Element Repositories"
url: "#steps-to-check-element-repositories"
---

---

Coming Soon!
In Testsigma, elements from Salesforce are automatically learned after successfully synchronizing metadata. This enables the swift usage of elements in test cases, eliminating the need to create elements manually. This document discusses the repositories of Salesforce elements.

---

## **Naming Conventions**

1. **Field Names:** This will be in the **ObjectName_FieldName** format.
- **Example:** If the element name is **Account_CreatedDate**, **Account** is the object, and the created date **Field** is **CreatedDate**.

2. **Screen Names:** Generally, the name displayed on the UI screen is the object name.
- **Example:** A screen displaying account details should be named **Account**.

[[info | **NOTE**:]]
| Element names should be unique to avoid conflicts.


---

## **Steps to Check Element Repositories**


1. Navigate to **Create Tests > Test Cases**, and open any test case or create a test case.
![Test Cases](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfertcs.png)

2. From the **Test Case Details** page, add test steps and hover over the element and click on **Select Element** from the dropdown.
![Test Case Details](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sferse.png)

3. This will open the **Elements** overlay, where you can see all the elements.
![Overlay](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sferoverlay.png)

[[info | **NOTE**:]]
| Since the elements are auto-learned, you can't edit them.

4. You can also create the element manually by clicking on **Create Element**.

ℹ️ For more information, refer to [creating elements manually](https://testsigma.com/docs/elements/web-apps/create-manually/).

---
100 changes: 96 additions & 4 deletions src/pages/docs/salesforce-testing/metadata-connections.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,111 @@
---
title: "Creating Metadata Connections"
page_title: "Introduction: Testsigma for Salesforce Test Automation"
metadesc: "Salesforce Testing with Testsigma helps reduce average test authoring time by 50%, and test case execution will be 2X faster with a user-friendly interface"
page_title: "Metadata Connections"
metadesc: "A Metadata connection enables actions like refreshing metadata, configurations, creating objects, & managing components that define how the application behaves"
noindex: false
order: 29.4
page_id: "Testsigma for Salesforce Test Automation"
page_id: "Creating Metadata Connections"
warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Prerequisites"
url: "#prerequisites"
- type: link
name: "Steps to Create Metadata Connection"
url: "#steps-to-create-metadata-connection"
- type: link
name: "Steps to Edit Metadata Connection"
url: "#steps-to-edit-metadata-connection"
- type: link
name: "Steps to Refresh Metadata Connection"
url: "#steps-to-refresh-metadata-connection"
---

---

In Testsigma, you can create a Salesforce application and establish a Metadata connection, which enables you to perform various actions like retrieving metadata, updating configurations, creating custom objects, and managing other components that define how the application behaves. This article discusses creating a metadata connection in Testsigma.

---

## **Prerequisites**

- You need to have Salesforce org with test setup
- Salesforce connected app

---

## **Steps to Create Metadata Connection**

1. Click on **Create metadata connection** on **Salesforce connections page**.
![Create Metadata](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdcm.png)

2. This will open the **Metadata connection** prompt.
![Prompt](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmaprm.png)

3. On **Metadata connection** prompt,
- Enter **Connection name**, which is generally the user role you connect through, e.g., **Admin**.
![Name](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdname.png)
[[info | **NOTE**:]]
| You can also choose a custom name for the connection.
- Choose the **Production / Developer edition**, if you’re testing the product environment or Sandbox, if you’re testing the staging environment from **Connect with** dropdown.
![Edition](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/samdce.png)
- Choose the **Authentication type** from the dropdown. In this example, we are choosing **OAuth 2.0**.
![Authentication](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdatype.png)

<details style="border: 1px solid gray; border-radius: 4px; padding: 0.5em; margin: 0.5em 0; background-color: #f2f2f2;">
<summary style="color: darkgreen; font-weight: bold; list-style: none;" onclick="if(this.parentNode.open) this.parentNode.style.border='1px solid gray'; else this.parentNode.style.border='none';">
<span style="margin-right: 5px;">ℹ️</span>Authentication Types:
</summary><br>
There are two ways to Authenticate:
<ul>
<li><b>User name & Password:</b> For User name & Password, enter Username, Password, Security token, Consumer key, and Consumer secret. </li>
<li><b>OAuth</b> For OAuth, enter Username, Consumer key, Consumer secret and Callback URL.</li>
</ul>
</details>

- Click on **Authorise & Connect**.
![Authorise](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdaaaut.png)

- A new window will open up requesting for **Salesforce Login**. Enter the credentials and click on **Log In**.
![Login](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdlifsf.png)

- This will display the **Environment** associated with the credentials. Click on **Start metadata sync**.
![Start MD](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdssync.png)

- Wait until the sync is complete. This will take some time.
![Wait](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdsipg.png)

4. Once Metadata sync is successful, you can create test cases by clicking **Create Test Case**.
![Create Tests](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdctc.png)

---

## **Steps to Edit Metadata Connection**

1. From the **Dashboard**, click on **SF Connections**.
![Edit Metadata](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdedt.png)

2. In the **Metadata connection** section, hover over the connection, click on the kebab menu, and choose **Edit connection** from the dropdown menu.
![Edit Connection](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdec.png)

3. On the **Metadata connection** prompt, make the necessary changes and click on **Authorise & Connect**.
![Metadata Connection](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdecetd.png)

[[info | **NOTE**:]]
| You can not update the Metadata connection with a different environment.

---

Coming Soon!
## **Steps to Refresh Metadata Connection**

To refresh metadata, you have two options:

1. From the **Dashboard**, go to **SF Connections** and click on **Refresh Metadata**.
![Refresh](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdref1.png)

2. Click on **Refresh Metadata** directly from the dashboard.
![Refresh](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/sfmdref2.png)

---
83 changes: 78 additions & 5 deletions src/pages/docs/salesforce-testing/sf-test-cases.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,93 @@
---
title: "Test Cases for Salesforce"
page_title: "Introduction: Testsigma for Salesforce Test Automation"
metadesc: "Salesforce Testing with Testsigma helps reduce average test authoring time by 50%, and test case execution will be 2X faster with a user-friendly interface"
title: "Test Cases for Salesforce (Manual + Live)"
page_title: "Build Test Cases for Salesforce Testing"
metadesc: "Creating test cases for Salesforce automation is easy with Salesforce metadata artifacts and capabilities from Testsigma like smart NLPs, and the debugger"
noindex: false
order: 29.6
page_id: "Testsigma for Salesforce Test Automation"
page_id: "Test Cases for Salesforce"
warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Prerequisites"
url: "#prerequisites"
- type: link
name: "Steps to Create Test Cases for Salesforce"
url: "#steps-to-create-test-cases-for-salesforce"
- type: link
name: "Sample Test Case for Salesforce Automation"
url: "#sample-test-case-for-salesforce-automation"
---


---

With Testsigma, creating test cases for Salesforce is easy as we can leverage Metadata artifacts, smart NLPs, and the debugger to Automate Salesforce Testing. Metadata artifacts help auto-learn Salesforce components, smart NLPs simplify test scenario expression, and the debugger facilitates real-time test authoring. This article discusses creating test cases for Salesforce Automation and using the debugger for Live Test Authoring in Testsigma.

Here’s a quick video demonstrating how create test cases for Salesforce testing.

<iframe width="560" height="315" src="https://www.youtube.com/embed/bbhvPHlZ4MU?si=GtyrMu8FUWfEfDgP" title="Build Test Cases for Salesforce Testing with Ease!" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

---

Coming Soon!
## **Prerequisites**

- A Salesforce organization with the test setup
- A Salesforce connected app
- Salesforce metadata connected to Testsigma
- [Testsigma Chrome Extension](https://chromewebstore.google.com/detail/testsigma-recorder/epmomlhdjfgdobefcpocockpjihaabdp)

---

## **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)

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)

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)

[[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).

---

## **Sample Test Case for Salesforce Automation**
Let's say we have a scenario where we want to log in to Salesforce, navigate to the Sales tab, create a Lead record, and Edit the record form. Regular UI interactions require a lot of steps. However, with Testsigma's smart NLPs, we can automate the same flow in just four steps.

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)

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)

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)

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)

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)

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)

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)

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)


---
Loading
Loading