cucumber.runtime
Interface ScenarioResult


public interface ScenarioResult

After Hooks that declare a parameter of this type will receive an instance of this class. This allows an After hook to inspect whether or not a Scenario failed.


Method Summary
 java.lang.String getStatus()
           
 boolean isFailed()
           
 

Method Detail

getStatus

java.lang.String getStatus()
Returns:
the most severe status of the Scenario's Steps. One of "passed", "undefined", "pending", "skipped", "failed"

isFailed

boolean isFailed()
Returns:
true if and only if getStatus() returns "false"