How to mark a test case as fail in Appium using Ruby Cucumber?

How to mark a test case as fail in Appium using Ruby Cucumber?

Hi Joe,

You can use Lambda Hooks in your Appium script to mark a test case as fail using Ruby Cucumber.

Here is the syntax for the same:

  $driver.execute_script("lambda-status=failed")