Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r3540 - in trunk/functional-testing/JavaSQLMAsoapUI: . InterfaceBased L2Status

Subject: perfsonar development work

List archive

perfsonar: r3540 - in trunk/functional-testing/JavaSQLMAsoapUI: . InterfaceBased L2Status


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r3540 - in trunk/functional-testing/JavaSQLMAsoapUI: . InterfaceBased L2Status
  • Date: Wed, 19 Mar 2008 15:21:25 -0400

Author: sasa.cavara
Date: 2008-03-19 15:21:24 -0400 (Wed, 19 Mar 2008)
New Revision: 3540

Added:
trunk/functional-testing/JavaSQLMAsoapUI/ErrorResponse.rnc
trunk/functional-testing/JavaSQLMAsoapUI/ErrorResponse.rng
Modified:

trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/SQL_MA_soapui-project.xml

trunk/functional-testing/JavaSQLMAsoapUI/L2Status/SQL-MA_L2-soapui-project.xml
Log:
Added new assertion groovy scripts to the project using ErrorResponse.rng
for schema i.e.
..
def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
..


Added: trunk/functional-testing/JavaSQLMAsoapUI/ErrorResponse.rnc


Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/ErrorResponse.rnc
___________________________________________________________________
Name: svn:executable
+ *

Added: trunk/functional-testing/JavaSQLMAsoapUI/ErrorResponse.rng


Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/ErrorResponse.rng
___________________________________________________________________
Name: svn:executable
+ *

Modified:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/SQL_MA_soapui-project.xml
===================================================================
---
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/SQL_MA_soapui-project.xml
2008-03-19 12:50:38 UTC (rev 3539)
+++
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/SQL_MA_soapui-project.xml
2008-03-19 19:21:24 UTC (rev 3540)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<con:soapui-project name="SQL-MA_IF_BASED" soapui-version="2.0-beta2"
xmlns:con="http://eviware.com/soapui/config";><con:settings><con:setting
id="ProjectSettings@projectRoot">/home/scavara/Desktop/soapui-2.0-beta2/JavaSQLMAsoapUI/InterfaceBased</con:setting><con:setting

