Verify reporting functionality
setTimeout 120000
openAndWait /
pause 5000
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 switch over to report mode
click reportViewToggle
waitForDispatchCompleted 5000
comment Check the report view loaded correctly
verifyVisible reportWelcomeArrow
verifyText //div[@id='searchMenu']/h3 Fields
verifyVisible rf_host
comment Check mouseover on 'host' field
mouseOver rf_host
verifyVisible reportFieldsToolTipLayer
verifyText //div[@id='reportFieldsToolTipLayer']/p[@class='title'] host
verifyText //div[@id='reportFieldsToolTipLayer']/p[@class='subtitle'] 100% frequency / 10,000 occurences / 1 distinct value
mouseOut rf_host
verifyNotVisible reportFieldsToolTipLayer
comment Check for default click handling on 'punct' field
click rf_punct
waitForDispatchCompleted 5000
verifyVisible rbrpunctgroupby
select rbrpunctplottype value=column
verifyText reportTitleContainer top values of punct for results over all time
verifyValue entry source="*apache.error.log" | top limit=100 punct
comment Check that flash is responding
pause 1000
waitForFlashChartLoaded
comment Check for new default report on 'host'
click rf_host
waitForDispatchCompleted 5000
verifyVisible rbrhostgroupby
verifyElementNotPresent rbrpunctgroupby
verifyValue entry source="*apache.error.log" | top limit=100 host
comment click a value in the table
click //tbody[@id='reportResultBody']/tr[1]/td[2]/label
waitForDispatchCompleted 5000
comment Verify the search was formed correctly
verifyValue entry source="*apache.error.log" host="localhost"
comment Verify the results came back correctly.
verifyText //div[@id='r0']/div[1]/div[1]/label 08/08/05 01:13:31
comment Verify we left the report view, and ran in search view.
verifyNotVisible searchMenu
verifyNotVisible reportBuilder
comment switch back to report mode
click reportViewToggle
waitForDispatchCompleted 5000
comment Check all events.
click rf__raw
verifyVisible reportBuilder
verifyElementNotPresent //div[@class='errorHeader']
comment TODO set the split by punct
verifyVisible rbr_rawgroupby
select rbr_rawgroupby punct
verifyElementNotPresent //div[@class='errorHeader']
comment Check host again.
click rf_host
waitForDispatchCompleted 5000
verifyVisible rbrhostgroupby
select rbrhostplottype value=column
verifyText reportTitleContainer count of host vs. time for results over all time
verifyValue entry source="*apache.error.log" host="localhost" | timechart count(host)
comment Check that the chart options menu is working
click rbrhostoptions
verifyVisible reportBuilderOptionLayer
click //div[@id='reportBuilderOptionLayer']/ul/li/label[@action='showOutliers']
waitForDispatchCompleted 5000
verifyValue entry source="*apache.error.log" host="localhost" | timechart count(host) | outlier
click rbrhostoptions
verifyVisible reportBuilderOptionLayer
click //div[@id='reportBuilderOptionLayer']/ul/li/label[@action='usenull']
waitForDispatchCompleted 5000
verifyValue entry source="*apache.error.log" host="localhost" | timechart count(host) usenull=f | outlier
click rbrhostoptions
verifyVisible reportBuilderOptionLayer
click //div[@id='reportBuilderOptionLayer']/ul/li/label[@action='useother']
waitForDispatchCompleted 5000
verifyValue entry source="*apache.error.log" host="localhost" | timechart count(host) useother=f usenull=f | outlier
comment Verify we can switch back to top host
select rbrhostscalartype value=top
verifyText reportTitleContainer top values of host for results over all time
verifyValue entry source="*apache.error.log" host="localhost" | top limit=100 host | outlier