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 void
addErrorMessage(java.lang.String errorMessage)
java.lang.String
buildMessage(java.lang.String header, java.util.Set<java.lang.String> messageParts)
void
checkMandatoryInputs(java.lang.String... mandatoryInputs)
void
failWithErrorMessage(java.lang.String errorMessage)
void
failWithErrorMessage(java.lang.String errorMessage, boolean withLog, boolean withTrace)
void
failWithException(java.lang.Exception e)
void
failWithException(java.lang.Exception e, boolean withLog, boolean withStackStrace)
org.openqa.selenium.WebDriver
getDriver()
java.lang.String
getMandatoryInput(java.lang.String inputKey)
java.lang.String
getOptionalInput(java.lang.String inputKey, java.lang.String defaultValue)
boolean
onError(java.lang.Exception e)
protected PlansPage
openDriverAndLogin()
void
setDriver(org.openqa.selenium.WebDriver driver)
protected void
setFailed()
protected void
setSuccess()
static void
stopMeasureWithMeta(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:
onError
in classstep.handlers.javahandler.AbstractKeyword
-
openDriverAndLogin
protected PlansPage openDriverAndLogin() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-