Configuring a run of a Compound Test that contains mobile 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 mobile tests to be run on HCL OneTest™ Server.
Before you begin
- You must be a member of the project with the Owner or Tester role to configure and run tests.
- You must have created the mobile tests in HCL OneTest™ UI and added the test asset to the project repository on HCL OneTest™ Server.
- You must have created a variable file if you want to import the variables file. The file must contain the details of the Appium server that is connected to the remote agent or the device cloud to which the mobile device is connected.
About this task
- Remote agents on which the Appium server is installed.
- The BitBar Cloud.
- The Perfecto Mobile cloud.
Name of the Variable | Action for the Value field |
---|---|
Mobile_Device_Selection |
Specify the name of the mobile device that is connected to the Appium server. |
appium.server.host |
Specify the host name or IP address of the Appium server. |
appium.server.port |
Specify the port on the Appium server that is configured to communicate with HCL OneTest™ Server. |
Name of the Variable | Value |
---|---|
Mobile_Device_Selection |
Specify the name of the mobile device that is connected to the BitBar Cloud. |
bitbar.apikey |
Specify the user token generated for your BitBar account to authenticate your connection with the BitBar Cloud. |
bitbar.host |
Specify the host name of the BitBar Cloud instance. |
bitbar.project |
Specify the name of the project that contains the recorded test. |
bitbar.testrun |
Specify a name for the test run that must be displayed in the BitBar dashboard for the test run. |
Name of the Variable | Value |
---|---|
Mobile_Device_Selection |
Specify the name of the mobile device that is connected to the Perfecto Mobile cloud. |
perfecto.securitytoken |
Specify the user token generated for your Perfecto account to authenticate your connection with the Perfecto Mobile cloud. |
perfecto.host |
Specify the host name of the Perfecto Mobile cloud instance. |
Procedure
- Open the project that contains the test assets you have added from the Git repository and click Execution.
-
Select the branch of the repository that contains the test assets that you want to run.
All test assets in the selected branch are displayed on the Execution page.
-
Identify the test asset that you want to run by performing any of the following steps:
- Look for the test asset or resource by scrolling through the
list.Note: You can also identify the type of the asset or resource by looking for 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 Postman resources Rate Schedule Stubs 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.
- Add or enter the relevant parameters for the filter query.
- Apply the filter query to filter the assets based on the query.
- Save the filter query, if you want to reuse the
filter query later, by performing the following steps:
- 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:
- Click the Open filters icon
.Note: To open the filter query, you must have created and saved a filter query.
- Select the saved filter in the Filters dialog box.
- Click Apply to apply the filter.
- Click the Open filters icon
.
- Look for 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.
-
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 are repeating 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.
-
Perform the following steps to provide the variables that specify the server or cloud to which the mobile device is attached. You can either enter the variables that must be passed to the test at the test run time or import the file that contains the variables.
-
Click Execute.
The test run is started.
Results
What to do next
- You can stop the test run at any point after the test run is initiated, from the Execution page. See Stopping a test run.
- You can cancel a scheduled test run, from the Execution page. See Canceling a scheduled test run.
- You can view the progress of the test from the Progress page. See Viewing the progress of running test assets.
- You can monitor the test from the Progress page. See Monitoring a test run.
- You can view the results, reports, and logs of the test from the Results page after the test completes the run. See Test results.