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 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
When you initiate a test run that requires a capability such as the Safari browser, and if you have not specified any agent to run, the test enters an Unclaimed state. This state indicates that the job is valid but is waiting for a suitable environment or agent to run it. If an agent that has the required capability is registered with the project, then the agent picks up the job and runs the test, which is in an Unclaimed state. You can also cancel or stop the test runs that are in the Unclaimed state.
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.
-
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.