You can switch to Java scripting if you want to insert
Java codes to perform additional operations such as extending an API
or any functions that cannot be performed directly in the simplified
script editor.
To use both the simplified script and the Java scripting,
you must use the Insert Java Code Snippet or Insert Java Method feature
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 is executed
during playback.
In this lesson, you insert a Java code snippet
so that Rational Functional Tester waits until
the Password control in the Member
Logon window is displayed in the application during playback
and then test the control.
You can enable the option to wait
for the control to be displayed for a test line in the Playback page
in the Properties view. But in this tutorial,
to understand the process of inserting a custom Java code, you perform
the following steps: