OpentestOtherSrvClient

From AragoWiki

Revision as of 15:15, 2 May 2012 by Chernandez (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

What's Opentest Client

It is a command line interface to the Opentest test automation framework written in Java.

How to install it

  1. Install STAF
    1. Download software from STAF
    2. Start STAF: /usr/local/staf/startSTAFProc.sh (only required once. Could be added to PC init sequence)
  2. Install Opentest client
    1. wget http://gtautoftp.gt.design.ti.com/anonymous/releases/opentest_cli_0.7.tar.gz
    2. tar xvzf opentest_cli_0.7.tar.gz
  3. Edit STAF configuration to allow communication w/ TIGT subnet. Add following lines to /usr/local/staf/bin/STAG.cfg:
TRUST DEFAULT LEVEL 5
trust machine local://local level 5
trust machine ssl*://158.218.*.* level 5
trust machine ssl*://10.218.*.* level 5

How to use it

Opentest client allows you to run your own tests scripts or testplans defined in Testlink

  • Running your own scripts
    • java -jar opentest_cli_0.7.jar --hw platform=<name,capabilities> --sw kernel=<local path or remote (url) to kernel image>~kernel_modules=~nfs=<nfs path or fs tarball> --user <email address> --params script=<local path to your test shell script> --template penguin. For example:
    • java -jar opentest_cli_0.7.jar --hw platform=beagleboard,linux --sw kernel=/tftpboot/build1/beagle/uImage~kernel_modules=~nfs=158.218.103.64:/home/a0850405local/NFS_exports/linux/arago-test/beagleboard --user ceh@ti.com --params script=/home/a0850405local/code/local/linux/mytest2.sh --template penguin
  • Running Test Plans defined in Testlink
    • java -jar opentest_cli_0.7.jar --hw platform=beagleboard,linux --sw kernel=<kernel path>~kernel_modules=~nfs=<filesystem path> --user <email addr> --testplan <Testlink's project:testplan> --report MATRIX:HTML. For example:
    • java -jar opentest_cli_0.7.jar --hw platform=beagleboard,linux --sw kernel=/tftpboot/build1/beagle/uImage~kernel_modules=~nfs=/home/a0850405local/fs/beagle.tar.gz --user ceh@ti.com --testplan linux_psp2:beagleboard_psp_nightly_test --report MATRIX:HTML

More information

  • java -jar opentest_cli_0.7.jar --help
  • java -jar opentest_cli_0.7.jar --help penguin
  • Check the README file in the Opentest Client root directory
  • Ask for help at opentest@arago-project.org
Personal tools