Tool Mentor: Executing a Suite of Test Scripts Using Rational TestFactoryTMPurposeThis tool mentor describes how to use Rational TestFactory to create and run a suite of test scripts. Related Rational Unified Process activities:
OverviewA ôTest Suiteö is the TestFactory tool that lets you run a suite of test scripts. This TestFactory object lets you organize test scripts, run them in a batch as a suite, and then analyze their code-based test coverage. This Tool Mentor is applicable when running Windows 95/98/2000/NT 4.0. To use TestFactory to execute a suite of test scripts: 1. Create a suite of test scripts
A Test Suite object is a container to which you add the test scripts that you want to run as a batch. The suite of scripts can include test scripts recorded in Robot as well as test scripts generated in TestFactory.
Test Suites are useful for organizing and running groups of best scripts, defect scripts, and scripts created against a specific build of the application-under-test (AUT). The test scripts that you include in the Test Suite remain linked to the Test Suite object. You can run the Test Suite as a regression suite on future builds of the AUT. TestFactory provides two methods for creating a Test Suite:
If you want to analyze the code-based test coverage for the test scripts in the suite, you must instrument the AUT before you run the Test Suite. TestFactory calculates code-based test coverage for test scripts only if the application is instrumented.
2. Run the suite of test scripts
When you run a Test Suite, TestFactory executes each test script in the Test Suite in the order in which it appears in the Test Suite list. If the order of the test scripts is important, you can reorder them before running the Test Suite.
|
Rational Unified
Process |