Configure tests - Examples
You can configure your tests by using test configuration parameters to set values. For basic information on the creation of test case parameters and configurations refer to see chapter "About test configuration parameters".
Example: file paths
An example for test configuration parameters is the definition of program paths in various operating systems. If you want to execute a test using both Windows XP and Windows 7, then various program paths must be stored.
Procedure
Test configuration parameter in TestCase
The test configuration parameter is copied to the ExecutionLists.
Configuration parameter in the ExecutionList |
Example: configure Appium
The following example shows an ExecutionList that has been configured and prepared for Appium on MobileLabs by using configurations. The example contains test configuration parameters that can be re-used. This allows you to make use of the tree structure of the configuration and the inheritance. If you execute the ExecutionList all defined test configuration parameters will be considered.
Procedure
List of configurations in the Configurations section.
Appium test configuration parameters added to a configuration.
Device specific configurations added as child-configuration.
Test configuration parameter DeviceName is set on a child-configuration.
The configuration Android 7.0 is assigned to the executionlist Appium Engine - Android 7.0. In this example an ExecutionList has been configured and prepared for Appium on MobileLabs by using configurations. From now on when executing the Appium Engine - Android 7.0 ExecutionList all the test configuration parameters, AppiumServer, MobileLabsAccessKey, MobileLabsUsername and DeviceName will be considered. |