sort operator - Search Language Test (oxiclean)
- search test: sort operator through the UI.
open / (open the main interface)
comment Wait for page to load up
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 40000
comment Select 'All Time'
select //select[@id='timelineValues'] value=ALL_TIME
comment Wait for page to load up
waitForDispatchCompleted 5000
comment **** Sort ascending; simple case ****
type //textarea[@id='entry'] index::sampledata sourcetype::access_combined | sort clientip a
click //input[@id='entrySubmit'] (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 100000
comment Validate order of known IP address value (sort ascending)
verifyText //div[@id='r0']//pre 10.1.1.0*
comment **** Sort descending; simple case ****
type //textarea[@id='entry'] index::sampledata sourcetype::access_combined | sort clientip d
click //input[@id='entrySubmit'] (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 100000
comment Validate order of known IP address value (sort descending)
verifyText //div[@id='r0']//pre 10.1.1.1*
comment **** Sort failure; simple case, no args ****
type //textarea[@id='entry'] index::sampledata sourcetype::access_combined | sort
click //input[@id='entrySubmit'] (Click submit button)
comment Expect and validate error notification due to missing args
waitForText //div[@id='msgNotificationContainer']//td[@class='ERROR'] *No fields to sort*