摘要:
TestLink 是基于web的测试用例管理系统,主要功能是测试用例的创建、管理和执行,并且还提供了一些简单的统计功能。
主要内容:
testlink官网:http://www.testlink.org/
1. python 2.7 安装testlink命令:pip install TestLink-API-Python-client==0.4.7
2. Python连接上testlink可进行以下操作
#encoding=utf-8
import testlink, time
manual = 1 # manual
automation = 2 # automation
import ssl
# ssl._create_default_https_context = ssl._create_unverified_context
# connect to test link
# The API address of the test link server, only requires modification the IP section
url = "https://testlink部署的服务器IP/lib/api/xmlrpc/v1/xmlrpc.php"
key = "adjl8292uujsjiiwj1911gljdflsjgksljg1" # test link personal key
my_testlink = testlink.TestLinkHelper(url, key).connect(testlink.TestlinkAPIClient)
# print("tlc information is: %s " % tlc)
class TestlinkProcess():
# get information of test link上, all of the following function are validated(except the last)
def get_information_test_project(self):
print("Number of Projects in TestLink: %s " % my_testlink.countProjects())
print("Number of Platforms (in TestPlans): %s " % my_testlink.countPlatforms())
print("Number of Builds : %s " % my_testlink.countBuilds())
print("Number of TestPlans : %s " % my_testlink.countTestPlans())
# print("Number of TestSuites : %s " % tlc.countTestSuites())
# print("Number of TestCases (in TestSuites):