id="com.eviware.soapui.impl.wsdl.actions.iface.tools.soapui.LoadTestRunnerAction@values-local"><![CDATA[<xml-fragment
xmlns:con="http://eviware.com/soapui/config";>
+<con:soapui-project name="SQL-MA_IF_BASED" soapui-version="2.0.2"
xmlns:con="http://eviware.com/soapui/config";><con:settings><con:setting
id="ProjectSettings@projectRoot">/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased</con:setting><con:setting

id="com.eviware.soapui.impl.wsdl.actions.iface.tools.soapui.LoadTestRunnerAction@values-local"><![CDATA[<xml-fragment
xmlns:con="http://eviware.com/soapui/config";>
<con:entry key="TestRunner Path" value=""/>
<con:entry key="Domain" value=""/>
<con:entry key="LoadTest" value="&lt;all>"/>
@@ -2289,7 +2289,26 @@
and

(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")
and
-(count(//nmwg:data/nmwgr:datum)=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata -Errors emtpy type in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata -Errors emtpy type in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; >
+(count(//nmwg:data/nmwgr:datum)=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata -Errors emtpy type in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata -Errors emtpy type in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; >
<soapenv:Header/>
<soapenv:Body>
<nmwg:message
@@ -2324,7 +2343,26 @@
and

(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")
and
-(count(//nmwg:data/nmwgr:datum)=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name=" Metadata -Discards wrong type in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name=" Metadata -Discards wrong type in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; >
+(count(//nmwg:data/nmwgr:datum)=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata -Discards wrong type in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata -Discards wrong type in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; >
<soapenv:Header/>
<soapenv:Body>
<nmwg:message
@@ -2359,7 +2397,26 @@
and

(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")
and
-(count(//nmwg:data/nmwgr:datum)=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata -Discards no metadata
element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata -Discards no metadata element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; >
+(count(//nmwg:data/nmwgr:datum)=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata -Discards no metadata
element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata -Discards no metadata element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; >
<soapenv:Header/>
<soapenv:Body>
<nmwg:message
@@ -4829,7 +4886,26 @@
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';

-//nmwg:message/nmwg:metadata/nmwg:eventType</path><content>error.common.parse_error</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - no type in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - no type in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+//nmwg:message/nmwg:metadata/nmwg:eventType</path><content>error.common.parse_error</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - no type in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - no type in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg4"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";>
@@ -4859,7 +4935,26 @@
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';

-//nmwg:message/nmwg:metadata/nmwg:eventType</path><content>error.common.action_not_supported</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - non existing type in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - non existing type in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2
.0/">
+//nmwg:message/nmwg:metadata/nmwg:eventType</path><content>error.common.action_not_supported</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - non existing type in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - non existing type in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg4" type="SetupData"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";>
@@ -4889,7 +4984,26 @@
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';

-//nmwg:message/nmwg:metadata/nmwg:eventType</path><content>error.common.action_not_supported</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData -type empty in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData -type empty in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+//nmwg:message/nmwg:metadata/nmwg:eventType</path><content>error.common.action_not_supported</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData -type empty in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData -type empty in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg4" type=""
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";>
@@ -4919,7 +5033,26 @@
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';

-//nmwg:message/nmwg:metadata/nmwg:eventType</path><content>error.common.action_not_supported</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - no metadata and
data"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - no metadata and data"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+//nmwg:message/nmwg:metadata/nmwg:eventType</path><content>error.common.action_not_supported</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - no metadata and
data"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - no metadata and data"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg4" type="SetupDataRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";>
@@ -5590,7 +5723,26 @@
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
declare namespace fn="http://www.w3.org/2005/xpath-functions";;

-//nmwg:message/nmwg:metadata/nmwg:eventType</path><content>error.common.parse_error</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData- event Type element
missing"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData- event Type element missing"><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@encode_attachments">true</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+//nmwg:message/nmwg:metadata/nmwg:eventType</path><content>error.common.parse_error</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData- event Type element
missing"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData- event Type element missing"><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@encode_attachments">true</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg4" type="SetupDataRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";>
@@ -7299,7 +7451,26 @@

//nmwg:message/nmwg:data</path><content>&lt;nmwg:data
id="resultDescriptionData_for_resultCodeMetadata"
metadataIdRef="resultCodeMetadata"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
&lt;nmwgr:datum xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";>Action []
is not supported by the service or cannot be served - cannot instantiate
Message Handler&lt;/nmwgr:datum>
-&lt;/nmwg:data></content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="LookupInfo - wrong message
type"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupInfoRequest</con:interface><con:operation>LookupInfo</con:operation><con:request
name="LookupInfo - wrong message type"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+&lt;/nmwg:data></content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="LookupInfo - wrong message
type"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupInfoRequest</con:interface><con:operation>LookupInfo</con:operation><con:request
name="LookupInfo - wrong message type"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="LookSomethingupInfoRequest" id="id1"
messageIdRef="msgid1" xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
@@ -7333,7 +7504,26 @@

//nmwg:message/nmwg:data</path><content>&lt;nmwg:data
id="resultDescriptionData_for_resultCodeMetadata"
metadataIdRef="resultCodeMetadata"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
&lt;nmwgr:datum xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";>Action
[LookSomethingupInfoRequest] is not supported by the service or cannot be
served - cannot instantiate Message Handler&lt;/nmwgr:datum>
-&lt;/nmwg:data></content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="LookupInfo - No data
element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupInfoRequest</con:interface><con:operation>LookupInfo</con:operation><con:request
name="LookupInfo - No data element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+&lt;/nmwg:data></content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="LookupInfo - No data
element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupInfoRequest</con:interface><con:operation>LookupInfo</con:operation><con:request
name="LookupInfo - No data element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="LookupInfoRequest" id="id1" messageIdRef="msgid1"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
@@ -9076,7 +9266,26 @@

//nmwg:message/nmwg:data</path><content>&lt;nmwg:data
id="resultDescriptionData_for_resultCodeMetadata"
metadataIdRef="resultCodeMetadata"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
&lt;nmwgr:datum xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";>Action []
is not supported by the service or cannot be served - cannot instantiate
Message Handler&lt;/nmwgr:datum>
-&lt;/nmwg:data></content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, wrong message
type"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, wrong message type"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:ns1="http://ggf.org/ns/nmwg/topolog
y/2.0/">
+&lt;/nmwg:data></content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, wrong message
type"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, wrong message type"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg"
@@ -9153,7 +9362,26 @@

//nmwg:message/nmwg:data</path><content>&lt;nmwg:data
id="resultDescriptionData_for_resultCodeMetadata"
metadataIdRef="resultCodeMetadata"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
&lt;nmwgr:datum xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";>Action
[Wrong-message-type] is not supported by the service or cannot be served -
cannot instantiate Message Handler&lt;/nmwgr:datum>
-&lt;/nmwg:data></content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, misspelled id in
metadata"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, misspelled id in metadata"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/"; xmlns:ns1="http://ggf.org/n
s/nmwg/topology/2.0/">
+&lt;/nmwg:data></content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, misspelled id in
metadata"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, misspelled id in metadata"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:ns1="http://ggf.org/ns/nmwg/to
pology/2.0/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg"

Modified:
trunk/functional-testing/JavaSQLMAsoapUI/L2Status/SQL-MA_L2-soapui-project.xml
===================================================================
---
trunk/functional-testing/JavaSQLMAsoapUI/L2Status/SQL-MA_L2-soapui-project.xml
2008-03-19 12:50:38 UTC (rev 3539)
+++
trunk/functional-testing/JavaSQLMAsoapUI/L2Status/SQL-MA_L2-soapui-project.xml
2008-03-19 19:21:24 UTC (rev 3540)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<con:soapui-project name="SQL-MA_L2_Path-Status" soapui-version="2.0-beta2"
xmlns:con="http://eviware.com/soapui/config";><con:settings><con:setting
id="ProjectSettings@projectRoot">/home/scavara/Desktop/soapui-2.0-beta2/JavaSQLMAsoapUI/L2Status</con:setting><con:setting

id="com.eviware.soapui.impl.wsdl.actions.iface.tools.soapui.TestRunnerAction@values-local"><![CDATA[<xml-fragment
xmlns:con="http://eviware.com/soapui/config";>
+<con:soapui-project name="SQL-MA_L2_Path-Status" soapui-version="2.0.2"
xmlns:con="http://eviware.com/soapui/config";><con:settings><con:setting
id="ProjectSettings@projectRoot">/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status</con:setting><con:setting

id="com.eviware.soapui.impl.wsdl.actions.iface.tools.soapui.TestRunnerAction@values-local"><![CDATA[<xml-fragment
xmlns:con="http://eviware.com/soapui/config";>
<con:entry key="TestRunner Path" value=""/>
<con:entry key="Domain" value=""/>
<con:entry key="WSS Password Type" value=""/>
@@ -1155,7 +1155,26 @@

//nmwg:message/nmwg:data</path><content>&lt;nmwg:data
id="resultDescriptionData_for_resultCodeMetadata"
metadataIdRef="resultCodeMetadata"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
&lt;nmwgr:datum xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";>Action []
is not supported by the service or cannot be served - cannot instantiate
Message Handler&lt;/nmwgr:datum>
-&lt;/nmwg:data></content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="LookupInfo - wrong message type"
id="3de79fb1-2960-4451-a3cb-d0c4c593e265"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupInfoRequest</con:interface><con:operation>LookupInfo</con:operation><con:request
name="LookupInfo - wrong message type"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+&lt;/nmwg:data></content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="LookupInfo - wrong message type"
id="3de79fb1-2960-4451-a3cb-d0c4c593e265"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupInfoRequest</con:interface><con:operation>LookupInfo</con:operation><con:request
name="LookupInfo - wrong message type"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="LookSomethingupInfoRequest" id="id1"
messageIdRef="msgid1" xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
@@ -1189,7 +1208,26 @@

//nmwg:message/nmwg:data</path><content>&lt;nmwg:data
id="resultDescriptionData_for_resultCodeMetadata"
metadataIdRef="resultCodeMetadata"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
&lt;nmwgr:datum xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";>Action
[LookSomethingupInfoRequest] is not supported by the service or cannot be
served - cannot instantiate Message Handler&lt;/nmwgr:datum>
-&lt;/nmwg:data></content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="LookupInfo - No data element"
id="00cb16ea-ae10-435a-b8f2-bd80742b6015"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupInfoRequest</con:interface><con:operation>LookupInfo</con:operation><con:request
name="LookupInfo - No data element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+&lt;/nmwg:data></content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="LookupInfo - No data element"
id="00cb16ea-ae10-435a-b8f2-bd80742b6015"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupInfoRequest</con:interface><con:operation>LookupInfo</con:operation><con:request
name="LookupInfo - No data element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="LookupInfoRequest" id="id1" messageIdRef="msgid1"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
@@ -2138,7 +2176,26 @@

</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="0fead7e3-472d-4263-99bd-48c082e3597f"/><con:assertion type="SOAP Fault
Assertion"
id="759fd29a-02e7-4a8c-bd67-f1c69e63f6f8"/></con:request></con:config></con:testStep><con:testStep
type="request" name="MA StoreRequest - without key, wrong message type"
id="4d2bd504-051c-4978-803c-0fdf3e66c497"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="MA StoreRequest - without key, wrong message
type"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="0fead7e3-472d-4263-99bd-48c082e3597f"/><con:assertion type="SOAP Fault
Assertion" id="759fd29a-02e7-4a8c-bd67-f1c69e63f6f8"/><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="MA StoreRequest - without key, wrong message type"
id="4d2bd504-051c-4978-803c-0fdf3e66c497"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="MA StoreRequest - without key, wrong message
type"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg"
@@ -2166,7 +2223,26 @@

</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="1cd730a7-4caf-4ebc-aeb3-dfd9b6c678b5"/><con:assertion type="SOAP Fault
Assertion"
id="e085c4dc-1139-408d-9abf-d8c74013e3c7"/></con:request></con:config></con:testStep><con:testStep
type="request" name="MA StoreRequest - without key, wrong metadataIdRef in
subject" id="82ac05db-4ee4-46fe-89e5-94d968e14108"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="MA StoreRequest - without key, wrong metadataIdRef in
subject"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="1cd730a7-4caf-4ebc-aeb3-dfd9b6c678b5"/><con:assertion type="SOAP Fault
Assertion" id="e085c4dc-1139-408d-9abf-d8c74013e3c7"/><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="MA StoreRequest - without key, wrong metadataIdRef in
subject" id="82ac05db-4ee4-46fe-89e5-94d968e14108"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="MA StoreRequest - without key, wrong metadataIdRef in
subject"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg"
@@ -4257,7 +4333,26 @@

</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="3b25c2f6-1d4d-4024-b246-fb1e618caeec"/><con:assertion type="SOAP Fault
Assertion"
id="8ef77b6c-0761-4884-b22d-8aaa7938f031"/></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata - L2 STATUS no metadata-data elements"
id="69c95420-c1e9-472e-97a9-3070aabe13b2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata - L2 STATUS no metadata-data
elements"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="3b25c2f6-1d4d-4024-b246-fb1e618caeec"/><con:assertion type="SOAP Fault
Assertion" id="8ef77b6c-0761-4884-b22d-8aaa7938f031"/><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata - L2 STATUS no metadata-data elements"
id="69c95420-c1e9-472e-97a9-3070aabe13b2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata - L2 STATUS no metadata-data
elements"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -4544,7 +4639,26 @@

</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="71aa9e08-cb8c-4eeb-9c37-5374daeca432"/><con:assertion type="SOAP Fault
Assertion"
id="e5ac01bb-890c-4374-8fa6-b3895fd90f9c"/></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata - L2 STATUS invalid subject id in metadata"
id="68c1d69b-6762-45d8-91ee-116d93572206"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata - L2 STATUS invalid subject id in
metadata"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="71aa9e08-cb8c-4eeb-9c37-5374daeca432"/><con:assertion type="SOAP Fault
Assertion" id="e5ac01bb-890c-4374-8fa6-b3895fd90f9c"/><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata - L2 STATUS invalid subject id in metadata"
id="68c1d69b-6762-45d8-91ee-116d93572206"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata - L2 STATUS invalid subject id in
metadata"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -5066,7 +5180,26 @@

</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="7fc30171-9bf2-4fe2-a488-819960534620"/><con:assertion type="SOAP Fault
Assertion"
id="2de2e68d-2bfc-4a02-b6d8-6f3845457f0a"/></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata - L2 STATUS invalid subject id in metadata2"
id="2107cf9f-0025-48b3-a01d-337c6a33e41f"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata - L2 STATUS invalid subject id in
metadata2"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="7fc30171-9bf2-4fe2-a488-819960534620"/><con:assertion type="SOAP Fault
Assertion" id="2de2e68d-2bfc-4a02-b6d8-6f3845457f0a"/><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata - L2 STATUS invalid subject id in metadata2"
id="2107cf9f-0025-48b3-a01d-337c6a33e41f"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata - L2 STATUS invalid subject id in
metadata2"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -6572,7 +6705,26 @@
declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';

-(count(//nmwg:message/nmwg:data) =
count(//nmwg:message/nmwg:data))</path><content>true</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - non-existing type of message"
id="01783902-11fa-4723-8c66-dd4b2139224f"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - non-existing type of
message"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+(count(//nmwg:message/nmwg:data) =
count(//nmwg:message/nmwg:data))</path><content>true</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - non-existing type of message"
id="01783902-11fa-4723-8c66-dd4b2139224f"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - non-existing type of
message"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="does_not_exist"
@@ -6610,7 +6762,7 @@
declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';

-(count(//nmwg:message/nmwg:data) =
count(//nmwg:message/nmwg:data))</path><content>true</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" disabled="true"
id="6d206f05-9d4f-479c-8029-a059507b1cd5"><con:configuration><scriptText>import
java.io.File;
+(count(//nmwg:message/nmwg:data) =
count(//nmwg:message/nmwg:data))</path><content>true</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"
id="6d206f05-9d4f-479c-8029-a059507b1cd5"><con:configuration><scriptText>import
java.io.File;
import java.io.OutputStream;
import java.io.StringWriter;
import javax.xml.transform.*;
@@ -6626,16 +6778,10 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
-//Transformer t = TransformerFactory.newInstance().newTransformer();
-//StringWriter sw = new StringWriter();
-//t.transform(new DOMSource(node), new StreamResult(sw));
-//String yourAnswer = sw.toString();
-//validator.validate(new StreamSource(new StringReader(yourAnswer)));
-validator.validate(new DOMSource(node));
-</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - message type empty"
id="52fb17f3-29a3-4a1d-a2f7-cda0aee7d685"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - message type
empty"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - message type empty"
id="52fb17f3-29a3-4a1d-a2f7-cda0aee7d685"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - message type
empty"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type=""
@@ -6673,7 +6819,7 @@
declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';

-(count(//nmwg:message/nmwg:data) =
count(//nmwg:message/nmwg:data))</path><content>true</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" disabled="true"
id="c7df3eb7-2539-4167-b448-3c1fe168e3ac"><con:configuration><scriptText>import
java.io.File;
+(count(//nmwg:message/nmwg:data) =
count(//nmwg:message/nmwg:data))</path><content>true</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"
id="c7df3eb7-2539-4167-b448-3c1fe168e3ac"><con:configuration><scriptText>import
java.io.File;
import java.io.OutputStream;
import java.io.StringWriter;
import javax.xml.transform.*;
@@ -6689,16 +6835,10 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
-//Transformer t = TransformerFactory.newInstance().newTransformer();
-//StringWriter sw = new StringWriter();
-//t.transform(new DOMSource(node), new StreamResult(sw));
-//String yourAnswer = sw.toString();
-//validator.validate(new StreamSource(new StringReader(yourAnswer)));
-validator.validate(new DOMSource(node));
-</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - no metadata and data"
id="018e163b-be38-4f1a-9f91-8f09ada90abc"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - no metadata and
data"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - no metadata and data"
id="018e163b-be38-4f1a-9f91-8f09ada90abc"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - no metadata and
data"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="SetupDataRequest"



  • perfsonar: r3540 - in trunk/functional-testing/JavaSQLMAsoapUI: . InterfaceBased L2Status, svnlog, 03/19/2008

Archive powered by MHonArc 2.6.16.

Top of Page