Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Functional testing with Rational Robot

Becoming productive with IBM Rational Robot

Dennis Schultz joined Rational in 1995 as a Technical Sales Engineer. For eight years, he worked closely with numerous clients implementing Rational solutions in their projects. Dennis helped deploy solutions for Software Configuration Management, Change Management, Requirements Management, and Test Management and Implementation. Since 2003, Dennis has been a Technical Marketing Engineer for IBM Rational software. Dennis holds a B.S. in Computer Engineering from Iowa State University. He is based in St. Louis, Missouri and fills his non-work time with his four children.

Summary:  This tutorial demonstrates how to use IBM Rational Robot to record, edit, and execute functional regression tests. It will give you a jump-start on using Rational Robot by showing the basic steps of installing the product, creating the necessary datastores, launching the tool, using it to record manual interactions with a sample application, editing the resulting test script, and playing it back against another build of the application to uncover a functional regression.

Date:  19 Mar 2007 (Published 18 Jan 2005)
Level:  Introductory PDF:  A4 and Letter (828 KB | 32 pages)Get Adobe® Reader®

Activity:  19939 views
Comments:  

Edit the script

Why edit a script?

Recording and playing back a script provides a lot of value, but as users advance in their application of Rational Robot, they often want to do more with scripting than they can with just recording. The SQABasic language provides a rich set of capabilities for adding decision logic, looping, and even interfacing with external tools. One example might be using COM programming to enable your Rational Robot script to open an Excel spreadsheet and read input values and expected values from a table. There is really no limit to what you can do with a little programming ability.

The SQABasic language scripts can be edited through the editor interface. Several menu items provide methods to insert items into the script. You can also simply type commands into the editor window.


Invoking Build B

Let's say you have just been notified that a new build of your application has been completed. Now that you have a functional test you developed against Build A, you want to run that script against Build B as a regression test -- you want to confirm that the application still does in Build B what it did in Build A.

The Build B application was installed when you set up your sample applications. To invoke it, edit the StartApplication command in your OrderItem script.

Locate the line in your script that begins with StartApplication. It should be approximately on line 6. Scroll to the far right end of that line. Replace ClassicsA.exe with ClassicsB.exe.

Click the Compile button Compile button on the Rational Robot toolbar to verify that no syntax errors were made while making that change.

9 of 14 | Previous | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational
ArticleID=135451
TutorialTitle=Functional testing with Rational Robot
publish-date=03192007
author1-email=
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.