Skip to main content
Skip table of contents

Salesforce Application (SFDC)

This guide introduces you to a pivotal component of Qualitia Automation Studio (QAS) – Salesforce Application and covers its core features, from the intuitive recording toolbar to the advanced verification steps, mouse hover actions, browser simulations, and the dynamic locator type priority. Let’s discover how the Salesforce application can redefine your test automation experience.

📚Prerequisites

  1. User should have the QAS - Client installed.

  2. Enable the feature flags.

  3. The project needs to be Salesforce.

  4. User should create Connect App in Salesforce.

Switch user composite action configuration need:

If your browser requires manual intervention to allow pop-ups, please add the following runtime capabilities/arguments:

  • --disable-web-security

  • --allow-running-insecure-content

Establishing Connection with the Salesforce Application

To start using the Salesforce application, you need to first establish a connection between QAS - Client and the Salesforce application you a willing to use.

Follow the below steps to establish the connection:

  1. Login to Qualitia Automation Studio (QAS) - Client.

  2. Access Settings from left navigation to view the Settings screen. On the Settings screen, select Project Configuration.

  3. Expand Project Configuration and click Salesforce to open Salesforce Connections screen.

    image-20250418-063436.png
  4. On the Salesforce Connections screen, you can see all the previously established connection, if any, and also search for one by the Connection Name using the Search option.

  5. To create a new connection, click New. This will open the New Salesforce Connection window.

  6. You can establish the connection by choosing one of following:

    1. Login using OAuth: To login using this method enter the below details.

      image-20240802-092158.png
      1. Connection Name: Enter an intuitive name for the connection that is easy to recognize.

      2. Salesforce URL: Enter the Salesforce application URL. It should be a Classic URL.

      3. Client ID: Enter the Consumer Key generated from the Connected App. Refer Create Connected App in Salesforce for more info.

      4. Client Secret: Enter the Consumer Secret generated from the Connected App. Refer Create Connected App in Salesforce for more info.

    2. Login using Salesforce URL:

      1. Connection Name: Enter an intuitive name for the connection that is easy to recognize.

      2. Salesforce URL: Enter the Salesforce application URL. It should be a Classic URL, e.g., https://qualitia6-dev-ed.develop.my.salesforce.com/ .

      3. Username: Enter the username registered with the Salesforce application.

      4. Password: Enter the password for logging into the Salesforce application.

      5. Security Token: Enter the Security Token generated using the Salesforce application. Refer Steps to Generate Security Token for more details.

      6. Environment

      image-20240802-093216.png

  7. Click Connect.

  • The Enable Client Credentials Flow checkbox should be checked to establish a successful connection. You will find this option under the API (Enable OAuth Settings) on the Connected App.

  • After the connection is successful you will see Organization Name above the Disconnect button. The Organization Name will be auto populated once the connection is successful.

    image-20250418-060016.png

When one user is editing a connection, it is locked for editing or deletion for other users. However, other users can still import objects using the same connection.

Create Connected App in Salesforce

  1. Log in to Salesforce as an administrator.

  2. Click Setup from the upper-right corner of the Salesforce application screen.

    image-20250709-111254.png
  3. Navigate to App Manager from the left pane and click New Connected App.

  4. Enter the details in the required fields under Basic Information on the New Connected App page.

    • Connected App Name (e.g., Qualitia Integration)

    • API Name (e.g., Qualitia Integration)
      Note that the API Name will be auto populated as Connect App Name.

    • Contact Email

  5. Enable OAuth Settings under API:

    • CreateSelect Enable OAuth Settings.

    • Enter https://login.salesforce.com/ in the Callback URL field.

    • Select Manage user data via APIs (api) in the Selected OAuth Scopes field and click Add.

  6. Click Save to create the new Connected App.

  7. Navigate to the Connected Apps list and click Manage.

  8. On the Manage screen, go to OAuth Policies and click Edit

    • Under Permitted Users, select All users may self-authorize.

    • Click Save to save the changes.

  9. Go back to the Connected Apps list and click the App you just created.

  10. In the API (Enable OAuth Settings) section, you will find the Consumer Key and Consumer Secret which will be required for configuring Credentials in Qualitia Integration.

    image-20240806-074214.png

  • Take a note of the Consumer Key and Consumer Secret for configuring credentials in Qualitia Integration.

  • If you are unable to import objects with Salesforce connections, adjust the Session Security Level Required at Login setting by either disabling it or setting it to None within the respective user profile.
    Steps to resolve:

    • Navigate to Users > Profile in Salesforce.

    • Go to Session Settings.

    • Set Session Security Level Required at Login to None.

Creating an External Client App in Salesforce

