Hogenom_treeTest

This is a test of the Hogenom_tree service.
Test filesDownload the files for this test
Test runRun test now
Support reference#1865-1866
This is a test for the Hogenom_tree webservices set. It uses perl and SOAPlite. It includes a test for :
- NearestNodeHogenom : output must be 2284 (the query is taxID 2284)
- GetParentHogenom : output must be 2284 (the query is taxID 2287)
- GetChildHogenom : output must contain 2287 (the query is taxID 2284)
- GetDFStreeHogenom : output must contain "36329" (Plasmodium falciparum, last line of the file)
Show/hide recent test logs
view log 1 week agoPASSED

Test began: 2012-05-10 21:01:40 Test ended: 2012-05-10 21:01:42 Result : Test passed ------ stderr and stdout follow ------ NearestNodeHogenom OK GetParentHogenom OK GetChildHogenom OK GetDFStreeHogenom OK Everything worked fineDownload this log...
view log 2 weeks agoWARNING

Test began: 2012-05-07 01:33:47 Test ended: 2012-05-07 01:36:47 Result : Test warning ------ stderr and stdout follow ------ Service description 'http://prodom.prabi.fr/prodom/2006.1/wsdl/hogenom_tree.wsdl' can't be loaded: 500 read timeoutDownload this log...
view log 2 weeks agoPASSED

Test began: 2012-05-04 07:03:41 Test ended: 2012-05-04 07:03:44 Result : Test passed ------ stderr and stdout follow ------ NearestNodeHogenom OK GetParentHogenom OK GetChildHogenom OK GetDFStreeHogenom OK Everything worked fineDownload this log...
view log 3 weeks agoPASSED

Test began: 2012-04-30 07:47:41 Test ended: 2012-04-30 07:47:44 Result : Test passed ------ stderr and stdout follow ------ NearestNodeHogenom OK GetParentHogenom OK GetChildHogenom OK GetDFStreeHogenom OK Everything worked fineDownload this log...
view log 4 weeks agoPASSED

Test began: 2012-04-19 14:14:53 Test ended: 2012-04-19 14:14:55 Result : Test passed ------ stderr and stdout follow ------ NearestNodeHogenom OK GetParentHogenom OK GetChildHogenom OK GetDFStreeHogenom OK Everything worked fineDownload this log...
view log 1 month agoPASSED

Test began: 2012-04-16 01:59:12 Test ended: 2012-04-16 01:59:14 Result : Test passed ------ stderr and stdout follow ------ NearestNodeHogenom OK GetParentHogenom OK GetChildHogenom OK GetDFStreeHogenom OK Everything worked fineDownload this log...
view log 1 month agoPASSED

Test began: 2012-04-10 21:34:38 Test ended: 2012-04-10 21:34:41 Result : Test passed ------ stderr and stdout follow ------ NearestNodeHogenom OK GetParentHogenom OK GetChildHogenom OK GetDFStreeHogenom OK Everything worked fineDownload this log...
view log 2 months agoPASSED

Test began: 2012-04-03 03:30:43 Test ended: 2012-04-03 03:30:45 Result : Test passed ------ stderr and stdout follow ------ NearestNodeHogenom OK GetParentHogenom OK GetChildHogenom OK GetDFStreeHogenom OK Everything worked fineDownload this log...
view log 2 months agoPASSED

Test began: 2012-03-20 13:00:36 Test ended: 2012-03-20 13:00:44 Result : Test passed ------ stderr and stdout follow ------ NearestNodeHogenom OK GetParentHogenom OK GetChildHogenom OK GetDFStreeHogenom OK Everything worked fineDownload this log...
view log 2 months agoPASSED

Test began: 2012-03-17 15:38:39 Test ended: 2012-03-17 15:38:41 Result : Test passed ------ stderr and stdout follow ------ NearestNodeHogenom OK GetParentHogenom OK GetChildHogenom OK GetDFStreeHogenom OK Everything worked fineDownload this log...
This test consists of the following files:
hogenom_treeTest.perl
#!/usr/bin/perl -w
use SOAP::Lite;
# Connecting to the webservice
my $service = SOAP::Lite
-> service("http://prodom.prabi.fr/prodom/2006.1/wsdl/hogenom_tree.wsdl")
-> on_fault(
sub { my($self, $res) = @_;
print STDOUT "Error while establishing connexion with the service\n";
exit 1;
}
);
my $error;
my $method;
my $arg;
my $result;
my @resultat;
$error = 0;
# Testing NearestNodeHogenom :
# - output must be 2284 (the query is taxID 2284)
$method = "NearestNodeHogenom";
$arg = "2284";
$result = $service->$method($arg);
if ( defined $result ) {
if ( $result ne "2284" ){
print "Unexpected data for NearestNodeHogenom output\n";
$error = 2;
} else {
print "NearestNodeHogenom OK\n";
}
} else {
print "NearestNodeHogenom Failed\n";
exit 1;
}
# Testing GetParentHogenom :
# - output must be 2284 (the query is taxID 2287)
$method = "GetParentHogenom";
$arg = "2287";
$result = $service->$method($arg);
if ( defined $result ) {
if ( $result ne "2284" ){
print "Unexpected data for GetParentHogenom output\n";
$error = 3;
} else {
print "GetParentHogenom OK\n";
}
} else {
print "GetParentHogenom Failed\n";
exit 1;
}
# Testing GetChildHogenom :
# - output must contain 2287 (the query is taxID 2284)
$method = "GetChildHogenom";
$arg = "2284";
@result = $service->$method($arg);
if ( $#result >= 0 ) {
if ( $result[0] ne "2287" and $result[1] ne "2287" and $result[2] ne "2287" ){
print "Unexpected data for GetChildHogenom output\n";
$error = 4;
} else {
print "GetChildHogenom OK\n";
}
} else {
print "GetChildHogenom Failed\n";
exit 1;
}
# Testing GetDFStreeHogenom :
# - output must contain "36329" (Plasmodium falciparum, last line of the file)
$method = "GetDFStreeHogenom";
@result = $service->$method();
if ( $#result == 390 ) {
if ( $result[390] !~ "36329" ){
print "Unexpected data for GetDFStreeHogenom output\n";
$error = 5;
} else {
print "GetDFStreeHogenom OK\n";
}
} else {
print "GetDFStreeHogenom Failed\n";
exit 1;
}
if ( $error == 0 ) {
print "Everything worked fine\n";
exit $error;
}
else {
print "Last error code : $error\n";
exit $error;
}
»
- Login to post comments