How to mark test as passed/failed on LambdaTest with Appium Java TestNG?

How to mark test as passed/failed on LambdaTest with Appium Java TestNG?

Hello Joe,

You can add our lambda-status hooks to your script to check whether the test is passed or failed.

For Passed Test: browser.executeScript("lambda-status=passed");

For Failed Test: driver.executeScript('lambda-status=failed');