TEST.log.fail

Log a message with pass status

Usage

TEST.log.pass(message)
Parameter Type Remarks
message string Message to log

# Example

var count = I.getCount(".product")
if(count !== 0){
    TEST.log.pass("There's " + count + " products on the page")
}

This test counts the number of occurances of the element with the product class. If there are products on the page, it logs the count with a pass status.