ok cookie: visit count test example

Test started at Wed Apr 25 13:11:26 CEST 2012, lasting 670 ms.
Source: /raid/volume1/opt/webtest/webtestCC/CanooFunctionalTesting/selftests/tests/cookie.xml:61:
Base URL (used by invoke steps with a relative URL): http://localhost:19090/selftest/
Simulated browser: IE6
#ResultNameParameterDuration
  1okinvoke
reset in case someone else has used this page
Resulting page
-> complete urlhttp://localhost:19090/selftest/visitCount.jsp?reset=true
urlvisitCount.jsp?reset=true
566
  2okinvoke
expect cookie-based counter and server-side counter to be 0
Resulting page
-> complete urlhttp://localhost:19090/selftest/visitCount.jsp
urlvisitCount.jsp
30
  3okverifyTitle
confirm we have the right page
regextrue
textVisit Counter.*
1
  4okverifyXPath
confirm server-based counter is working
textThis page has been accessed a total of 1 time(s).
xpath//p[@id='totalinfo']
4
  5okstoreCookie
-> cookie value2g2si9ln6juld
nameJSESSIONID
propertysid
1
  6okverifyCookie
namevisitCount
text1
1
  7okinvoke
session id shouldn't change, cookie-based counter should increment
Resulting page
-> complete urlhttp://localhost:19090/selftest/visitCount.jsp
urlvisitCount.jsp
22
  8okverifyCookie
nameJSESSIONID
text2g2si9ln6juld
2
  9okverifyCookie
namevisitCount
text2
1
  10okinvoke
session id shouldn't change, cookie-based counter should increment
Resulting page
-> complete urlhttp://localhost:19090/selftest/visitCount.jsp
urlvisitCount.jsp
32
  11okverifyCookie
nameJSESSIONID
text2g2si9ln6juld
2
  12okverifyCookie
namevisitCount
text3
2
  13okstoreProperty
save sessionid as ant property to retain across webtests
nameantSid
propertyTypeant
value2g2si9ln6juld
=> value2g2si9ln6juld
1
  14okverifyXPath
confirm server-based counter also working
textThis page has been accessed a total of 3 time(s).
xpath//p[@id='totalinfo']
5

Back to Test Report Overview