Get Cookie Command

Description:

This command retrieves cookies associated with a domain.

Format:

GET COOKIE DOMAIN domainName INTO variable [PATH cookiePath] [NAME cookieName];

Parameters:

domainName

The domain where associated cookies are to be retrieved.

cookiePath

The path where associated cookies are to be retrieved.

cookieName

The name of the cookie to be retrieved.

Example:

string szCookieVar;

Get Cookie Domain ".amazon.com" Into szCookieVar;
log "All Cookies = " + szCookieVar;

GET COOKIE DOMAIN ".amazon.com" INTO szCookieVar Name "session-id";
log "Session Cookie = " + szCookieVar;

Output:

All Cookies = session-id=002-7718053-7441616; session-id-time=1076659200; skin=
Session Cookie = session-id=002-7718053-7441616

See Also:





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap