Package com.thoughtworks.gauge
Class StepDetails
- java.lang.Object
-
- com.thoughtworks.gauge.StepDetails
-
public class StepDetails extends Object
Holds the information about the current step executing at runtime.
-
-
Constructor Summary
Constructors Constructor Description StepDetails()StepDetails(String text, boolean isFailing, String stackTrace, String errorMessage)StepDetails(String text, String dynamicText, boolean isFailing, String stackTrace, String errorMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDynamicText()StringgetErrorMessage()BooleangetIsFailing()StringgetStackTrace()StringgetText()
-
-
-
Method Detail
-
getIsFailing
public Boolean getIsFailing()
- Returns:
- True if the current spec or scenario or step is failing due to error.
-
getText
public String getText()
- Returns:
- The name of the step as given in the spec file.
-
getDynamicText
public String getDynamicText()
- Returns:
- The step text with values of dynamic parameters instead of placeholders.
Return the same value as
textin case of static parameters.
-
getStackTrace
public String getStackTrace()
-
getErrorMessage
public String getErrorMessage()
-
-