-
Notifications
You must be signed in to change notification settings - Fork 3
How to use Python TestLink Runner
parthibann edited this page Jan 11, 2014
·
8 revisions
Pre-requesties : https://github.com/parthibann/Python-TestLink-Runner/wiki/Enabling-Test-Automation-in-Testlink
Step 1: Login into testlink and create some test suites and test cases in the api enabled project.
Step 2: After creating the test case manually right click on it will display the testcase API ID
Step 3: checkout TestLinkRunner.py file or clone "https://github.com/parthibann/Python-TestLink-Runner.git" repository.
Step 4: Use the above runner in your automation test case, Example given below.
import unittest
from TestlinkRunner import TestLinkRunner
class terere(unittest.TestCase):
def test_20(self):
pass
def test_23(self):
self.fail("test fail")
suite = unittest.TestLoader().loadTestsFromTestCase(terere)
runner = TestLinkRunner(_testPlanId=4,_buildName="testbuild3")
runner.run(suite)
