Test Script Runner Regression Tester

Example Scripts

Home | Details | FAQ | Results | Download | Patches | Support | Tester Plug-ins | Examples | Contact Us | Our Location

This page contains a few short sample scripts that demonstrate the syntax of Test Script Runner. They also show how to use the build in testers.

 

  1. Assignment Statements – this script shows how to assign a value to a variable.
  2. If Statements – this script shows the syntax and use of if statements.
  3. While Statements – this script shows the syntax and use of while loops.
  4. Include Statement – this script shows how you can include a sub-script to reduce duplication between scripts.
  5. Result Statements - this script shows the use of the result statement. It shows how to give a result string for a given action in the script and how to make an included script be seen as important.
  6. Action Statements – this script shows how to can a testers action command. This uses the windows tester and will pass or fail depending on whether you launch the windows calculator. If you run the windows calculator will close it.
  7. Use of the Serial Tester – this script shows how to send and receive data on a serial line, in this case TCP. You can easily change the script to use RS-232 should you have a null modem cable handy (see comments in script). This also shows the use of arrays.
  8. Use of a Complex Wait in Serial Tester – this script shows the use of a complex wait for action on a serial tester.
  9. Conditional Actions – this script shows how to perform a different sequence of actions if a test fails.
  10. Use of Windows Tester plug-in – this script shows the use of the windows tester plug-in which allows you to wait for windows to appear, press buttons and fill in edit boxes etc.
  11. Use of the RTSP Video Streaming Tester – this script demonstrates the use of the video streaming test capabilities of the RTSP Tester Plug-in. See RTSPTesterPluginUserGuide.doc for details regarding setting up a streaming server.

 

Ideal Systems Consultancy Ltd * 6 Kenwyn Road * West Wimbledon * SW20 8TR * UK