-
Notifications
You must be signed in to change notification settings - Fork 2
Table Count Rows
timfarr edited this page May 16, 2011
·
5 revisions
Operation to count the rows for the HTML table, this allows subsequent verification commands test against the number of rows.
- equals
- greatherThan
- greaterThanOrEquals
- lessThan
- lessThanOrEquals]
[MADCOW:htmlElementReference].table.countRows.[verification command] = [number to verify]
searchResultsTable.table.countRows.equals = 1
searchResultsTable.table.countRows.greaterThan = 1
searchResultsTable.table.countRows.lessThanOrEquals = 2
The countRows operation also optionally allows the user to specify some selection criteria, so that only rows where a certain value is true will be counted.
[MADCOW:htmlElementReference].table.countRows[columnName : columnValue].[verification command] = [number to verify]
#Make sure there are no rows where suburb = 'west end'
searchResultsTable.table.countRows['Suburb' : 'West End'].equals = 0
#Make sure that 10 rows have the value 'Brisbane' in their fourth column
searchResultsTable.table.countRows['column4' : 'BRISBANE'].equals = 10
#Check that there are more than 9 rows where state = 'Queensland' and the last column contains '4000'
searchResultsTable.table.countRows['State' : 'Queensland', 'lastColumn' : '4000'].greaterThan = 9
- 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