DevKey Issue with Testlink 1.8.5

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
abadve
TestLink user
Posts: 13
Joined: Wed Feb 18, 2009 1:56 am

DevKey Issue with Testlink 1.8.5

Post by abadve »

Hello

I have two users with admin rights created on Testlink version 1.8.5 When I create the API key for user A and use it from my API calls all the results are logged and it works. User B has also created API key. The API key only for userA works and the results are logged to the DB and I see that the test was tested by userA in the GUI interface. However the API key for userB does not work and the API calls return with invalid DevKey argument. Only one DevKey works for the DB API calls and I want it to show in the GUI whether userA or userB was testing the test case.

What is set wrong here?

Please help.

Thanks
Julien
TestLink user
Posts: 14
Joined: Tue Apr 13, 2010 7:38 am

Re: DevKey Issue with Testlink 1.8.5

Post by Julien »

Hi,

You can get the API Key in the file execSetResult with:
$args->user->userApiKey

After you can pass the key to your reportResult function.
deb1bhu
TestLink user
Posts: 7
Joined: Mon May 09, 2011 9:33 am

Re: DevKey Issue with Testlink 1.8.5

Post by deb1bhu »

you can search where the devkey is matching with whatever you are giving as devkey

go to your mysql --> testlink databse and check the exact devkey in the "users" table, and then see what the devkey u are passing

Hope it will help
sn82w
Advanced user
Posts: 45
Joined: Fri Apr 27, 2012 6:38 pm

Re: DevKey Issue with Testlink 1.8.5

Post by sn82w »

Am also facing the same problem. AM not able to find the Devkey in execSetResult with:
$args->user->userApiKey.

Can you suggest me where can i get the devkey..
Post Reply