Configuring a run of a Compound Test that contains HTML tests
After you added the test resources that you created in the desktop client to the project, you can configure a Compound Test that contains HTML tests to be run on HCL OneTest™ Server.
Before you begin
- Been assigned the Owner or Tester role in the project to configure and run tests.
- Authored a Compound Test in HCL OneTest™ UI and must have completed the following tasks when you created the test assets:
- Created a Compound Test under a Web UI project in your workspace.
- Created a Functional HTML Test under a Compound Test in a Functional test project in the same workspace that contained the Web UI project.
- Used the startBrowser(Firefox,<URL>) attribute with the browser value set to Firefox in the Functional test script.Restriction: Functional test scripts that contain the startApp() or callScript() attributes are treated as non-HTML scripts and are not supported to be used in test scripts in the HTML tests.
- Ran the Compound Test that contains the HTML tests on HCL OneTest™ UI.
- Committed the projects that include the Web UI project (with the Compound Test) and the Functional test (with the HTML tests in a Compound Test) to the remote repository.
Procedure
- Open the project that contains the test assets or resources that you added from the Git repository, and then click Execution.
-
Select the branch of the repository that contains the test assets or
resources that you want to run.
All test assets in the selected branch are displayed on the Execution page.
-
Identify the test asset or resource that you
want to run by performing any of the following steps:
- Identify the test asset or resource by scrolling through the
list.Note: You can also identify the type of the asset from the icon that represents the test type as shown in the following table:
Icon Represents the test asset or resource AFT Suite API Suite Compound Test JMeter Test JUnit Test Postman resources Rate Schedule VU Schedule - Search for the test asset or resource by entering any text contained in the test asset or resource name in the Search text box.
- Create a filter query by using the New
filter option by performing the following
steps:
- Click New filter.
- Select an operator, and add a rule, or a group of rules.
- Add or enter the relevant parameters and either
select or enter the condition and the criteria for
the condition.You can select a parameter from the following list:
- Type
- Test Asset Name
- Test Asset Path
- Last Result
- Next Run
- Components
- Apply the filter query to filter the assets based on
the query.
The test assets that match the filter criteria are displayed.
- Save the filter query by performing the following
steps, if you want to reuse the filter query later:
- Click Save.
- Enter a name for the filter query.
- Click Save.
- Retrieve a saved filter, if you have saved filter queries
earlier by performing the following steps:Note: To open the filter query, you must have created and saved a filter query.
- Click the Open filters icon .
- Select the saved filter in the Filters dialog box.
- Click Apply to apply the
filter.
The test assets that match the filter criteria are displayed.
- Identify the test asset or resource by scrolling through the
list.
-
Click the Execute icon in the row of the identified test asset.
The Execute test asset dialog box is displayed.
-
Select the version of the test resources
that you want to run by completing any of the following
actions:
Note: The test resources in the version can contain the test assets, datasets, AFT XML files, API environment tags, and other resources specific to projects created from any of the desktop clients.
- Expand the list in the Version field,
find the version of the test resources, and then select the
version.Use the following details about the version of the test resources that are displayed to identify the version that you want:
- Commit message.
- Tags labeled by the user for the version committed.
- The user who committed the version to the repository.
- Relative time of the commit. For example, 2 hours ago or 3 days ago.
The list displays the versions of the test resources committed by all users to the branch in the repository. The versions are arranged with the latest version that is committed, and then followed by the versions committed previously.
- Expand the list in the Version field,
and then search for the version that you want to select by
entering a partial or the complete commit message of that
version.
The version that matches the search criteria is displayed and it is selected for the test run.
The default value for the version selected for the run is the latest version in the selected branch in the repository. If you do not select any version, then the latest version is selected for the test run.Notes:- If you selected a version but you do not want to use that version in the test run, you can remove the selected version by clicking the icon, then the default version is selected for the test run.
- If you repeated a test or ran the test again from the Results page, then the version of the test resources that you had selected for the earlier run is shown as selected. You can either retain this version or select any other version from the list. You can also remove the previous version by clicking the icon.
- Expand the list in the Version field,
find the version of the test resources, and then select the
version.
-
Select the time for scheduling the test run from the following
options:
- Select Now to
initiate the test run immediately after you click
Execute.Important: Click Execute only after you have configured the other settings in this dialog box.
- Select Later and configure the date and time for scheduling a test to run at the scheduled date and time.
The default time for scheduling a run is Now.
Notes:-
If you have configured some or all of the settings for the current test run, and you do not want to continue with those settings, you can reset the settings by clicking Reset.
-
If you want to repeat a test run and do not want to use the saved settings from a previous run, you can reset all the saved settings to their default values by clicking Reset.
- Select Now to
initiate the test run immediately after you click
Execute.
-
Enter a label for the test run
that helps you to identify the test on the
Results page.
After the test run completes, the label that you entered is displayed for the test under the Labels column on the Results page. After you have created a label, any member of the project can use that label.
The default value for the Label field is null or an empty field.
Important: The configuration that you set for the test run in the Execute test asset dialog box is preserved when you run the same test again. Those changes are not visible when another user logs in to HCL OneTest™ Server. For example, if you created new variables on the server, those variables are available only for you when the same test is run again.If you want to run the test immediately or at the scheduled time, click Execute, or continue with the next step.
-
Click Advanced to make
the following advanced configurations:
Note: You must separate the arguments or variables with a white space when you enter them in the same line or start each argument or variable on a new line.
The default value for each of the fields for the advanced settings is null or an empty field.
If you want to run the test immediately or at the scheduled time, click Execute, or continue with the next step.
-
Follow the instructions if you are running a test asset that contains datasets:
If you want to run the test immediately or at the scheduled time, click Execute, or continue with the next step.
-
Follow the instructions in this step if the test requires a variable that must be passed to the test at the test run time.
You must configure the supported browser by using a variable if the test has a browser configured, which is different from the one that is supported by HCL OneTest™ Server.
The default value for the variables is null or an empty field.
If you want to run the test immediately or at the scheduled time, click Execute, or continue with the next step.
-
Follow the instructions if you want to change the location for running the test:
If you want to run the test immediately or at the scheduled time, click Execute.
-
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 a test run.
- Cancel a scheduled test run, from the Execution page. See Canceling a scheduled test run.
- View the progress of the test from the Progress page. See Viewing the progress of running test assets.
- Monitor the test from the Progress page. See Monitoring a test run.
- View the results, reports, and logs of the test from the Results page after the test completes the run. See Test results.