Scripting Language used for Performance Testing is VU Scripting
Cookies
Cookie is a temporary file stores the session details
set_cookie Emulation Function
Adds a cookie to the cookie cache.
SYNTAX: set_cookie(name, value, domain, path [, secure])
Syntax Element Description
name A string expression that specifies the name of the cookie.
value A string expression that specifies the value for the cookie.
domain A string expression that specifies the domain for which this cookie is valid.
path A string expression that specifies the path for which this cookie is valid.
secure An optional string expression that, if given, provides the secure modifier for the cookie. The value of this parameter should be "secure".
COMMENTS
The set_cookie function creates the named cookie with the given value. If a cookie already exists with this name for the given domain and path then set_cookie() sets the value of that cookie to value.
The expiration date of the cookie is set sufficiently in the future that it will not expire during the run.
Dynamic Data Correlation
Dynamic data correlation is a technique to supply variable data values to a script when the transactions in a script depend on values supplied from the server.
For example, when you record an http script, the Web server may send back a unique string, or session ID, to your browser. The next time your browser makes a request, it must send back the same session ID to authenticate itself with the server.
The session ID can be stored in three places:
• In the Cookie field of the HTTP header.
• In an arbitrarily named field of the HTTP header.
• In an arbitrary hidden field in an actual HTML page.
Rational Suite TestStudio finds the session IDs (and other correlated variables) and, when you run the suite, automatically generates the proper script commands to extract their actual values.
Before you record a script, you can choose whether TestStudio correlates all possible values (the default), does not correlate any values, or correlates only a specific list of variables that you provide. For Information about correlating your data, see:
Identifying data that needs to be correlated
Coding the Script to Correlate the Data
Although varying test values may work for those transactions that depend on the result of an earlier transaction, other transactions may depend on values received from the server. If a script contains these transactions, you must manually edit the script to replace some of the missing client logic so that the values correlate dynamically. This is called dynamic data correlation.
No comments:
Post a Comment