Class LogParserPublisher
- java.lang.Object
-
- org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
-
- org.jenkinsci.test.acceptance.po.PageAreaImpl
-
- org.jenkinsci.test.acceptance.po.AbstractStep
-
- org.jenkinsci.test.acceptance.plugins.logparser.LogParserPublisher
-
- All Implemented Interfaces:
CapybaraPortingLayer
,Control.Owner
,PageArea
,PostBuildStep
,Step
public class LogParserPublisher extends AbstractStep implements PostBuildStep
Helperclass for configuring the logparser plugin.- Author:
- Michael Engel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LogParserPublisher.RuleType
-
Nested classes/interfaces inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
CapybaraPortingLayerImpl.Finder<R>, CapybaraPortingLayerImpl.Resolver
-
-
Field Summary
-
Fields inherited from class org.jenkinsci.test.acceptance.po.AbstractStep
parent
-
Fields inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
driver, injector, LABEL_TO_INPUT_XPATH, time
-
Fields inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
by
-
-
Constructor Summary
Constructors Constructor Description LogParserPublisher(Job parent, String path)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setMarkOnBuildFail(boolean state)
Sets the value of the checkbox for "mark on build failed".void
setMarkOnUnstableWarning(boolean state)
Sets the value of the checkbox for "mark on unstable warning".void
setRule(Resource resource)
Sets a new rule asLogParserPublisher.RuleType.PROJECT
.void
setRule(LogParserPublisher.RuleType type, String rule)
Sets the rule type and value for it.void
setShowGraphs(boolean state)
Sets the value of the checkbox for "show graph".-
Methods inherited from class org.jenkinsci.test.acceptance.po.PageAreaImpl
control, control, createPageArea, getPage, getPath, getPath, getPath, path, self
-
Methods inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, elasticSleep, executeScript, fillIn, find, findCaption, findCaption, findIfNotVisible, getCurrentUrl, getCurrentUrlWithFragment, getElement, getPageContent, getPageSource, getPageSource, getPath, handleAlert, isHiddenOrStale, isStale, last, lastIfNotVisible, newInstance, resource, runThenConfirmAlert, runThenConfirmAlert, runThenHandleAlert, runThenHandleAlert, runThenHandleDialog, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, executeScript, fillIn, find, findIfNotVisible, getElement, getPageSource, last, lastIfNotVisible, runThenConfirmAlert, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
-
-
-
Method Detail
-
setMarkOnUnstableWarning
public void setMarkOnUnstableWarning(boolean state)
Sets the value of the checkbox for "mark on unstable warning".- Parameters:
state
- The boolean state of the checkbox
-
setMarkOnBuildFail
public void setMarkOnBuildFail(boolean state)
Sets the value of the checkbox for "mark on build failed".- Parameters:
state
- The boolean state of the checkbox
-
setShowGraphs
public void setShowGraphs(boolean state)
Sets the value of the checkbox for "show graph".- Parameters:
state
- The boolean state of the checkbox
-
setRule
public void setRule(LogParserPublisher.RuleType type, String rule)
Sets the rule type and value for it.- Parameters:
type
- The type of the parsing-rule (see:LogParserPublisher.RuleType
)rule
- Whole path to the rule if the type is aLogParserPublisher.RuleType.PROJECT
. An already configured log-parser rule if the type is aLogParserPublisher.RuleType.GLOBAL
.
-
setRule
public void setRule(Resource resource)
Sets a new rule asLogParserPublisher.RuleType.PROJECT
.- Parameters:
resource
- TheResource
object of a rule file.
-
-