Python之TestLink模块

本文介绍了如何使用Python的TestLink-API-Python-client模块连接到TestLink,进行测试用例集和测试用例的创建、获取及发送测试结果。特别提到,1.9.14版本暂不支持步骤结果反馈,但1.9.15版本将增加此功能。
摘要由CSDN通过智能技术生成

1.安装:pip install TestLink-API-Python-client

  2.Python连接上TestLink

1 import testlink

2

3 url = 'http://10.138.30.4:82/testlink/lib/api/xmlrpc/v1/xmlrpc.php'

4 key = '14115ec841a5c22a5b095158d2eb7'

5

6 tlc = testlink.TestlinkAPIClient(url, key)

  3.获取TestLink上的信息:

1 def get_information_test_project():

2     print("Number of Projects      in TestLink: %s " % tlc.countProjects())

3     print("Number of Platforms  (in TestPlans): %s " % tlc.countPlatforms())

4     print("Number of Builds                   : %s " % tlc.countBuilds())

5     print("Number of TestPlans                : %s " % tlc.countTestPlans())

6     print("Numbe

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值