Skip to content

Madcow operations

timfarr edited this page Jul 21, 2011 · 8 revisions

Madcow Operations

Operations are what a user must specify in order to make Madcow interact with the site under test. A testcase is essentially made up of a sequential list of operations (with a scattering of comments and other things).

For detailed information about each operation available in Madcow, please see the List of Madcow Operations.

Standard Operation Sytax

...

More Complex Usage of Operations

Any step can be used and passed multiple supported parameters by passing a "map" to the Madcow operation.

[Optional HTML Element Id].webTestOperation = [paramter1 : "value1", parameter2 : "value2"]

For example:

htmlLinkElementId.clickLink = [description : "clicking the html link"]

or

verifyText = [regex : "/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/", description : "checking for the emails"]
Clone this wiki locally