If I have a recording module that has 10 steps. Is it possible to create different testcases for which only certain steps to be executed?
Example: recording1.rxrec contains 10 steps
I want to create:
1) TestCase_1: only executes step 1,2,and 3 in recording1.rxrec
2) TestCase_2: only executes step 1,3,4,5,and 7 in recording1.rxrec
3) TestCase_3: executes all 10 steps in recording1.rxrec
How to specify steps to run within a testcase
-
- Posts: 77
- Joined: Wed Sep 26, 2012 8:15 pm
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to specify steps to run within a testcase
Hello,
The easiest way would be to create 2 additional recordings.
You could copy your desired steps from your Recording1.rxrec into other recordings.
Tip: Select your step with your mouse, press Ctrl-Key and select another step with your mouse.
Regards,
Markus (T)
The easiest way would be to create 2 additional recordings.
You could copy your desired steps from your Recording1.rxrec into other recordings.
Tip: Select your step with your mouse, press Ctrl-Key and select another step with your mouse.
Regards,
Markus (T)
Re: How to specify steps to run within a testcase
I try to make my test modules as small as reasonably possible.
Only have the steps that you know will be done together EVERY time in a module.
Then, just chain the modules together in the test case the way you need them. You can have child test cases that contain optional modules that would only be run at certain times (i.e., when the data set specifies it).
So, for your example.
Module1 - Step 1, Step 2, Step 3, Step 4
Module2 - Step 5, Step 6
Module3 - Step 7
Then you can have test cases like:
TC1 - Module1
TC1.1 - Module2
TC1.2 - Module3
Set the test data correctly (the most important part of testing) and you can have it do, or not do, anything you like.
Only have the steps that you know will be done together EVERY time in a module.
Then, just chain the modules together in the test case the way you need them. You can have child test cases that contain optional modules that would only be run at certain times (i.e., when the data set specifies it).
So, for your example.
Module1 - Step 1, Step 2, Step 3, Step 4
Module2 - Step 5, Step 6
Module3 - Step 7
Then you can have test cases like:
TC1 - Module1
TC1.1 - Module2
TC1.2 - Module3
Set the test data correctly (the most important part of testing) and you can have it do, or not do, anything you like.