| select operator - Search Language Test (oxiclean)
- search test: select operator through the UI. | ||
| comment | splunk> start with '/' | |
| open | / | (open the main interface) |
| comment | Wait for server response 'completed' | |
| waitForDispatchCompleted | 5000 | |
| comment | Change time line to 'All Time' | |
| select | //select[@id='timelineValues'] | value=ALL_TIME |
| 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 | 10000 | |
| comment | **** Select Simple Case "from results" **** | |
| type | //textarea[@id='entry'] | index::_internal | select _punct from results |
| click | //input[@id='entrySubmit'] | (Click submit button) |
| comment | Wait for server response 'completed' | |
| waitForDispatchCompleted | 10000 | |
| comment | Validate field _PUNCT appears in the results | |
| verifyText | //div[@id='r0']//div[@class='metaData'] | *punct::* |
| 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 | **** Select Simple Case "from resultstable" **** | |
| type | //textarea[@id='entry'] | index::_internal | select _punct from resultstable |
| click | //input[@id='entrySubmit'] | (Click submit button) |
| comment | Wait for server response 'completed' | |
| waitForDispatchCompleted | 10000 | |
| comment | Validate field _PUNCT appears in the results | |
| verifyText | //div[@id='r0']//div[@class='metaData'] | *punct::* |
| 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 | **** Select (7) fields using DB2 data **** | |
| type | //textarea[@id='entry'] | index::sampledata | select _LEVEL, _TID, _FUNCTION, _NODE, _APPLICATION, _START, _STOP from results |
| click | //input[@id='entrySubmit'] | (Click submit button) |
| comment | Wait for server response 'completed' | |
| waitForDispatchCompleted | 5000 | |
| comment | Validate field _LEVEL appears in the results | |
| verifyText | //div[@id='r0']//div[@class='metaData'] | *LEVEL=* |
| comment | Validate field _TID appears in the results | |
| verifyText | //div[@id='r0']//div[@class='metaData'] | *TID=* |
| comment | Validate field _FUNCTION appears in the results | |
| verifyText | //div[@id='r0']//div[@class='metaData'] | *FUNCTION=* |
| comment | Validate field _NODE appears in the results | |
| verifyText | //div[@id='r0']//div[@class='metaData'] | *NODE=* |
| comment | Validate field _APPLICATION appears in the results | |
| verifyText | //div[@id='r0']//div[@class='metaData'] | *APPLICATION=* |
| comment | Validate field _START appears in the results | |
| verifyText | //div[@id='r0']//div[@class='metaData'] | *START=* |
| comment | Validate field _STOP appears in the results | |
| verifyText | //div[@id='r0']//div[@class='metaData'] | *STOP=* |
| comment | **** Select failure; simple case, invalid args **** | |
| type | //textarea[@id='entry'] | index::_internal | select _punct from |
| 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'] | *error*sql query* |