background image
<< Specifying a TUXEDO connection | Variable Data Values in HTTP Scripts >>
<< Specifying a TUXEDO connection | Variable Data Values in HTTP Scripts >>
Playback of HTTP Scripts
Setting Script Generation Options
6-23
Controlling the Values Accepted When an HTTP Script Is
Played Back
You can set recording options that control which status values are acceptable when a
script that accesses a Web server is played back. If you do not set any recording
options, the script plays back successfully only if the playback conditions exactly
match the conditions during recording. However, you can set recording options so
that a script plays back successfully even if:
þ
The server responds with partial or full page data during record or playback.
þ
The response was cached during record or playback.
þ
The script was redirected to another http server during playback.
þ
You are recording a number of HTTP scripts and plan to play them back in a
different order.
To expand the conditions under which a script will play back successfully:
1. Click
Tools
Tools
Tools
Tools
Session Record Options
Session Record Options
Session Record Options
Session Record Options
.
2. Click the
Generator per protocol
Generator per protocol
Generator per protocol
Generator per protocol
tab.
3. Select
HTTP
HTTP
HTTP
HTTP
at the
Protocol
Protocol
Protocol
Protocol
section, and then select one or more of the following:
a.
a.
a.
a. Allow partial responses
Allow partial responses
Allow partial responses
Allow partial responses
Select this option to enable a script to play back successfully if the HTTP
server responds with partial data during playback. This generates a script
that sets the TSS environment variable
Http_control
Http_control
Http_control
Http_control
to
HTTP_PARTIAL_OK
. Leaving this box cleared enforces strict
interpretation of recorded responses during playback.
b.
b.
b.
b. Allow cache responses
Allow cache responses
Allow cache responses
Allow cache responses
Select this option to enable a script to play back successfully if a response is
cached differently during playback. This generates a script that sets the TSS
environment variable
Http_control
Http_control
Http_control
Http_control
to
HTTP_CACHE_OK
. Leaving this box
cleared enforces strict interpretation of recorded cache responses during
playback.
c.
c.
c.
c.
Allow redirects
Allow redirects
Allow redirects
Allow redirects
Select this option to enable a script to play back successfully if the script was
directed to another HTTP server during playback or recording. This
generates a script that sets the TSS environment variable
Http_control
Http_control
Http_control
Http_control
to
HTTP_REDIRECT_OK
. Leaving this box cleared enforces strict
interpretation of recorded redirects during playback.
d. Use HTTP keep-alives for connections in a session with multiple scripts.
You should generally leave this box cleared.