It's all about the answers!

Ask a question

How to guarantee the order of execution of test scripts within a test case?

Shaule Sachs (18136) | asked Oct 15 '12, 11:18 a.m.


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

permanent link
Mridula Muppana (1261) | answered Oct 15 '12, 1:37 p.m.
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.


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?

permanent link
Pramod Chandoria (2.1k11220) | answered Oct 16 '12, 3:09 a.m.
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

Register or to post your answer.