Failure status Logs

Log a message to report with fail status using TEST.log.fail. This adds to the error count and will result in the overall test failing.

Example

if(I.amAt('/notFound')){
    TEST.log.fail("Product page is unavailable")
}

If the current url is at /notFound, prints "Product page is unavailable" to report as a failed validation.

Reference

Usage

TEST.log.fail(message)

Parameters

ParameterTypeRemarks
messagestringMessage to log to report
Last Updated: