Hi,
I`m trying to setup a
JUNIT test in eclips and i have some problems with the namespaces. In the asserts section i cant use the namespace. I get the following error : Prefix must resolve to a namespace: NS1
Can someone please help ??
Thanks
Charles
<?xml version ="1.0" encoding = "UTF-8"?>
<tests xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd='"http://www.w3.org/2001/XMLSchema"
xsi:schemaLocation="http://absa.co.za/CASA/screenprimaryClient" ../../../../../WBIMB_RegulatoryComMsgSet/screenPrimaryClient.xsd'
xmlns:tns="http://absa.co.za/CASA/screenprimaryClient">
<class name="CASAIntegrationTest">
<params>
<param name="hashInit" type="java.util.Hashtable" key-type="java.lang.String" value-type="java.lang.String">
<param name="k1">value1</param>
<param name="k3">value3</param>
<param name="k4">value3</param>
<param name="k5">value5</param>
<param name="k2">value2</param>
</param>
</params>
<method name="partialFileCompare" test-case="ScreenPrimaryClientReq_Normal">
<params>
<param name="requestQueue" type="java.lang.String">ENTERPRISE.CDM.RCV</param>
<param name="replyQueue" type="java.lang.String">ENTERPRISE.AUTOMATED.TESTING.RCV</param>
<param name="requestFile" type="java.lang.String">ScreenPrimaryClientRequest.xml</param>
<param name="imsEncoding" type="java.lang.Boolean">false</param>
<param name="trancode" type="java.lang.String"></param>
<param name="persistence" type="java.lang.String">1</param>
</params>
<asserts>
<assert name="Envelope/NS1:Body/tns:screenPrimaryClientReply/tns:statusCode" type="java.lang.String" action="EQUALS">I</assert>
</asserts>
</method>
</class>
</tests>