Significance of Caching Detail report in Rational Performance Tester

Technote (FAQ)


Question

What does the Caching Detail report signify in IBM Rational Performance Tester (RPT)?

Cause

Understanding the caching report information would help you to implement the best practices during the recording process in RPT.

Answer

If something is cached (like a .gif element ) during the recording process then at playback it will be cached (unless the server provides a new version of the file). It's the same as the browser. Note that the browser (or RPT) has no jurisdiction on caching, it is ultimately up to the server.

During the recording of a browser session in RPT, one of the things recorded is whether your browser had cached the page or image you have selected. If your browser did not need to get the page refreshed because it was cached, then RPT playback will EXACTLY mimic the behavior of your browser at recording time. That is why flushing your file cache is recommended as a step in starting your recording session.

For example:
From a high level, there are two ways Rational Performance Tester (RPT) will handle cookie data; the method is chooses is based on how the cookie data was captured in the original recording.

  1. Pre-existing cookies:

    In this scenario, cookie data exists prior to the recording.

    For example:
    If you are already logged into local intranet site (Say in this example you would have used the internal IBM site) and perform a new recording,. The first request of the first page will have a cookie already set (as seen below).

    GET / HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
    application/x-shockwave-flash, application/msword,
    application/vnd.ms-excel, application/vnd.ms-powerpoint, */*
    Accept-Language: en-us
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
    CLR 1.1.4322; .NET CLR 2.0.50727)
    Host: w3.ibm.com
    Connection: Keep-Alive
    Cookie:w3ibmTest=true;sauid=U041178661233261980555;satst=test;sauidp=U568976101234471441852;CoreID6=61067410415412344714420;w3ibmProfile=2004060216393504631031567212|gAME|897|897.RLU|en


    Since this is pre-existing cookie, RPT has no knowledge of how the cookie obtained its original value. Hence at runtime, the cookie value in the Test will be the one used at Runtime. Potentially, this could be an issue if the cookie has an expiration date. To avoid this scenario always delete the cookie cache from the browser prior to recording.


  2. Acquired Cookies:

    In this scenario cookie data is set during the recording.

    For example:
    If you have cleared the cookie cache prior to the recording, and perform another recording against the local intranet site, the cookie will be set during the recording. You can verify this by the presence of the ?Set-Cookie? response header. This indicates a cookie was set by the server during the recording (as seen below)

    Content-Language:en-US
    Set-Cookie:JSESSIONID=0000sPOoisbef4rrcYw8gYhuUFT:-1; Path=/
    Transfer-Encoding:chunked


    In this case, RPT knows how the cookie is set and will capture and correlate the new value at run-time. Unlike standard data correlation values, RPT does not color code the cookie values; the correlation is
    done behind the scenes.

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Performance Tester
Test Results

Software version:

8.2.1.4, 8.2.1.5, 8.3

Operating system(s):

Windows

Reference #:

1616562

Modified date:

2012-11-07

Translate my page

Machine Translation

Content navigation