It's all about the answers!

Ask a question

Re-using test cases: How to create Test Case Repository for any Functionality?


Subhradeep Dasd (111) | asked May 30 '13, 5:54 a.m.

The aspect of storing test cases in some kind of Repository and re-using it over and again cannot be done in RQM4. RQM treats each test case as a singular entity. Suppose we link a same test case, say TC1, from 2 different Test Suites or Environments. When we execute TC1 from Test Suite 1, the entity TC1 stored in RQM is updated. Then we execute again from Test Suite 2, what RQM does is that, it executes the entity TC1 again and overwrites the execution result with the latest result.

What I want to do is there should be a common repository folder structure. We move the instances of the test cases into another executible folder (support for Run 1) and then run the test cases. Can this be done in RQM4.

One answer



permanent link
paul chu (59411) | answered May 30 '13, 9:43 p.m.
JAZZ DEVELOPER

Seems like there is confusion between the test case execution result and the actual test case.  The execution result is not part of the test case that gets updated from execution. A test case always shows the status of the last execution result as a reference.  Executing a test case does not change the test case but the reference to the latest/new execution result.

If test case TC1 is in test suite S1 and S2, after the execution of S1 the test suite result of S1 will have a test case execution result for TC1.  When you execute S2, i.e. execute TC1 again, the test suite result of S2 will have another test case execution result for TC1.  The two test suite execution results with have the reference clearly to the corresponding test case execution result.  If you look at the test case execution results of a test case (not from the context of a test suite), you will see there are two execution results from the execution of S1 and S2.  The test case itself is not changed just execution result records are created from execution.  The test case is a single entity and it is reused.

Your answer


Register or to post 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.