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]

Automate regression tests

IBM Rational Functional Tester makes regression testing a snap

Brian Bryson, Author, IBM
Brian Bryson joined IBM Rational in 1995 after having spent several years in software development. Since joining IBM Rational, he has held various positions supporting software quality tools, from consultant to technical marketing. He is currently the automated software quality evangelist for IBM Rational and spends his days speaking to customers, partners and analysts on all matters pertaining to software quality. Brian has spoken at numerous conferences and published many articles, the most recent on Patterns of Success in Test Automation in the December 2004 issue of Software Test and Performance.

Summary:  This tutorial introduces you to IBM Rational Functional Tester, an automated regression testing tool that lets you test Java, .NET, terminal-based and web applications running on Windows and Linux platforms. The tutorial will help you create, execute and edit a Functional Tester regression test. Along the way you'll explore the challenges of regression testing and the solutions offered by Functional Tester to address these challenges.

Date:  21 Feb 2005
Level:  Introductory PDF:  A4 and Letter (62 KB | 17 pages)Get Adobe® Reader®

Activity:  21035 views
Comments:  

Get started

Overview

Getting started with Functional Tester involves three steps:

  1. Installing Functional Tester
  2. Installing and/or configuring the Java Runtime Environment
  3. Creating a test project

In this section, you'll walk through those steps.


Install Functional Tester

If you haven't already, install Functional Tester now. A fully functional trial version of the software is available from the IBM Web site; see Resources for a link.

The Functional Tester trial is delivered in two pieces. The first is the C81MWML.BIN file, which contains the compressed software; the second is an application called the extractor. Download both and run the extractor application. The extractor processes the .BIN file, expands it into the application installation files, and launches the setup for you. On the setup wizard, select Install IBM Rational Functional Tester v6.1.

During the Functional Tester installation, select any installation directory you like and accept all defaults. Note again that if you intend to use Visual Basic.NET as a scripting language, Visual Studio.NET must be installed on your system prior to installing Functional Tester.


Install and/or configure the Java Runtime Environment

Functional Tester creates logs to inform you of what has transpired during test execution. By default, these logs are HTML documents. However, to provide additional information, Functional Tester launches an application called the comparator to highlight any differences between expected and actual results. For Functional Tester to run the comparator, the Java Runtime Environment must be installed and configured.

Is the Java Runtime Environment already installed on my machine?

It's quite possible that you already have a Java Runtime Environment (JRE) on your machine. If you do, you'll find a Java configuration icon in your control panel. Select Start > Settings > Control Panel. If you see a Java Plug-in option in the list of applications, then the JRE is installed on your machine. You do not need to install a second JRE.

Installing the Java Runtime Environment

The Java Runtime Environment is available for download from Sun (see Resources for a link). Select the appropriate link for your environment. Most users select the Windows (US English Only) JRE link.


Create a test project

A test project is the location where Functional Tester keeps all of your scripts, along with expected and actual results. The format of the project is dictated by the environment you are using -- either Eclipse for Java scripting or Visual Studio.NET for Visual Basic.NET scripting. This is the only step in this document that is different for the two environments. If you're using the Java language, proceed to Create a Java test project. If you're using Visual Basic.NET, proceed to Create a .NET test project.


Create a Java test project

Complete these steps only if you are going to use the Java scripting environment.

  1. Start Functional Tester by selecting Start > Program > IBM Rational > IBM Rational Functional Tester v6.1 > Java Scripting.
  2. When the Workspace Launcher window opens, accept or change the default location for your workspace. This location is where Functional Tester will store all of your assets. Click OK to confirm your choice.
  3. When the Rational Software Development Platform opens, close the "Welcome" tab by clicking on the X.
  4. You are now in the main editing environment for Functional Tester.
  5. Select File > New > Functional Test Project to create a new project.
  6. Name the project RFT Tutorial and click Finish to create your project.
  7. If you are using the evaluation version of Functional Tester, a window appears telling you how many days remain on your trial license. Click OK to acknowledge the message.

Create a .NET test project

Complete these steps only if you are going to use the VB.NET scripting environment for this tutorial.

  1. Start Functional Tester by selecting Start > Program > IBM Rational > IBM Rational Functional Tester v6.1 > VB.NET Scripting
  2. If this is your first time opening Visual Studio, a start page appears. Close this page by clicking the X icon in the top right corner.
  3. In the Visual Studio.NET environment, select File > New > Functional Test Project to create a new project.
  4. Name the project RFT Tutorial and click OK to create your project.
  5. If you are using the evaluation version of Functional Tester, a window appears indicating how many days remain on your trial license. Click OK to acknowledge the message.
  6. A Source Control window appears with the message, "To ensure optimal source control integration with Visual Studio .NET, check with your source control provider for compatibility and update information." Select the Don't show this window again check box and then click OK to close this window.

You are now in the main Functional Tester with VB.NET scripting environment.

3 of 9 | 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=134558
TutorialTitle=Automate regression tests
publish-date=02212005
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.