How to mark a test case as fail on LambdaTest in TestNG?

Can I mark a test case as fail in TestNG?

Hi Alex,

Yes, you can mark a test case as Fail in TestNG. Below is the sample code for the same.

For Failed Test:

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