SiteScope User's Guide

URL Sequence Monitor




The SiteScope URL Sequence Monitor simulates a user's access across several pages. This is particularly useful for monitoring and testing multi-page e-commerce transactions and other interactive online applications. For example, you can instruct SiteScope retrieve a login page, enter an account name via a secure web form, check an account status for the page that is returned, and then follow a sequence of links through several more pages. URL Sequence Monitors are also useful for checking pages that include dynamically generated information, such as session IDs, that are embedded in the web pages via dynamic links or hidden input items.

This section describes:

A URL Sequence begins with a specific URL acting as the starting point for the sequence. This can then be followed by additional URLs, or more commonly, links or form buttons that a user would be required to select in order to complete a specific transaction. By default, SiteScope allows you to define up to twenty sequence steps. For each step you may specify a content match or error string to search for, enter a user name and password if required, define custom POST data, as well as other optional criteria for that step.

See the primer "Web Technologies and URL Sequences" for an overview of the most widely used technologies for supporting transactions.

Usage Guidelines

Why should I use this monitor?

URL Sequence Monitors provide you with end-to-end verification that multiple-page transactions are working properly. This is especially important for e-commerce sites and sites that give users the ability to complete forms, etc. on-line. The URL Sequence Monitor Tool allows you to see what is returned at every step of a URL sequence, making trouble-shooting easier to complete.

What should I monitor?

You should monitor any multi-step sequence system that you have made available to general users because you are much less likely to hear about problems with these applications. Web site visitors often assume that any problems they encounter are due to user error rather than system error, especially if they're not familiar with your application. By using this monitor to perform sequence testing, you will know that users are able to successfully complete transactions.

Status

The status reading is the current value of the monitor. Since the monitor executes multiple steps, if an error is detected, the step on which the error occurred is included with the status message. Possible status values for the URL Sequence Monitor include:

If the status returned is good or OK, the total time for the sequence, the number of steps completed, and an indication of the data transferred will be displayed. If an error is returned during the sequence, the URL in the sequence where the problem occurred is listed as part of the reading.

Using the Add URL Sequence Wizard

The Add URL Sequence Wizard enables you to quickly and easily create a URL Sequence Monitor. The wizard automatically opens when you choose the Add URL Sequence Monitor link on the SiteScope Add Monitor page. It guides you through creating and testing a URL Sequence Monitor. When you are finished, click the Add Monitor button to exit the wizard and add the new monitor to SiteScope.

Beginning a New URL Sequence Monitor

  1. Enter the starting URL for the sequence in the Other text box under the Enter the initial URL address selection button box for Step 1.
  2. Use the Update Every options to specify how often you want SiteScope to run this monitor.
  3. Type a descriptive title in the Title text entry box.
  4. Click the Add Step button.

The URL Sequence Wizard form will refresh, showing whether or not SiteScope was able to complete the first step of the sequence. The Step and its related action or URL is displayed in a list form at the top of the form. The HTTP response header and the content of the URL are appended to the bottom of the page. If SiteScope was unable to complete the step, an error screen will be displayed with information about the error. Click the Back button in the browser window to return to the first step form. Check the form for errors, make corrections as needed, and then click the Add Step button to continue.

Note: Using the Back 1 step button causes SiteScope to reset all information for the current steps, allowing you to start over from the last successful step. Do not use this button as a method to view previously successful steps.

If the first page of this sequence requires that a User ID and Password be entered, or if you would like to check for specific content on this page, scroll down to the Advanced Options section of the wizard form and enter that data in the appropriate items. Read more about how to complete these items in the next section, titled Completing the URL Sequence Monitor Form.

When you have filled in the necessary information to complete the first step of the sequence, click the Add Step button in the upper portion of the form. SiteScope will run the monitor to check the step defined and then display the form for adding the next step to the sequence.

Defining the Next Step of the URL Sequence

When you've completed the first step successfully, you're ready to move on to the subsequent steps. This will be a repetitive process depending on the number of web pages and actions that need to be taken to complete the sequence. The Add URL Sequence Wizard makes this easy by automatically showing you the available sequence related elements on the current web page. This includes buttons, hyperlinks, form elements, etc. You will use the Wizard to create each subsequent sequence step separately. Most sequence steps involve one of the following elements:

The figure below is an interactive example of the upper portion of the URL Sequence Wizard page. This is a hypothetical example created to illustrate how the different sequence elements are presented by the URL Sequence Wizard. The HTML FORM elements on this help page simulate the interaction of the actual sequence Wizard page within SiteScope.

Note SiteScope does not parse or interpret embedded scripts or other client-side program code such as Javascript (ECMAscript). Web page content that is generated or controlled by client-side code will usually not appear in the URL Sequence Wizard. See the URL Sequences and Client-side Programs help page for more information on dealing with web page scripts.

