Verify field extractor
openAndWait /?q=apache
type entry source="*apache.error.log"
select timelineValues value=ALL_TIME
keyDown entry \13
waitForDispatchCompleted 5000
click //div[@id='r0']/a
verifyVisible //div[@id='r0']/div[@class='popupLayer popupMenu']
verifyVisible //div[@id='r0']/div[@class='popupLayer popupMenu']/ul/li/label[text() = 'Extract field']
click //div[@id='r0']/div[@class='popupLayer popupMenu']/ul/li/label[text() = 'Extract field']
waitForPopUp popupBig 1000
selectWindow popupBig
waitForElementPresent saveLayer wait for the last HTML element to load
comment Check that form elements are populated
verifyText sampleEvent [Mon Aug 8 01:13:31 2005] [error] [client 10.1.1.140] File does not exist: /usr/local/apache/htdocs/favicon.ico
verifyValue examples
verifyValue restrictto sourcetype=apache_error
comment enter a test value to begin extraction
type examples favicon
clickAndWait //input[@name='preview']
verifyText //div[@id='generatedRules']/ul/li[1]/span (?:[^:]*:){3} /\w+/\w+/\w+_\w+/\w+/(\w+)
verifyText //div[@id='generatedRules']/ul/li[2]/span (?:[^:]*:){3} /\w+/\w+/\w+_\w+/\w+/(\w+_\w+)
verifyText //div[@id='generatedRules']/ul/li[3]/span (?:[^:]*:){3} /\w+/\w+/\w+/\w+/(\w+)
verifyText //div[@id='extractedFields']/ul/li[1]/span addons
verifyText //div[@id='extractedFields']/ul/li[4]/span bullet_image
comment click one of the extractions to remove
clickAndWait //div[@id='extractedFields']/ul/li[1]/a/img
verifyText //div[@id='extractedFields']/ul/li[1]/span bullet_image
verifyText //div[@id='extractedFields']/ul/li[2]/span favicon
verifyText //div[@id='extractedFields']/ul/li[3]/span addons
verifyValue //div[@id='extractedFields']/ul/li[3]/@class excluded
comment click extraction term again to add back
clickAndWait //div[@id='extractedFields']/ul/li[3]/a/img
verifyText //div[@id='extractedFields']/ul/li[1]/span addons
comment clear examples and check for warning
type examples
click //input[@name='preview']
verifyAlert *at least one*
comment check for save dialog
type examples favicon
click startSave
verifyVisible saveLayer
verifyVisible fieldName
click //div[@id='saveLayer']//div[@class='secondary']/input
verifyNotVisible fieldName
close
selectWindow