retrieve_ensembl_seq perl test 1

This is a test of the retrieve_ensembl_seq service.
Test filesDownload the files for this test
Test runRun test now
Support reference#105-107
This test retrieves 50 base pairs upstream the transcription start site of the human ENSG00000139618 gene and compares it to the expected DNA sequence.
Show/hide recent test logs
view log 1 week agoWARNING

Test began: 2012-05-11 12:09:20 Test ended: 2012-05-11 12:09:26 Result : Test warning ------ stderr and stdout follow ------ Unexpected dataDownload this log...
view log 2 weeks agoWARNING

Test began: 2012-05-07 19:21:33 Test ended: 2012-05-07 19:21:38 Result : Test warning ------ stderr and stdout follow ------ Unexpected dataDownload this log...
view log 2 weeks agoWARNING

Test began: 2012-05-05 08:44:44 Test ended: 2012-05-05 08:44:55 Result : Test warning ------ stderr and stdout follow ------ Unexpected dataDownload this log...
view log 4 weeks agoWARNING

Test began: 2012-04-20 12:03:06 Test ended: 2012-04-20 12:03:11 Result : Test warning ------ stderr and stdout follow ------ Unexpected dataDownload this log...
view log 1 month agoWARNING

Test began: 2012-04-18 14:24:34 Test ended: 2012-04-18 14:24:40 Result : Test warning ------ stderr and stdout follow ------ Unexpected dataDownload this log...
view log 1 month agoWARNING

Test began: 2012-04-18 01:37:10 Test ended: 2012-04-18 01:37:15 Result : Test warning ------ stderr and stdout follow ------ Unexpected dataDownload this log...
view log 1 month agoWARNING

Test began: 2012-04-12 04:41:52 Test ended: 2012-04-12 04:41:57 Result : Test warning ------ stderr and stdout follow ------ Unexpected dataDownload this log...
view log 1 month agoWARNING

Test began: 2012-04-11 21:13:49 Test ended: 2012-04-11 21:13:54 Result : Test warning ------ stderr and stdout follow ------ Unexpected dataDownload this log...
view log 1 month agoWARNING

Test began: 2012-04-09 06:05:21 Test ended: 2012-04-09 06:05:27 Result : Test warning ------ stderr and stdout follow ------ Unexpected dataDownload this log...
view log 2 months agoWARNING

Test began: 2012-03-22 05:52:33 Test ended: 2012-03-22 05:52:44 Result : Test warning ------ stderr and stdout follow ------ Unexpected dataDownload this log...
This test consists of the following files:
retrieve-ensembl-seq_test1.pl
#!/usr/bin/perl
# the first line of the script must tell us which language interpreter to use,
# in this case its perl
use strict;
# import the modules we need for this test; XML::Compile is included on the server
# by default.
use XML::Compile::WSDL11;
use XML::Compile::Transport::SOAPHTTP;
eval
{
# Retriving and processing the WSDL
my $wsdl = XML::LibXML->new->parse_file('http://rsat.bigre.ulb.ac.be/rsat/web_services/RSATWS.wsdl');
my $proxy = XML::Compile::WSDL11->new($wsdl);
# Generating a request message based on the WSDL
my $getSequence = $proxy->compileClient('retrieve_ensembl_seq');
# Calling the service and getting the response
my @gene = ("ENSG00000139618");
my $answer = $getSequence->( request => {organism => 'Homo_sapiens', query => \@gene, from => '-50' });
# If the response arrived, look for a specific sequence
# If the sequence is correct, return 0 because the test passed.
# If the result is something else, return 2 to indicate a warning.
# If no answer has arrived, return 1 to indicate the test failed.
if ( defined $answer ) {
# print "Result : ".$answer->{output}->{response}->{client}."\n";
if ($answer->{output}->{response}->{client} =~ 'GTGCGTGTGCTGCGTGTCGCGTCACGGCGTCACGTGGCCAGCGCGGGCTT'){
print "Passed\n";
exit 0;
} else {
print "Unexpected data\n";
exit 2;
}
} else {
print "Failed\n";
exit 1;
}
};
if ($@)
{
print "Caught an exception\n";
print $@."\n";
exit 1;
}
»
- Login to post comments