|
IBM Rational Robot Test Automation ArchitectureHere are my notes summarizing stacks of manuals and web pages on the Windows-based software testing tool Robot from Rational.com. Rational was an independent corporation (NASDAQ:RATL) until IBM acquired it on December 2002. The word robot is a contraction of the word "robotovat", which was coined by Czechoslovian Karel Capek to mean "to work very hard". Sound: Steve Martin's :Excuuuuse Meeee”
| Topics this page:
|
|
Product Functionality Summary
Robot records several types of scripts: Both types of scripts can be initiated from the Test Manager product. VU scripts are executed from a schedule. A separate IBM product, Rational Suite Performance Studio (LoadTest.exe), plays back Virtual User (VU) script commands to determine an application's performance speed and to detect contention problems caused by multiple users performing actions simultaneously. Captured scripts typically need to edited to: There are several ways to create Robot scripts. Scripts can read and write to datapools. As scripts run, Log records are generated into Log Files used to trace script execution conditions. |
Installing Robot 7
Press the "F11" key to stop Robot script execution. This is a little-documented fact. |
Product History
Robot 7.1 was released Feburary, 1999. Robot 2002.5.20 is my most current release. It has conflicts with McAfee. So uninstall McAfee and re-install it after Robot. Yes. A hassle. The suite version also includes the RobotJ product, which is based on the Java platform. Because RobotJ is based on Java, it is not capable of recording and playing back actions against Windows system menus such as the Control Panel. RobotJ cannot record and playback applications running under Purify and Quantify. Also, RobotJ does not work with the Unified Change Management (UCM) edition of ClearCase datastore VOBs. ClearCase uses a new type manager in folder /lib/mgrs/map (installed from the RobotJ ClearCase Server Extension setup) to recognize RobotJ test object maps. So they should be in a separate VOB than other assets.
|
|
Product Integration
NetDeploy, SiteLoad are part of the Content Studio. Rational assembled these together from acquisitions of independent companies during the early 90's. This was done with their Best Practices for software development, called the Rational Unified Process (formerly known as the Rational Objectory Process). |
InstallationClassic RobotThe Robot installer creates Environment Variable RATL_RTHOME pointing to (by default) folder C:\Program Files\Rational\Rational Test. The sqabas32 subdirectory under this folder contains the SQAUTIL.sbl .sbh and .sbx files.The Robot Administrator is used to define project folders. Each project folder contains a sqabas32 subdirectory to hold utility test scripts. The is is the folder shown in menu Tools > General Options ... > Preferences tab SQABasic Path field. When Robot starts, the project selected from the Rational Test Login contains a .rsp file which points to the folder used by the File > Open > Script dialog. This dialog does not permit switching to other folders. Robot looks for files in the active project's sqabas32 directory before it looks in the directory specified by RTHOME. Environment variable DDE_RUNTIME points to the production RUNTIME location. IF you selected Java or installed a Java JDK after installing Robot, you must run the Java Enabler again, or risk getting script errors at seemingly random points in your script. RobotJBefore using RobotJ, create a Datastore to hold scripts. Also Enable JRE Environments, and Configure (Add) Applications for Testing, and from within menu Window Preferences, select Rational RobotJ, Operating Systems and set Foreground Lock Timeout to "0". In Logging, select whether the log viewer is displayed after script playback. In Playback, Recognition Scores, define the threasholds. The default 10,000 value means that one important property can be wrong.If you must, change default colors in Message Preferences. |
Rational provides the sqartl32.exe utility to repair Access databases. On the Installation CD is the Installation Analyzer, which compares before and after snapshots of the state of the entire Windows machine (registry, drivers, etc.) for detecting changes during product installation. It is described in the using.htm file. Video: IBM Rational Functional Tester for Java: |
Product (Agent Program) Invocation
script name /user user /password password /project full path to project /play /log log name /logfolder log folder name [/purify] [/quantify] [/coverage] [/close] [/nolog] Since v8.1:
RobotJ runs as rtivory.exe in the RobotJ/hsher/ folder and invoked from Start > Program Files > Rational Suite TestStudio > Rational RobotJ RobotJ uses Rational RobotJ Enabler (rtprvd.exe) to intercept application calls and inject interrupts for TestManager. It is invoked automatically on startup from Program Files > Rational Suite TestStudio > Rational Test > Rational Test Agent
|
'# SetRobotCmdLine Create Robot command-line string '# SetRegistryAutoLogon Set registry to automatically logon user '# SetRegistryRunOnce Set registry to run Robot on restart/reboot '# SetTestLogOptions Set Robot test log options '# GetSQAVersion Return the Rational/Robot version '# GetOSVersion Return the OS version '# GetSQAEnvironment Returns an array (data-type) of environment settings '# GetSQAEnv wrapper for GetSQAEnvironment to get individual settings '# GetScriptName Returns the current script '# GetUser Returns the user login ID '# GetRobotFileName Wrapper for GetModuleFileName API function '# GetApplicationPath Get full path & file name for exe from registry '# SetRobotExePath Sets path & file name for Robot exe in registry '# SQABasicRTLib Update "runtime" libs on a PC from a "Master" library |
Test Assets
The Application Under Test (AUT)The URL to the website's start page or location of application .exe built for testing.PasswordsA password and product license key is needed to invoke Robot.Rational Suite Version 2001A or later can run for 3 days while the computer is disconnected from the Rational License Server on the network. RequirementsTo encourage a methodical approach to testing, scripts are attached under a specific Requirement Hierarchy of the AUT This is done using Rational TestManager
|
Robot ScriptsClassic Robot scripts can be created several ways:
|
|
DatapoolsDatapools hold variable data values that scripts can draw from during playback. This allows for varying test data during the execution of the same script file. To create a new datapool, use the Rational TestManager product menu Tools->Manage Datapools. Edit fields in them, and Import/Export command-delimited data with them.
|
Log FilesBy default, each time that Robot runs a script, it creates a Log file to store the results it generates. This can be turned off by clicking the log button on the toolbar. |
VU Script Bank Data
The arithmetic operator (+ ) creates a union of bank expressions.
|
Test Data Management
|
Fee Based Offerings
|
|
Utilities/Products
Background processes can kill (crash) Robot during playback. If you must have MS Word running, go to Word's Tools menu, click Options, click the "Save" tab and uncheck both "Allow background saves" and "Save AutoRecovery info every:". |
|
Getting Certified in Robot
|
|
User Support Groups
|
Rational's International User Conference: August 24-28, 2003 at the Gaylord Palms Resort at 6000 W. Osceola Parkway, Orlando, Florida
|
| Your first name: Your family name: Your location (city, country): Your Email address: |
Top of Page
Thank you! |