Running Web UI tests on LambdaTest Cloud

You can run Web UI tests on the LambdaTest Cloud platform so that you can choose devices from a wide range of Android and iOS devices that are available for testing.

Before you begin

You must have completed the following tasks:

  • Set up your account to access LambdaTest Cloud. You must have valid credentials such as the username, either the hostname or the URL of the LambdaTest Cloud instance, and an API key to authenticate the connection. This key is available under ACCESS KEY in the LambdaTest dashboard.
  • Created one or more Web UI tests.
  • Verified that the device you want to test is in the list of active devices. The list displays the devices that are in the Released state on LambdaTest Cloud at the time of selection for a test run.
Note: If you run a test that requires Test UI to open the same browser multiple times due to a loop with datasets, LambdaTest Cloud might allocate a different device of the selected model for each test run. This allocation depends on the available devices in the released state and might result in test runs on browsers of different versions.

About this task

LambdaTest is a cloud testing platform, which you can connect from HCL DevOps Test UI (Test UI) or a remote agent computer. LambdaTest supports both iOS and Android applications. You can run the tests after you configure the LambdaTest Device Cloud Environment panel.

Procedure

  1. Start Test UI.
  2. Select UI Test perspective.
  3. Go to Windows > Preferences > Test > Test Execution > UI Test Playback.
  4. Select the Mobile Device Cloud tab.
  5. Select the LambdaTest host checkbox to enable the LambdaTest Device Cloud Environment panel.
  6. Perform the actions listed in the following table:
    Option Action
    Required
    LambdaTest host Enter the URL of the LambdaTest Cloud instance.
    User Name Enter the user name of your LambdaTest Cloud account.
    API key

    Enter the API key of your LambdaTest Cloud account to authenticate the connection.

    Project Select the LambdaTest project from the drop-down list or enter an appropriate name for the project with which you can identify the test run on the LambdaTest Cloud dashboard.
  7. Click Apply and Close.
  8. Open the Web UI test for playback from the Test Navigator pane.

    The Test is displayed.

  9. Click the Run Test icon.

    The Run Configuration dialog is displayed.

  10. Select a device on LambdaTest Cloud for the test playback from the Run Using drop-down list.
  11. Click Next.
    The Advanced playback options page is displayed.
  12. Select the Global steps delay in milliseconds checkbox and specify the duration of delay in milliseconds to set the delay between all the steps in the test.
  13. Click Finish.

    The test playback is started on the selected device.

Results

You ran the Web UI test on multiple mobile devices that are available on LambdaTest Cloud and the test results are displayed as a unified report in Test UI.

What to do next

You can view the following details from the unified report:
  • The details and screen capture that are associated with each test step. To view these details, you can click each test step in the Details pane.
  • Android device or iOS device on which the test was played back. To view the device, you can click the icon.
  • Test information such as AUT, host computer, and duration of the test. To view such information, you can click the icon.
  • All the screen captures that are in a slide-show format. To view the screen captures, you can click the icon.