How to mark a test case as fail on LambdaTest with Appium Java TestNG?

How to mark a test case as fail on LambdaTest with Appium Java TestNG?

Hello Joe,

To mark the test as failed, you can add the command below:

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