Simplified scripting
Simplified test scripts are functional test scripts in
the form of simple English statements that are easy to understand
and edit. This feature is enabled by default in the Rational Functional Tester Preferences window.
Enabling simplified scripting
Simplified scripts are functional test scripts in the form
of simple English statements that are easy to understand and edit.
When you record actions on the test application using the recorder,
the functional test script is generated and displayed as a simplified
test script in the Script editor.
Creating a simplified test script
Use the recording feature of IBM® Rational Functional Tester, to record actions on
the test applications. The actions on the test applications are generated
in the form of a simplified test script when you stop recording. The
generated simplified test script is displayed in the simplified Script editor
in Rational Functional Tester. You can also
view the corresponding Java™ code
of the recorded test script in the Java script
editor.
Editing a simplified script
You can edit a test line in the script editor and also
modify the test line properties, such as the control actions in the
Properties View.
Inserting conditional statements
You can insert conditional statements to verify the values
of the variables in the script and perform actions in the application.
Specifying the log details for a test script
You can specify the message to be displayed in the log
for a test line that has run. You can also specify the type of screen
capture that must be taken during playback and displayed in the log
so that you can view the state of the control or the screen in the
test application.
Deleting a test line
You can delete a test line from a script in the script
editor. The application visual that is captured and displayed while
recording the test script is not deleted from the Application view.
Working with application visuals
Application visuals are snapshots of the controls or screens
of the test application that are captured while recording scripts.
The visuals of the test application are captured only if both the
simplified scripting and the application visuals feature preferences
are enabled.
Switching to Java scripting
You can switch to Java scripting to insert Java code to
perform additional operations such as extending an API or functions
that cannot be performed directly in the simplified script editor.
To use both the simplified script and Java scripting, you must use
the Insert Java Code Snippet or Insert Java Method feature that is
available in the simplified script editor and switch to Java scripting.
If you modify the Java script directly without using these features,
the Java script changes are lost and the simplified script runs during
playback.
Exporting a simplified script
You can export the simplified scripts in a .txt, .xml or
.html format so that the script can be viewed outside Rational Functional Tester.