What is the command to setup status in a LambdaTest App automation test? I am using Java

What is the command to setup status in a LambdaTest App automation test? I am using Java.

Hey Macy

To answer your question, You can use the below command to set the test status in the Java App automation test.

            ((JavascriptExecutor) driver).executeScript("lambda-hook: {\"action\": \"setTestStatus\",\"arguments\": {\"status\":\"failed\", \"remark\":\"This is a sample remark for failed test \"}} ");