lczub / TestLink-API-Python-client

A Python client to use the TestLink API
104 stars 63 forks source link

how to only run cases that have not been executed or the last execution record is failed #100

Closed CamilleDZ closed 6 years ago

CamilleDZ commented 6 years ago

Dear Dev, I use getTestCasesForTestPlan() to get all the testcases unter the plan I specified, but I have a question ,how to only run failed and cases that have not been executed? for exampleI have run a test, which inclued 330 cases, 300 passed, 20 failed ,and 10 have not been execued. I want to run the test again, but only run the 30 which are not passed, how can I do this in my code ?

lczub commented 6 years ago

Hello CamilleDZ,

I guess following should extract you all tests, which have currently a failed status myTestLink.getTestCasesForTestPlan(newTestPlanID_A, executestatus='f')

you can find additional samples of using getTestCasesForTestPlan in example/TestLinkExample.py

Regards Luiko

lczub commented 6 years ago

No additional feedback