How to add test status in automation test in Python-selenium on LambdaTest?

How to add test status in automation test in Python-selenium on LambdaTest?

Hello Helen,

If you want to add test status in automation test in Python-selenium on LambdaTest, you can follow the below code snippet:

#testcase pass condition
if(testcase_pass = True):
	driver.execute_script("lambda-status=passed")

	print("Tests are run successfully!")
else:
	driver.execute_script("lambda-status=failed")

Here’s the GitHub repo for the same: GitHub - Elmasekar/Python-selenium-add-status: A sample repo to help you add test status in automation test in Python-selenium on LambdaTest. Run your python automation test scripts on Lambdatest.