Web Context Management Settings

General Profile Settings

General Silk Performer Web context management profile settings can be configured at Settings > Active Profile > Web > Recording tab.

Select Page-level Web API (HTML/HTTP) to instruct the recorder to generate a page-level API script.

To have query strings that are part of URL parameters converted into forms for context-less function calls, select Convert URL query strings to forms. It is recommended that you select this option as it makes the Dynamic URL parsing setting applicable in more cases. If this option is not selected, query strings will not be converted into forms, but rather kept as parts of URLs.

Advanced Settings

To configure advanced Web context management settings, go to Settings > Active Profile > Web > Recording tab > View Settings button.

Fuzzy form detection - Selecting this option instructs the recorder to generate forms that use the usage attribute SUPPRESS when required. This may allow the recorder to generate the context-full WebPageSubmit function rather than the context-less WebPageForm (for HTTP POST requests) and WebPageUrl (for HTTP GET requests) functions.

Note: It is recommended that you enable Fuzzy form detection. If the site under test uses JavaScript to modify forms, this option will offer better context management. If the site does not use JavaScript, this option will not cause any harm.

Allowing modified action URLs - Checking this option instructs the recorder to generate the WebPageSetActionUrlAbs function when necessary. This may allow the recorder to generate the context-full WebPageSubmit function rather than the context-less WebPageForm (for HTTP POST requests) and WebPageUrl (for HTTP GET requests) functions.

Note: It is recommended that you enable Allowing modified action URLs. If the site under test uses JavaScript to modify forms, this option will offer better context management. If the site does not use JavaScript, this option will not cause any harm.

Dynamic action URL parsing - Selecting this option instructs the recorder to generate the WebPageSetActionUrl function rather than WebPageSetActionUrlAbs when it is possible to generate a WebPageParseUrl function for the required URL.

Note: It is recommended that you enable Dynamic action URL parsing. If the site under test uses JavaScript to modify forms, this option will offer better context management. If the site does not use JavaScript, this option will not cause any harm.

Dynamic link parsing - Checking this option instructs the recorder to generate the WebPageLink function for HTTP GET requests that do not correspond to a standard HTML link, rather than a context-less function when it is possible to generate the WebPageParseUrl function for the required URL.

Note: It is recommended that you enable Dynamic link parsing. If the site under test uses JavaScript to modify forms, this option will offer better context management. This option also ensures proper context management when the HTML tag <meta http-equiv=refresh …> is used.

Dynamic URL parsing - Selecting this option instructs the recorder to generate the WebPageParseUrl and WebPageQueryParsedUrl functions when possible to pass parsed URLs as parameters to context-less page-level API functions.

Note: The need for generating context-less API functions is greatly reduced when the preceding four advanced context management options are selected.

Enable Dynamic URL parsing if you see context-less API functions in recorded scripts, even if all other advanced context management options are selected and if the context-less functions use URLs that seem to incorporate state information.

Predefined Settings

The Advanced context management settings drop-box combo box (available at Settings > Active Profile > Web > Recording tab > Advanced context management) offers predefined configurations for advanced context management. You can choose a predefined configuration or choose your own custom settings.

The predefined configuration Level 2 is the default for Web business transaction (HTML/HTTP) testing projects.

The other predefined profile settings are detailed in the chart below:

Disable Level 1 Level 2 (default) Level 3 Custom
Fuzzy form detection - yes yes yes your choice
Allow modified action URLs - yes yes yes your choice
Dynamic action URL parsing - - yes yes your choice
Dynamic link parsing - - yes yes your choice
Dynamic URL parsing - - - yes your choice