|
NAMEHTTP::WebTest::Plugin::Cookies - Send and recieve cookies in tests SYNOPSISNot Applicable DESCRIPTIONThis plugin provides means to control sending and recieve cookies in web test. TEST PARAMETERSaccept_cookiesOption to accept cookies from the web server. These cookies exist only while the program is executing and do not affect subsequent runs. These cookies do not affect your browser or any software other than the test program. These cookies are only accessible to other tests executed during test sequence execution. See also the <send_cookies> parameter. Allowed values "yes", "no" Default value "yes" send_cookiesOption to send cookies to web server. This applies to cookies received from the web server or cookies specified using the "cookies" test parameter. This does NOT give the web server(s) access to cookies created with a browser or any user agent software other than this program. The cookies created while this program is running are only accessible to other tests in the same test sequence. See also the <accept_cookies> parameter. Allowed values "yes", "no" Default value "yes" cookieSynonym to "cookies". It is deprecated parameter and may be removed in future versions of HTTP::WebTest. cookiesThis is a list parameter that specifies cookies to send to the web server: cookies = ( cookie1_spec
cookie2_spec
...
cookieN_spec )
Currently there are two ways to specify a cookie.
Example (wtscript file): cookies = ( ( name => Cookie1
value => cookie value )
( name => Cookie2
value => cookie value
path => /
domain => .company.com ) )
( name => Cookie2
value => cookie value
rest => ( Comment => this is a comment ) )
Example (Perl script): my $tests = [
...
{
test_name => 'cookie',
cookies => [ [
name => 'Cookie1',
value => 'Value',
],
[
name => 'Cookie2',
value => 'Value',
path => '/',
] ],
...
}
...
]
An example cookie would look like: cookies = ( ( 0
WebTest cookie #1
cookie value
/
.mycompany.com
''
0
0
200
1
) )
See RFC 2965 for details (ftp://ftp.isi.edu/in-notes/rfc2965.txt). COPYRIGHTCopyright (c) 2000-2001 Richard Anderson. All rights reserved. Copyright (c) 2001-2003 Ilya Martynov. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOHTTP::WebTest HTTP::WebTest::API HTTP::WebTest::Plugin HTTP::WebTest::Plugins
|