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
TestLink 1.8.5: How to configure TestLink to enable XMLRPC
Moderators: Amaradana, TurboPT, TL Developers
-
- TestLink user
- Posts: 1
- Joined: Tue Jan 19, 2010 11:50 am
Still confused
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:
And wrote a PERL script like this:
Nothing exciting showed up here except a line of error:
Could anybody help me here? Thanks so much!
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
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
Code: Select all
no data at /usr/lib/perl5/site_perl/5.8.8/XML/RPC.pm line 255.