createTestCase:Create a test case getProjectIDByNode: 返回当前node id对应是哪个项目ID copyTCnewVersion: 为测试用例创建一个新版本 getTestCaseByVersion(self, testCaseID, version=None): Gets testcaseinformation based on the version.
countProjects(self): Count all the test project countTestPlans(self):Count all the test plans countTestSuites(self): Count all the test suites countTestCasesTP(self):Count all the test cases linked to a Test Plan countTestCasesTS(self):Count all the test cases linked to a Test Suite countPlatforms(self): Count all the Platforms in TestPlans listProjects(self): Lists the Projects (display Name & ID) initStep(self, actions, expected_results, execution_type): Initializes the list which stores the Steps of a Test Case to create appendStep(self, actions, expected_results, execution_type): Appends a step tothe steps list getProjectIDByName(self, projectName):
testlinkapigeneric.py
addTestCaseKeywords(self): adds list of keywords to a set of test cases,期望参数 a dictionary with (外部ID) as a key and as valueexample: