Determine Whether or Not to Record with Browser Context

Visit this forum for tips and techniques for recording scripts with SHO Guide.

Moderators: DanPeay, dadkins

Determine Whether or Not to Record with Browser Context

Postby dadkins » Mon Feb 09, 2009 11:07 am

When creating SHO scripts for browser-based software solutions or Web pages, SHO Guide provides the ability to set a URL prior to the execution of a step. In SHO Guide terminology, this is known as setting the browser context.

If browser context recording is enabled, then the script will attempt to set the browser to the same URL that the script author was using when the steps were initially recorded. The script sets browser context for each recorded step during playback.

In contrast, if browser context recording is disabled, then no attempt is made to set a URL prior to execution of a step. During playback, the script will attempt to interact with recorded interface objects, but on the current page rather than the URL that the script author was using.

This setting has significant playback implications, depending on what you are attempting to record and the point of script initialization, so you should pay particular attention to how this is set prior to recording scripts in browser. Determining when to set browser context can sometimes be a subjective call. However, some general rules can be applied. For example, if you are recording steps on a website or on a Web-based utility for which there is no login or session requirement, then you may wish to enable browser context. However, if the application on which you are recording is session-based (requires a login) or uses a number of popup panels on which you would not want the script to attempt to set a URL, then you would want to disable browser context recording.

The browser context setting is found in the Global Options dialog box. Perhaps the quickest way to access this setting is click the arrow next to the Record tool in the SHO Guide Main toolbar and choose Recording Options, as shown in the image below.

Image

The Global Options dialog box appears with the Recording tab already selected. By default, the Record browser context setting is enabled. Simply enable or disable the check box as desired, and then click the OK button to change to the setting.

Image

Alternatively, you can access this setting by clicking the Recording Options button on the SHO Guide recording window shown below. The Recording Options dialog box appears in which you can make the desired change to the setting.

Image
dadkins
 
Posts: 20
Joined: Fri Feb 06, 2009 9:46 am

Return to SHO Guide Script Recording Tips Forum

cron