Verify functionality around the links that switch the user to the report interface.
setTimeout 120000
openAndWait /
waitForDispatchCompleted 60000
comment Setup initial search
type entry source="*apache.error.log"
select timelineValues value=ALL_TIME
keyDown entry \13
comment verify that basic search result came back
waitForDispatchCompleted 5000
verifyText eventCount ≥10,000 results
comment verify that the 'report on this field' links work for indexed data.
comment Click the arrow next to source
pause 500
click //div[@id='r0']//label[@termkey='source']/following::a[1]
pause 1000
comment Make sure the menu item is there and is visible.
verifyElementPresent //label[@term="| top source"]
verifyVisible //div[@id='r0']//label[@term="| top source"]
verifyText //div[@id='r0']//label[@term="| top source"] Report on all sources
comment click the 'Report on all sources' link
click //div[@id='r0']//label[@term="| top source"]
waitForDispatchCompleted 60000
comment Verify that we the report title is showing.
verifyVisible reportTitleContainer
comment Verify that we the report title has the right text.
verifyText reportTitleContainer top values of source for results over all time
comment Verify that the table is showing the right columns.
verifyElementPresent //table[@id='reportTable']//th/a[.='source']
verifyElementPresent //table[@id='reportTable']//th/a[.='count']
verifyElementPresent //table[@id='reportTable']//th/a[.='percent']
comment Verify that the search in the entry field is correct.
verifyValue entry source="*apache.error.log" | top source
comment Click the 'back to search results' link
click reportViewToggle
waitForDispatchCompleted 60000
click //div[@id='filterTabs']/div[@searchkey='sourcetype']
verifyVisible //div[@key='sourcetype']//a[@term='sourcetype']
verifyText //div[@key='sourcetype']//a[@term='sourcetype'] Report on this field »
click //div[@key='sourcetype']//a[@term='sourcetype']
waitForDispatchCompleted 60000
comment Verify that we the report title has the right text.
verifyText reportTitleContainer top values of sourcetype for results over all time
comment Verify that the table is showing the right columns.
verifyElementPresent //table[@id='reportTable']//th/a[.='sourcetype']
verifyElementPresent //table[@id='reportTable']//th/a[.='count']
verifyElementPresent //table[@id='reportTable']//th/a[.='percent']
click reportViewToggle
waitForDispatchCompleted 60000
comment Now start again, with an extracted field. (switch to the access.combined file which has more keys).
type entry source="*access.combined.log" NOT nagios-plugins
click entrySubmit
waitForDispatchCompleted 60000
comment Click the arrow next to clientip
pause 500
click //div[@id='r0']//label[@termkey='clientip']/following::a[1]
pause 1000
comment Make sure the menu item is there and is visible.
verifyElementPresent //label[@term="| top clientip"]
verifyVisible //div[@id='r0']//label[@term="| top clientip"]
verifyText //div[@id='r0']//label[@term="| top clientip"] Report on all clientips
comment click the 'Report on all clientips' link
click //div[@id='r0']//label[@term="| top clientip"]
waitForDispatchCompleted 60000
comment Verify that we the report title is showing.
verifyVisible reportTitleContainer
comment Verify that we the report title has the right text.
verifyText reportTitleContainer top values of clientip for results over all time
comment Verify that the table is showing the right columns.
verifyElementPresent //table[@id='reportTable']//th/a[.='clientip']
verifyElementPresent //table[@id='reportTable']//th/a[.='count']
verifyElementPresent //table[@id='reportTable']//th/a[.='percent']
comment Verify that the search in the entry field is correct.
verifyValue entry source="*access.combined.log" NOT nagios-plugins | top clientip