Introduction to tsscmd |
From TestManager, you can run test scripts (which may contain tsscmd statements) written in a UNIX shell language (sh, csh, bash, etc.). The TestManager setup procedure is identical to the Perl setup example described above except for step 5. In the Execution command line box, type this execution command line for Bourne shell scripts:
tr -d '\r' < {testscriptpath} > | /bin/sh
If you create or edit a sh script from Windows, it will have a carriage return character at the end of every line. The piped translate (tr) command removes this character (\r) if present, so that the script will execute on UNIX. If this character is not present this command has no affect.
With the appropriate software installed, it's possible to run a UNIX shell script on a Windows computer. If you're doing this, omit the translate command shown above and enter instead the Windows executable that interprets sh scripts.
If the UNIX shell test scripts must run only on UNIX agents, make sure that the run properties of the User Group that executes the scripts specify UNIX computers. Alternatively, you can create a test configuration to prevent TestManager from running the test scripts on Windows machines: see configurations:about in the online Help index.
The designated source directory where shell test scripts are stored (step 9) can be a local Windows folder or an NFS mount of a UNIX filesystem. If the location is a local folder, transfer to this folder the shell scripts you want to run from TestManager.
The Command Line Interface to Rational Test Script Services | Rational Software Corporation |
Copyright (c) 2003, Rational Software Corporation | http://www.rational.com support@rational.com info@rational.com |