| Creating and Using Permalinks
-Creates/Saves a search -Loads/verifies the saved search -Deletes the saved search | ||
| setTimeout | 120000 | |
| openAndWait | / | (open the main interface) |
| comment | wait for the page to load. | |
| waitForDispatchCompleted | 30000 | |
| comment | Switch to searching all time. | |
| select | timelineValues | All time |
| comment | get a starting search. | |
| type | entry | source="*apache.error.log" /home/reba |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 10000 | |
| comment | Check permalink works for simple searches over all time. | |
| click | menuBug | |
| waitForElementPresent | splunksMenu | 5000 |
| clickAndWait | //label[@id='linkBuilder'] | |
| waitForDispatchCompleted | 30000 | |
| pause | 2000 | |
| verifyValue | entry | source="*apache.error.log" /home/reba |
| verifyText | eventCount | 266 results |
| comment | Switch to searching last 24 hours | |
| select | timelineValues | Last 24 hours |
| comment | Check permalink works for simple searches with relative times. | |
| type | entry | source="*apache.error.log" /home/reba |
| click | menuBug | |
| waitForElementPresent | splunksMenu | 5000 |
| clickAndWait | //label[@id='linkBuilder'] | |
| waitForDispatchCompleted | 30000 | |
| pause | 2000 | |
| verifyValue | entry | source="*apache.error.log" /home/reba |
| verifyText | eventCount | 0 results |
| verifySelectedLabel | timelineValues | Last 24 hours |
| comment | new search, to check reporting stuff | |
| type | entry | source="*access.combined.log" latrina |
| select | timelineValues | All time |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 10000 | |
| comment | go into reporting to verify permalink stuff there. | |
| verifyValue | entry | source="*access.combined.log" latrina |
| click | reportViewToggle | |
| waitForDispatchCompleted | 60000 | |
| click | rf_referer | |
| waitForDispatchCompleted | 60000 | |
| select | rbrrefererscalartype | value=top |
| waitForDispatchCompleted | 60000 | |
| verifyValue | entry | source="*access.combined.log" latrina | top limit=100 referer |
| waitForFlashChartLoaded | ||
| comment | click the permalink link. | |
| click | menuBug | |
| waitForElementPresent | splunksMenu | 5000 |
| clickAndWait | //label[@id='linkBuilder'] | |
| pause | 2000 | |
| waitForDispatchCompleted | 30000 | |
| pause | 1000 | |
| verifyVisible | rbrreferergroupby | |
| comment | Check permalinks to searches that begin with | | |
| click | logo | |
| waitForDispatchCompleted | 30000 | |
| type | entry | | metadata type=sources |
| comment | Submit the search. | |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 10000 | |
| pause | 1000 | |
| verifyElementPresent | //div[@id='r0']//div[@class='metaData']//label[@termkey='totalCount'] | |
| comment | click the permalink link. | |
| click | menuBug | |
| waitForElementPresent | splunksMenu | 5000 |
| clickAndWait | //label[@id='linkBuilder'] | |
| pause | 2000 | |
| waitForDispatchCompleted | 30000 | |
| pause | 1000 | |
| verifyValue | entry | | metadata type=sources |
| verifyElementPresent | //div[@id='r0']//div[@class='metaData']//label[@termkey='totalCount'] | |
| comment | Check some other permalinks load correctly, by going to the URLs directly. | |
| comment | try a permalink into the search view. | |
| openAndWait | /?q=source%3D%22*apache.error.log%22%20%2Fhome%2Flatrina | |
| comment | wait for the page to load. | |
| pause | 1000 | |
| waitForDispatchCompleted | 30000 | |
| verifyValue | entry | source="*apache.error.log" /home/latrina |
| verifyText | eventCount | 256 results |
| verifySelectedLabel | timelineValues | All time |
| comment | try a permalink into the report view. | |
| openAndWait | /?q=source%3D%22*access.combined.log%22%20vita%20%7C%20top%20limit%3D100%20referer | |
| comment | wait for the page to load. | |
| pause | 1000 | |
| waitForDispatchCompleted | 30000 | |
| verifyValue | entry | source="*access.combined.log" vita | top limit=100 referer |
| verifySelectedLabel | rbrrefererscalartype | top values |
| pause | 1000 | |
| waitForFlashChartLoaded | ||