Graph format conversion

This is a test of the graphconversion service.
Test filesDownload the files for this test
Test runRun test now
Support reference#2816-2817
This test converts a simple tab-delimited network into a network in VisML format.
Show/hide recent test logs
view log 6 days agoPASSED

Test began: 2012-05-13 15:35:58 Test ended: 2012-05-13 15:36:00 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 1 week agoPASSED

Test began: 2012-05-11 05:12:52 Test ended: 2012-05-11 05:12:53 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 1 week agoPASSED

Test began: 2012-05-11 04:46:42 Test ended: 2012-05-11 04:46:44 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 2 weeks agoPASSED

Test began: 2012-05-05 23:20:07 Test ended: 2012-05-05 23:20:09 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 3 weeks agoPASSED

Test began: 2012-04-25 13:43:23 Test ended: 2012-04-25 13:43:25 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 4 weeks agoPASSED

Test began: 2012-04-21 02:16:13 Test ended: 2012-04-21 02:16:14 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 1 month agoPASSED

Test began: 2012-04-17 16:32:56 Test ended: 2012-04-17 16:32:58 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 1 month agoPASSED

Test began: 2012-04-10 09:46:34 Test ended: 2012-04-10 09:46:35 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 2 months agoPASSED

Test began: 2012-03-26 19:36:39 Test ended: 2012-03-26 19:36:40 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 2 months agoPASSED

Test began: 2012-03-26 07:27:55 Test ended: 2012-03-26 07:27:57 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
This test consists of the following files:
graphconversion_test.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::SOAP11;
use XML::Compile::WSDL11;
use XML::Compile::Transport::SOAPHTTP;
eval
{
# Retrieving and processing the WSDL
my $wsdl = XML::LibXML->new->parse_file('http://wwwsup.scmbb.ulb.ac.be/be.ac.ulb.bigre.graphtools.server/wsdl/GraphAlgorithmsNeAT.wsdl');
my $proxy = XML::Compile::WSDL11->new($wsdl);
# Generating a request message based on the WSDL
my $graphconversion = $proxy->compileClient('graphconversion');
# Calling the service and getting the response
my $input = "a\tb\nb\tc\nc\td\nb\td\n";
my $answer = $graphconversion->( request => {graphString => $input, tmpInGraphFile => "", inFormat => "tab", outFormat => "visml", directed => 0, nodeAttribs => "", edgeAttribs => "", noNodes => "", returnType => "client" });
my $expected = "VEdge from=\"b\" to=\"d\"";
# 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} =~ m/$expected/){
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;
}