| We should be able to rename (alias) a sourcetype, search for that alias, rename it a second time, search for that alias, rename back to the original value, and see aliases on the homepage.
- - | ||
| setTimeout | 120000 | |
| openAndWait | / | (open the main interface) |
| waitForDispatchCompleted | 10000 | |
| type | entry | source="*access.combined.log" sourcetype="access_combined" POST |
| select | timelineValues | value=ALL_TIME |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 10000 | |
| comment | Rename the sourcetype to access_selenium_aliased... | |
| click | //div[@id='r0']//label[@termkey='sourcetype']/following::a[1] | |
| pause | 500 | |
| comment | Make sure the link is visible | |
| verifyVisible | //div[@id='r0']//label[.="Edit sourcetype alias"] | |
| comment | click the link to launch the popup. | |
| click | //div[@id='r0']//label[.="Edit sourcetype alias"] | (Click "edit sourcetype alias" link) |
| type | //input[@id='sourceTypeNew'] | access_selenium_aliased |
| click | //form[@id='sourcetypeEditForm']/div[@class='buttonRow']/div/input[@name='submit'] | (Click "Submit" button) |
| waitForDispatchCompleted | 10000 | |
| pause | 500 | |
| comment | Now search for the new sourcetype... | |
| type | entry | sourcetype="access_selenium_aliased" |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 10000 | |
| comment | Verify that we see the alias in the results scroller. If the aliasing didn't work, the label won't appear. | |
| verifyText | //div[@id='eventResults']//label[@termkey='sourcetype'] | access_selenium_aliased |
| comment | Rename the sourcetype to yet another value... | |
| click | //div[@id='r0']//label[@termkey='sourcetype']/following::a[1] | |
| pause | 500 | |
| comment | Make sure the link is visible | |
| verifyVisible | //div[@id='r0']//label[.="Edit sourcetype alias"] | |
| comment | click the link to launch the popup. | |
| click | //div[@id='r0']//label[.="Edit sourcetype alias"] | (Click "edit sourcetype alias" link) |
| click | //div[@class='metaData']/div[3]/div/ul/li[3]/label | (Click "edit sourcetype alias" link) |
| type | //input[@id='sourceTypeNew'] | access_selenium_aliased_a_second_time |
| click | //form[@id='sourcetypeEditForm']/div[@class='buttonRow']/div/input[@name='submit'] | (Click "Submit" button) |
| waitForDispatchCompleted | 10000 | |
| comment | Pausing for a few seconds: apparently the sever needs a little time to complete this action. | |
| pause | 3000 | |
| comment | Now search for the second new sourcetype... | |
| type | entry | sourcetype="access_selenium_aliased_a_second_time" |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 10000 | |
| comment | Verify that we see the second alias in the results scroller. If the aliasing didn't work, the label won't appear. | |
| verifyText | //div[@id='eventResults']//label[@termkey='sourcetype'] | access_selenium_aliased_a_second_time |
| comment | Rename the sourcetype back to the original value... | |
| click | //div[@id='r0']//label[@termkey='sourcetype']/following::a[1] | |
| pause | 500 | |
| comment | Make sure the link is visible | |
| verifyVisible | //div[@id='r0']//label[.="Edit sourcetype alias"] | |
| comment | click the link to launch the popup. | |
| click | //div[@id='r0']//label[.="Edit sourcetype alias"] | (Click "edit sourcetype alias" link) |
| click | //div[@class='metaData']/div[3]/div/ul/li[3]/label | (Click "edit sourcetype alias" link) |
| type | //input[@id='sourceTypeNew'] | access_combined |
| click | //form[@id='sourcetypeEditForm']/div[@class='buttonRow']/div/input[@name='submit'] | (Click "Submit" button) |
| waitForDispatchCompleted | 10000 | |
| comment | Pausing for a few seconds: apparently the sever needs a little time to complete this action. | |
| pause | 3000 | |
| comment | Now search for the original sourcetype... | |
| type | entry | sourcetype="access_combined" |
| click | entrySubmit | (Click submit button) |
| waitForDispatchCompleted | 10000 | |
| comment | Verify that we see the original sourcetype name in the results scroller. If resetting the alias didn't work, the label won't appear. | |
| verifyText | //div[@id='eventResults']//label[@termkey='sourcetype'] | access_combined |