Selenium Testlink integration

365 views
Skip to first unread message

Niangsou

unread,
Mar 4, 2014, 5:45:01 AM3/4/14
to seleniu...@googlegroups.com
Hi all,
i need please your help about the testlink integration; indeed , I have made a selenium test and i've used the required api to link it to my test link but when i executed my test, the following error is raised:
testlink.api.java.client.TestLinkAPIException: 
The xml-rpc call to TestLink API method tl.getProjects failed.
Result[0] = {message=Can not authenticate client: invalid developer key, code=2000}

at testlink.api.java.client.TestLinkAPIClient.execXmlRpcMethodWithCache(TestLinkAPIClient.java:1209)
at testlink.api.java.client.TestLinkAPIClient.getProjects(TestLinkAPIClient.java:726)
at testlink.api.java.client.TestLinkAPIHelper.getProjectInfo(TestLinkAPIHelper.java:64)
at testlink.api.java.client.TestLinkAPIHelper.getProjectID(TestLinkAPIHelper.java:48)
at testlink.api.java.client.TestLinkAPIClient.reportTestCaseResult(TestLinkAPIClient.java:184)
at com.test.SeleniumTestLinkIntegration.updateTestLinkResult(SeleniumTestLinkIntegration.java:84)
at com.test.SeleniumTestLinkIntegration.testSearchCountry(SeleniumTestLinkIntegration.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:248)
at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:202)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

in the testlink, a create a project, test plan name, build name and test case name and get the api key.

thanks,

Tanaya Vashistha

unread,
Aug 7, 2014, 7:43:16 AM8/7/14
to seleniu...@googlegroups.com

Hi Niangsou ,

This is due to wrong testlink API key passed in your selenium script. 

Thanks!!
Reply all
Reply to author
Forward
0 new messages