qacafe - ip test solutions
Knowledge Base > How can I use BuddyWeb with my existing buddy scripts?

How can I use BuddyWeb with my existing buddy scripts?

BuddyWeb

Any scripts you have developed that are currently running CDRouter tests using the buddy CLI can be converted to run as BuddyWeb-based test runs as well. This will allow you to view and manage the results using BuddyWeb during and after the testing.

Converting Scripts to Use BuddyWeb

  • Step 1: Convert your existing setup to a BuddyWeb setup by importing your configuration file and creating a new BuddyWeb package.
  • Step 2: Modify your script to call your new BuddyWeb packages from the commandline using the buddyweb -package command.

Example Script Using buddyweb -package Command

       #!/bin/sh
       /usr/bin/buddyweb -package my_package

Note that multiple BuddyWeb packages may also be run from the same script using the -wait option. This instructs BuddyWeb to wait until the package has finished before executing the next package.

Example Script Using -wait Option

       #!/bin/sh
       /usr/bin/buddyweb -package config_a -wait
       /usr/bin/buddyweb -package config_b -wait
       /usr/bin/buddyweb -package config_c -wait

Tags can be specified from the command line. To learn more about tags, please see this App Note.

Example Script Using -tags Option

       #!/bin/sh
       /usr/bin/buddyweb -package config_a -tags "new firmware"
       /usr/bin/buddyweb -package config_b -tags v1.1,rc2
       /usr/bin/buddyweb -package config_c -tags tester-$USERNAME

While the script is running, you may use the BuddyWeb interface to monitor the results.

Note that BuddyWeb will still prompt the user to restart the device under test unless a Restart script has been configured. Please see this Knowledge Base article for more information on skipping the restart prompt at startup.

For more information on developing an automated test environment based on CDRouter, please see this Application Note.

Related articles that may also be helpful: