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(String errorMessage)
String
buildMessage(String header, Set<String> messageParts)
void
checkMandatoryInputs(String... mandatoryInputs)
void
failWithErrorMessage(String errorMessage)
void
failWithErrorMessage(String errorMessage, boolean withLog, boolean withTrace)
void
failWithException(Exception e)
void
failWithException(Exception e, boolean withLog, boolean withStackStrace)
org.openqa.selenium.WebDriver
getDriver()
String
getMandatoryInput(String inputKey)
String
getOptionalInput(String inputKey, String defaultValue)
boolean
onError(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)
-
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:
onError
in classstep.handlers.javahandler.AbstractKeyword
-
-