Add URL Sequence Monitor (example)

Step 1urlhttp://www.mycompany.com/
  ok, 0.14 sec

Step 2 Select which option to use for the next step in the sequence
  Link:
  

This is a list of available links on this page

 Form:
  This is a list of available Submit buttons on this page, the format is {FormName}ButtonName
  
  

This is a list of available input items on this page, the format is {FormName}InputName

 Frame:
  

This is a list of available frames on this page

 Refresh:
  

This is a list of available meta refresh items on this page

 URL: Enter URL in "Other" box below.
  

Example: http://demo.thiscompany.com

 Other:
  

Select desired radio button and enter field here

  

Selecting a Hyperlink

SiteScope parses the content of the URL in the current step and creates a list of hyperlinks that are found. This includes links that are part of an image map. Any links found on this page of the sequence can be displayed in the drop-down list box to the right of the "Link" radio selection button. Use the following steps to add a link step to the sequence:

  1. Click the round selection button to the left of the list of links.
  2. Click the arrow on the right of the box to display all available links and then click the link that you want SiteScope to follow. If you know a link is available on the subject page but it doesn't appear in the drop-down list, see the note below on client-side programs.
  3. (Optional) See the Advanced Options for the step you're currently defining and enter any string match or user name and password information you'd like SiteScope to use.
  4. Click the Add Step button to move to the next step.

Selecting a Form Button

SiteScope parses the content of the URL in the current step and creates a list of form elements of the type "Submit". If SiteScope finds any HTML forms on the current page of the sequence, they will be displayed in a drop-down list.

The listings are in the following format:

{[formNumber]FormName}ButtonName

For example, the Search button on a company's search page might be listed as:

