Defining Test Configurations
You can reuse a test to test different use-cases. For each use-case you create a test configuration that uses a different data set. When working with a manual test, the data set of a test configuration contains values for your defined test parameters. When working with a UFT or a business process test, the data set can use an external test resource file.
In the following exercise, you will create a test configuration for each of the following credit cards: American Express, Visa, and MasterCard. You will then define the actual parameter values to be used when running these instances.
To define test configurations:
-
Display the Test Configurations tab for the Credit Cards test.
-
In the test plan tree, expand the Payment Methods folder, and select the Credit Cards test.
-
Click the Test Configurations tab.
By default, ALM created the Credit Cards test configuration.
-
-
Rename the test configuration name to American Express.
-
Under Name, click Credit Cards. Type American Express.
-
Under Description, type: Test configuration for American Express.
-
-
Assign data to the test configuration.
-
Click the Data tab.
-
Under Actual Value, click the top cell. Click the arrow and click in the box. Type: 2222-3333-4444-5555. Click OK.
-
Under Actual Value, click the second cell. Click the arrow and click in the box. Type: American Express. Click OK.
-
-
Add a new test configuration for Visa.
-
Click the New Test Configuration button. The New Test Configuration dialog box opens.
-
Type the following:
Name: Visa
Description: Test configuration for Visa.
-
Click OK. The test configuration is added to the Test Configuration tab.
-
Make sure the Visa test configuration is selected.
-
Click the Data tab. Under Actual Value, click the top cell. Click the arrow and click in the box. Type: 3333-4444-5555-6666. Click OK.
-
Under Actual Value, click the second cell. Click the arrow and click in the box. Type: Visa. Click OK.
-
-
Add a new test configuration for MasterCard.
- Click the New Test Configuration button. The New Test Configuration dialog box opens.
-
Type the following:
Name: MasterCard
Description: Test configuration for MasterCard.
-
Click OK. The test configuration is added to the Test Configuration tab.
-
Make sure the MasterCard test configuration is selected.
-
Click the Data tab. Under Actual Value, click the top cell. Click the arrow and click in the box. Type: 4444-5555-6666-7777. Click OK.
-
Under Actual Value, click the second cell. Click the arrow and click in the box. Type: MasterCard. Click OK.
-
Version Control: Check in the test configurations.
Check in the test and its test configurations. In the test plan tree, rightclick the Credit Cards test, and select Versions > Check In. Click OK to confirm.