qacafe - ip test solutions
Knowledge Base > Test Execution > How can I run multiple tests with different configuration files?

How can I run multiple tests with different configuration files?

The easiest way to run multiple tests with different configuration files is to use either buddy (CDRouter's built in command line) or BuddyWeb from the command line, as detailed in this Knowledge Base article:

How can I use BuddyWeb with my existing buddy scripts?

Using BuddyWeb from the command line will allow you to queue multiple test packages, each with their own config files and test cases. All test packages can be created in BuddyWeb ahead of time. Once the config files and test packages have been created, a simple shell script can be written which will call each package sequentially. An example shell script is provided below:

 #!/bin/bash

 echo "Test script started:"
 date

 buddyweb -package Test_package_1 -wait 
 buddyweb -package Test_package_2 -wait 

 echo "Test script completed:"
 date

To execute the shell script, first be sure that it is executable. Assuming the shell script is named 'BuddyWebScript' and is located in the /home/qateam/scripts directory, you could issue the following commands to execute it:

 # cd /home/qateam/scripts
 # chmod 755 BuddyWebScript
 # ./BuddyWebScript

This same approach could be used to automate testing on a daily or weekly basis using cron. Simply add the script to root's crontab using the command crontab -e. For more information, please see our Application Note on automated regression testing with CDRouter.

While a BuddyWeb package is running from the command line, you will still be able to view it in BuddyWeb as you would any other test.

NOTE: BuddyWeb will still prompt the user to restart the device under test unless a Restart script has been configured. See the related help note.