Timeline - Custom controls
-Verifies that hardcoded starttime and endtime terms move the interface into Custom mode.
-Verifies functionality around the "custom" text fields, typing into them, using up-arrow down arrow, hitting enter.
setTimeout 120000
openAndWait / (open the main interface)
comment Wait for page to load up
waitForDispatchCompleted 120000
comment Type search string and click submit
type entry source="*access.combined.log" starttime::11/05/2007:15:00:00 endtime::11/12/2007:15:00:00
click entrySubmit (Click submit button)
waitForDispatchCompleted 120000
comment Verify that 'custom' is now selected.
verifySelected timelineValues Custom
comment Verify that it's displaying November 5th 2007
verifyValue startMonth 11
verifyValue startDate 05
verifyValue startYear 2007
verifyValue startHours 15
verifyValue startMinutes 00
verifyValue startSeconds 00
comment test the up/dn date advancer, across a year boundary
click startMonth
keyPress startMonth \38
verifyValue startMonth 12
keyPress startMonth \38
keyPress startMonth \38
keyPress startMonth \38
keyPress startMonth \38
verifyValue startMonth 04
verifyValue startYear 2008
comment test down arrow in the secodns field, wraps the date completely around backward in time.
click startSeconds
keyPress startSeconds \40
verifyValue startSeconds 59
verifyValue startSeconds 59
verifyValue startHours 14
verifyValue startMinutes 59
verifyValue startSeconds 59
comment test up arrow in the end seconds field, wraps the date completely around forward
click endSeconds
keyPress endSeconds \38
verifyValue endSeconds 01
keyPress endSeconds \38
verifyValue endSeconds 02
comment handwave-handwave Verify that switching to relative ranges from custom works
comment handwave-handwave Verify that switching from custom to relative ranges works
comment handwave-handwave Verify that switching from custom to relative ranges works
comment handwave-handwave verify the old timefields interactions, typing in dates, using uparrow downarrow, still work in CUSTOM mode.
comment verify that the clear link in CUSTOM mode returns us to the default timerange.
comment Use time controls to go out to one month.
type startMonth 08
type startDate 01
type startYear 2005
type startHours 00
type startMinutes 00
type startSeconds 00
type endMonth 08
type endDate 31
type endYear 2005
type endHours 23
type endMinutes 59
type endSeconds 59
pause 200
comment FIXME - CUSTOM Time stuff is still a little screwy and for now we have to submit twice.
click entrySubmit (Click submit button)
pause 500
waitForDispatchCompleted 120000
comment Check that our timeline has the right axis labels
verifyText //tr[@id='outerAxis']//td[1] August 2005
verifyText //tr[@id='innerAxis']/td[1] 01
verifyText //tr[@id='innerAxis']/td[31] 31
comment The Clear link should break us out of custom, and return us to 'last 24 hours'
click clearLink
verifySelected timelineValues Last 24 hours