Live Splunk
-Loads/verifies the saved query
-Changes query to live splunk
-Creates email/rss notification
-Verifies livesplunk rss/homepage
openAndWait / (open the main interface)
waitForDispatchCompleted 30000
clickAndWait //a[@href='/admin/settings']
clickAndWait //a[@href='/admin/users']
clickAndWait //td[.='admin']/following::a[.='Edit'][1] click the first edit link following admin.
verifyElementNotPresent //select[@name='userType'] User type dropdown
clickAndWait //a[@href='/admin/users']
clickAndWait //input[@type='button']
type //input[@name='name'] power
type //input[@name='password'] power
type //input[@name='passwordconfirm'] power
type //input[@name='realName'] Power Guy
select //select[@name='userType'] value=Power
clickAndWait //input[@type="submit"]
verifyText //div[@class='noticeHeader'] user power created successfully.
openAndWait / (we want to log out, but in selenium land we have to get back to main interface to do so)
waitForDispatchCompleted 30000
clickAndWait //a[@id='logout']
type //input[@name='usr'] power
type //input[@name='pwd'] power
clickAndWait //input[@type='submit'] 6000
openAndWait /
waitForDispatchCompleted 10000
verifyTextPresent 42,129
type entry meta::all NOT get maxresults::100000
click entrySubmit (Click submit button)
waitForDispatchCompleted 10000
verifyText //span[@id='eventsCount'] (37,216)
click //a[@id='savedSplunksLink']
click //label[@layerid='saveCurrentSplunk']
type splunkName powerUserSavedSplunk
click //input[@type='submit' and @value='Save']
waitForDispatchCompleted 10000
verifyElementPresent //label[.='powerUserSavedSplunk'] check for this label (it'll be in invisible, but there in the saved splunks menu)
clickAndWait //a[.="My Account"] My Account
clickAndWait //div[@id="splunksTab"]/a/h2 Click the splunks tab
verifyElementPresent //td[.='powerUserSavedSplunk'] check that the splunk is present here in the admin section
clickAndWait //td[.='powerUserSavedSplunk']/following::a[3] click the first make live link following the saved splunk we want.
type //input[@name='name'] powerUserLiveSplunk
type //input[@name='runEveryX'] 30
type //input[@name='quantity'] 35
clickAndWait //input[@type='submit'] Submit
verifyText //div[@class='noticeHeader'] Live Splunk powerUserLiveSplunk created successfully.
clickAndWait //a[.='powerUserLiveSplunk'] Click link to edit the live splunk
clickAndWait //input[@type='submit'] Submit the edit form
verifyText //div[@class='noticeHeader'] Live Splunk powerUserLiveSplunk updated.
openAndWait / (open the main interface)
waitForDispatchCompleted 30000
type entry firefox
click entrySubmit (Click submit button)
waitForDispatchCompleted 10000
verifyText //span[@id='eventsCount'] (1,348)
click //a[@id='savedSplunksLink']
click //label[@layerid='saveCurrentSplunk']
type splunkName firefox
click //input[@type='submit' and @value='Save']
waitForDispatchCompleted 10000
clickAndWait //a[@id='makeLiveLink'] click on Make Live
type //input[@name='name'] firefox
type //input[@name='runEveryX'] 1
type //input[@name='quantity'] 1
pause 1000
check createRss Click 'createRss' radio
click //input[@type='submit'] Submit
pause 1000
openAndWait / (open the main interface)
waitForDispatchCompleted 30000
verifyText //label[@term='firefox '] firefox
clickAndWait //a[@type='application/rss+xml'] 3000
verifyTextPresent firefox firefox
openAndWait / (open the main interface)
waitForDispatchCompleted 30000
click //a[@id='savedSplunksLink']
pause 1000
clickAndWait //label[@href='/admin/splunks'] 6000
clickAndWait //a[@href='/admin/splunks/saved'] 6000
clickAndWait //td[.='firefox']/following::a[.='Delete'][1] delete firefox
assertConfirmation Are you sure you want to delete this Splunk?
verifyText //div[@class='errorHeader'] You must remove the Live Splunk associated with this Saved Splunk before you delete it..
clickAndWait //a[@href='/admin/splunks/livesplunks'] 6000
click //input[@type='checkbox' and @name='liveSplunkId'] click powerUserLiveSplunk checkbox
clickAndWait //div[@class="secondary"]/input[@value='Delete'] click delete button
verifyText //div[@class='noticeHeader'] you have deleted Live Splunk powerUserLiveSplunk.
click //input[@type='checkbox' and @name='liveSplunkId'] click firefox checkbox
clickAndWait //div[@class="secondary"]/input[@value='Delete'] click delete button
verifyText //div[@class='noticeHeader'] you have deleted Live Splunk firefox.
clickAndWait //a[@href='/admin/splunks/saved'] 6000
clickAndWait //td[.='firefox']/following::a[.='Delete'][1] delete firefox saved splunk
assertConfirmation Are you sure you want to delete this Splunk?
verifyText //div[@class='noticeHeader'] you have deleted Saved Splunk firefox.
clickAndWait //td[.='powerUserSavedSplunk']/following::a[.='Delete'][1] delete powerUserSavedSplunk saved splunk
assertConfirmation Are you sure you want to delete this Splunk?
verifyText //div[@class='noticeHeader'] you have deleted Saved Splunk powerUserSavedSplunk.