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 using Parasoft Team Server or 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; 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"
Team Test Configurations are the Test Configurations that apply the team’s designated test settings. When all team members use the designated Test Configurations, code will be checked consistently, and the team’s quality and style guidelines will be applied consistently across the complete code base.
Once a team Test Configuration is added to Team Server, it will be accessible on all connected team Parasoft Test installations. If a Test Configuration uses custom rules and/or rulemappings, they can be added to Team Server, then automatically accessed by all connected team Parasoft Test installations.
To share a Team Test Configuration team-wide, the architect or manager performs the following procedure on a Parasoft Test installation (Architect or Server Edition) that is already connected to Team Server:
You can configure multiple team Test Configurations (for instance, one for static analysis, one for unit test generation, one for regression testing, etc.).
If your Team Test Configuration uses custom rules or rule mappings, the related files can be shared as described later in this topic. |
Team Test Configurations can be directly edited from Parasoft Test Architect Edition or Server Edition.
To directly modify a Team Test Configuration from an Architect or Server Edition:
The settings will then be updated on Team Server, and the updated settings will be shared across the team.
You can update a Team Test Configuration by modifying the User-Defined Test Configuration it was based on, then repeating the Deploying Test Configurations Across the Team procedure to re-upload the modified Test Configuration. |
The Team Favorite Configuration defines the test scenario used by default when a Team Server-connected team member runs a test 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 Team Favorite Configuration.
To set the Team Favorite Test Configuration, perform the following steps from a Parasoft Test Architect or Server edition:
Rule mapping is a key part of configuring Parasoft Test to enforce your team’s or organization’s coding policy (e.g. by customizing the built-in rule names, severities, and categories to match the ones defined in your policy).
You can use Team Server to ensure that all team members can access the rulemap.xml
file you have created to customize Parasoft’s rule categories and severity levels. For details on how to create this file, see Modifying Rule Categories, IDs, Names, and Severity Levels.
To upload a rulemap.xml
file to the Team Server, perform the following steps from a Parasoft Test product licensed for Architect Edition or Server Edition:
rulemap.xml
file that you want to share.rulemap.xml
file that you created, then click Open. The rulemap.xml
file that you just uploaded should now be listed in the Browsing dialog’s Rules tab. The rule configurations specified in this file will be available on all related Parasoft Test product installations connected to Team Server.If you modify the master |
You can use Team Server to ensure that all team members can access and check custom static analysis rules you have designed with the RuleWizard module. When Team Server manages a rule, all Parasoft Test installations connected to Team Server will automatically have access to the most recent version of the rule. If a rule changes and the modified rule is uploaded to Team Server, the version on all team Parasoft Test installations will be updated automatically.
The architect (or other designated team member) performs the following procedure on one Parasoft Test Architect or Server Edition that is already connected to Team Server:
.rule
extension. You can save the rule in any location..rule
files that you created, then click Open. The .rule
files that you just uploaded should now be listed in the Browsing dialog’s Rules tab. All rules represented in this tab will be available on all Parasoft Test installations connected to Team Server.Ensure that the modified Test Configuration available to the team as described in Deploying Test Configurations Across the Team. You must follow this procedure even if you are modifying a Test Configuration that is already shared.
|
To remove a rule from Team Server, the architect (or other designated team member) performs the following procedure from a Parasoft Test Architect Edition or Server Edition:
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.
.properties
file (choose a folder that is in your workspace and available in the Package Explorer)..properties
files in the Navigator, right-click the selection, then choose Compare with> Each other. Changes will be 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: