| Timeline Controls
-Verifies clicking on bars in the timeline, -Verifies zoom in, zoom out, in cases where a subset of the buckets are selected, as well as when all are selected. -Walks up and down across all of the histogram scales. -Verifies that headers are always accurate, representing clicked buckets, and entire ranges when appropriate -verifies that the left-arrow and right-arrow links slide the entire timerange earlier and later. | ||
| openAndWait | / | (open the main interface) |
| setTimeout | 120000 | |
| comment | Wait for page to load up | |
| waitForDispatchCompleted | 120000 | |
| shiftKeyUp | (release the shift key, in case other failures left it down) | |
| comment | Type search string and click submit | |
| type | entry | source="*access.combined.log" |
| select | timelineValues | value=ALL_TIME |
| click | entrySubmit | (Click submit button) |
| comment | Wait for query to load | |
| waitForDispatchCompleted | 120000 | |
| verifyText | scaleControl | 1 bar = 1 hour |
| verifyText | eventCount | 4,999 results |
| verifyText | bucketDate | over all time |
| comment | Verify bucket clicking, by clicking the August 03 2005 10AM bar | |
| mouseDown | //td[@starttime='08/03/2005 10:00:00' and @duration='3600'] | |
| mouseUp | //td[@starttime='08/03/2005 10:00:00' and @duration='3600'] | |
| click | //td[@starttime='08/03/2005 10:00:00' and @duration='3600'] | |
| pause | 250 | |
| waitForDispatchCompleted | 120000 | |
| comment | Verify that the scale, number of events, and header are correct | |
| verifyText | scaleControl | 1 bar = 1 hour |
| verifyText | eventCount | 135 results |
| verifyText | bucketDate | at 10 AM on Wednesday August 3 2005 |
| comment | Zoom in | |
| click | zoomIn | |
| waitForDispatchCompleted | 120000 | |
| pause | 500 | |
| comment | verify that the scale changed. | |
| verifyText | scaleControl | 1 bar = 1 minute |
| comment | verify that event count and time header did NOT change. | |
| verifyText | eventCount | 135 results |
| verifyText | bucketDate | at 10 AM on Wednesday August 3 2005 |
| comment | verify that we've now got a timeline spanning exactly one hour | |
| verifyText | //tr[@id='outerAxis']/td[@colspan='60'] | 10AM Wednesday August 03 2005 |
| comment | Check the first axis label is 00 | |
| verifyText | //tr[@id='innerAxis']/td[1] | 00 |
| comment | Check the last axis label is 59 | |
| verifyText | //tr[@id='innerAxis']/td[60] | 59 |
| comment | verify mouseovers on bars. | |
| mouseOver | outerHistogram | dont know why, but having this here makes selenium's mouseover on the buckets not fail. |
| mouseOver | //tr[@id='mainRow']/td[1] | |
| pause | 1000 | |
| verifyVisible | histogramToolTipLayer | |
| comment | Check the timeline tooltip layer is correct on mouseover | |
| verifyText | histogramToolTipLayer | 1 results at 10:00 AM Wednesday August 3 2005 |
| mouseOver | //tr[@id='mainRow']/td[46] | |
| pause | 250 | |
| verifyText | histogramToolTipLayer | 45 results at 10:45 AM Wednesday August 3 2005 |
| mouseOver | //tr[@id='mainRow']/td[35] | |
| pause | 250 | |
| verifyText | histogramToolTipLayer | 10 results at 10:34 AM Wednesday August 3 2005 |
| comment | HANDWAVE - still need some way to verify it's hidden after mouseout | |
| comment | verify another bucket click | |
| mouseDown | //td[@starttime='08/03/2005 10:45:00' and @duration='60'] | Click the 10:45 August 03 bar |
| mouseUp | //td[@starttime='08/03/2005 10:45:00' and @duration='60'] | Click the 10:45 August 03 bar |
| click | //td[@starttime='08/03/2005 10:45:00' and @duration='60'] | Click the 10:45 August 03 bar |
| pause | 250 | |
| waitForDispatchCompleted | 120000 | |
| comment | Verify the number of events and the results header. | |
| verifyText | eventCount | 45 results |
| verifyText | bucketDate | at 10:45 AM Wednesday August 3 2005 |
| comment | zoom into second resolution | |
| click | zoomIn | |
| waitForDispatchCompleted | 120000 | |
| comment | Verify we have the correct scale, number of events, and results header | |
| verifyText | scaleControl | 1 bar = 1 second |
| verifyText | eventCount | 45 results |
| verifyText | bucketDate | at 10:45 AM Wednesday August 3 2005 |
| comment | Type in a timerange directly, to snap us all the way out to a month | |
| type | entry | source="*access.combined.log" starttime::08/01/2005:00:00:00 endtime::09/01/2005:00:00:00 |
| keyPress | entry | 27 |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 120000 | |
| comment | verify shiftclick by itself (ie with no previous clicks) selects a range | |
| shiftKeyDown | (press the shift key) | |
| mouseDown | //td[@starttime='08/03/2005 00:00:00' and @duration='86400'] | Click the August 03 bar |
| mouseUp | //td[@starttime='08/03/2005 00:00:00' and @duration='86400'] | Click the August 03 bar |
| click | //td[@starttime='08/03/2005 00:00:00' and @duration='86400'] | Click the August 03 bar |
| pause | 250 | |
| waitForDispatchCompleted | 120000 | |
| comment | If this says 715 events, and not 2,721, then we are not correctly handling the case where the user only presses shift-click in the timeline, and there was no previous click. | |
| verifyText | eventCount | 2,721 results |
| verifyText | bucketDate | August 3 through August 31 2005 |
| shiftKeyUp | (release the shift key) | |
| comment | Now click drag August 3 to 7 | |
| mouseDown | //td[@starttime='08/03/2005 00:00:00' and @duration='86400'] | mousedown the August 03 bar |
| mouseOver | //td[@starttime='08/04/2005 00:00:00' and @duration='86400'] | mouseover the August 04 bar |
| mouseOver | //td[@starttime='08/05/2005 00:00:00' and @duration='86400'] | mouseover the August 05 bar |
| mouseOver | //td[@starttime='08/06/2005 00:00:00' and @duration='86400'] | mouseover the August 06 bar |
| mouseOver | //td[@starttime='08/07/2005 00:00:00' and @duration='86400'] | mouseover the August 07 bar |
| mouseUp | //td[@starttime='08/07/2005 00:00:00' and @duration='86400'] | mouseup on the August 07 bar |
| pause | 250 | |
| waitForDispatchCompleted | 120000 | |
| verifyText | eventCount | 2,548 results |
| verifyText | bucketDate | August 3 through August 7 2005 |
| comment | Do another zoomIn, just so second shiftclick assert is in different scale | |
| click | zoomIn | |
| pause | 250 | |
| waitForDispatchCompleted | 120000 | |
| verifyText | scaleControl | 1 bar = 1 hour |
| verifyText | eventCount | 2,548 results |
| verifyText | bucketDate | August 3 through August 7 2005 |
| comment | verify shiftclick again, but this time do the first click the right half | |
| comment | first click on right | |
| mouseDown | //td[@starttime='08/06/2005 21:00:00' and @duration='3600'] | Click the 8PM August 6 bar |
| mouseUp | //td[@starttime='08/06/2005 21:00:00' and @duration='3600'] | Click the 8PM August 6 bar |
| click | //td[@starttime='08/06/2005 21:00:00' and @duration='3600'] | Click the 8PM August 6 bar |
| pause | 250 | |
| waitForDispatchCompleted | 120000 | |
| verifyText | scaleControl | 1 bar = 1 hour |
| verifyText | eventCount | 143 results |
| verifyText | bucketDate | at 9 PM on Saturday August 6 2005 |
| comment | second click on left, with shift held down | |
| shiftKeyDown | (press the shift key) | |
| mouseDown | //td[@starttime='08/06/2005 12:00:00' and @duration='3600'] | Click the 12PM August 4 bar |
| mouseUp | //td[@starttime='08/06/2005 12:00:00' and @duration='3600'] | Click the 12PM August 4 bar |
| click | //td[@starttime='08/06/2005 12:00:00' and @duration='3600'] | Click the 12PM August 4 bar |
| pause | 250 | |
| shiftKeyUp | (release the shift key) | |
| waitForDispatchCompleted | 120000 | |
| comment | Verify that the headers changed to the right values | |
| verifyText | eventCount | 251 results |
| verifyText | bucketDate | 12 PM through 9 PM Saturday August 6 2005 |
| comment | Verify that zooming out still doesnt change selection range | |
| click | zoomOut | |
| waitForDispatchCompleted | 120000 | |
| verifyText | eventCount | 251 results |
| verifyText | bucketDate | 12 PM through 9 PM Saturday August 6 2005 |
| comment | OK, Zoom into our multi-bucket range. | |
| click | zoomIn | |
| waitForDispatchCompleted | 120000 | |
| comment | handwave-handwave verify that double click works (zooms in on the bar) | |
| comment | Verify that the left-arrow right-arrow links work from CUSTOM mode | |
| click | nextTimeline | Click to shift the whole timeline right |
| waitForDispatchCompleted | 120000 | |
| verifyText | bucketDate | between 10:00:00 PM August 6 and 7:59:59 AM August 7 2005 |
| click | previousTimeline | Click to shift the whole timeline left |
| waitForDispatchCompleted | 120000 | |
| verifyText | bucketDate | 12 PM through 9 PM Saturday August 6 2005 |
| comment | Verify that the left-arrow right-arrow links work from ALL_TIME mode | |
| select | timelineValues | value=ALL_TIME |
| pause | 250 | |
| waitForDispatchCompleted | 120000 | |
| verifyText | scaleControl | 1 bar = 1 hour |
| click | nextTimeline | Click to shift the whole timeline right |
| waitForDispatchCompleted | 120000 | |
| verifySelected | timelineValues | Custom |
| verifyElementNotPresent | //div[@class='errorHeader'] | |
| verifyText | scaleControl | 1 bar = 1 hour |
| select | timelineValues | value=ALL_TIME |
| pause | 250 | |
| waitForDispatchCompleted | 120000 | |
| click | previousTimeline | Click to shift the whole timeline right |
| waitForDispatchCompleted | 120000 | |
| verifySelected | timelineValues | Custom |
| verifyElementNotPresent | //div[@class='errorHeader'] | |
| verifyText | scaleControl | 1 bar = 1 hour |
| comment | Verify that the left-arrow right-arrow links work from a relative time mode. | |
| select | timelineValues | Last 7 days |
| pause | 250 | |
| waitForDispatchCompleted | 120000 | |
| verifyText | scaleControl | 1 bar = 1 hour |
| click | nextTimeline | Click to shift the whole timeline right |
| waitForDispatchCompleted | 120000 | |
| verifySelected | timelineValues | Custom |
| verifyElementNotPresent | //div[@class='errorHeader'] | |
| verifyText | scaleControl | 1 bar = 1 hour |