September 30, 2010

Integrating Test Variant Values in TestTrack TCM Test Steps

Helix ALM
Test Management
Did you know that you can embed your test variant value in test steps? I didn't! I attended the latest TestTrack SDK Expert Series webinar, and Jeff talked about embedding test variants in test steps. Here's how it works. Let's say you defined a test variant in TestTrack called "Browser".  The values are the various browsers that you want to use in web application tests. [caption id="attachment_5551" align="aligncenter" width="550" caption="TestTrack Test Variants Setup"]TestTrack test case variant setup screen[/caption] Next, as you define test steps in the test case, simply include the field code for the test variant. In this case, it is %Z_BROWSER%.  Following is an example.

[caption id="attachment_5554" align="aligncenter" width="530" caption="Test Case Steps"][/caption] And that's it!

When you generate test runs, the field code will be expanded to use the variant for that specific test run.

[caption id="attachment_5555" align="aligncenter" width="550" caption="Test Run Steps"][/caption]

The biggest value in this feature is that the tester does not have to go to the Test Variants tab to figure out which browser to use, it is now part of the step itself.