Add Network data input
-Adds new TCP input, verify input messaging, add UDP input verify messaging, delete both inputs.
open / (open the main interface)
comment Wait for page to load up
waitForDispatchCompleted 30000
comment Click admin link
clickAndWait //a[@href='/admin/settings']
selectWindow queryFetcher (hereafter, all selenium commands will act within the context of this iframe)
comment Click datainputs link
clickAndWait //a[@href='/admin/datainputs'] (Go to the datainputs homepage)
comment Click Network link
clickAndWait //a[@href='/admin/datainputs/network'] (Go to the network ports list page)
comment Attempt to create a TCP Network input
comment Click add data
clickAndWait //input[@type='submit']
comment tcp is the default..
click //input[@id='tcp'] check the tcp input.
clickAndWait //input[@type='submit']
comment Verify Notice present
verifyText //div[@class='noticeHeader']/b Added tcp://9998
comment try to do an edit -- test to not recreate SPL-6667
clickAndWait //td[.='9998']//following-sibling::td/a[.='Edit'] click edit for tcp://9998
select //select[@name='dataInputAutoSourceElement'] Manual
type //input[@name='dataInputAutoSourceElementText'] selenium_test_sourcetype
clickAndWait //input[@type='submit']
comment Verify Notice present
verifyText //div[@class='noticeHeader']/b Saved tcp://9998
comment Attempt to create a UDP Network input
comment Click add data
clickAndWait //input[@type='submit']
comment select udp
click //input[@id='udp'] check the udp input.
comment Click Submit
clickAndWait //input[@type='submit']
comment Verification Notice present
verifyText //div[@class='noticeHeader']/b Added udp://514
comment try to do an edit -- test to not recreate SPL-6667
clickAndWait //td[.='514']//following-sibling::td/a[.='Edit'] click edit for udp://514
select //select[@name='dataInputAutoSourceElement'] Manual
type //input[@name='dataInputAutoSourceElementText'] selenium_test_sourcetype
clickAndWait //input[@type='submit']
comment Verification Notice present
verifyText //div[@class='noticeHeader']/b Saved udp://514
clickAndWait //td[.='9998']//following-sibling::td/a[.='Remove'] Click the remove link
comment Verify error message the confirm message in the code has 2 spaces after the word Are... setting it that way for this test.
assertConfirmation Are  you sure you want to remove this data input?
verifyText //div[@class='noticeHeader']/b Removed tcp://9998
clickAndWait //td[.='514']//following-sibling::td/a[.='Remove'] Click the remove link
comment Verify error messagethe confirm message in the code has 2 spaces after the word Are... setting it that way for this test.
assertConfirmation Are  you sure you want to remove this data input?
verifyText //div[@class='noticeHeader']/b Removed udp://514