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

  1. Create the test configuration parameter Progpath for TestCase Test 3 in the TestCases section. For further information on how to create a test configuration parameter, refer to chapter "Create test configuration parameters ".

Test configuration parameter in TestCase

  1. Use the syntax C:\{CP[Progpath]}\TRICENTIS in the TestStepValue to link this with the configuration parameter Progpath.

Example for test configuration parameter

  1. Use TestCase Test 3 to create ExecutionLists for every operating system in the ExecutionLists section.

The test configuration parameter is copied to the ExecutionLists.

  1. Define the paths of the respective operating systems as values for the test configuration parameters.

Configuration parameter in the ExecutionList

Example: configure Appium

You can configure your mobile tests with reusable mobile configurations. The Mobile Engine 3.0automatically creates mobile configurations when you scan a mobile application. However, you can also create mobile configurations manually in the Configurations section. To do so, follow the steps below:

  1. In Tosca Commander, go to the Configurations section.

  2. Under Mobile, create a new configuration tree (see chapter "Create configurations").

  3. Add mobile TCPs that you want to use to configure your tests. For more information, see chapter "Configure mobile tests".

    The TCPs that you add on higher levels of your configuration tree are automatically inherited by lower levels.

  4. Drag and drop the new configuration onto an ExecutionList or a TestCase where you want to use the TCPs you have specified.

In this example, you configure your mobile test for Sauce Labs and GigaFox.

  • You test an iOS web application. To do so, you create the configuration iOS web. On this level you specify the TCPs Browser and OSVersion.

  • You create the configuration Sauce Labs, where you specify TCPs required for test automation in Sauce Labs. This configuration inherits the TCPs that you have specified on a higher level, that is Browser and OSVersion.

Configurations for Sauce Labs

Configurations for GigaFox