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


Parameter Type Remarks
message string Message to log

# Example

var count = I.getCount(".product")
if(count === 0){
    TEST.log.fail("There's no products on the page")

This test counts the number of occurances of the element with the product class. If there are none, "There's no products on the page" is logged with an fail status, and the overall test will fail.