Manage automation tests
This topic describes how to create, manage and edit your automation tests in SRF.
Find your tests and test details
The AUTOMATION tab displays all tests stored in SRF, including both uploaded tests, and tests you've created entirely in the cloud.
On the left side of the AUTOMATION tab, click a filter toggle to enable or disable it.
Then define the filter you want to use to display your tests.
At the top of the grid, click the search icon to search for:
View details about your tests in the grid, such as last modified dates and run success trends.
For details about a specific test run:
Create automation tests directly in SRF by combining modular scripts and defining your test environment.
Create your test
On the AUTOMATION tab, click NEW, and then select one of the following:
|Mobile Apps Test||
Tests your mobile apps on mobile devices.
Tests your websites on desktop or mobile browsers.
On the right, define your test's name, a description, and other details about your test.
In your test details on the right, click Add Tag and then enter text to add a tag.
Tip: Filtering by tags helps locate tests and test results across SRF.
Tags also enable you to run batch tests as part of a continuous delivery process. For details, see Continuous delivery tools.
In your test details on the right, click the SCRIPTS tab to add scripts to your test.
Add a script already saved in your SRF assets.
These might be scripts previously recorded in SRF, or uploaded from an external testing tool.
Record a script without leaving SRF.
Your script is stored in your SRF assets and can be used again in another test. For more details, see Record scripts.
To run a parametrized script, first add parameters to your script and set default values on the SCRIPTS tab. For details, see Manage your script parameters.
Then, on the AUTOMATION tab, modify runtime parameter values as follows:
In the test details on the right, click SCRIPTS to view the scripts in your test.
For each script that has a parameter, click the down arrow on the right to display the parameters.
Click in the parameter value field to change it, and then click outside the field to save the value.
In your test details on the right, click the ENVIRONMENTS tab to define the environments on which you want to run your test.
To delete an item, hover over the row and click the Options bar on the right. Then, click Delete to delete the session. To clear all selections, click Clear.
Define your environment using the options displayed, depending on your test type:
Click one of the following:
If you are testing an app installed behind a corporate firewall, select a configured tunnel to use when accessing that app. This option is available after selecting browser options.
For more details, see Manage tunnels.
Click one of the following:
Use the search bar to filter the apps or devices displayed.
If you are working with mobile devices and can be flexible with the exact device used, click ADD RULE to run your session on any available matching device in your lab.
After adding apps to your environment, define your app settings:
- Hover over the UPLOAD value to select an app upload version.
- Toggle on the PACKAGED option to use the packaged version of the app.
In the START SESSION FROM area, select the system app you want to use to start, and any of the following options as applicable:
- Restart the app when the test/session starts
- Install the app at the beginning of the test/session