Recording Options

Use Recording Options to configure how recording will take place. Some of the options are only needed for very specialized circumstances.

 

Project Settings > Recording Options

BaseURL

Use this field if you run tests against multiple environments. Please see our BaseURL KB article for more information.

Code Base Class

This option allows you to create and use a specialized test class. For example, you could create a class that knows how to log to your corporation's database. The code-behind for a Test Studio test uses "BaseWebAiiTest" by default. BaseWebAiiTest is an object that knows how to execute test steps, find elements on a page, perform actions against all browser types (i.e. click, scroll, etc) and log test results. BaseWebAiiTest also keeps track of the active browser and the test data.

Silverlight Connect Timeout

The amount of time in milliseconds to wait for Test Studio to connect to a Silverlight application.

Elements Page Compare Mode

This setting determines the Compare Mode property to use when adding a page node to the Elements Explorer. Compare Mode can be checked against the page's Title or one of multiple settings that look at various parts of a URL. The screenshot below shows the parts of a URL:

  • The BaseURL is the part of the URL before the first "/".
  • The Path is the part of the URL after the Base and before the Query.
  • The Query is the portion after the "?" and before the "#".
  • The "#" marks the beginning of the Fragment portion of the URL, if present.

 

 

 

Consider the following three URLs:

  • http://www.google.com/translate/?hl=en#de|en|hungry
  • http://www.google.com/translate/?hl=en#de|en|money
  • http://www.google.com/translate/?hl=fr#de|en|money

 

Here's how these URLs would break out into Page nodes in the Elements Explorer with the following Compare Mode options:

  • BaseURL
    • Compared portion of URL: http://www.google.com
    • Result: All three would be the same page.
  • FullPath
    • Compared portion of URL: http://www.google.com/translate
    • Result: All three would be the same page.
  • FullPathAndQuery
    • Compared portion of URL: http://www.google.com/translate/?hl=en#de|en|hungary
    • Result: All three would be separate pages, since each URL is different from the others. (Query and Fragment portions differ.)
  • FullPathAndQueryNoFragment
    • Compared portion of URL: http://www.google.com/translate/?hl=en
    • Result: The first two URLs would be one page (the Query is the same: "?hl=en"), and the third would be a separate page. (Query has a different language.)
  • The Relative options work the same; however, they ignore the www.google.com portions of the URL, so two different sites with the same Path, Query, and Fragment would end up as the same page, for example:
    • http://www.google.com/translate/?hl=en#de|en|money
    • http://teststudio.net/translate/?hl=en#de|en|money
  • The Title option only uses the page title for comparison and ignores the URL entirely.

Default DropDown Record Option

This setting determines the SelectDropDownType property value that will be used when recording selections in a drop-down control. Possible values are ByText, ByValue and ByIndex.

Enable Storyboard

By default, screenshots are automatically added to the Storyboard Tab. When this option is unchecked, a placeholder image is used. Uncheck the option when you want to conserve memory and disk space. The Scale slider adjusts the size of the Storyboard Tab between "10%" and "100%".

Verbose Mode

If enabled, exceptions are written to the output window.

Simulate Real Clicks/Typing By Default

By default, clicks and typing are recorded as sending clicks or text directly to the element. Setting these options will cause clicks and typing to be simulated by sending Windows events.

Disable UIA Usage

Subscribing to a specific UI Automation event may lead to an OutOfMemory exception. Enable this setting to skip the problematic event so the recorder attaches properly. With this setting enabled Test Studio will not record an IE download dialog, so a Download Dialog Handler step must be added manually.


Use legacy Silverlight find logic

As of version 2012.7.19, Test Studio detects and finds by Silverlight object IDs; tests recorded against Silverlight applications before this version ignore these IDs. Checking this box reverts Test Studio's default find logic to the older behavior.

Enable jQuery events

By default, the HTML recorder checks whether jQuery is loaded on the tested page. If jQuery is loaded, some actions recorded against this page will have the UsejQuery test step property.