07 November 2008 - 2.5-beta2 |
The Run TestCase step allows you to run another TestCase from within the current one, optionally setting and retrieving TestCase properties to or from the target TestCase.
This can be useful for breaking down complex TestCases into smaller parts or sharing some common test functionality between TestCases.
After selecting the "Run TestCase" type when creating a new TestStep, the following dialog will be shown:
Select the desired TestSuite and TestCase in the top combo boxes. The "Return Properties" list contains the TestCase properties defined for the selected target TestCase, select those properties whose values should be copied back to the Run TestCase step after execution.
Once created, the Run TestCase editor will be opened, containing (top to bottom)
When running the TestStep, the following happens:
The property handling in step 1 and 3 can be seen as input/output arguments for the target TestCase, allowing you to run it with different values. This could be combined with a surrounding DataSource for executing an entire TestCase with a range of input values.
After running, the TestCase log should contain the same output as would be seen in the TestCase log for the target TestCase: