Hello,
In python, how can I use getTestCasesforTestSuite API function to return all testcases?
getTestCasesforTestSuite API function in Python
Moderators: Amaradana, TurboPT, TL Developers
-
- TestLink user
- Posts: 3
- Joined: Thu Dec 30, 2010 6:51 am
Re: getTestCasesforTestSuite API function in Python
Here is a small example in python.
Insert your servername, api key and a valid testsuite id.
(deep and details is optional)
Tom
Insert your servername, api key and a valid testsuite id.
(deep and details is optional)
Tom
Code: Select all
#!/usr/bin/python
import sys,xmlrpclib
URL = "http://YOURSERVER/testlink/lib/api/xmlrpc.php"
DEVKEY = "YOURKEY"
conn = xmlrpclib.Server(URL)
data = {}
data["devKey"] = DEVKEY
data["testsuiteid"] = "3"
data["deep"] = "true"
data["details"] = "full"
tcinfo = conn.tl.getTestCasesForTestSuite(data)
print tcinfo
Re: getTestCasesforTestSuite API function in Python
example added to TL distribution