parthibann / python-testlink-runner Goto Github PK
View Code? Open in Web Editor NEWPython-TestLink-Runner is used to post the python unittest automation test results into TestLink
Python-TestLink-Runner is used to post the python unittest automation test results into TestLink
facing below issue even though all the details are already added
testlink: WARN: Unable to update result: test_214_method
testlink: Check if the test case is not linked to test plan!
b'Test Case version is already linked to Test Plan
Please help me what I'm doing wrong . Using python 3
testlinkURL = "http://servername/testlink/lib/api/xmlrpc/v1/xmlrpc.php"
userKey = "857f401ec22e47ee5bf6dadd1f839a20"
suite = unittest.TestLoader().loadTestsFromTestCase(demonstratingTLRunner)
runner = TestLinkRunner(testlinkURL,userKey,_testPlanId=1,_buildName="testbuild1")
runner.run(suite)
I ran the above code, it's executing the test cases, but not updating in the Testlink.
I have given the correct devKey.
Hey.
I know this project is a few years old, but I was trying to get my python unittest results uploaded to TestLink and I'm having some issues.
My script is actually using android's monkeyrunner cmds, and it looks like this:
import unittest
import TestLinkRunner
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
device = MonkeyRunner.waitForConnection()
class TestOne(unittest.TestCase):
def test_one(self):
pass
if __name__ == '__main__':
unittest.main()
testlinkURL = "http://MYTESTLINKHOST/testlink/lib/api/xmlrpc/v1/xmlrpc.php"
userKey = "MYKEY"
suite = unittest.TestLoader().loadTestsFromTestCase(TestOne)
runner = TestLinkRunner(testlinkURL,userKey,_testPlanId=1324,_buildName="test")
runner.run(suite)
The tests pass when I run them, but I don't see the results in testlink. I added the test with the corresponding testPlanId into the build "test" which is in the test plan of the same name. Do I need to name the test something specific to get upload to work? Are there logs anywhere that can tell me why the upload is failing?
I don't see any errors.. The test just passes and that's it.
Any help would be appreciated.
Thanks,
Cory
I am trying to use your Testlink Runner .. I cloned Testlink runner to my local machine and followed rest all setps as you have mentioned. Now I am using Robot framework so all my testscripts are in one single file now how to testlink runner on each testscript's failure or success.
I am not able to understand your example code "def Test_23_TestFailure(self):
self.fail(test fail)
All that I want to do is in my test script If my testscript passses I want to call a method which should update my testcase in testlink as pass or else should call a fail method (which should update testcase status as failed in TestLink) how to do this? .. please help
hello parthibann
how to integrate my robotframework file to testlink?
like I testing the login page using python robotframework ride IDE using Selenuim library to test ,how to use this to testlink
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.