Creating a persona

Personas in Testim/TTA for Salesforce are user types, such as admin, sales, or customer. Personas are used to access your Salesforce environment when running tests. After creating a Persona, you will associate it with the credentials of existing Salesforce users in your connected Salesforce environment. This way you can switch between various environments (e.g., Dev, QA, Production, etc.) without the need to re-write the test.

This process assumes that you have connected your Salesforce environment to Testim/TTA for Salesforce. For more information see, Connecting your Salesforce environment

📘

By default, after connecting your Salesforce environment, the system creates an Admin persona on this environment, while using the credentials used to log in to your environment.

Creating a persona and associating it with a Salesforce user

After creating a Persona you can associate a Salesforce user by using one of the following methods:

  • Sign in with Salesforce (recommended) - a pop-up with the Salesforce sign-in screen is displayed.
  • Log in with username and password - configure your login credentials in Testim/TTA for Salesforce.

To create a Testim/TTA for Salesforce persona:

  1. In Testim/TTA for Salesforce, go to Settings > Salesforce > Personas and click the Add Persona button.

  2. Enter a persona name and click Add.

    The persona is added to the list.

  3. From the list of personas, click the + button next to the relevant persona.

  4. Select one of the following:

    1. Sign in with Salesforce (recommended) - in this method you will sign in to Salesforce and Testim/TTA for Salesforce will receive a token from Salesforce once it has been authenticated. A pop-up with the Salesforce sign-in screen is displayed. Login to the relevant Salesforce account to associate it with the persona and click Allow to allow access.
    2. Log in with username and password - configure your login credentials in Testim/TTA for Salesforce, by following the steps below.
  5. In the Salesforce user field, select the relevant user from the drop-down menu.

  6. In the Salesforce Password field, enter the relevant password.

  7. If the login requires MFA, enter the MFA authenticator key. To learn about how to find the MFA key, see MFA setup.

  8. Click Save.
    The credentials will be displayed in the table on the Persona Name row and under the relevant environment column. When running the test you will be able to select the relevant environment for the test, which includes all the personas that were configured.