| # | Result | Name | Parameter | Duration |
|
1 |  | invoke
reset in case someone else has used this page
Resulting page |
| -> complete url | http://localhost:19090/selftest/visitCount.jsp?reset=true |
| url | visitCount.jsp?reset=true |
| 566 |
|
2 |  | invoke
expect cookie-based counter and server-side counter to be 0
Resulting page |
| -> complete url | http://localhost:19090/selftest/visitCount.jsp |
| url | visitCount.jsp |
| 30 |
|
3 |  | verifyTitle
confirm we have the right page |
| regex | true |
| text | Visit Counter.* |
| 1 |
|
4 |  | verifyXPath
confirm server-based counter is working |
| text | This page has been accessed a total of 1 time(s). |
| xpath | //p[@id='totalinfo'] |
| 4 |
|
5 |  | storeCookie
|
| -> cookie value | 2g2si9ln6juld |
| name | JSESSIONID |
| property | sid |
| 1 |
|
6 |  | verifyCookie
|
| 1 |
|
7 |  | invoke
session id shouldn't change, cookie-based counter should increment
Resulting page |
| -> complete url | http://localhost:19090/selftest/visitCount.jsp |
| url | visitCount.jsp |
| 22 |
|
8 |  | verifyCookie
|
| name | JSESSIONID |
| text | 2g2si9ln6juld |
| 2 |
|
9 |  | verifyCookie
|
| 1 |
|
10 |  | invoke
session id shouldn't change, cookie-based counter should increment
Resulting page |
| -> complete url | http://localhost:19090/selftest/visitCount.jsp |
| url | visitCount.jsp |
| 32 |
|
11 |  | verifyCookie
|
| name | JSESSIONID |
| text | 2g2si9ln6juld |
| 2 |
|
12 |  | verifyCookie
|
| 2 |
|
13 |  | storeProperty
save sessionid as ant property to retain across webtests |
| name | antSid |
| propertyType | ant |
| value | 2g2si9ln6juld |
| => value | 2g2si9ln6juld |
| 1 |
|
14 |  | verifyXPath
confirm server-based counter also working |
| text | This page has been accessed a total of 3 time(s). |
| xpath | //p[@id='totalinfo'] |
| 5 |