Subscribe to SoftLogica
Newsletter to get 10% discount on newly
released products!
Editing Page Requests
Editing Page Requests
Click on any request in the Navigation Pane and you will see its properties in the right pane on the
Properties tab.
Note that requests inherit the properties of user profile which they belong to.
However, you can change some of these properties for individual
requests.
Name
Here you can change the name of the current page. For example, instead of default names page_1, page_2,
you can type names with the certain meaning (for example, "Login", "Catalog",
"Forum" etc).
Server
Here you can modify server name and port number.
Secure
Mark this checkbox if you wish to test pages that require SSL connection.
URL address of such pages will start with https://.
If this option is turned on, the settings for secure connection will be taken from
the SSL tab of program settings.
URI
You can use either recorded URI, or get it dynamically at run-time. To get URI dynamically, you
should use variables. First, you will need to define variables,
and then click the Use Variable... button and select a desired variable
in the displayed dialog.
Method
Select GET or POST request method.
When GET method is used, parameters are transmitted in page request string.
When POST method is used, parameters are transmitted implicitly (they are not specified in
page request string).
Encoding
Here you can select another encoding that will be used during test runs
for request parameters containing text strings.
You will need this option for testing multilingual web sites.
When WAPT records a page, it uses the
encoding specified in Internet Explorer options.
During test runs, WAPT uses an encoding selected in the
Encoding combo-box.
Default encoding here corresponds to the default locale in your
Regional Options (Start -> Settings -> Control Panel -> Regional Options).
However, you can select any other encoding for your requests, and
it will be used during test runs.
User think time from _ to _
This option is available only in case you have chosen the option Specified in request
for user think time in the properties of the
current profile.
In other cases (Disable or Random from range options of user profile),
you won't be able to modify delays for
individual requests.
Specify 2 values: minimum and maximum values of delay. Then the delay for page request
will be taken from the specified range at random. You can set a constant delay: for this,
specify equal limits of range.
Treat server response valid
if it contains/does not contain the text
If you turn this option on, WAPT
will perform additional validity check of server response.
You should enter some text string in the text field below.
(You can enter any part of HTML code, for example: <TITLE>302 Found</TITLE>.)
WAPT will check whether HTML code of
server response contains the string that you specify here, or not.
You can select one of 2 options in the combo-box: either "contains", or "does not contain".
If you select "contains", WAPT will check that HTML code of
server response contains the specified string. If the program
finds the string, response is considered valid. Otherwise, it is considered invalid.
If you select "does not contain", WAPT will check that HTML code of
server response does not contain the specified string. If the string is not found,
response is considered valid. Otherwise, it is considered invalid.
In case the response is invalid, you will see a "Validation error" for this page request in
HTTP reply codes table of Errors Report and in the log.
Parameters/POST raw data
Select either Parameters or POST raw data option in the combo-box.
Parameters:WAPT provides you with a number of functions for
dynamic calculation of request parameter values
at run-time. The resulted value can be also calculated as the concatenation of results of some functions.
See Advanced Tasks for detailed description of
functions and functions editor.
Add..: Opens the Edit Parameter dialog where you can
define a new parameter and a function for its calculation.
Remove: Removes selected parameter from the list.
Edit..: Opens the Edit Parameter dialog
where you can modify the properties of selected parameter: name and function for its calculation.
POST raw data: If you select this option, you will be able to enter any raw data for your request in the text box
below. You can use variables as well. To define a variable,
type $Var(variable_name) where variable_name
is the name of some variable.
The specified text string will be sent as the body of POST request.
Variables
You can use variables to
calculate parameters and URIs.
To define a variable,
you can use functions that parse actual HTML code of response at run-time.
Add..: Opens the Edit Variable dialog where you can
define a new variable and a function for its calculation.
Note that created variable will be available only in subsequent
requests.
Remove: Removes selected variable from the list.
Edit..: Opens the Edit Variable dialog
where you can modify the properties of selected variable: name and function for its calculation.
Load page elements
This option is enabled in request properties only in case the corresponding option Load page elements
is enabled in profile properties.
If you uncheck this option in profile properties, then all pages of the current profile
will be loaded without images, CSS, JavaScript and other additional (external) resources.
Load page elements option for page request defines whether this page will be loaded together with
images, CSS, JavaScript and other resources during test run or not.
If you clear this checkbox, then the page will be loaded without images and other resources.
Below you can see the list of page elements. If you do not want to request some element during test run,
just unckeck it.
You can edit the URL address of any page element: click on a desired element in
the list, modify the URL and press Enter.
Add..: Adds a new string to the list of page elements. Specify the URL of a new element and press
Enter.
Remove: Removes a selected element from the list.
Select All: Puts checkmarks for all page elements in the list.
Select None: Removes all checkmarks in the list.
HTTP Headers
Enables to edit custom strings in HTTP header
of the current page request.
By default, HTTP header specified for the whole user profile will be used
for all its requests. However, you can change HTTP header for individual requests.
Add: Adds a new custom string to the list. Specify string name and value.
Remove: Removes selected custom string from the list.
Find and replace a text string in request properties
When you edit a test scenario, sometimes you may need to search for some text string in the properties of all
page requests and replace it with another text string. WAPT allows you to do this:
you can quickly search for every occurrence of a specific word or phrase, or
automatically replace it with another word or phrase. Use the
Find and Replace... option on the Edit menu for this purpose.
When you click this option, the Find and Replace Text dialog appears.
Find what: Type the text that you want to search for
in the properties of page requests. Replace with: Type the replacement text.
Below you can see the list of fields where you can search for the specified text.
WAPT will search in those fields that are selected in the list.
Match case:
If you check this option, WAPT will search only for words that match the case of
the word or phrase that you typed in the Find what box. For example, if you search for "PAGE", the result includes
"PAGE" but not "page".
Do one of the following:
To find the next occurrence of
the text in the properties of page requests, click Find Next.
WAPT looks for the text in the properties of all requests of all user profiles. To replace an occurrence of the
text, click Replace.
After you click Replace, WAPT moves to the next occurrence of the text. To replace all occurrences of the
text, click Replace All.