How to execute test cases with Linux command line [message #1796343] |
Thu, 11 October 2018 05:00  |
Eclipse User |
|
|
|
I have established project,this project have many test case.I need to execute these test cases over and over again.How to execute these test cases with Linux command line rather than click the "run as" in eclipse titan.
Thank you for your answer.
|
|
|
|
Re: How to execute test cases with Linux command line [message #1796446 is a reply to message #1796343] |
Sat, 13 October 2018 03:42   |
Eclipse User |
|
|
|
Hi le tian,
Just one more hint, if you want to execute your test cases repeatedly:
Using the methods above, in the ConfigurationFile.cfg, the [EXECUTE] section have to list all testcases you want to execute, and then call ttcn3_start as many times as you want to repeat execution of your set of test cases.
Alternatively you may consider creating a new TTCN-3 module with a control {...} part in it, and define a for loop, the body of which is executing your test cases like:
for (var integer i=0;i<X;i:=i+1){
execute(MyTestcase1());
execute(MyTestcase2());
...
}
In this case you shall just execute this control part in you configuration part:
[EXECUTE]
MyControlModule.control
Some further advantages are, that you can control test case execution dynamically:
- add different guard timers to your test cases (you can also define a global guard timer in the .cfg file), the number of repetitions may be defined as a runtime parameter in the .cfg file or
- may even depend on the test case execution result -> you can save test case verdicts in a verdicttype variable and use it e.g. in if-else statements or increase/decrease/stop the number of cycles the test cases are executed in.
[Updated on: Sat, 13 October 2018 03:57] by Moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02870 seconds