| openAndWait |
/ |
(open the main interface) |
| comment |
Type in our typelearner query. |
| type |
entry |
source="*access.combined.log" | typelearner |
| select |
timelineValues |
value=ALL_TIME |
| click |
entrySubmit |
(Click submit button) |
| comment |
wait for all the results and timeline to finish |
| waitForDispatchCompleted |
30000 |
|
| comment |
store the number of events this eventtype will capture |
| storeText |
//div[@id="r0"]/div[@class='typelearnerRow']/div[@class='metaData']/div[3]/span[@class='metadataField']/label |
typecount |
| verifyText |
//div[@id="r0"]/div[@class='typelearnerRow']/div[2]/label |
Add event type |
| click |
//div[@id="r0"]/div[@class='typelearnerRow']/div[2]/label |
Bring up the eventttype popup. |
| comment |
You have to pause briefly, cause the window wont exist right away |
| pause |
2000 |
|
| comment |
switch selenium over to the new window |
| selectWindow |
popup |
|
| type |
//input[@id='name'] |
firstEventType |
| click |
//input[@type='submit'] |
(Click submit button) |
| pause |
2000 |
Wait for the eventtype to finish saving. |
| comment |
Close the popup |
| click |
//input[@value='Close'] |
|
| comment |
Switch selenium back to the main window. |
| selectWindow |
|
|
| comment |
run the search for the newly created eventtype |
| type |
entry |
eventtype=firstEventType |
| select |
timelineValues |
value=ALL_TIME |
| click |
entrySubmit |
(Click submit button) |
| waitForDispatchCompleted |
30000 |
|
| comment |
verify the typelearners count is the same as the retrieved results |
| verifyText |
eventCount |
${typecount} results |
| comment |
Delete this eventtype, so it wont interfere with future test runs. |
| click |
//div[@id='r0']//label[@term='firstEventType']/following-sibling::a[@class='popperUpper contextMenuOpener'] |
. |
| waitForElementPresent |
//li/label[.='Delete eventtype'] |
|
| click |
//li/label[.='Delete eventtype'] |
|
| waitForElementPresent |
adminPopupLayer |
5000 |
| pause |
1000 |
pause a sec for rest to load up... |
| waitForElementPresent |
sbaFormElements |
5000 |
| click |
//div[@id='adminPopupLayer']//input[@type='submit' and @value='Delete'] |
|
| pause |
3000 |
|
| verifyElementNotPresent |
//div[@id='msgNotificationContainer']//td[@class='ERROR'] |
|