TestLink 1.8.5: How to configure TestLink to enable XMLRPC

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
sradhakrishna
TestLink user
Posts: 1
Joined: Tue Jan 19, 2010 11:50 am

TestLink 1.8.5: How to configure TestLink to enable XMLRPC

Post by sradhakrishna »

Hi,

I have just installed TestLink and intend to use XMLRPC to retrieve testcase/results data programmatically.

This link (http://www.teamst.org/index.php?option= ... 2&Itemid=1) mentions three steps:

* Configure TestLink to enable the feature:
* You can generate personal key from User personal page.
* See one of the client implementation samples to see how to interact with the API.

Now, how do I go about doing the first two steps? Namely, configure TestLink to enable the feature and to generate the personal key from user personal page?

Can someone please help
akshayj
TestLink user
Posts: 10
Joined: Tue Jul 14, 2009 1:25 pm

Post by akshayj »

Yeahwo
TestLink user
Posts: 1
Joined: Thu Mar 04, 2010 3:32 am

Still confused

Post by Yeahwo »

Hi, guys,

I am spending time on the TL automatic for days. But I still haven't connected the XML RPC server successfully even I searched this forum for a long time and read Akshayj's link (http://code.google.com/p/gallio-testlin ... RunThrough).

I modified the config.inc.php file like this:

Code: Select all

299 /** XML-RPC API availability (disabled by default) */
300 $tlCfg->api->enabled = TRUE;

Code: Select all

490 // ENABLED -> enable XML-RPC calls to external test automation server
491 //      new buttons will be displayed on execution pages
492 // DISABLED -> disable
493 $tlCfg->exec_cfg->enable_test_automation = ENABLE;

Code: Select all

515 // different models for the attachments management on execution page
516 // $att_model_m1 ->  shows upload button and title 
517 // $att_model_m2 ->  hides upload button and title
518 $tlCfg->exec_cfg->att_model = $att_model_m1;   //defined in const.inc.php
And wrote a PERL script like this:

Code: Select all

  
  1 #!/usr/bin/perl
  2 
  3 use strict;
  4 use warnings;
  5 use XML::RPC;
  6 
  7 my $xmlrpc = XML::RPC->new("http://####/testlink/lib/api/xmlrpc.php");
  8 
  9 my $ret = $xmlrpc->call('sayHello');
 10 
 11 print "$ret\n";
 12 
Nothing exciting showed up here except a line of error:

Code: Select all

no data at /usr/lib/perl5/site_perl/5.8.8/XML/RPC.pm line 255.
Could anybody help me here? Thanks so much!
Locked