lczub / TestLink-API-Python-client

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

how to pass the arguments of 'executestatus = 'n'' to function getTestCasesForTestPlan #123

Closed CarrieSun closed 4 years ago

CarrieSun commented 4 years ago

when I execute the following functions in pycharm , response = my_testlink.getTestCasesForTestPlan(testplanid=test_plan_id, buildid=build_id, platformid=platform_id, executestatus="n")

the response is [], an empty array, but actually, I have a lot of unexecuted test cases. I want to get those unexecuted test cases information.

CarrieSun commented 4 years ago

if executestatus="a" , the response is an empty array too ,actually it is not empty.

lczub commented 4 years ago

Hello CarrieSun,

good question!

Unfortunately, the TestLink Server itself has not documented this case. The state 'n' returns nothing, while 'f' and 'p' works. As first response I would say, get all test cases and use python to filter them.

If you want to let the server do this, the answer might requires a deep dive into the TestLink Server code, somewhere in _testlinkcode/lib/functions/testplan.class.php

If you find a solution, it would be fine if you share it with the other user. I will do some tries at the weekend.

Regards Luiko

CarrieSun commented 4 years ago

Hello Luiko, Thank you very much for your fast and detailed answer !

Have a nice day ! Greetings.