Playback is Slow when I Test Applications Launched from a Browser

This functionality is supported only if you are using the Classic Agent.

When you test applications, not applets, launched from a browser, the recovery system performs several functions that might impact performance, including the following:
  • Closes the Java application when exiting each test case.
  • Loads the URL of the launch site and relaunches the Java application when entering each test case.

To avoid opening and closing the Java application for each test case, you can add the following code to your test frame:

  1. Add an Invoke() method inside the JavaMainWin definition that will launch the Java application.
  2. Inside the wMainWindow definition of your test frame, assign the constant lwLeaveOpen to the main window of the Java application.
  3. Add TestCaseEnter() and TestCaseExit() methods at the top of the test frame.