How to guarantee the order of execution of test scripts within a test case?
Greetings, I am wondering how with Rational Quality Manager 4.0, we can order the flow of test script executions within a test case? We write our scripts in a reusable module fashion. For now, the order seems to be by the RQM ID, which was generated when our RMT scripts were imported into RQM, but not necessarily in the order of execution. For example, Test Case (TC1), has test scripts, TS1, TS2, TS3, and TS4. We wish to execute them in the order of TS3, TS2, TS1, and lastly TS4. But when we add them to TC1, the order is TS2, TS1, TS3, and finally TS4. So is there a way to force the order of test script execution? |
2 answers
You can execute only one test script in a test case. To execute multiple test scripts, you need to use a test suite. You can set the order of the test case execution in a test suite. You can associate the test scripts to individual test cases, add the test cases to a test suite and set the order of execution in that test suite.
Thanks, MM. Comments 1
Shaule Sachs
commented Oct 16 '12, 2:56 p.m.
But I can associate several test scripts with a test case. But, if as you say, it only executes one, then how does RQM know which one to execute? The first listed test script? As I said, with RMT we got into reusable modulized test scripts and wish to continue this methodology into RQM. So to do this, we need to use a test suite instead of a test case? We have modules for the original baseline functionality and for enhancement functionality, which are used repeated by different business functionality. So we had originally, RMT Scripts BF1, BF2, EF1, EF2, BF3, EF3. Which were imported into RQM as test scripts. So we created a test case to encompass all those test scripts. We wish to run one after the other. But your saying that we have to create a single test case per test script, and the couple them all to a test suite? Then what's the point of a test case, if it's just a test script? |
As Mridula mentioned, RQM does not execute multiple script for a Testcase execution, only one. RQM's theory of Testscript is, it is implementation of what to be tested for Test case. We allow multiple scripts because there could be separate scripts for different Test environment, specially for Automated execution.
If you have more then one script in testcase of different purpose, I think the test case is actually a scenario and you should probably use Test suite. Create testcase for each script. Add all this related testcase to the Test suite. Infact you can also edit the execution order in test suite. Hope it helps. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.