set operator - Search Language Test (oxiclean)
- search test: set 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 query to load
waitForDispatchCompleted 10000
comment Select 'All Time'
select //select[@id='timelineValues'] value=ALL_TIME
comment Wait for page to load up
waitForDispatchCompleted 5000
pause 5000
comment **** set failure; simple case, invalid args ****
type //textarea[@id='entry'] index::_internal | set set
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'] *Three arguments*
pause 5000