Recording a Virtual User
User profile consists of a sequence of web pages that will be requested during test run.
To add pages to a profile, you can record the real activity in browser.
WAPT Pro has the built-in Recorder. It is a window of
Microsoft® Internet Explorer browser embedded in the program interface.
This tool records your actions as you navigate through a web site and then reproduces these steps during test run.
Click the Rec button on the toolbar to start recording. You will see a dialog where you should specify a profile for recording.
Use existing profile: Select a desired profile in the combo-box.
Create a new profile: Enter a new profile name. A newly created profile will appear in the Navigation Pane.
You can select a browser that will be used for recording.
Embedded Internet Explorer Window: WAPT Pro has an embedded window of Microsoft® Internet Explorer browser. WAPT Pro Recorder will record all your actions as you navigate through a web site in that window.
External Browser: You can select an external browser for recording. Choose a desired browser in the combo-box below. After you click "OK", you will see a separate window of selected browser. WAPT Pro Recorder will record all your actions as you navigate through a web site in that window.
We recommend closing all browsers before recording in an external browser. Otherwise WAPT Pro will add to the recorded session all HTTP requests initiated by web applications running in all open Internet Explorer and Chrome windows.
You can use the option Manual Configuration in case you want to record profiles in a browser which is not included in the list of supported browsers on your system, or if you use a browser on another computer or mobile device for recording.
Note that embedded Internet Explorer differs from the external Internet Explorer browser. It does not have some interfaces which are available in the standalone Internet Explorer (e.g. the AutoComplete feature).
Delete Internet Explorer Browsing History
If you have already browsed pages of the tested web site in Internet Explorer, pages may be kept in
Internet Explorer browsing history.
When the next time you start recording those pages in the embedded or external Internet Explorer,
they will be taken from cache instead of
making actual requests to the server. To avoid such situation, you should clean Internet Explorer cache
before you start recording. You can also delete cookies if you want to record a "clean" session
as a completely new visitor.
WAPT Pro can automatically delete Internet Explorer browsing history and cookies each time you start recording if you turn on the following options.
Delete Temporary Internet files (cache): Check this option to delete Temporary Internet Explorer files.
Delete Cookies: Check this option to delete cookies. This command will delete all cookies: session and persistent.
If you are using some external browser (other than Internet Explorer), these options will not work for it. So, if you want to record a "clean" session, you should delete the browser cache and cookies in that browser manually.
Page elements options
Click the Edit options button to specify the options for page elements.
Some HTTP requests are recorded as page elements of other requests. You can specify how to distinguish page elements and page requests in the following dialog.
Never convert to page elements requests matching the following masks: Check this option if you do not want the certain requests to be converted to page elements and specify the masks for such URLs.
Add mask..: Click this button and specify an URL that should not be converted to page element during recording. If you enter some URL string, Recorder will not convert all URLs beginning from that string. You can also use wildcards (* and ?) to define the whole domain of URLs.
Wildcard character ? matches any single character, and * matches any number of characters. You can enter wildcards in any place of URL.
Remove: Removes a selected URL from the list.
Certificate for Recorder
For recording of pages secured by SSL, you can select the necessary certificate for Recorder on the HTTPS tab of program settings.
Some servers require client certificates to check your identity.
If during recording you send a request to some web site which
requires the client certificate, you may see the following warning message:
You can skip this message if you do not use any certificate when accessing this site in a browser (click the Skip button). Or you can click the Settings button in this dialog to switch to the program settings and specify the certificate file and related options.
Ignore URLs during Recording
Sometimes you may need to ignore the certain URLs during recording, for example, ignore various counters and web statistics tracking services. WAPT Pro allows you to do this. Specify the list of URLs that should be ignored on the Recorder tab of program settings.
Type the first URL to be recorded in the program Address bar (or in the address bar of external browser) and press Enter. WAPT Pro will automatically record all your actions while you are browsing your web site in a regular browser window. Using this procedure you can record the typical behavior of each type of users you want to emulate.
All recorded requests are added to the Recorder folder in the left pane.
You can add bookmarks in the sequence of recorded requests just on the fly: click the Add Bookmark button during recording, and a new bookmark will be added to the end of the sequence of requests. Besides, you can add a bookmark before the certain request: select the necessary request in the sequence and click the Bookmark it! button:
Click the Show Recorder button to return to Recorder.
WAPT Pro can record AJAX requests. You do not need to perform any additional actions and can work with pages containing AJAX scripts just like you work with any other pages.
Stop the Recording Process
When the desired sequence of page requests is formed, you should stop the recording process.
Click the Stop Rec button
on the toolbar.
WAPT Pro performs the post-processing of recorded requests. As a result, the sequence of pages with page elements is formed. This sequence of pages is moved from Recorder to the user profile selected for recording.
If you start recording already having some URLs in user profile, the new ones will be appended to the end of it.
Now you can edit options of individual requests so that they would completely satisfy your testing goals. Click on any request in the tree view and you will see its properties in the right pane.
You can add page URLs and requests for resources (images, scripts and so on) manually. Select a profile in the tree view and click the Add button on the program toolbar. Or you can right-click the name of profile and select Add -> Request on the context menu. A new request will be added to selected profile.
Recording Pages Requiring Authentication
When you record pages that require authentication (basic or NTLM), you see the following dialog where you should enter your username
and password for authentication:
When you stop the recording process (click the "Stop Rec" button on the toolbar), WAPT Pro suggests you to specify pairs of usernames/passwords in the properties of the recorded profile. These pairs will be used during the test run.
If you click "Yes" in this dialog, WAPT Pro displays the Credentials/Certificates dialog where you can enter pairs of usernames/passwords:
WAPT Pro Recorder works as a proxy between the tested server and web browser.
In particular, if there is one or several proxy servers on the way to the tested server, then
WAPT Pro Recorder proxy is incorporated between the web browser and the first proxy
server in the chain.
Depending on the option Use browser proxy settings in Recorder settings, Recorder proxy can take the current proxy configuration of the browser that was selected for recording and use it. By default this option is turned on, and Recorder proxy uses the proxy configuration of selected browser.
For example, if you select Firefox as an external browser for recording, WAPT Pro Recorder proxy will take the current proxy settings of Firefox and use them for recording. Firefox will use Recorder proxy to establish connections. When you stop recording (click the Stop Rec button), all settings will be restored to their initial state both in Firefox and WAPT Pro Recorder proxy.