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

Can I mark a test case as fail with Java-Cucumber?

Hi Joe,

For Failed tests, kindly add Lambda hooks below in your code: driver.executeScript('lambda-status=failed');

And for more details about Lambda Hooks, please refer to this link: