API key of admin user works, API key of leader give error
Posted: Mon May 07, 2012 8:40 pm
I modified the config.inc.php file like this:
/** XML-RPC API availability (disabled by default) */
$tlCfg->api->enabled = TRUE;
// ENABLED -> enable XML-RPC calls to external test automation server
// new buttons will be displayed on execution pages
// DISABLED -> disable
$tlCfg->exec_cfg->enable_test_automation = ENABLE;
1. Created a user with leader rights and login to Testlink
2. Go to 'My Settings' Under API interface, click 'Generate new key'
Copy the key generated key in my Java code i get an error with code 2010 : User corresponding to Developer Key has insufficient rights to perform this action.
1. Created a user with admin rights and login to Testlink
2. Go to 'My Settings' Under API interface, click 'Generate new key'
Copy the key generated key in my Java code everything seems to work fine, i am able to update test results from Selenium scripts
Why does the key of admin user work ok but API key of user with Leader rights does not seem to work. This is blocking my team as we would like to update results as different users not just using Admin user. Also i don't want people in the team to have admin rights just for this.
/** XML-RPC API availability (disabled by default) */
$tlCfg->api->enabled = TRUE;
// ENABLED -> enable XML-RPC calls to external test automation server
// new buttons will be displayed on execution pages
// DISABLED -> disable
$tlCfg->exec_cfg->enable_test_automation = ENABLE;
1. Created a user with leader rights and login to Testlink
2. Go to 'My Settings' Under API interface, click 'Generate new key'
Copy the key generated key in my Java code i get an error with code 2010 : User corresponding to Developer Key has insufficient rights to perform this action.
1. Created a user with admin rights and login to Testlink
2. Go to 'My Settings' Under API interface, click 'Generate new key'
Copy the key generated key in my Java code everything seems to work fine, i am able to update test results from Selenium scripts
Why does the key of admin user work ok but API key of user with Leader rights does not seem to work. This is blocking my team as we would like to update results as different users not just using Admin user. Also i don't want people in the team to have admin rights just for this.