Running server test assets by using a cloud credential

You can run tests that are listed as server test assets created in HCL DevOps Test Hub (Test Hub) on a device cloud by using a cloud credential.

Before you begin

You must have completed the following tasks:

About this task

You can run tests on the supported device clouds such as BrowserStack Cloud, LambdaTest Cloud, and pCloudy Cloud.
Restriction:
Tests that you record on a standard browser might fail when you play them back on a device cloud. To increase the probability of successful playback, record tests by using device emulation. See supported device profiles.

Procedure

  1. Log in to Test Hub.
    The Projects page of the initial team space is displayed.
  2. Open the project that contains the test assets, and then click Execution.
  3. Select the branch of the repository that contains the test assets.
    The test assets that are contained in the selected branch of the repository are displayed in the following tabs on the Execution page:
    Tab Description
    SUITES Lists all suites, Compound Tests, JMeter tests, JUnit tests, Postman tests, Rate Schedules, Selenium tests, or VU Schedules that are in the selected branch of the repository.
    TESTS Lists all API tests, functional tests, performance tests, or server test assets that are in the selected branch of the repository.
    ADVANCED Lists all assets that are displayed when custom filters are applied for assets in the selected branch of the repository.
  4. Select one of the following tabs based on the type of test assets that you want to run:
    • TESTS
    • ADVANCED
    The test assets in the selected tab are displayed.
  5. Identify the Server Test asset that you want to run by scrolling through the list, searching for the test, or applying a filter.
    Clicking the test name displays the Details panel. You can view the details of the test such as the description, the branch in the repository that contains the asset, the Git details, and the details of the commits to the repository. You can also view the history of the test runs for the specific test under the History tab of the Details panel.
  6. Click the Execute icon Image of the icon. in the row of the identified test asset.
    The Execute test asset dialog is displayed.
  7. Select the version of the test resources that you want to run in the Version field.
  8. Click Schedule and select the time if you want to schedule the test run. Else, skip the step.
  9. Enter a label for the test run that helps you to identify the test on the Results page.
  10. Follow the instructions to select a browser:
    1. Click the ENVIRONMENT tab, if it is not already open.
    2. Select an environment from the list that is available for the test run from the Environment drop-down list.
      The variables and profile overrides in the selected environment override the values defined in the test when you run a test or suite.
    3. Select a device from the list of devices for the configured device cloud in the Browser drop-down list.
      The name of the browser is appended with the name of the device and name of the cloud credential in the list. For example, if the mobile device is Galaxy S10 and the cloud credential name is Lambda, then the name displayed in the list is Chrome(Galaxy S10 : Lambda).
  11. Optional: Click the DATA SOURCES and select a dataset tab if you are running a test asset that contains datasets.
  12. Optional: Click the VARIABLES tab, and then add or upload variables if the test requires a variable that must be passed to the test at the test run time.
  13. Click the RESULTS tab and select an option if you want to export the test results to a Jira issue in your Xray project in Jira.
    You must have set up Jira as a change management system and configured the Xray integration to export the results.
  14. Click Advanced to enter any of the following values that must be passed to the test run if they are applicable for the test:
    • JVM Arguments
    • Program Arguments
    • Environment Variables
  15. Click Execute.
    The test run is initiated.

Results

You have run a server test asset that is created in Test Hub on a device cloud.

What to do next

You can perform any of the following tasks: