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(java.lang.String errorMessage)java.lang.StringbuildMessage(java.lang.String header, java.util.Set<java.lang.String> messageParts)voidcheckMandatoryInputs(java.lang.String... mandatoryInputs)voidfailWithErrorMessage(java.lang.String errorMessage)voidfailWithErrorMessage(java.lang.String errorMessage, boolean withLog, boolean withTrace)voidfailWithException(java.lang.Exception e)voidfailWithException(java.lang.Exception e, boolean withLog, boolean withStackStrace)org.openqa.selenium.WebDrivergetDriver()java.lang.StringgetMandatoryInput(java.lang.String inputKey)java.lang.StringgetOptionalInput(java.lang.String inputKey, java.lang.String defaultValue)booleanonError(java.lang.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)
-
getMandatoryInput
public java.lang.String getMandatoryInput(java.lang.String inputKey)
-
getOptionalInput
public java.lang.String getOptionalInput(java.lang.String inputKey, java.lang.String defaultValue)
-
checkMandatoryInputs
public void checkMandatoryInputs(java.lang.String... mandatoryInputs)
-
buildMessage
public java.lang.String buildMessage(java.lang.String header, java.util.Set<java.lang.String> messageParts)
-
failWithException
public void failWithException(java.lang.Exception e)
-
failWithException
public void failWithException(java.lang.Exception e, boolean withLog, boolean withStackStrace)
-
failWithErrorMessage
public void failWithErrorMessage(java.lang.String errorMessage)
-
failWithErrorMessage
public void failWithErrorMessage(java.lang.String errorMessage, boolean withLog, boolean withTrace)
-
addErrorMessage
public void addErrorMessage(java.lang.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(java.lang.Exception e)
- Overrides:
onErrorin classstep.handlers.javahandler.AbstractKeyword
-
openDriverAndLogin
protected PlansPage openDriverAndLogin() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-