Skip to content

Elmasekar/Python-selenium-add-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

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

If you want to add test status in automation test in Python-selenium on LambdaTest, you can follow the below steps. You can refer to sample test repo here.

Configure testcase

After the execution of a testcase, you have to execute a script (lambda-status) to pass "passed" or "failed" based on the execution. See the example code below:

#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")

Run your test

python lambdatest.py

Links:

LambdaTest Community