Академический Документы
Профессиональный Документы
Культура Документы
RFT
IBM
Rational Functional Tester
Verification Points
Data-Driven Test
Scripting
Functional Test is an object-oriented automated testing tool that tests Java, HTML,
VB.NET, and Windows applications
Functional Test uses object-oriented technology to identify objects by their internal object
properties, not by screen coordinates
Functional Test features platform-independent and browser-independent test playback
Functional Test is integrated with Rational TestManager, which enables to record and
play back a Functional Test script from TestManager and make use of TestManager
features such as the Log.
Verification Points
Data-Driven Test
Scripting
For Testing Java Functional test supports the following java versions:
IBM JRE 1.2.2-1.4.2 + , SUN JRE 1.2.2-1.4.2 +
Functional test supports testing of HTML in the following Browser versions:
• Internet Explorer 5.5, 6.0
• Netscape 4.7.x, 6.2.x, 7.01+, 7.1, 7.2
• Mozilla 0.9.2, 1.0.x, 1.4.x, 1.5, 1.6, 1.7
For .NET & Windows applications Functional Test supports:
.NET Framework 1.0, 1.1platform for user applications
Verification Points
Data-Driven Test
Scripting
Recording:
Prior to recording configure test environments, the application and create a
project. Functional Test records any user actions against the application (Keystrokes & mouse
clicks).
Steps to record:
-- Click the Record a Functional Test Script button.
-- Perform any actions in the application
-- Click Stop recording when recording is finished.
Playback:
During play back of a script, Functional Test replays the recorded actions, which automates the
software testing cycle.
The two general phases of script playback are:
-- Test Development phase -To verify that the application work as intended.
-- Regression Testing Phase - To compare the latest build of the application to the baseline
established during the test development phase
Verification Points
Data-Driven Test
Scripting
Verification Points
Data-Driven Test
Scripting
Verification Points
Data-Driven Test
Scripting
• If the verification point fails on a subsequent build of an application, the information can
be updated in the verification point so that the test continues to be valid for future builds.
• The Comparator includes the expected and actual data values and the differences are
• shown in red.
• To edit Baseline file to update the information for future builds, load the baseline file by
Clicking the Load Baseline to Edit toolbar button or Click File > Baseline.
The baseline file replaces the expected file.
• You can then load the baseline file and edit it or update it with the values from the actual
file.
Verification Points
Data-Driven Test
Scripting
To Data-Drive a test, need to select objects in the application- under test. The data-
driver populates a datapool with data from the application.
Datapool:
A datapool is a test dataset, a collection of related data records which supplies data
values to the variables in a test script during test script playback.
Once the Data-Driving is complete, the Data-Driven Actions page closes and the Functional
Test populates a datapool with data collected from the application.
Verification Points
Data-Driven Test
Scripting
Exception Summary
com.rational.test.ft.script
Class RationalTestScriptException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.rational.test.ft.RationalTestException
com.rational.test.ft.NestedException
Use of Breakpoints :
Verification Points
Data-Driven Test
Scripting
After
•
Executing the Script the results are viewed in the Logs.
Three types of Functional test logs can be used to view the playback results which are:
• Text -- Displays a log in ASCII format in the Functional Test script window.
• HTML -- Displays a log in HTML format in your default browser.
• TestManager -- Displays Functional Test log information in the Test Log window of
TestManager
After Executing the Script the results are viewed in the Logs.
Three types of Functional test logs can be used to view the playback results
which are:
• Text -- Displays a log in ASCII format in the Functional Test script window.
• HTML -- Displays a log in HTML format in your default browser.
• TestManager -- Displays Functional Test log information in the Test Log
window of TestManager
Verification Points
Data-Driven Test
Scripting
When Default is used the check for the existence of the object is for every 2 sec upto
120 secs.
To set a Wait state, on the recording Monitor, select an Object and for the selected
object the time in seconds are given.
•
Sleep (seconds) command can also be inserted into the script where ever required to
delay the execution.
Verification Points
Data-Driven Test
Scripting
Scripts
Object maps
Verification Point baseline files
Script Templates
Java Project
• Use the project as the container of packages. In this organization, all Java packages
are created directly inside the project. This is the selected organization by default.
The generated CLASS files are stored along with the JAVA source files.
• Use source folders as the container for packages. In this project organization,
packages are not created directly inside the project but in source folders. You create
source folders as children of the project and create your packages inside these
source folders.
Call Script
While recording or editing a Functional Test script, a Call Script can be inserted.
E.g. Method:
callScript (“Scriptname “)
Datapool Creation
Thank You