In specific scenarios, system allows user to define what parameter values can never be tested together or in the other hand, scenarios where paramater values can only be tested together.
For that, user can apply contraints to support these cases.
Invalid constraints restrict parameter values that can never be tested together.
In this example, let's assume Internet Explorer (IE) is not supported on Apple computers so it would be impossible for a tester to execute a test case that instructed them to launch IE from a Mac running on its native operating system. Accordingly, we do not want any tests generated to include combinations such as “OS X” and “IE8” in the same test case.
On the Rules ->Constraints screen, you will need to click on two red X’s. Hover over the first Value of the Invalid Pair and click on the red X that appears
Find the second Value that can never appear together with the first one, hover over it, and click on the red X to create your “Invalid Pair”
As you enter your Constraints, you will see them listed to the left:
Problem solved!
After you enter these two Invalid Pairs, clicking on the “Scenarios” button will create a completely new set of test cases that excludes those two pairs of Values (and only those two pairs of Values). Each test with ‘OS X’ as the operating system will have a browser other than IE.
As you use the Invalid Pair feature and the related Bound Pair one, keep in mind these usage tips:
Do you need to add a lot of Invalid Constraints?
Watch out for “Not Applicable” Values.
Bound constraints restrict parameter values that can only be tested together.