| # | Result | Name | Parameter | Duration |
|
1 |  | storeProperty
Set WebTest property for use in Groovy script |
| name | imagesrc |
| propertyType | dynamic |
| value | green.gif |
| => value | green.gif |
| 1 |
2
 |  | scriptStep
use from file
last result page of this group |
| language | groovy |
| src | /raid/volume1/opt/webtest/webtestCC/CanooFunctionalTesting/selftests/tests/GMacroSteps.groovy |
| # | Result | Name | Parameter | Duration |
|
1 |  | invoke
Resulting page |
| -> complete url | http://localhost:19090/selftest/trafficlight.html |
| url | trafficlight.html |
| 23 |
|
2 |  | storeXPath
extract src attribute from image with id=traffic_light |
| property | imagesrc |
| xpath | //img[@id='traffic_light']/@src |
| => value | green.gif |
| 4 |
|
3 |  | verifyXPath
check alt value |
| text | go |
| xpath | //img[@id='traffic_light']/@alt |
| 4 |
4
 |  | not
use container |
| # | Result | Name | Parameter | Duration |
|
1 |  | verifyText
|
| 3 |
| 4 |
|
5 |  | invoke
Resulting page |
| -> complete url | http://localhost:19090/selftest/trafficlight.html |
| url | trafficlight.html |
| 26 |
| 243 |
3
 |  | scriptStep
combined file and inline use
last result page of this group |
| language | groovy |
| nested text | // dummy comment |
| src | /raid/volume1/opt/webtest/webtestCC/CanooFunctionalTesting/selftests/tests/GMacroSteps.groovy |
| # | Result | Name | Parameter | Duration |
|
1 |  | invoke
Resulting page |
| -> complete url | http://localhost:19090/selftest/trafficlight.html |
| url | trafficlight.html |
| 92 |
|
2 |  | storeXPath
extract src attribute from image with id=traffic_light |
| property | imagesrc |
| xpath | //img[@id='traffic_light']/@src |
| => value | green.gif |
| 4 |
|
3 |  | verifyXPath
check alt value |
| text | go |
| xpath | //img[@id='traffic_light']/@alt |
| 5 |
4
 |  | not
use container |
| # | Result | Name | Parameter | Duration |
|
1 |  | verifyText
|
| 3 |
| 4 |
|
5 |  | invoke
Resulting page |
| -> complete url | http://localhost:19090/selftest/trafficlight.html |
| url | trafficlight.html |
| 33 |
| 320 |