The Test Frame File for a Web Application

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

The test frame file includes the following:

wMainWindow

This constant points to the home page of your application, that is, the page that was loaded when you created the test frame. The recovery system uses wMainWindow to restore the browser to that page when a test fails. Just as a non-web application typically has a state where you want the tests to start (the base state), Web applications also have a base state. Typically, it is the first page in the application.

BrowserChild

The window has the same identifier as the value of wMainWindow. This window loads in order to restore the base state. The window declaration contains:

  • The constant sLocation, which is the URL for the page. The recovery system uses this constant to load the page when necessary.
  • Two commented constants, sUserName and sPassword which specify the user name and password to access the application. See Specifying username and password.
  • Two commented constants, BrowserSize and bDefaultFont, which specify the size of the browser window and the default font to use for displaying text. See Specifying browser size and fonts.
  • All the objects in the page, such as HtmlHeadings, HtmlText, HtmlLinks, HtmlText, HtmlPushButtons, and so on.