| chart operator - Search Language Test (oxiclean)
- search test: chart operator through the UI. | ||
| comment | splunk> start with '/' | |
| open | / | (open the main interface) |
| comment | Wait for server response 'completed' | |
| waitForDispatchCompleted | 5000 | |
| comment | Clear search and hit report tab | |
| type | //textarea[@id='entry'] | |
| click | //input[@id='entrySubmit'] | (Click submit button) |
| comment | Wait for server response 'completed' | |
| waitForDispatchCompleted | 8000 | |
| comment | **** Chart Simple Case, Timechart Style **** | |
| type | //textarea[@id='entry'] | index::_internal | chart avg(instantaneous_*) by _time |
| click | //input[@id='entrySubmit'] | (Click submit button) |
| comment | Wait for server response 'completed' | |
| waitForDispatchCompleted | 5000 | |
| comment | Validate columns _time, avg(instantaneous_eps) and avg(instantaneous_kbps) appear in the report | |
| verifyText | //table[@id='reportTable']//th[@id='rpc1']//a[@class='reportColumnLabel'] | _time |
| verifyText | //table[@id='reportTable']//th[@id='rpc2']//a[@class='reportColumnLabel'] | avg(instantaneous_eps) |
| verifyText | //table[@id='reportTable']//th[@id='rpc3']//a[@class='reportColumnLabel'] | avg(instantaneous_kbps) |
| comment | Wait for server response 'completed' | |
| waitForDispatchCompleted | 100000 | |
| comment | Clear search and hit report tab | |
| type | //textarea[@id='entry'] | |
| click | //input[@id='entrySubmit'] | (Click submit button) |
| comment | Wait for server response 'completed' | |
| waitForDispatchCompleted | 40000 | |
| comment | Select 'Last 24 Hours' | |
| select | //select[@id='timelineValues'] | value=starthoursago=24 |
| comment | Wait for server response 'completed' | |
| waitForDispatchCompleted | 5000 | |
| comment | **** Chart failure; simple case, no args **** | |
| type | //textarea[@id='entry'] | index::_internal | chart |
| click | //input[@id='entrySubmit'] | (Click submit button) |
| comment | Expect and validate error notification due to missing args | |
| waitForText | //div[@id='msgNotificationContainer']//td[@class='ERROR'] | Error* |
| verifyText | //div[@id='msgNotificationContainer']//td[@class='ERROR'] | *data field(s) to chart* |
| comment | **** Chart failure; simple case, invalid args **** | |
| type | //textarea[@id='entry'] | index::_internal | chart chart |
| click | //input[@id='entrySubmit'] | (Click submit button) |
| comment | Expect and validate error notification due to invalid args | |
| waitForText | //div[@id='msgNotificationContainer']//td[@class='ERROR'] | Error* |
| verifyText | //div[@id='msgNotificationContainer']//td[@class='ERROR'] | *Invalid*chart* |
| comment | **** Failure with no args **** | |
| type | //textarea[@id='entry'] | index::_internal | chart |
| click | //input[@id='entrySubmit'] | (Click submit button) |
| comment | Expect and validate error notification due to no args | |
| waitForText | //div[@id='msgNotificationContainer']//td[@class='ERROR'] | Error* |
| verifyText | //div[@id='msgNotificationContainer']//td[@class='ERROR'] | *Must specify data field* |