Keeping the DOS Window Open when Returning to DefaultBaseState

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

Java applications running in Windows are launched from DOS.

You do not need to perform this task if appstate is set to none.

To keep the DOS window open when returning to base state:
  1. Launch your Java application.
    • If you are running JDK, your DOS window is minimized.
    • If you are running JRE, your DOS window is not minimized.
  2. Click Record > Window Identifiers in the Silk Test Classic menu bar.
  3. Click the DOS window. If the DOS window is minimized, restore it first. Place your cursor over the title bar of the DOS window and press Ctrl+Alt to record the identifier.
  4. Open your test frame file and expand the main window declaration for the Java application which you are testing.
  5. Un-comment the line that begins const lwLeaveOpen and select the text ? near the end of that line.
  6. In the Record Windows Identifiers dialog box, click Paste to Editor to insert the DOS window identifier as the value for lwLeaveOpen, inside the {} brackets.
  7. Close the Record Windows Identifiers dialog box and save the test frame file.