{[1]http://www.CompanyName.com/bin/search}search

  1. Click the round selection button to the left of the list of submit buttons.
  2. Click the arrow on the right of the box to display all of the available form buttons and then click the one that you want SiteScope to select. If you know a form is available on the subject page but it doesn't appear in the drop-down list, see the note below on client-side programs.
  3. Directly below the list of submit buttons is a box that contains a listing of all of the input items available for this page. Locate the one(s) that pertain to the submit button you selected and type the appropriate post data after the = sign. You may need to run through the sequence in a separate browser window to determine the format and expected values for the post data.
  4. (Optional) See the Advanced Options for the step you're currently defining and enter any string match or user name and password information you'd like SiteScope to use.
  5. Click the Add Step button to move to the next step.

Selecting a Frame within a Frameset

Complete the following steps if the initial URL for this sequence contains a FRAMESET and you need to access a hyperlink, form, or form button that is a page displayed in one of the frames to proceed with the sequence.

  1. Click the round selection button to the left of the Frame text entry box.
  2. Click the arrow on the right of the box to display all available filenames displayed in the current FRAMESET and then click the file that you want SiteScope to retrieve.

Following a META REFRESH Redirection

If the page for this step of the sequence is controlled by a <META HTTP-EQUIV="Refresh" CONTENT="timedelay; URL=filename.htm"> tag, you can instruct SiteScope to retrieve the specified file as the next step. This sort of construct is sometimes used for intro pages, splash screens, or pages redirecting visitors from an obsolete URL to the active URL.

  1. Click the round selection button to the left of the Refresh text entry box.
  2. Click the arrow on the right of the box to display all available Refresh filenames and then click the file that you want SiteScope to retrieve.

Go to Another URL Manually

Where the sequence uses the Common Gateway Interface (CGI) for data transmission between the client and the server, it may be useful to specify a particular URL and name-value pairs. You can enter the URL you want to request along with any name-value pairs needed to get to the next sequence step even if those values are available through some other page element (such as a form). This option also allows you to copy URL and CGI strings directly from the location or address bar of another browser client that you may be using to step through the sequence you are building.

Complete the following steps if you want to direct SiteScope to go to another URL that .

  1. Click the round selection button to the left of the URL text entry box.
  2. Type the URL you'd like SiteScope to go to in the text entry box which contains http://.
  3. See the Advanced Options for the step you're currently defining and enter any string match or user name and password information you'd like SiteScope to use.
  4. Click the Add Step button to move to the next step.

Displays HTML in a Floating Window.

Check this option within the Transaction Wizard to have a copy of the most recently retrieved HTML displayed in a separate window. This can be very helpful in constructing URL sequences as it gives you a visual correlation between the elements displayed in the Transaction Wizard and the text that appears in the user's browser. When you check this option, the HTML view window is displayed as part of the next step.

Note: For effective use of this feature it necessary to change the settings in the browser you use to view SiteScope. For Internet Explorer, you must change the Temporary Internet files settings to "Check for newer versions of stored pages: Every visit to the page". Use the menu bar and select Tools->Internet Options->General:Temporary Internet files->Settings.

Completing the URL Sequence Monitor Form

Once you have selected an element or action for the current step of the sequence, SiteScope sends the request to the specified server which returns the result. The result is usually another web page which includes other sequence elements or text to confirm the progress of the sequence so far. Continue using the URL Sequence Wizard to select the next sequence action or element and continue until you have created the steps that will complete the sequence. It is important to build end-to-end sequence monitors to be sure that you will know if users will be able to complete transactions.

The following items are also included on the URL Sequence Wizard form:

Update every
Within the Add URL Sequence Wizard, only the value entered for the final step of the sequence is remembered. The value is applied to the entire monitor.

Title
Enter the text for the title of this monitor that will be displayed in the SiteScope Monitor Detail Table. Within the Add URL Sequence Wizard, only the value entered for the final step of the sequence is remembered. You can change the title after adding the monitor via the Edit URL Sequence feature.

Advanced Options

The advanced options give you the ability to customize error and warning thresholds, or complete optional settings. These settings are displayed for each step that is defined in the sequence. This allows you to make changes to match content expressions or POST data on previous steps if the request did not return the result that you wanted.

Disable
Check this box to temporarily disable this monitor and any associated alerts. To enable the monitor again, clear the box.

Like the sequence step type-reference pairs displayed in the upper portion of the form, the Advanced Options section displays the list of options for each step. Each step includes:

  1. Step n POST Data
  2. Step n Match Content
  3. Step n Error If Match
  4. Step n User Name
  5. Step n Password
  6. Step n Delay
  7. Step n Title

The following describes these options:

Step n POST Data
If the URL at this step is for a POST request, enter the post variables, one per line as name=value pairs. This option is used to verify that a form is working correctly by performing the same request that occurs when a user submits a form. This item is most commonly used with the Form Reference Type. When the form is submitted, SiteScope fills in any items that aren't specified with data here with the same defaults as a browser would have chosen.

Step n Match Content

Enter a string of text to check for in the returned page for this step. If the text is not contained in the page, the monitor will display no match on content for this step's URL. The search is case sensitive. Remember that HTML tags are part of a text document, so include the HTML tags if they are part of the text you are searching for (for example, "<B> Hello</B> World"). You may also perform a Perl regular expression match by enclosing the string in forward slashes, with an i after the trailing slash indicating case-insensitive matching (for example, /href=Doc\d+\.html/ or /href=doc\d+\.html/i).

Retaining and Passing Values Between Sequence Steps

One important feature of the Match Content capability in SiteScope URL Sequence Monitor is the ability to match, retain and then reference values from one URL sequence step for use as input into a request of a subsequent step. Using one or more sets of parentheses as part of a Match Content regular expression instructs SiteScope to "remember" the values matched by the pattern inside the parentheses. These values can then be referenced using the syntax described in the following example:

Example

Suppose you create a URL Sequence Monitor and include a Match Content expression for the first step to capture some session information. The Step 1 Match Content expression could be in the form of

/[\w\s]*?(pattern1)[\/\-\=]*?(pattern1)/

The two sets of parentheses in this expression instruct SiteScope to retain the two values matched by pattern1 and pattern2. To use these values as input to the next step in the URL sequence, use the syntax {$valuenum}. In this example, the string {$1} references the value matched by pattern1 and {$2} will reference the value matched by pattern2.

Use the above syntax for passing the referenced values to the URL sequence step immediately following the step in which the content match was made (step 1 to step 2 in our example). You can retain and pass matched values from one step to any other subsequent step by using a compound syntax of {$$stepnum.valuenum}. If, in our example, you want to use the value matched by pattern1in step 1 as input in a FORM or URL request in step 4 of the URL sequence, you would include the syntax {$$1.1} in Step 4. To reference the value matched by pattern1, use the {$$1.2} syntax.

Step n Error If Match
Enter a string of text to check for in the returned page for this step. If the text is contained in the page, the monitor will display no match on content for this step's URL. The search is case sensitive. Remember that HTML tags are part of a text document, so include the HTML tags if they are part of the text you are searching for (for example, "<B> Error </B> Message"). You may also perform a Perl regular expression match by enclosing the string in forward slashes, with an i after the trailing slash indicating case-insensitive matching. (for example, /href=Doc\d+\.html/ or /href=doc\d+\.html/i).

Step n User Name
If the URL specified at this step requires a name and password for access, enter the name in this box.

Step n Password
If the URL specified at this step requires a name and password for access, enter the password in this box.

Step n Delay
(Optional) Enter how long SiteScope should wait before executing the next step of the sequence.

Step n Title
(Optional) Enter the text for the title of this step within the sequence monitor. The title will only be displayed in the Edit URL Sequence form.

The advanced options for each step of a URL sequence are listed in sequential groups. The following advanced options apply to the entire transaction.

Verify Error
Check this box if you want SiteScope to automatically run this monitor again if it detects an error. When an error is detected, the monitor will immediately be scheduled to run again once.

Note: In order to change the run frequency of this monitor when an error is detected, use the Update every (on errors) option below.

Note: The status returned by the Verify Error run of the monitor will replace the status of the originally scheduled run that detected an error. This may cause the loss of important performance data if the data from the verify run is different than the initial error status.

Warning: Use of this option across many monitor instances may result in significant monitoring delays in the case that multiple monitors are rescheduled to verify errors at the same time.

Update Every (on error)
This options allows you to set a new monitoring interval for monitors that have registered an error condition. For example, you may want SiteScope to monitor this item every 10 minutes normally, but as often as every 2 minutes if an error has been detected. Note that this increased scheduling will also affect the number of alerts generated by this monitor.

Schedule (Optional)
By default, SiteScope's monitors are enabled every day of the week. You may, however, schedule your monitors to run only on certain days or on a fixed schedule. Choose the Edit schedule link to create or edit a monitor schedule. For information about creating schedules, read these instructions.

Monitor Description (Optional)
Enter additional information about this monitor. The Monitor Description can include HTML tags such as the <BR> <HR>, and <B> tags to control display format and style. The description will appear on the Monitor Detail page.

Report Description (Optional)
Enter a description for this monitor that will make it easier to understand what this monitor does. The description will appear on Management Reports and on the info list for a monitor.

Timeout
The number of seconds that the URL Sequence Monitor should wait for the entire sequence to complete before timing-out. Once this time period passes, the URL Sequence Monitor will log an error and report an error status.

Timeout is per Step
Check this box if you want to use the value entered for the Timeout above as the Timeout for each step of the sequence rather than for the entire transaction. If the step takes more than this time to complete, the URL Sequence Monitor will log an error and report an error status.

HTTP Proxy
Optionally, a proxy server can be used to access the URLs in the sequence. Enter the domain name and port of an HTTP Proxy Server.

Retrieve Images
Check this box if you want the monitor to retrieve all of the graphics embedded in the pages of the sequence. The image retrieval time will be added to the total response time.

Retrieve Frames
Check this box if you want the monitor to retrieve the content of all frames related to the pages of the sequence. The frame retrieval time will be added to the total response time..

Proxy Server User Name
If the proxy server requires a name and password to access the URLs in the sequence, enter the name here. Technical note: your proxy server must support Proxy-Authenticate for these options to function.

Proxy Server Password
If the proxy server requires a name and password to access the URLs in the sequence, enter the password here. Technical note: your proxy server must support Proxy-Authenticate for these options to function.

NT Challenge Response
Check this box if you want SiteScope to use Window's NT Challenge Response when retrieving the URL in this step.

Resume at step n if error
This feature allows you to specify a URL sequence step to execute in the case that a URL Sequence results in an error. This is useful when a URL sequence involves a user or customer login which would result in problems if the sequence were aborted without logging out. Use the drop-down list to select a URL sequence step to jump to in the case that any step in the sequence returns an error.

List Order (Optional)
By default, new monitors are listed last on the Monitor Detail page. You may use this drop-down list to choose a different placement for this monitor.

Error if
By default, SiteScope generates an error if the returned status for any step is anything other than 200 which indicates a successful retrieval. You may choose to have SiteScope generate an error based on the round trip retrieval time. Enter the shortest retrieval time (in milliseconds) that should generate an error. Enter a comparison value and use the comparison operator list to specify an error threshold such as: >= (greater than or equal to), != (not equal to), or < (less than).

Warning if
By default, SiteScope does not generate warnings for URL Sequence Monitors. You may choose to generate a warning based on round trip retrieval time. Enter the shortest retrieval time (in milliseconds) that should generate a warning.

Good if
You can base a good status on the round-trip time for any one step if you would like. Choose the step from the drop-down list and set the threshold.

Each time that you define a URL sequence step and press the Add Step button, SiteScope reruns all of the defined steps in the sequence as well as the step you have just added.

When you have successfully defined each step in the sequence that you want SiteScope to monitor, click the Add Monitor button. The URL Sequence Wizard will close and the new monitor will appear on the Group Detail page. Click the Edit button on this page to make changes to the URL Sequence Monitor.





Copyright © 2003 Mercury Interactive Corporation.
All rights reserved.