Creating a Salesforce Lightning test

You can create tests for Salesforce Lightning applications to ensure that they function correctly.

Before you begin

You must have completed the following tasks:

Procedure

  1. In the UI Test perspective, click New > Test From Recording.

    Alternatively, on the toolbar, click the New Test From Recording icon New Test From Recording.

    The New Test From Recording wizard is displayed.

  2. Click Create a test from a new recording in the Recording Session screen.
  3. Select Web UI Test.
  4. Click Recording Encryption Level, and then select the encryption level, if you want to encrypt sensitive data in the application.
  5. Click Next.

    The Select Location page is displayed.

  6. Click to select a folder from the parent folder list.
  7. Type a name for the test.
  8. Click Next.

    The Select Client Application page is displayed.

  9. Select a browser, and then click Next.

    The Recorder Settings page is displayed.

  10. Select the recording preferences as required.
  11. Click Finish.
    The Welcome page is displayed with the following details:
    • The version of the web browser.
    • The web applications that you added for testing.
  12. Click the link of the configured Salesforce application to test from the Configured Application list.
  13. Complete the user tasks in the Salesforce application.
  14. Stop the recorder by closing the Salesforce application under test or by clicking the Stop icon Stop icon in the Recording Control view.
    The Test Generation dialog is displayed.
  15. Click Open Test to view the test, or click Close to close the dialog.
    A confirmation message about the data correlation is displayed if you clicked the Open Test option.
  16. Click Yes to view the correlated data, or click No to close the dialog.

Results

You have created a test for the Salesforce Lightning application.