This section explains the definition when you measure Web transactions on the sites with the dynamic session management. PFM - Web Console is taken for example as the sites with the dynamic session management.
To measure the sites with the dynamic session management as a Web transaction, you must specify the variable character strings each time you measure those sites.
When you use PFM - Web Console to measure Web transactions, you must consider the fact that these sites manage the sessions using the dynamically changing session IDs given to its users whenever they log in. The location of the session IDs (that is, in URLs, message bodies, or so) varies depending on the sites.
Thus, to measure Web transaction properly, the session IDs in the URL or message body must be replaced with the newly given session IDs whenever PFM - Agent for Service Response measure Web transactions.
Suppose that you record the following series of procedures in PFM - Web Console as a Web transaction:
- Logging on to PFM - Web Console
- Operations by using the PFM - Web Console (Displaying reports)
- Logging off from PFM - Web Console
The following describes the overview of the procedures to measure this Web transaction correctly.
- Record Web transactions
Use the Web Recorder to record step information of a Web transaction.
- Define measurement conditions
Add necessary settings to measure the recorded Web transaction.
- Test measurement conditions
Check whether the added definition is correct. At the same time, acquire the information to specify the setting for the dynamic session management.
- Set conditions for dynamic session management
Set the conditions to replace the variable string with the substitute string.
- Web transaction operation check
Check whether the Web transaction is measured correctly.
The following subsections describe the details of the procedures:
The information listed below is used in the following procedures. The values are displayed in italics.
Table 1-3 Necessary items to measure Web transaction
Item | Value |
---|
Web transaction file name | sample01.xml |
Web transaction name | sample01 |
Prefix of step ID | SAMPLE_STEP |
Task ID | 103# |
- #
- Each Task ID in the same Web transaction file must be unique.
- Organization of this subsection
- (1) Recording Web transactions
- (2) Defining measurement conditions
- (3) Testing measurement conditions
- (4) Setting conditions for dynamic session management
- (5) Web transaction operation check
The following shows the procedures to test the measurement conditions. Following these procedures, you also acquire the necessary information to specify the setting for the dynamic session management.
- Select the WEBTRANS_103 tree under Task List, check the value of Status is Valid.
![[Figure]](figure/zus01170.gif)
- Select Probe folder under Services tree, select Yes in Reload and click the OK button.
![[Figure]](figure/zus01180.gif)
- Select the WEBTRANS_103 tree under Task List, check the value of Status is Applied.
![[Figure]](figure/zus01190.gif)
- Check whether the HTML file with SAMPLE_STEP as prefix in its file name (such as SAMPLE_STEP00001.html) is saved in the following folder by using the Explorer or so:
installation-folder\agtv\probe\probedata\webtrans
- Open SAMPLE_STEP00002.html, check the substitute string in <frame> tag.
Look at the underlined string on the example below:
<frameset border="0" frameborder="no" framespacing="0" rows="32,*" onUnload="baseLogout()">
<frame name="PrTitle" noresize scrolling="no" frameborder="no"
src="/PFMWebConsole/dispMainTitle.do?prSessionId=A_00E71812A672E7E3AA00385404F53228_1197249957218&launchMode=" />
<frameset cols="350,*" border="8" frameborder="yes" framespacing="4" bordercolor="silver">
- Hint:
- In this example, since the first page where the session ID is found is
- SAMPLE_STEP00002.html, check firstly SAMPLE_STEP00002.html.
The following shows the procedures to replace the variable string with the substitute string:
- From Windows Start menu, choose All Programs, Performance Management, Agent Option for Service Response, and then Web Recorder.
The Web Recorder (main) window appears.
- From the Transaction menu, choose Open.
The Select Web Transaction window appears.
![[Figure]](figure/zus01200.gif)
- From List of Web transaction files, select sample01.xml and from List of Web transactions, select sample01, then click the OK button.
The specified measurement conditions are read, the Select Web Transaction window is closed.
- In the Web Recorder (main) window, from URL list select the URL, and from the Edit menu choose Property.
The Properties window appears.
![[Figure]](figure/zus01210.gif)
- Check whether the URL in the Page Info page or Message body in the Request Info page contains the variable string.
If the same string (that is, variable string) as which you checked the substitute string in (3) Testing measurement conditions exists in either the URL or the Message body, follow the procedures below. If the string does not exist in both pages, skip the remaining procedures.
![[Figure]](figure/zus01220.gif)
For details about the Properties window, see 6.3.7 Properties window.
- Click the Variable String page.
The Variable String page appears.
- Click the Add button.
The Conditions of Variable String window appears.
- Select the location of the variable string checked at the procedure 5 in the Setting of variable string of the Variable String page.
![[Figure]](figure/zus01230.gif)
Select either the URL or Message body button.
For details about the Conditions of Variable String window, see 6.3.8 Conditions of Variable String window.
- Enter the variable string you checked at the procedure 5 in the Variable string at the time of the record.
The variable string when recording is displayed in the Information at the time of the record.
- Click the Substitute String page.
The Substitute String page appears.
![[Figure]](figure/zus01240.gif)
- Click the From HTML or HTTP header button, click the Add button.
The Conditions of Substitute String window appears.
![[Figure]](figure/zus01250.gif)
- Specify the substitute string in the Conditions of Substitute String window.
Specify the values show following table list:
Item to be specified | Value |
---|
Step ID | Select SAMPLE_STEP00002. |
Source of substitute string | Click the From HTML button. |
Element name | Enter frame#1 in the text box. |
Where to include substitute string | Click the Attribute button, and enter src#1 in the Attribute name text box. |
String to exclude from substitute string | Select the String to exclude from substitute string check box, and enter prSessionId= in the String just before text box, enter & in the String just after text box. #2 |
- #1
- The variable string you checked in (3) Testing measurement conditions exists in the src attribute of the <frame> tag.
- #2
- These strings surround the variable string when you checked the string in (3) Testing measurement conditions.
For details about the Conditions of Substitute String window, see 6.3.10 Conditions of Substitute String window.
- Click the OK button in the Conditions of Substitute String window.
The Conditions of Substitute String window is closed.
- Click the OK button in the Conditions of Variable String window.
The Conditions of Variable String window is closed.
- Click the OK button in the Properties window.
The Properties window is closed.
- Repeat the procedure 4 to 15 for each step containing the variable string in a Web transaction file.
The settings of the variable strings and the substitute strings can be imported by clicking the Import button in the Conditions of Variable String window and the Conditions of Substitute String window.
- Example:
- 1. Select the next URL (step ID: SAMPLE_STEP00004) after the URL selected in step 4. Then, from the Edit menu choose Property.
- 2. Click the Add button on the Variable String page. The Conditions of Variable String window appears.
- 3. In the Conditions of Variable String window, click the Import button.
- The Conditions of Substitute String window appears.
![[Figure]](figure/zus01260.gif)
- 4. In the Select Source of Variable String Settings window, select Variable string at the time of the record, and then click the OK button.
- The selected variable string appears in the Variable string at the time of the record field in the Conditions of Substitute String window.
For details, see the following sections:
When you import the setting of variable strings:
When you import the setting of substitute strings:
- In the Web Recorder (main) window, from the Transaction menu, choose Save.
The settings are saved in the Web transaction file.
For details about the definitions for supporting dynamic session management, see 3.5.6 Defining settings for the dynamic session management.