Running server test assets on an agent
When you have server test assets that you want to run on a Linux, Mac, or Windows system by using an agent, you can register the agents and run the tests.
Before you begin
- Registered the Linux, Mac, or Windows system using an agent for running tests. See Installing and registering DevOps Test Runtime agents.
- Read and completed the tasks mentioned in Prerequisites to running tests, if they apply to the test that you want to configure for a run.
- Read and completed the tasks mentioned in Test run considerations for browser-based Web UI tests, if you want to run tests that use Chrome or Edge browsers.
- Created a Web UI test in Test Hub.
About this task
Procedure
-
Log in to Test Hub.
The Projects page of the initial team space is displayed.
- Open the project that contains the test assets, and then click Execution.
-
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. -
Select the tab based on the type of test assets that you want to run, as
indicated in the following table:
If... Then... You want to run Suites.
Click the SUITES tab.
You want to run a Web UI test.
Click the TESTS tab.
You want to find Suites and tests by using custom filters, and then run Suites and tests. Click the ADVANCED tab.
The test assets in the selected tab are displayed.
- Identify the test asset that you want to run by scrolling through the list, searching for the test, or applying a filter.
-
Click the Execute icon
in the row of the identified test asset.
The Execute test asset dialog is displayed. - Select the version of the test resources that you want to run in the Version field.
-
Follow the instructions to select a browser:
- Optional: Click the DATA SOURCES and select a dataset tab if you are running a test asset that contains datasets.
- 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.
-
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.
- Optional:
Click the RESULTS tab, and then perform any the
following actions:
- 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.
- Click + Create Property, and then add values in
the Name and Value
columns.
The key-value pair of properties created here helps you add details about the test, and they are displayed in test results. You can add multiple properties. For example, you can add buildID and DTHub202609070223-2f3d81f80f as values. The values entered in these fields are displayed on the Functional Report page, Test Log page, and in the Properties column on the Results page.
- Select an option if you want to export the test results to a Jira issue
in your Xray project in Jira.
-
Click Execute.
The test run is initiated.
Results
What to do next
- Stop the test run at any point after the test run is initiated from the Execution page. See Stopping test runs.
- View the results, reports, and logs of the test from the Results page after the test completes the run. See Test results.