Tagging:
  • Resets the fields picker to turbo-mode.
  • Creates a tag then checks for it.
  • Creates multiple tags on a field, then checks for them.
  • Clears off the tags created.
comment Reset the field picker preference
open /v3/prefs/set?selectedKeys=host%20sourcetype%20source
openAndWait /
waitForDispatchCompleted 30000
comment Type in a query.
type entry source="*access.combined.log"
select timelineValues value=ALL_TIME
click entrySubmit (Click submit button)
waitForDispatchCompleted 30000
click allFiltersTab
waitForDispatchCompleted 30000
click //div[@id='allFiltersFilterLayer']/div[1]
comment Bring up the form for the first tag test.
click //div[@id='r0']//div[@class='metaData']/div[1]/a
click //div[@id="r0"]//div[@class='metaData']/div[1]/div[@id]//label[@layerid]
comment Try to enter an XML unsafe tag.
type tagTags tag&tag&tag
click submit
verifyAlert Oops! Tags cannot contain XML-unsafe characters.
comment Enter tag name and submit the tag
type tagTags tagtagtag
click submit
waitForDispatchCompleted 30000
comment Do the same query again.
type entry source="*access.combined.log"
select timelineValues value=ALL_TIME
click entrySubmit (Click submit button)
waitForDispatchCompleted 30000
comment Check to see if the tag shows up again.
verifyText //div[@id="r0"]//div[@class="metaData"]//span[@class="tags"]/label tagtagtag
comment Bring up form to for the multi-tag test.
click //div[@id='r0']//div[@class='metaData']/div[1]/a
click //div[@id="r0"]//div[@class='metaData']/div[1]/div[@id]//label[@layerid]
comment Enter a new tag name and submit the tag
type tagTags tag1 tag2 tag3 tag4
click submit
waitForDispatchCompleted 30000
comment Run the query again
type entry source="*access.combined.log"
select timelineValues value=ALL_TIME
click entrySubmit (Click submit button)
waitForDispatchCompleted 30000
comment Check the first tag.
verifyText //div[@id="r0"]//div[@class="metaData"]//span[@class="tags"]/label[1]/. tag1
comment Check the second tag.
verifyText //div[@id="r0"]//div[@class="metaData"]//span[@class="tags"]/label[2]/. tag2
comment Check the third tag.
verifyText //div[@id="r0"]//div[@class="metaData"]//span[@class="tags"]/label[3]/. tag3
comment Check the fourth tag.
verifyText //div[@id="r0"]//div[@class="metaData"]//span[@class="tags"]/label[4]/. tag4
comment Bring up the tagging form.
click //div[@id='r0']//div[@class='metaData']/div[1]/a
click //div[@id="r0"]//div[@class='metaData']/div[1]/div[@id]//label[@layerid]
comment Enter tag name and submit the tag
type tagTags
click submit
waitForDispatchCompleted 30000
comment E' finito.