Search language test
-Runs basic smoke tests on using various multi-clause searches through the UI.
openAndWait / (open the main interface)
comment Wait for page to load up
waitForDispatchCompleted 30000
store 0 loop
while storedVars.loop2<8
store javascript{storedVars.loop2++}
comment Clear search and hit report tab
type entry
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
comment **** Abstract Tests ****
type entry index::sampledata source::was1activity.txt.sample 000032e6 startmonthsago::2 | abstract maxlines=4
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText eventCount 1 result
comment **** Bucket Tests ****
type entry index::_internal thruput startmonthsago::2 | bucket total_k_processed bins=100 | stats avg(kbps)
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText //span[@class='reportSingleKey'] avg(kbps):*
comment **** timechart Tests ****
type entry index::sampledata source::http1access.log.sample startmonthsago::2 | kv access-extractions | timechart span=1m sum(bytes) by root useother=f
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText //div[@id='reportResults']//tbody[@id='reportResultBody'] *18853086*
comment **** timechart Tests ****
type entry index::sampledata source::http1access.log.sample startmonthsago::2 | kv access-extractions | chart count(action) by _time
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText //div[@id='reportResults']//tbody[@id='reportResultBody'] *11*
verifyText //div[@id='reportResults']//thead[@id='reportResultHead'] *count(action)*
comment About to perform Top Tests
type entry index::_internal startmonthsago::2 | top limit=5 group
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText //div[@id='reportResults']//tbody[@id='reportResultBody'] *pipeline*
comment **** Rare Tests ****
type entry index::sampledata source::http1access.log.sample startmonthsago::2 | rare action
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText //div[@id='reportResults']//tbody[@id='reportResultBody'] *buy*
comment **** Eval Tests ****
type entry index::sampledata source::syslogsample.log.sample startmonthsago::2 | eval sent2=sent*10 | stats avg(sent), avg(sent2)
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText //div[@id='reportResults']//tbody[@id='reportResultBody'] *39.*
verifyText //div[@id='reportResults']//tbody[@id='reportResultBody'] *395.*
comment **** Filter Tests (String) ****
type entry index::sampledata source::http1access.log.sample startmonthsago::2 | filter action="home"
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText eventCount 201 result rows
comment **** Filter Tests (Numerical) ****
type entry index::sampledata source::http1access.log.sample startmonthsago::2 | filter bytes>14000
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText eventCount 201 result rows
comment **** Fields Tests ****
type entry index::sampledata source::http1access.log.sample | fields root
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText //th/a[@class='reportColumnLabel'] root
verifyElementPresent //td/label[.='/trade']
comment **** Rename Tests ****
type entry index::sampledata source::http1access.log.sample startmonthsago::2 | rename file as page | stats count(page)
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText //div[@id='reportResults']//span[@class='reportSingleKey'] *count(page)*
comment **** Select (sql) Tests ****
type entry index::sampledata source::http1access.log.sample startmonthsago::2 | select count(_status) from results where _status > "200"
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText //div[@id='reportResults']//span[@class='reportSingleKey'] count*
verifyText //div[@id='reportResults']//span[@class='reportSingleValue'] 8
comment **** Sort Tests ****
type entry index::sampledata source::http1access.log.sample startmonthsago::2 | sort bytes desc | stats count(bytes) first(bytes)
click entrySubmit (Click submit button)
comment Wait for query to load
waitForDispatchCompleted 40000
verifyText //div[@id='reportResults']//tbody[@id='reportResultBody'] *8475*
verifyText //div[@id='reportResults']//tbody[@id='reportResultBody'] *34375*
endWhile