Share Splunks
-Creates/Saves a query
-Creates a user
-shares splunk across users
setTimeout 120000
openAndWait / (open the main interface)
waitForDispatchCompleted 30000
type entry ge*
click entrySubmit (Click submit button)
waitForDispatchCompleted 10000
verifyText //span[@id='eventsCount'] (4,992)
click //a[@id='savedSplunksLink']
click //label[@layerid='saveCurrentSplunk']
type splunkName fooShared
click //input[@type='submit' and @value='Save']
waitForDispatchCompleted 10000
openAndWait / (open the main interface)
waitForDispatchCompleted 10000
click //a[@id='savedSplunksLink']
pause 1000
clickAndWait //label[@href='/admin/splunks'] Click 'Manage my Splunks'
pause 1000
click //td[.='fooShared']/following::a[.='Edit'][1] Click 'Edit'
pause 1000 1 second pause
check isGlobal_on shared radio button
clickAndWait //input[@type='submit']
openAndWait / (open the main interface)
waitForDispatchCompleted 30000
clickAndWait //a[@href='/admin/settings']
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'] submit
openAndWait / (open the main interface)
waitForDispatchCompleted 30000
pause 1000
click //a[@id='savedSplunksLink']
click //div[@id='splunksMenu']
pause 1000
click //label[@term='ge* ']
waitForDispatchCompleted 10000
verifyText //span[@id='eventsCount'] (4,992)
clickAndWait //a[@id='logout']
type //input[@name='usr'] power
type //input[@name='pwd'] power
clickAndWait //input[@type='submit'] submit
waitForDispatchCompleted 10000
click //a[@id='savedSplunksLink']
pause 2000
click //div[@id='splunksMenu']
click //label[@term='ge* ']
waitForDispatchCompleted 10000
verifyText //span[@id='eventsCount'] (4,992)
clickAndWait //a[@id='logout']
type //input[@name='usr'] admin
type //input[@name='pwd'] changeme
clickAndWait //input[@type='submit']
waitForDispatchCompleted 10000
click //a[@id='savedSplunksLink']
pause 2000
click //label[@href='/admin/splunks'] Click 'Manage my Splunks'
pause 2000
clickAndWait //td[.='fooShared']/following::a[.='Delete'][1] click the first delete link following power.
assertConfirmation Are you sure you want to delete this Splunk?
openAndWait / (open the main interface)
waitForDispatchCompleted 30000
clickAndWait //a[@href='/admin/settings']
clickAndWait //a[@href='/admin/users']
clickAndWait //td[.='power']/following::a[.='Delete'][1] click the first delete link following power.
assertConfirmation Are you sure you want to delete this user?
verifyText //div[@class='noticeHeader'] user 'power' has been deleted.