| Eating Data
-Verifies basic searching, searching by time. -tests some cases of searching for weird characters, -Verifies event count and server messages | ||
| setTimeout | 120000 | |
| openAndWait | / | (open the main interface) |
| waitForDispatchCompleted | 10000 | |
| comment | Type search string and click submit | |
| type | entry | source="*apache.error.log" |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 10000 | |
| comment | Verify 0 search results with default time range set to the default relative value. | |
| verifyText | eventCount | 0 results |
| comment | Switch to searching all time. | |
| select | timelineValues | value=ALL_TIME |
| pause | 200 | |
| waitForDispatchCompleted | 10000 | |
| comment | Verify we get search results in ALL TIME. | |
| verifyText | eventCount | ≥10,000 results |
| comment | Verify we get only one value for each of source, host and sourcetype. | |
| verifyText | //div[@searchkey='source']/span[@class='count'] | (≥1) |
| verifyText | //div[@searchkey='host']/span[@class='count'] | (≥1) |
| verifyText | //div[@searchkey='sourcetype']/span[@class='count'] | (≥1) |
| comment | Verify that we dont explode on xml-unsafe characters in the search string | |
| type | entry | "table=xar_xbbforums" NOT "+foo&bar<baz>bat\cux" |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 60000 | |
| comment | Verify we do get our 2 events back for this search | |
| verifyText | eventCount | 2 results |