Page 1 of 1

API: invalid developer key

PostPosted: Tue Jul 29, 2008 2:35 pm
by Cynthia

I am currently evaluating TestLink to see if this is the test case management tool we want to use at my company. I am trying out the ruby example from the API but I keep getting the error:

result was: code2000messageCan not authenticate client: invalid developer key

So, I am trying to figure out where this developer key is. I looked in the mysql testlink.users table and found a similar looking string in the password column, but that didn't work either. Any hints on where this devkey is or how to generate it? Sorry if this was mentioned elsewhere, but I searched the forum and didn't find the answer. Thanks.

Kind regards,

PostPosted: Mon Aug 04, 2008 1:34 pm
by fman
developer key is created when you create a user.
login as TL administrator and create a user.
let us know

PostPosted: Mon Aug 04, 2008 2:00 pm
by Cynthia

Maybe I am not looking in the right place? Where would I see this developer key? In the user management page? I have created a few different users, one with admin role, the other with test designer role. I didn't see any indication in the UI of a developer key. Please advise.

Kind regards,

PostPosted: Tue Aug 05, 2008 8:59 am
by fman
you are right something is missed.

Check for similar topic on mantis.
If not found open a new one


PostPosted: Tue Aug 05, 2008 9:49 am
by fman

create with:

$tlCfg->api_enabled = TRUE;


valid for 1.8

then using menu item Personal you will got a new button under
change password section

let me know

PostPosted: Tue Aug 05, 2008 1:52 pm
by Cynthia

I think I am getting further now. I was able to get the button to generate the developer key. But when I click it, I get this error:

Fatal error: Call to undefined function xgenerateapikey() in C:\xampp\htdocs\testlink\lib\usermanagement\userInfo.php on line 53

I had to change line 53 from:
$op = xgenerateApiKey($args);

$op = generateApiKey($args);

in order for the key to be generated. But now I can learn how to script against the API. Thanks for your help.

Kind regards,

PostPosted: Wed Aug 06, 2008 12:42 pm
by fman
ok i will check code

PostPosted: Wed Aug 13, 2008 8:25 am
by havlatm
Andreas invalidates the function for unknown reason (as found Cynthia). The code of Beta2 needs to remove 'x' letter to work. It's corrected in CVS now.