-
Notifications
You must be signed in to change notification settings - Fork 2
Madcow Operations XPath Extras
gavinbunney edited this page Feb 15, 2011
·
4 revisions
| Command | madcow:ends-with |
|---|---|
| Description | Tests if the supplied xpath query has a text result in which the last part of the text matches the supplied string |
| Usage | madcow:ends-with(xpathQuery, text) |
| Examples | madcow:ends-with(@id, 'Suburb') |
| Command | madcow:numbers-only |
|---|---|
| Description | Strips any non-numeric characters from the supplied xpath string |
| Usage | madcow:numbers-only(xpathQuery) |
| Examples | madcow:numbers-only(@id) |
| Command | madcow:replace-all |
|---|---|
| Description | Replaces occurances of a string, with another string within the specified xpath text. Supports Java style regular expressions. |
| Usage | madcow:replace-all(xpathQuery, replaceThis, withThat) |
| Examples | madcow:replace-all(@id, 'a', 'A) \-> replace all 'a' with 'A' within @id |
- Home
- Setting Up
- Configuration
- Writing Madcow Tests
- Running Madcow Tests
- Data Parameters
- Templates
- Macros
- Disabling A Test
- Spreadsheet Scenario Testing
Madcow Operations
- Madcow Operations
- Madcow Operations - Table
- Madcow Operations - XPath Extras
- List of Madcow Operations
Extending and Customising Madcow
Reference
For Developers