Page 1 of 1

Perl API client sample

Posted: Wed Feb 27, 2008 4:05 am
by qaman
Does anyone have perl example for using the API to access TestLink data?

My test automation framework is done in perl and I'm looking for a way to integrate my automation framework with TestLink. I'd like to see an example for accessing TL data using perl.

Thanks,
Eli

Posted: Fri Oct 17, 2008 3:19 pm
by qa9001
I am now using RPC::XML::Client (debian/ ubunt package librpc-xml-perl)

Code: Select all

#!/usr/bin/perl
use RPC::XML::Client;
my $cli = RPC::XML::Client->new('http://testlink/lib/api/xmlrpc.php');
my $resp = $cli->send_request('system.listMethods');
print ref $resp ? join("\n", @{$resp->value}) : "Error: $resp";
I couldn't get it to work with tl 1.8.5

Re: Perl API client sample

Posted: Wed May 12, 2010 11:56 am
by qa9001
I created three sample files - Is there a way of uploading them to the board?

They are:

createBuild.pl
getTestCasesIDByName.pl
getTestPlanByName.pl
reportTCResult.pl

Re: Perl API client sample

Posted: Thu May 13, 2010 8:50 pm
by fman
this samples will be added to next TL distribution

Re: Perl API client sample

Posted: Tue Nov 16, 2010 3:44 pm
by stephen
Is there a way I could get these examples?
testlink19 has two perl examples - but does not seem to be as straightforward as listed above.

thanks
Stephen.

Re: Perl API client sample

Posted: Tue Nov 16, 2010 7:48 pm
by fman
do search on mantis site, removing filter that hide closed issues, to see if user have attached code