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

Type: IReport The report interface that shall be passed or failed. Typically t.Report in a TestStep method.

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