Running server test assets

You can run tests that are listed as server test assets created in HCL DevOps Test Hub (Test Hub).

Before you begin

You must have completed the following tasks:

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:
    • SUITES
    • 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 a browser from the list of browsers that are available for the test run from the Browsers drop-down list.
      The browser that is used to record the test is selected as the default browser and the browser specified here overrides the default browser.
  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. Optional: Click the LOCATION tab, and then select the agent that you have added in the Override field.
    After selecting the agent, if the specified browser is not available to the agent, Test Hub displays a warning indicator in the Environment tab.
  14. 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.
  15. 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
  16. Click Execute.
    The test run is initiated.

Results

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

What to do next

You can perform any of the following tasks: