How can I mark a test case as fail on LambdaTest with MSTest framework?

How can I mark a test case as fail on LambdaTest with MSTest framework?

Hi Emma!

To mark a test case as fail on LambdaTest with MSTest framework, you need to add the below LambdaTest hooks in your code.

driver.executeScript('lambda-status=failed');

For more details about LambdaTest hooks, please refer to our documentation.