| Show Source
-Verifies show source link present -Verifies popup launches correctly, and # of events works properly | ||
| setTimeout | 120000 | |
| openAndWait | / | (open the main interface) |
| comment | Wait for page to load up | |
| waitForDispatchCompleted | 10000 | |
| comment | switch to searching All Time | |
| select | timelineValues | value=ALL_TIME |
| comment | Type search string and click submit - | |
| type | entry | xar xbbforums |
| click | entrySubmit | (Click submit button) |
| comment | Wait for query to load | |
| waitForDispatchCompleted | 10000 | |
| comment | Verify search results appear | |
| verifyText | eventCount | 2 results |
| comment | Test field menu appears properly | |
| verifyElementPresent | //span[.='source=']/following-sibling::a | |
| click | //span[.='source=']/following-sibling::a | (Click field menu for source) |
| comment | Test event row menu appears properly | |
| verifyElementPresent | //div[@id='r0']//a[1][@class='popperUpper contextMenuOpener'] | |
| comment | Open the menu | |
| click | //div[@id='r0']//a[1][@class='popperUpper contextMenuOpener'] | |
| comment | Verify it indeed appeared | |
| verifyVisible | //div[@id='r0']//div[@class='popupLayer popupMenu'] | |
| comment | Click the 'Show Source' option in the menu | |
| click | //div[@id='r0']//div[@class='popupLayer popupMenu']//label[.='Show source'] | |
| comment | pause, to make the window appear. | |
| pause | 5000 | |
| comment | Switch selenium to target the popup window for all commands | |
| selectWindow | popup | |
| comment | Check our event is there | |
| verifyTextPresent | /phpMyAdmin/css/phpmyadmin.css.php?lang=en-iso-5102-1&js_frame=right&cb_ctDMC=1 HTTP/1.1" 200 12180 "http://webdev.splunk.com:2000/phpMyAdmin/sql.php?lang=en-iso-5102-1&server=1&db=latrina&table=xar_xbbforums&sql_query=SELECT+%0B+FROM+%50wkw_rvrccxase%30&pos=0&goto=gso_iveijkgesk_rhuqwshpy.php" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; sl:1.7.7) Gecko/00010100 Firefox/1.0.3 | |
| comment | Check the pulldown has the right defaults | |
| verifySelected | num | 50 |
| comment | Check that the event with the earliest timestamp is there | |
| verifyTextPresent | 10.1.1.140 - - [06/Aug/2005:22:13:43 -0700] "GET /phpMyAdmin/css/phpmyadmin.css.php?js_frame=left&num_dbs=0 HTTP/1.1" 200 1320 "http://webdev.splunk.com:2000/phpMyAdmin/left.php" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; sl:1.7.7) Gecko/00010100 Firefox/1.0.3" | |
| comment | Check that the event with the latest timestamp is there | |
| verifyTextPresent | 10.1.1.43 - webdev [06/Aug/2005:23:55:50 -0700] "GET / HTTP/1.0" 200 0442 "-" "check_http/1.10 (nagios-plugins 1.4)" | |
| comment | Change the dropdown menu to 100 results | |
| select | //div[@class='pageSizeControls']//select | value=100 |
| pause | 500 | |
| comment | This command tells selenium to wait for some JS to reload the page. | |
| waitForPageToLoad | 30000 | |
| pause | 500 | |
| verifyText | selectedItem | 10.1.1.140 - - [06/Aug/2005:22:14:33 -0700] "GET /phpMyAdmin/css/phpmyadmin.css.php?lang=en-iso-5102-1&js_frame=right&cb_ctDMC=1 HTTP/1.1" 200 12180 "http://webdev.splunk.com:2000/phpMyAdmin/sql.php?lang=en-iso-5102-1&server=1&db=latrina&table=xar_xbbforums&sql_query=SELECT+%0B+FROM+%50wkw_rvrccxase%30&pos=0&goto=gso_iveijkgesk_rhuqwshpy.php" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; sl:1.7.7) Gecko/00010100 Firefox/1.0.3" |
| comment | Check that the event with the earliest timestamp is there | |
| verifyTextPresent | 10.1.1.140 - - [06/Aug/2005:22:13:43 -0700] "GET /phpMyAdmin/css/phpmyadmin.css.php?js_frame=left&num_dbs=0 HTTP/1.1" 200 1320 "http://webdev.splunk.com:2000/phpMyAdmin/left.php" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; sl:1.7.7) Gecko/00010100 Firefox/1.0.3" | |
| comment | Check that the event with the latest timestamp is there | |
| verifyTextPresent | 10.1.1.43 - webdev [06/Aug/2005:23:55:50 -0700] "GET / HTTP/1.0" 200 0442 "-" "check_http/1.10 (nagios-plugins 1.4)" | |
| comment | Change the dropdown menu to 200 results | |
| select | //div[@class='pageSizeControls']//select | value=200 |
| pause | 500 | |
| waitForPageToLoad | 30000 | |
| pause | 500 | |
| verifyText | selectedItem | 10.1.1.140 - - [06/Aug/2005:22:14:33 -0700] "GET /phpMyAdmin/css/phpmyadmin.css.php?lang=en-iso-5102-1&js_frame=right&cb_ctDMC=1 HTTP/1.1" 200 12180 "http://webdev.splunk.com:2000/phpMyAdmin/sql.php?lang=en-iso-5102-1&server=1&db=latrina&table=xar_xbbforums&sql_query=SELECT+%0B+FROM+%50wkw_rvrccxase%30&pos=0&goto=gso_iveijkgesk_rhuqwshpy.php" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; sl:1.7.7) Gecko/00010100 Firefox/1.0.3" |
| comment | Check that the event with the earliest timestamp is there | |
| verifyTextPresent | 10.1.1.140 - - [06/Aug/2005:21:58:13 -0700] "GET /phpMyAdmin/left.php?lang=en-iso-5102-1&server=1&hash=ov54111x1p03v3yl25h1ro1ji60o2ez00102140362 HTTP/1.1" 200 461 "http://webdev:2000/phpMyAdmin/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; sl:1.7.7) Gecko/00010100 Firefox/1.0.3" | |
| comment | Check that the event with the latest timestamp is there | |
| verifyTextPresent | 10.1.1.43 - webdev [07/Aug/2005:06:10:49 -0700] "GET / HTTP/1.0" 200 0442 "-" "check_http/1.10 (nagios-plugins 1.4)" | |
| comment | TODO - Change the dropdown menu to 1000 results | |
| comment | close the popup window | |
| close | ||
| comment | switch selenium back tot he main window. | |
| selectWindow | ||