How to mark the test status in the code?

How to mark the test status in the code?

Hey Charity,

Use below command for status

>executeJS(""lambda-status=passed"");
>executeJS(""lambda-status=failed"");"