Class AbstractEnhancedKeyword
- java.lang.Object
-
- step.handlers.javahandler.AbstractKeyword
-
- step.basic.web.selenium.keywords.helper.AbstractEnhancedKeyword
-
- Direct Known Subclasses:
ExecutionsKeywords,GenericKeywords,KeywordsKeywords,ParametersKeywords,PlansKeywords,ProjectTests,RtmKeywords,SchedulerTests
public class AbstractEnhancedKeyword extends step.handlers.javahandler.AbstractKeyword- Author:
- Jonathan Rubiero
-
-
Constructor Summary
Constructors Constructor Description AbstractEnhancedKeyword()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddErrorMessage(String errorMessage)StringbuildMessage(String header, Set<String> messageParts)voidcheckMandatoryInputs(String... mandatoryInputs)voidfailWithErrorMessage(String errorMessage)voidfailWithErrorMessage(String errorMessage, boolean withLog, boolean withTrace)voidfailWithException(Exception e)voidfailWithException(Exception e, boolean withLog, boolean withStackStrace)org.openqa.selenium.WebDrivergetDriver()StringgetMandatoryInput(String inputKey)StringgetOptionalInput(String inputKey, String defaultValue)booleanonError(Exception e)protected PlansPageopenDriverAndLogin()voidsetDriver(org.openqa.selenium.WebDriver driver)protected voidsetFailed()protected voidsetSuccess()static voidstopMeasureWithMeta(step.functions.io.OutputBuilder output)
-
-
-
Method Detail
-
stopMeasureWithMeta
public static void stopMeasureWithMeta(step.functions.io.OutputBuilder output)
-
checkMandatoryInputs
public void checkMandatoryInputs(String... mandatoryInputs)
-
failWithException
public void failWithException(Exception e)
-
failWithException
public void failWithException(Exception e, boolean withLog, boolean withStackStrace)
-
failWithErrorMessage
public void failWithErrorMessage(String errorMessage)
-
failWithErrorMessage
public void failWithErrorMessage(String errorMessage, boolean withLog, boolean withTrace)
-
addErrorMessage
public void addErrorMessage(String errorMessage)
-
setSuccess
protected void setSuccess()
-
setFailed
protected void setFailed()
-
setDriver
public void setDriver(org.openqa.selenium.WebDriver driver)
-
getDriver
public final org.openqa.selenium.WebDriver getDriver()
-
onError
public boolean onError(Exception e)
- Overrides:
onErrorin classstep.handlers.javahandler.AbstractKeyword
-
-