| setTimeout |
120000 |
|
| openAndWait |
/ |
(open the main interface) |
| waitForDispatchCompleted |
30000 |
|
| comment |
Type in a search |
| type |
entry |
source="*apache.error.log" /home/reba/public_html/images/bullet_image.gif startmonthsago=72 |
| click |
entrySubmit |
(Click submit button) |
| waitForDispatchCompleted |
10000 |
|
| comment |
Open the search menu |
| click |
menuBug |
|
| waitForElementPresent |
splunksMenu |
5000 |
| comment |
click 'save this splunk' |
| click |
saveThisSplunk |
|
| waitForElementPresent |
adminPopupLayer |
5000 |
| pause |
2000 |
|
| comment |
Give it a name |
| type |
//div[@id='adminPopupLayer']//input[@name='name'] |
alert-test-2 |
| comment |
switch to the 'Schedule' tab |
| click |
alertOptionsLink |
|
| comment |
HERE DOWN SHOULD BE THE SAME IN BOTH TESTS |
| comment |
check the 'run this on a schedule' checkbox |
| click |
enableSched |
|
| comment |
Verify that it loads in 'basic' mode. |
| verifyVisible |
basicschedule |
|
| verifyNotVisible |
cronschedule |
|
| comment |
Check that clicking 'cron' switches it to cron mode. |
| click |
basicOrCron_cron |
|
| verifyNotVisible |
basicschedule |
|
| verifyVisible |
cronschedule |
|
| comment |
Entering a cron string that IS in the pulldown, and switch back to basic. |
| type |
cronschedule |
0 0 * * * |
| click |
basicOrCron_basic |
|
| comment |
check visibilities are right |
| verifyVisible |
basicschedule |
|
| verifyNotVisible |
cronschedule |
|
| comment |
pulldown should now show 'day at midnight' |
| verifySelected |
basicschedule |
day at midnight |
| comment |
switch the basic fields to '30 minutes', switch back to cron |
| select |
basicschedule |
30 minutes |
| click |
basicOrCron_cron |
|
| comment |
cron string should be correct. |
| verifyValue |
cronschedule |
*/2 * * * * |
| comment |
HERE UP SHOULD BE THE SAME IN BOTH TESTS |
| click |
//div[@id='adminPopupLayer']//input[@type='submit' and @value='Save'] |
|
| pause |
2000 |
|
| comment |
Verify status message appears |
| verifyText |
//div[@id='msgNotificationContainer']//td[@class='INFO'] |
Saved search alert-test-2 was updated. |
| waitForDispatchCompleted |
30000 |
|
| openAndWait |
/ |
Go back to the home page to clear out the search |
| comment |
Wait for page to load up |
| waitForDispatchCompleted |
30000 |
|
| comment |
check the menu |
| comment |
verify it went into the 'saved searches' menu |
| click |
menuBug |
|
| waitForElementPresent |
splunksMenu |
5000 |
| click |
savedSplunksMenu |
|
| waitForElementPresent |
//label[@id='savedSplunksMenu']//label[.='alert-test-2'] |
5000 |
| comment |
Go into admin and delete it. |
| clickAndWait |
//a[.='Admin'] |
|
| selectWindow |
queryFetcher |
(hereafter, all selenium commands will act within the context of this iframe |
| comment |
Go to saved searches page |
| clickAndWait |
//a[@href='/admin/saved'] |
|
| pause |
3000 |
|
| comment |
Verify the schedule it ended up with looks right |
| verifyText |
//td[.='alert-test-2']/following-sibling::td[2] |
* Every 30 minutes * |
| comment |
Delete it. |
| check |
//td[.='alert-test-2']/preceding-sibling::td/input[@type='checkbox'] |
Check the box for that saved search. |
| clickAndWait |
//a[.='delete'] |
Click the delete link |
| assertConfirmation |
Are you sure you want to delete the selected searches? |
|
| selectWindow |
|
(hereafter, all selenium commands will act within the context of this iframe |