Home Corporate Contacts TETware Knowledgebase |
ProductsSolutionsInformationDatasheetDocumentationFAQKnowledgebase |
Return to Knowledgebase Index10. Repeated scenario execution without modifying the scenario file
Question A requirement of our manufacturing people is for
Answer There are a couple of ways that you can do this using existing TETware functionality.
Method 1 (When you know how many times the manufacturing people want to repeat when you write the scenario.) You can provide more than one scenario when you write the scenario file. One scenario can list all the tests, and the other can repeat the first scenario the required number of times. For example: manufacturer :repeat,100:^developer developer /ts/tc1/tc1 /ts/tc2/tc2 . . . etc. Your developers can use the scenario called developer
in the example above and the manufacturing
people can use the scenario called
manufacturer .
You can choose which scenario to execute on the
tcc -ep test-suite-name developer tcc -ep test-suite-name manufacturer Notes:
Method 2 (When you want to specify the number of times to repeat the
scenario on the
In this method, you specify the basic scenario in a file and
add a
The scenario file should contain the non-repeating list of tests as in Method 1; for example: developer /ts/tc1/tc1 /ts/tc2/tc2 . . . etc. To execute all the tests once, you invoke tcc
in the same way as in Method 1; for example:
tcc -ep test-suite-name developer You can specify both the -l
and
-s
options to process a
scenario defined in a file under the control of a directive
specified on the command-line.
So, to repeat all the tests 50 times, you would say:
tcc -ep -s tet_scen -l ":repeat,50:^developer" tcc -ep -s tet_scen -l ":timed_loop,36000:^developer" Notes:
As can be seen from these examples, it is possible to invoke
See also
|