ReportExtensions Methods
PassFailStep
Passes or fails the current step depending on the provided criteria.
t.Report.PassFailStep(VerifyCondition(),
"Message for passed step",
"Message for failed step");
Syntax:
public static void PassFailStep(
this IReport report,
bool criteria,
string passed,
string failed,
bool takeScreenshot = true
)
Parameters:
Parameter
Description
report
criteria
if set to true the test step is passed.
passed
The passed result string.
failed
The failed results string.
[takeScreenshot]
if set to false no screenshot is taken for a passed result, for a failed result a screenshot is always taken.
Last updated
Was this helpful?