This topic explains how to share Test Configurations (and any rule files or rule mapping files that they depend on) across the team.
Sections include:
Every test run—whether it is performed in the GUI or from the command-line interface—is based on a Test Configuration that defines the test scenario and sets all related test parameters. You can change how a test is performed by modifying the settings for the Test Configuration you plan to execute.
Each Parasoft product provides built-in Test Configurations that are based on a variety of popular test scenarios. Most teams, however, will eventually need to create custom Test Configurations to meet their specific objectives.
The built-in Test Configurations cannot be modified, but you can copy them into the user-defined Test Configurations category and modify configurations to suit your preferences and environment. You can also create a completely new Test Configuration and modify it as needed.
The Favorite Configuration should be set to the custom Test Configuration that you plan to use most frequently. By setting your preferred Test Configuration as the Favorite Configuration, you can easily run it from the Parasoft menu, the Test Using tool bar button, or from the command-line interface.
Grayed-out Test Configurations were created with an incompatible version of SOAtest and cannot be edited or run with the current version. |
You can share Test Configurations by exporting Test Configuration files that team members can import to their instances of SOAtest. See Importing/Exporting Test Configurations for details. |
For help specifying variables throughout the Test Configuration panel, you can use the variable assist feature, which automatically proposes possible variables when you type |
The Favorite Configuration defines the test scenario used by default when a test is run with the designated Parasoft Test product. For example, if a test is started by clicking the Test button, Parasoft Test will run that test based on the parameters defined in the Favorite Configuration. In addition to settings the Test Configuration that is used as the default, you can also mark other commonly used Test Configuration as your favorites; this configures easy access to them.
To indicate which Test Configuration you want set as the Favorite Configuration:
The configuration will then be set as a Favorite Configuration and the "favorite" icon will be added to that configuration in the Test Configurations tree.
If desired, you can organize your user and team Test Configurations into user-defined subdirectories.
To move a user or team Test Configuration into a user-defined subdirectory:
The created subdirectory will be available in the Test Using directories.
The command-line mode invocation is NOT affected by subdirectories. Here, you would continue to refer to the Test Configuration by only its name (without paths). For example: -config "team://Policy Compliance"
If you want multiple Test Configurations to share some of the same parameter settings (for example, if you want multiple Test Configurations to have the same rules enabled), you can create new child Test Configurations referring to one parent Test Configuration. A child Test Configuration will inherit the parent’s settings; the value of each preference in the parent Test Configuration is used whenever the corresponding preference in the child Test Configuration is not present.
Inheritance is recursive; in other words, you could have the MyConfig2 Test Configuration inherit the settings from MyConfig1, and have MyConfig3 inherit the settings from MyConfig 2. MyConfig3 will thus inherit some MyConfig1 settings as it inherits MyConfig2 settings.
You can create a child Test Configuration from a Test Configuration shown in the Test Configuration panel, or by specifying a Test Configuration URL (for Test Configurations available via HTTP).
To create a child from a Test Configuration shown in the Test Configuration panel:
To create a child from a Test Configuration available via HTTP:
In the dialog that opens, enter the URL for the desired parent Test Configuration (http://config_address/). For example, http://SOAtest.acme.com/configs/static.properties
.
To disconnect a child from its parent:
|
If you want to see the differences between two Test Configurations, you can compare them so that the differences are highlighted.
You may want to compare Test Configurations in the following circumstances:
If you have created a Test Configuration that you want to share with team members or use in an upgraded version of a Parasoft Test product, you can export the Test Configuration into a properties file. That Test Configuration can then be added by importing the related properties file.
To export a Test Configuration:
A properties file will then be saved in the designated location. A dialog box will open to confirm the location of the newly created properties file.
To import a Test Configuration that was previously exported into a properties file: