qacafe - ip test solutions
Knowledge Base > BuddyWeb > How do I add my custom test cases to BuddyWeb?

How do I add my custom test cases to BuddyWeb?

With version 3.8 or later of CDRouter, customized modules and test cases can be incorporated directly into BuddyWeb. This functionality allows new customer-specific modules to be easily viewed, selected, and executed alongside standard CDRouter modules within the BuddyWeb environment. There are two primary methods for adding custom modules and test cases to BuddyWeb:

Method 1

The preferred method is to create a file in the /usr/buddyweb/etc/ directory named 'user-testpath'. This file is a white-space separated list of paths automatically included in the -testpath option when BuddyWeb is started. Multiple test paths can be added one per line, or spaced out on the same line. Modules that are found in any of the test paths listed in the 'user-testpath' file will automatically be added to list of CDRouter tests.

# cd /usr/buddyweb/etc
# pico user-testpath

Method 2

The second way that custom test cases can be added to BuddyWeb is to use the -testpath option when launching BuddyWeb. This will take the existing CDRouter tests and add the modules located in the test path to the list.

# cd /etc/init.d/buddyweb stop
# /usr/bin/buddyweb -testpath /myTestPath

Additional Information

For more information on creating customized test modules and test cases, please refer to our Test Suite Developer's Guide, which can be downloaded from our Customer Lounge.

If you have problems adding your customized modules or test cases to BuddyWeb, please contact support@qacafe.com.