Running a Salesforce Lightning application test

You can run the recorded Salesforce Lightning tests with a configured environment to validate Salesforce application behavior.

Before you begin

You must have completed the following tasks:

  • Ensured that you are assigned a Team Space Owner, Project Owner, or Member with a Tester role to create or edit a test resource.
  • Ensured that your project contains a recorded Salesforce Lightning test in the test navigator panel.

About this task

You can run the recorded Salesforce Lightning test with a configured environment in either of the following ways:
  • From the Test editor page
  • From the Execution page

Procedure

Perform any one of the following methods to run the Salesforce test:
Action Description
Run from the Test Editor page
Perform the following steps:
  1. In the Test Editor toolbar, select the required environment from the environment list. For example, SFLenv.
  2. Click the Run icon icon to run the test against the selected environment.
  3. Optional: Select the execution cluster from the drop-down next to Run icon.
Run from the Execution page
Perform the following steps:
  1. Open the project that contains the test assets, and then click Execution.
  2. Click Tests.

    The test assets available in the selected branch of the repository are displayed.

  3. Locate and open the recorded Salesforce test asset.
  4. On the Environment tab, select the SFLenv environment.
  5. Click Execute.

Results

You have run the recorded Salesforce Lightning application test with the selected environment.