Enforcing specific cases #167
-
Hi, I was just wondering if any one could point me in a good direction :) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
You can't explicitly direct Tcases to generate a specific test case. But there is usually a way to get the test case you want by other means. For example, you can use properties and conditions to control which combinations of input are feasible. And you can use a generator definition to ensure that all combinations of specific input variables are used. |
Beta Was this translation helpful? Give feedback.
-
If you need to ensure that a specific combination of inputs is covered, you can use the techniques described in the previous answer. But if you really need to ensure that a test case with a specific set of input values is covered, then Tcases is not the tool for the job. The goal of Tcases is rigorously cover the entire input space of the system-under-test, perhaps using input combinations that you might not normally consider. |
Beta Was this translation helpful? Give feedback.
-
Where to place this Generators.xml file? File name should be specific to schema name or project name? I tried both way but seems its not considering file at all. |
Beta Was this translation helpful? Give feedback.
-
Assuming that your input definition is a file named projectName-Input.xml, then by default generators are expected in a file named projectName-Generators.xml in the same directory. But you can override that at the command line using the |
Beta Was this translation helpful? Give feedback.
You can't explicitly direct Tcases to generate a specific test case. But there is usually a way to get the test case you want by other means. For example, you can use properties and conditions to control which combinations of input are feasible. And you can use a generator definition to ensure that all combinations of specific input variables are used.