Follow the steps below to create and configure an External Client App in Salesforce for secure integration.

  1. Log in to Salesforce (e.g. https://login.salesforce.com) using Salesforce Admin credentials.

  2. Nevigate to App Manager, click the Gear icon (⚙️) and select Setup.

  3. In the Quick Find box, search for External Client App Manager and click.

  4. Click New External Client App to create a new external client app.

    image-20250709-111610.png
  5. Provide the following details:

    • External Client App Name: Enter a meaningful name.

    • Contact Email: Enter a valid contact email address.

      image-20250709-111841.png
  6. Select the Enable OAuth checkbox.

    image-20250709-112009.png
  7. Configure OAuth Settings:

    • Enter the Callback URL, e.g.
      https://login.salesforce.com/services/oauth2/callback

    • In Selected OAuth Scopes, add the following:

    • Full access (full)

    • Perform requests on your behalf at any time (refresh_token, offline_access)

    • Access and manage your data (api)

    • (Optional): Access your basic information (id, profile, email, address, phone)

  8. Select the Enable Client Credentials Flow checkbox.

  9. Click Create.

  10. Now to Set App Policies, navigate to the Policies tab.

  11. Click Edit App Policies.

  12. Configure the following:

    • Start Page: Select OAuth

    • Permitted Users: Choose appropriate access level

    • OAuth Start URL: Provide the relevant start URL

    • Enable Client Credentials Flow: Ensure this option is selected

    • Run As: Provide the Salesforce username to run the app contextually

  13. Click Save.

  14. To Generate Consumer Key and Secret, go to the Settings tab and expand OAuth Settings.

  15. Click Consumer and Secret.

  16. Provide the required verification code when prompted.

  17. Copy and securely store the generated Consumer Key and Consumer Secret for later use.

Edit a Connection

You can edit a connection from the Settings tab, or from the Object Repository.

Edit a connection from the Settings tab

  1. Access Settings from left navigation to view the Settings screen. On the Settings screen, select Project Configuration.

  2. Expand Project Configuration and click Salesforce to open Salesforce Connections screen.

  3. On the Salesforce Connections screen, you will see the list of organization and its connections.

    image-20250418-063436.png
  4. Click the Pencil icon at the right to edit the connection.

  5. Update the required changes and click Connect.

If you attempt to edit the connection and change the provided Salesforce URL — which may result in a change of the organization — Qualitia will not allow the update.
A message will be displayed:

"Changing Salesforce connection will affect the organization name. Please create a new connection to proceed."

If a connect fails due to a password change or any other reason, a failed icon will be displayed next to the connection name. You can edit the connection details and attempt to connect again.

Edit through Object Repository

For Salesforce project we have two object repositories.

  1. Qualitia Objects: The objects that are created using Recorder, Web ObjectSpy, or manual object creation will be available under this repository.

  2. Salesforce: The objects that are obtained from Salesforce application by using the established connection can be found under Salesforce repository.

Steps to edit using object Repository:

  1. Go to Object Repository.

  2. Expand the Salesforce tab to view the list of the connections.

  3. Click the Settings icon on the right-hand corner of the connection you are willing to edit.

    image-20240806-090301.png

If your password or Security Token is expired the connection will be failed. And in this case, you can edit the connection from the Change Management tab.

image-20240806-090945.png

Delete a Connection

You can delete a connection from the Settings tab.

  1. Access Settings from left navigation to view the Settings screen. On the Settings screen, select Project Configuration.

  2. Expand Project Configuration and click Salesforce to open Salesforce Connections screen.

  3. On the Salesforce Connections screen, you will see the list of organization and its connections.

  4. Click the Bin icon at the right to delete the connection.

    image-20250708-095054.png
  5. Clicking delete will open a warning popup window.

    image-20250708-094921.png
  6. Click Delete to continue; else click Cancel.
    Note: When the connect is deleted it will be shown in strikethrough until you save it.

  • If a connection is deleted, the associated objects will remain in the object repository but Change Management details for those objects will no longer be available.

  • These objects will be moved under the "Organization" category.

  • Once the connection is re-created, all objects previously associated with it will reappear under Change Management.

  • When a connection is deleted, attempting to create a new connection with the same name triggers a duplicate error.

Steps to Generate Security Token

Please generate the security token for all the users by following the below steps.

  1. Login to Salesforce and go to Personal Settings.

  2. In the Quick Find box, type "Reset" and click Enter.

  3. From the search results, select Reset My Security Token.

  4. You'll be directed to a page or option where you can reset the security token.

  5. Click on the option or button labeled Reset Security Token.

  6. After clicking, Salesforce will generate a new security token for you.

  7. Check the email address associated with your Salesforce personal settings. You might have received an email containing the new Security Token.

  8. Note down or copy the Security Token from the email.

  9. You can now use this security token for authenticating with Salesforce or any integrations that require it.

In cases such as change password or reset token, user must regenerate the token and update the connection in Qualitia.

APIs Used

QAS uses certain APIs to get access to the application data. The following are the categories of APIs used:

Metadata APIs

Item

Description

Entry Point

https://{base}/services/data/v{Version}/

API Access required in connected App

Metadata API Edit Access or Full access

Reference link on all APIs

Result Objects | Metadata API Developer Guide | Salesforce Developers

Metadata APIs

Item

Description

Entry Point

https://{base}/services/data/v{Version}/

API Access required in connected App

API Enabled permission or Full access

Reference link on all APIs

Versions | REST API Developer Guide | Salesforce Developers

Connection APIs

Basic authentication

Item

Description

SOAP Entry point – URL base

{{_endpoint}}/services/Soap/m/{{version}}

API Access required in connected App

OAuth flows

Reference link on all APIs used

API Call Basics | SOAP API Developer Guide | Salesforce Developers

OAuth Authentication

Item

Description

Entry point

https://login.salesforce.com/services/oauth2/token

API Access required in Connected App

Download AppExchange Packages AND Customize Application AND either.
Modify All Data OR Manage Connected Apps

Reference link on all APIs used

Manage OAuth Access Policies for a Connected App (salesforce.com) 

💡 Golden Nuggets: Best Practices to Establish Connection Between Salesforce and Qualitia

There are 2 ways to Establish a connection between Salesforce and Qualitia.

  • Using salesforce URL- for this we need Salesforce URL, Username, Password and security token.

  • Using O-auth- for this we need Salesforce URL, Username, Password, Client Id, Client Secret.

🔧 Got a problem? Let’s fix!

  1. Issue: Unable to find “Reset My Security Token” Information or “Your security token isn’t displayed in your settings or profile.”
    Solution:
    Qualitia Client
    Standard Resolutions for the above are:

    • Restriction enabled in connected App

      • Go to Setup

      • Search for “Manage App”

      • Select your connected app

      • Click on “Edit Policy”

      • In the Trusted IP Range for OAuth Web server flow section

      • Select “No Restriction”/ “Anyone can connect” or enter the right restrictions as per your policy.

    • IP Restrictions in the Login IP Ranges

      • For the Reset My Security Token option to appear you will need to remove the Login IP Ranges or change the User to a profile that does not have Login IP Ranges listed.

    • In Salesforce Classic

      • Unlimited, Performance or Enterprise, system administrators can verify if there are IP values in the Login IP ranges by selecting:
        Setup -> Manage Users -> Users -> Profile -> Profile name -> Login IP Ranges.

      • System administrators can verify if there are IP values in the Login IP ranges by selecting:
        Setup -> Security Controls -> Session Settings.

      • Remove the IP ranges if required.

    • In Lightning Experience

      • System administrators can verify if there are IP values in the Login IP ranges by clicking going on the gear icon:
        Setup Home -> Users -> Profiles -> select the profile name -> Login IP Ranges.

      • System administrators can verify if there are IP values in the Login IP ranges by clicking going on the gear icon:
        Setup Home -> Security -> Session Settings.

    • Network Access is missing

      • System administrators can confirm if Network Access is missing by following these steps:

        • Go to Setup

        • On the Quick Find box, enter Network Access.

        • Login Challenge Enabled

        • Login with API Token
          OR

        • Delete the IP address range in the network access.

      • Forcefully reset by hitting the following URL:

        • § /_ui/system/security/ResetApiTokenEdit

  2. Not able to load the SFDC project after an upgrade: If you are not able to load the SFDC project after an upgrade to Qualitia’s latest version, you need to delete the Workspace folder. You can find the workspace folder on the below path: C:\Users\user1\AppData\Local\Qualitia Automation Studio - Client\workspace.

  3. Newly added objects are not visible on Import model: If you are not able to find a newly added object on the import model, while creating an object create it as mandatory and save. Once the object is saved, make it non-mandatory, as only mandatory fields are visible on the Import modal. This will make the object visible and ready to be used.

  4. The Check operation for the imported SFDC Checkbox object failed, it displays a pass result in the report: If the Check operation for the imported SFDC Checkbox object is failed then the result displayed in the report should be fail. However, if you are getting a pass result, try the execution with indexing.

  5. Error while fetching objects for connection: If you are getting the error message Error while fetching objects for connection, while importing the objects, make sure to enable the Client credential flow on the Connected App.
    Note: You can also connect using OAuth Client Credential to avoid such errors.

  6. Blank screen while using mobile recorder: While using mobile recording on the Salesforce app, a blank screen appears on the login page, making it difficult for the user to record objects.
    Solution: To learn the objects on such blank pages, users should hover over the screen until the objects get highlighted with a border. By clicking on the highlighted objects, users can successfully capture and learn them.

📞📚 Here to Help: Support and Resources

If you have questions that are not addressed in the documentation, you may raise them in the Qualitia Community.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.