Operations are what a user must specify in order to make Madcow interact with the site under test.
A testcase (or
.GRASS file) is essentially made up of a sequential list of operations (with a scattering of comments and other things).
Each of these lines is referred to as a Blade.
Each blade (or line) in a
.GRASS file is made up of at least two components. They are of the following format:
1. Madcow Operator
2. MadCow Operation
3. Operation Parameters
=with any parameters to provide to the Madcow operation.
would perform the [Value] operation, effectively setting the value attribute on the input field, with the HTML ID
commentTextBox. It would use the parameter "These values will be used by the madcow value operation" as it's new value.
However for some Madcow operations, the equals sign
= is not always needed as some operations do not require nor accept any parameters. For example:
will simply perform the [Click-Link] operation and click on the button with HTML id
Furthermore other Madcow 2.0 operations don't require a specific HTML element to operate on because they apply to the entire HTML page. For example:
will simply perform the [Verify-Text] operation on the entire HTML page, effectively searching the current page for the text "Save Comment".
Some operations will even support multiple parameters being provided to them. These are provided a map
[ square brackets
] around the parameters. They would follow this type of format: