How to mark test as passed/failed on LambdaTest?

How can I mark test as passed/failed on LambdaTest?

1 Like

Hello Tim,

This will require the usage of the below hook to mark test as fail on LambdaTest in the JS-TestCafe framework:

driver.executeScript('lambda-status=failed');

Hi, How can I pass the reason of why the step was failed?

Hi Yos,

You can enclose the code within a try-catch block, where if the test runs without any issues, it will be labeled as Passed. However, if an exception occurs during the test execution, the catch block will handle it and mark the test as failed.