如何在testlink项目中获得testplanid

时间:2017-04-18 18:36:12

标签: testlink

如何在testlink项目中获得testplanid?我给我的测试计划命名了'myTestProjectTestBuild',但是在将此名称作为testplanid时,它显示The Test Plan ID (0) provided does not exist!

>>> tls.getBuildsForTestPlan('myTestProjectTestBuild')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/testlink/testlinkdecorators.py", line 140, in wrapperReplaceTLResponseError
    response = methodAPI(self, *argsPositional, **argsOptional)
  File "/usr/lib/python2.7/site-packages/testlink/testlinkdecorators.py", line 112, in wrapperAddDevKey
    return methodAPI(self, *argsPositional, **argsOptional)
  File "/usr/lib/python2.7/site-packages/testlink/testlinkdecorators.py", line 100, in wrapperWithArgs
    *argsPositional, **argsOptional)
  File "/usr/lib/python2.7/site-packages/testlink/testlinkapigeneric.py", line 1515, in callServerWithPosArgs
    self._checkResponse(response, methodNameAPI, argsOptional)
  File "/usr/lib/python2.7/site-packages/testlink/testlinkapigeneric.py", line 1879, in _checkResponse
    response[0]['message'], response[0]['code'])
testlink.testlinkerrors.TLResponseError: 3000: (getBuildsForTestPlan) - The Test Plan ID (0) provided does not exist!
getBuildsForTestPlan({'testplanid': 'myTestProjectTestBuild', 'devKey': 'xyz'})

有人可以让我知道我可以在testlink中获得testplanid吗?

2 个答案:

答案 0 :(得分:1)

我使用tls.getProjectTestPlans('<project_id')得到了testplanid的值。

答案 1 :(得分:0)

登录后,您将获得一个测试计划管理链接,单击它,然后将鼠标悬停在要获取其ID的测试计划上。在底部,您将看到tplan_id =一些数字。那就是测试计划ID