qacafe - ip test solutions
Knowledge Base > Can I customize the order in which test cases are executed?

Can I customize the order in which test cases are executed?

Test Execution

Yes. Using the buddy -module and -execute options will allow you to customize the order in which modules and/or individual test cases are executed. You can also use the -execute option to repeat test cases during the same test run. Please see the following examples for more in.

Example 1: Execute a few test cases in a specific order

# buddy -config myConfig.conf -execute cdrouter_basic_1 -execute cdrouter_nat_1 -execute cdrouter_basic_2

Example 2: Execute a few test cases plus a few test modules in a specific order

# buddy -config myConfig.conf -execute cdrouter_basic_1 -module nat.tcl -execute cdrouter_basic_2 -module apps.tcl

Example 3: Execute a few test cases plus a few test modules in a specific order, and repeat some of the test cases

# buddy -config myConfig.conf -execute cdrouter_basic_1 -module nat.tcl -execute cdrouter_basic_2 -module apps.tcl -execute cdrouter_basic_1 -module nat.tcl

For more information on other buddy options, please see the CDRouter User's Guide. For information on enabling packet captures while running tests, please see this Knowledge Base article: How do I capture packets while CDRouter runs?.

Related articles that may also be helpful: