<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project name="Calculator" resourceRoot="" soapui-version="4.6.0" abortOnError="false" runType="SEQUENTIAL" activeEnvironment="Default" xmlns:con="http://eviware.com/soapui/config"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.actions.iface.tools.soapui.ProTestRunnerAction@values-local"><![CDATA[<xml-fragment xmlns:con="http://eviware.com/soapui/config">
<con:entry key="Environment" value="Default"/>
<con:entry key="Global Properties" value=""/>
<con:entry key="TestSuite" value="<all>"/>
<con:entry key="Password" value=""/>
<con:entry key="soapui-setings.xml Password" value=""/>
<con:entry key="TestRunner Path" value=""/>
<con:entry key="Tool Args" value=""/>
<con:entry key="Ignore Errors" value="false"/>
<con:entry key="Host:Port" value=""/>
<con:entry key="WSS Password Type" value=""/>
<con:entry key="Save Project" value="false"/>
<con:entry key="Enable UI" value="false"/>
<con:entry key="System Properties" value=""/>
<con:entry key="Domain" value=""/>
<con:entry key="Coverage Report" value="true"/>
<con:entry key="Export JUnit Results" value="true"/>
<con:entry key="Open Report" value="true"/>
<con:entry key="Project Properties" value=""/>
<con:entry key="Export All" value="true"/>
<con:entry key="Project Password" value=""/>
<con:entry key="Report Format(s)" value=""/>
<con:entry key="TestCase" value="<all>"/>
<con:entry key="Print Report" value="true"/>
<con:entry key="Username" value=""/>
<con:entry key="Root Folder" value="D:\Pavan"/>
<con:entry key="Save After" value="false"/>
<con:entry key="Add Settings" value="false"/>
<con:entry key="Endpoint" value=""/>
<con:entry key="Select Report Type" value="JUnit-Style HTML Report"/>
</xml-fragment>]]></con:setting></con:settings><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="CalculatorSoapBinding" type="wsdl" bindingName="{http://ws.myeclipseide.com}CalculatorSoapBinding" soapVersion="1_1" anonymous="optional" definition="file:/C:/Users/PavanH/testJunit/Web%20Service%20Project/WebContent/wsdl/Calculator.wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="file:\C:\Users\PavanH\testJunit\Web%20Service%20Project\WebContent\wsdl\Calculator.wsdl"><con:part><con:url>file:\C:\Users\PavanH\testJunit\Web%20Service%20Project\WebContent\wsdl\Calculator.wsdl</con:url><con:content><![CDATA[<wsdl:definitions targetNamespace="http://ws.myeclipseide.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://ws.myeclipseide.com" xmlns:intf="http://ws.myeclipseide.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://ws.myeclipseide.com" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="add">
<complexType>
<sequence>
<element name="a" type="xsd:int"/>
<element name="b" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="addResponse">
<complexType>
<sequence>
<element name="addReturn" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="divide">
<complexType>
<sequence>
<element name="a" type="xsd:int"/>
<element name="b" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="divideResponse">
<complexType>
<sequence>
<element name="divideReturn" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="multiply">
<complexType>
<sequence>
<element name="a" type="xsd:int"/>
<element name="b" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="multiplyResponse">
<complexType>
<sequence>
<element name="multiplyReturn" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="subtract">
<complexType>
<sequence>
<element name="a" type="xsd:int"/>
<element name="b" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="subtractResponse">
<complexType>
<sequence>
<element name="subtractReturn" type="xsd:int"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="subtractResponse">
<wsdl:part element="impl:subtractResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="divideResponse">
<wsdl:part element="impl:divideResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="addRequest">
<wsdl:part element="impl:add" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="addResponse">
<wsdl:part element="impl:addResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="subtractRequest">
<wsdl:part element="impl:subtract" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="divideRequest">
<wsdl:part element="impl:divide" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="multiplyResponse">
<wsdl:part element="impl:multiplyResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="multiplyRequest">
<wsdl:part element="impl:multiply" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:portType name="Calculator">
<wsdl:operation name="add">
<wsdl:input message="impl:addRequest" name="addRequest"></wsdl:input>
<wsdl:output message="impl:addResponse" name="addResponse"></wsdl:output>
</wsdl:operation>
<wsdl:operation name="divide">
<wsdl:input message="impl:divideRequest" name="divideRequest"></wsdl:input>
<wsdl:output message="impl:divideResponse" name="divideResponse"></wsdl:output>
</wsdl:operation>
<wsdl:operation name="multiply">
<wsdl:input message="impl:multiplyRequest" name="multiplyRequest"></wsdl:input>
<wsdl:output message="impl:multiplyResponse" name="multiplyResponse"></wsdl:output>
</wsdl:operation>
<wsdl:operation name="subtract">
<wsdl:input message="impl:subtractRequest" name="subtractRequest"></wsdl:input>
<wsdl:output message="impl:subtractResponse" name="subtractResponse"></wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CalculatorSoapBinding" type="impl:Calculator">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="add">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="addRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="addResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="divide">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="divideRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="divideResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="multiply">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="multiplyRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="multiplyResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="subtract">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="subtractRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="subtractResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CalculatorService">
<wsdl:port binding="impl:CalculatorSoapBinding" name="Calculator">
<wsdlsoap:address location="http://localhost:8080/Web_Service_Project/services/Calculator"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint></con:endpoints><con:operation isOneWay="false" action="" name="add" bindingOperationName="add" type="Request-Response" outputName="addResponse" inputName="addRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:add>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:add>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/addRequest"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="divide" bindingOperationName="divide" type="Request-Response" outputName="divideResponse" inputName="divideRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:divide>
<ws:a>?</ws:a>
<ws:b>?</ws:b>
</ws:divide>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/divideRequest"/></con:call></con:operation><con:operation isOneWay="false" action="" name="multiply" bindingOperationName="multiply" type="Request-Response" outputName="multiplyResponse" inputName="multiplyRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:multiply>
<ws:a>?</ws:a>
<ws:b>?</ws:b>
</ws:multiply>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/multiplyRequest"/></con:call></con:operation><con:operation isOneWay="false" action="" name="subtract" bindingOperationName="subtract" type="Request-Response" outputName="subtractResponse" inputName="subtractRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:subtract>
<ws:a>?</ws:a>
<ws:b>?</ws:b>
</ws:subtract>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/subtractRequest"/></con:call></con:operation></con:interface><con:testSuite name="Automation Calculator TestSuite"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase failOnError="false" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Calculator TestCase" searchProperties="true" id="cbabb7e5-5483-4814-8200-140dac58a730" timeout="0" wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo="" amfAuthorisation="false" amfEndpoint="" amfLogin="" amfPassword=""><con:settings><con:setting id="IncludeOverview">true</con:setting><con:setting id="IncludeResults">true</con:setting><con:setting id="FlowLayout">false</con:setting><con:setting id="ErrorDetails">true</con:setting><con:setting id="IncludeCoverage">true</con:setting><con:setting id="GeneratableJUnitReport@Style">Multiple Pages</con:setting><con:setting id="GeneratableJUnitReport@Folder">D:\Pavan</con:setting></con:settings><con:testStep type="properties" name="Properties"><con:settings/><con:config xsi:type="con:PropertiesStep" saveFirst="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:properties><con:property><con:name>number1</con:name><con:value>10</con:value></con:property><con:property><con:name>number2</con:name><con:value>10</con:value></con:property><con:property><con:name>addResponseOuput</con:name><con:value>20</con:value></con:property><con:property><con:name>token</con:name><con:value>hfghf</con:value></con:property><con:property><con:name>hfgf</con:name><con:value>777</con:value></con:property></con:properties></con:config></con:testStep><con:testStep type="groovy" name="input"><con:settings/><con:config><script>import com.eviware.soapui.support.*;
import java.awt.*;
import javax.swing.*;
properties = testRunner.testCase.getTestStepByName("Properties");
// create dialog
def dialog = com.eviware.soapui.support.UISupport.createConfigurationDialog( "Enter Input Numbers" );
dialog.addTextField( "Number1", "" );
dialog.addTextField( "Number2", "" );
def map = new java.util.HashMap();
map.put( "Number1", properties.getPropertyValue("number1"));
map.put( "Number2", properties.getPropertyValue("number2"));
boolean finished = false;
while (!finished) {
if (!dialog.show(map)) {
testRunner.cancel( "Failed to capture entry!" );
return;
}
finished = true;
properties.setPropertyValue( "number1", map.get("Number1"));
properties.setPropertyValue( "number2", map.get("Number2"));
}
return;</script></con:config></con:testStep><con:testStep type="request" name="add Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>add</con:operation><con:request name="add Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:add>
<ws:a>${Properties#number1}</ws:a>
<ws:b>${Properties#number2}</ws:b>
</ws:add>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Assert node [soapenv:Text]"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["soapenv"] = "http://schemas.xmlsoap.org/soap/envelope/"
def node = holder.getDomNode( "//soapenv:Text[1]" )
assert node != null
</scriptText></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Assert add Response"><con:settings/><con:config><script>import com.eviware.soapui.support.*;
def addResponse = testRunner.testCase.getTestStepByName("add Request");
def properties = testRunner.testCase.getTestStepByName("Properties");
String addResponseOutput = addResponse.getProperty("Response").getValue();
String operationName = "add Request"
String getProErrorsMsg = new String();
// Parse Add response
def node = new XmlSlurper().parseText(addResponseOutput);
String errorCode = node.Body.Fault.Code.Value.text();
//log.info(node);
if(!errorCode.equals("")) {
String errorMessage =node.Body.Fault.Reason.Text.text();
String message = '\nError Message = '+ errorMessage;
UISupport.showErrorMessage('Operation Failed! '+message );
assert errorMessage.equals("Error Occured while processing the add request.");
log.error(message);
}else
{
String output = node.Body.addResponse.addReturn.text();
assert output != null
assert output != "";
String out = 20;
assert output == out
if(output != null){
String title = 'Add Response';
String message = 'AddResponse = '+output ;
UISupport.showInfoMessage(message, title);
log.info(" Success ["+operationName+" ] Complete");
log.info(" Add Response ["+output+"] ");
}
}
</script></con:config></con:testStep><con:testStep type="request" name="divide Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>divide</con:operation><con:request name="divide Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:divide>
<ws:a>${Properties#number1}</ws:a>
<ws:b>${Properties#number2}</ws:b>
</ws:divide>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Assert Divide request"><con:settings/><con:config><script>import com.eviware.soapui.support.*;
def loginResponse = testRunner.testCase.getTestStepByName("divide Request");
def properties = testRunner.testCase.getTestStepByName("Properties");
String loginResponseOutput = loginResponse.getProperty("Response").getValue();
String operationName = "divide Request"
String tokens = "";
String getProErrorsMsg = new String();
// Parse Add Order response
def node = new XmlSlurper().parseText(loginResponseOutput);
String errorCode = node.Body.Fault.Code.Value.text();
//log.info(node);
if(!errorCode.equals("")) {
//String errorCode = node.Body.Fault.Reason.Text.text();
String errorMessage =node.Body.Fault.Reason.Text.text();
String message = '\nError Message = '+ errorMessage;
UISupport.showErrorMessage('Operation Failed! '+message );
assert errorMessage.equals("Error Occured while processing the Divide request.");
log.error(message);
}else
{
//properties.setPropertyValue( "getProErrorsMsg","");
String token = node.Body.divideResponse.divideReturn.text();
//String name = node.Body.getProfileByIdResponse.profile.name.firstName.text();
tokens = token.toString();
//log.info(names)
String en =properties.getPropertyValue("firstName");
if(tokens != null){
properties.setPropertyValue( "token",tokens);
String title = 'divide Response';
String message = 'DivideResponse = '+tokens ;
UISupport.showInfoMessage(message, title);
log.info(" Success ["+operationName+" ] Complete");
log.info(" Divide Response ["+tokens+"] ");
}
}</script></con:config></con:testStep><con:testStep type="request" name="multiply Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>multiply</con:operation><con:request name="multiply Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:multiply>
<ws:a>${Properties#number1}</ws:a>
<ws:b>${Properties#number2}</ws:b>
</ws:multiply>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Assert Multiply Request"><con:settings/><con:config><script>import com.eviware.soapui.support.*;
def loginResponse = testRunner.testCase.getTestStepByName("multiply Request");
def properties = testRunner.testCase.getTestStepByName("Properties");
String loginResponseOutput = loginResponse.getProperty("Response").getValue();
String operationName = "multiply Request"
String tokens = "";
String getProErrorsMsg = new String();
// Parse Add Order response
def node = new XmlSlurper().parseText(loginResponseOutput);
String errorCode = node.Body.Fault.Code.Value.text();
//log.info(node);
if(!errorCode.equals("")) {
//String errorCode = node.Body.Fault.Reason.Text.text();
String errorMessage =node.Body.Fault.Reason.Text.text();
String message = '\nError Message = '+ errorMessage;
assert errorMessage.equals("Error Occured while processing the multiply request.");
UISupport.showErrorMessage('Operation Failed! '+message );
log.error(message);
}else
{
//properties.setPropertyValue( "getProErrorsMsg","");
String token = node.Body.multiplyResponse.multiplyReturn.text();
//String name = node.Body.getProfileByIdResponse.profile.name.firstName.text();
tokens = token.toString();
//log.info(names)
String en =properties.getPropertyValue("firstName");
if(tokens != null){
properties.setPropertyValue( "token",tokens);
String title = 'multiply Response';
String message = 'MultiplyResponse = '+tokens ;
UISupport.showInfoMessage(message, title);
log.info(" Success ["+operationName+" ] Complete");
log.info(" Multiply Response ["+tokens+"] ");
}
}</script></con:config></con:testStep><con:testStep type="request" name="subtract Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>subtract</con:operation><con:request name="subtract Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:subtract>
<ws:a>${Properties#number1}</ws:a>
<ws:b>${Properties#number2}</ws:b>
</ws:subtract>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Assert Subtract Request"><con:settings/><con:config><script>import com.eviware.soapui.support.*;
def loginResponse = testRunner.testCase.getTestStepByName("subtract Request");
def properties = testRunner.testCase.getTestStepByName("Properties");
String loginResponseOutput = loginResponse.getProperty("Response").getValue();
String operationName = "subtract Request"
String tokens = "";
String getProErrorsMsg = new String();
// Parse Add Order response
def node = new XmlSlurper().parseText(loginResponseOutput);
String errorCode = node.Body.Fault.Code.Value.text();
//log.info(node);
if(!errorCode.equals("")) {
//String errorCode = node.Body.Fault.Reason.Text.text();
String errorMessage =node.Body.Fault.Reason.Text.text();
String message = '\nError Message = '+ errorMessage+'\nsome of the Operations are failed while executing';
assert errorMessage.equals("Error Occured while processing the subtract request.");
UISupport.showErrorMessage('Operation Failed! '+message );
log.error(message);
}else
{
//properties.setPropertyValue( "getProErrorsMsg","");
String token = node.Body.subtractResponse.subtractReturn.text();
//String name = node.Body.getProfileByIdResponse.profile.name.firstName.text();
tokens = token.toString();
//log.info(names)
String en =properties.getPropertyValue("firstName");
if(tokens != null){
properties.setPropertyValue( "token",tokens);
String title = 'subtract Response';
String message = 'Subtract Response = '+tokens+'\n All Operations Executed Successfully' ;
UISupport.showInfoMessage(message, title);
log.info(" Success ["+operationName+" ] Complete");
log.info(" subtract Response ["+tokens+"] ");
}
}</script></con:config></con:testStep><con:properties/><con:reportParameters/></con:testCase><con:properties/><con:reportParameters/></con:testSuite><con:testSuite name="Manual Calculator TestSuite"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Valid Calculator TestCase" searchProperties="true" id="3dafd55f-e989-473c-a1bf-16850f475b1b"><con:settings><con:setting id="IncludeOverview">true</con:setting><con:setting id="IncludeResults">true</con:setting><con:setting id="FlowLayout">false</con:setting><con:setting id="ErrorDetails">true</con:setting><con:setting id="IncludeCoverage">true</con:setting></con:settings><con:testStep type="request" name="add Request" id="4939ae4b-59d6-486c-afe8-cfd2891a9a3f"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>add</con:operation><con:request name="add Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:add>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:add>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>(?s).*20.*</token><ignoreCase>false</ignoreCase><useRegEx>true</useRegEx></con:configuration></con:assertion><con:assertion type="Schema Compliance" name="Schema Compliance"><con:configuration><definition/></con:configuration></con:assertion><con:assertion type="SOAP Fault Assertion" name="Not SOAP Fault"/><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://ws.myeclipseide.com';
//ns1:addResponse[1]/ns1:addReturn[1]</con:xpath><con:element>ws:addReturn</con:element><con:type>XmlInt</con:type><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>10</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>true</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:addResponse>
<ws:addReturn>20</ws:addReturn>
</ws:addResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="XPath Match" name="Match content of [ws:addReturn]"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
//ws:addResponse[1]/ws:addReturn[1]/text()</path><content>20</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Check for existance of [ws:addReturn]"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
exists( //ws:addResponse/ws:addReturn)</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Match content of [ws:addReturn] using RegEx"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
matches( //ws:addResponse[1]/ws:addReturn[1]/text(), '20' )</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="Simple NotContains" name="Not Contains"><con:configuration><token>soapenv:Fault</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains 1"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="XPath Match" name="XPath Match"><con:configuration/></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="divideRequest" id="7b0f03cc-feff-48ba-aa09-0117991ef50a"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>divide</con:operation><con:request name="divideRequest"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:divide>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:divide>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance" name="Schema Compliance"><con:configuration><definition/></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>(?s).*1.*</token><ignoreCase>false</ignoreCase><useRegEx>true</useRegEx></con:configuration></con:assertion><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="SOAP Fault Assertion" name="Not SOAP Fault"/><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://ws.myeclipseide.com';
//ns1:divideResponse[1]/ns1:divideReturn[1]</con:xpath><con:element>ws:divideReturn</con:element><con:type>XmlInt</con:type><con:operator><</con:operator><con:enabled>true</con:enabled><con:expectedValue>0</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>true</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:divideResponse>
<ws:divideReturn>1</ws:divideReturn>
</ws:divideResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="XPath Match" name="Match content of [ws:divideReturn] using RegEx"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
matches( //ws:divideResponse[1]/ws:divideReturn[1]/text(), '1' )</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Check for existance of [ws:divideReturn]"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
exists( //ws:divideResponse/ws:divideReturn)</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="multiply Request" id="54584789-239b-4814-bb84-284f2709e373"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>multiply</con:operation><con:request name="multiply Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:multiply>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:multiply>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>(?s).*100.*</token><ignoreCase>false</ignoreCase><useRegEx>true</useRegEx></con:configuration></con:assertion><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://ws.myeclipseide.com';
//ns1:multiplyResponse[1]/ns1:multiplyReturn[1]</con:xpath><con:element>ws:multiplyReturn</con:element><con:type>XmlInt</con:type><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>100</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>true</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:multiplyResponse>
<ws:multiplyReturn>100</ws:multiplyReturn>
</ws:multiplyResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="SOAP Fault Assertion" name="Not SOAP Fault"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="Schema Compliance" name="Schema Compliance"><con:configuration><definition/></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="subtract Request" id="43f288f9-a55a-4e91-b8a7-4ca6051029e9"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>subtract</con:operation><con:request name="subtract Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:subtract>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:subtract>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="SOAP Fault Assertion" name="Not SOAP Fault"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="Schema Compliance" name="Schema Compliance"><con:configuration><definition/></con:configuration></con:assertion><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://ws.myeclipseide.com';
//ns1:subtractResponse[1]/ns1:subtractReturn[1]</con:xpath><con:element>ws:subtractReturn</con:element><con:type>XmlInt</con:type><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>0</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>true</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:subtractResponse>
<ws:subtractReturn>0</ws:subtractReturn>
</ws:subtractResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>(?s).*0.*</token><ignoreCase>false</ignoreCase><useRegEx>true</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="invalid test data"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>add</con:operation><con:request name="invalid test data"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:add>
<ws:a>yrtr</ws:a>
<ws:b>10</ws:b>
</ws:add>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>(?s).*20.*</token><ignoreCase>false</ignoreCase><useRegEx>true</useRegEx></con:configuration></con:assertion><con:assertion type="Schema Compliance" name="Schema Compliance"><con:configuration><definition/></con:configuration></con:assertion><con:assertion type="SOAP Fault Assertion" name="Not SOAP Fault"/><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://ws.myeclipseide.com';
//ns1:addResponse[1]/ns1:addReturn[1]</con:xpath><con:element>ws:addReturn</con:element><con:type>XmlInt</con:type><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>10</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>true</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:addResponse>
<ws:addReturn>20</ws:addReturn>
</ws:addResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="XPath Match" name="Match content of [ws:addReturn]"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
//ws:addResponse[1]/ws:addReturn[1]/text()</path><content>20</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Check for existance of [ws:addReturn]"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
exists( //ws:addResponse/ws:addReturn)</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Match content of [ws:addReturn] using RegEx"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
matches( //ws:addResponse[1]/ws:addReturn[1]/text(), '20' )</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="Simple NotContains" name="Not Contains"><con:configuration><token>soapenv:Fault</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains 1"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:properties/><con:reportParameters/><con:breakPoints><con:testStepId>4939ae4b-59d6-486c-afe8-cfd2891a9a3f</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>7b0f03cc-feff-48ba-aa09-0117991ef50a</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>54584789-239b-4814-bb84-284f2709e373</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>43f288f9-a55a-4e91-b8a7-4ca6051029e9</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints></con:testCase><con:testCase failOnError="false" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Invalid Calculator TestCase" searchProperties="true" id="271ed00b-63c0-445d-a767-8d1962854681" timeout="0" wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo="" amfAuthorisation="false" amfEndpoint="" amfLogin="" amfPassword=""><con:settings/><con:testStep type="request" name="add Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>add</con:operation><con:request name="add Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:add>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:add>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="Not SOAP Fault Assertion" name="SOAP Fault"/><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://schemas.xmlsoap.org/soap/envelope/';
//ns1:Text[1]</con:xpath><con:element>soapenv:Text</con:element><con:type xsi:nil="true"/><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue xsi:nil="true"/><con:hasValue>false</con:hasValue><con:numberType>false</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the add request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="SOAP Response" name="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>(?s).*soapenv:Fault.*</token><ignoreCase>true</ignoreCase><useRegEx>true</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="divideRequest"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>divide</con:operation><con:request name="divideRequest"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:divide>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:divide>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response" name="SOAP Response"/><con:assertion type="Not SOAP Fault Assertion" name="SOAP Fault"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://schemas.xmlsoap.org/soap/envelope/';
//ns1:Text[1]</con:xpath><con:element>soapenv:Text</con:element><con:type xsi:nil="true"/><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>Error Occured while processing the Divide request.</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>false</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the Divide request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="multiply Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>multiply</con:operation><con:request name="multiply Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:multiply>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:multiply>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://schemas.xmlsoap.org/soap/envelope/';
//ns1:Text[1]</con:xpath><con:element>soapenv:Text</con:element><con:type xsi:nil="true"/><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>Error Occured while processing the multiply request.</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>false</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the multiply request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="Not SOAP Fault Assertion" name="SOAP Fault"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="subtract Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>subtract</con:operation><con:request name="subtract Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:subtract>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:subtract>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://schemas.xmlsoap.org/soap/envelope/';
//ns1:Text[1]</con:xpath><con:element>soapenv:Text</con:element><con:type xsi:nil="true"/><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>Error Occured while processing the subtract request.</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>false</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the subtract request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="Not SOAP Fault Assertion" name="SOAP Fault"/><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:properties/><con:reportParameters/></con:testCase><con:testCase failOnError="false" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="demo dataSource" searchProperties="true" id="d60bdad2-c35d-4884-954a-12d29ea66bf5" timeout="0" wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo="" amfAuthorisation="false" amfEndpoint="" amfLogin="" amfPassword=""><con:settings><con:setting id="IncludeOverview">true</con:setting><con:setting id="IncludeResults">true</con:setting><con:setting id="FlowLayout">false</con:setting><con:setting id="ErrorDetails">true</con:setting><con:setting id="IncludeCoverage">true</con:setting></con:settings><con:testStep type="datasource" name="DataSource" id="2a754293-3a86-4e1b-9a68-220c6b3009bd"><con:settings/><con:config xsi:type="con:DataSourceStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:dataSource type="Excel"><con:configuration><file/><worksheet/><cell>A1</cell><ignoreEmpty>false</ignoreEmpty></con:configuration></con:dataSource><con:property>number1</con:property><con:property>number2</con:property><con:property>ExpectedResult</con:property><con:restartOnRun>true</con:restartOnRun></con:config></con:testStep><con:testStep type="request" name="add Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>add</con:operation><con:request name="add Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:add>
<ws:a>${DataSource#number1}</ws:a>
<ws:b>${DataSource#number2}</ws:b>
</ws:add>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="XPath Match" name="Match content of [ws:addReturn] using RegEx"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
matches( //ws:addResponse[1]/ws:addReturn[1]/text(), '${DataSource#ExpectedResult}' )</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="datasourceloop" name="DataSource Loop"><con:settings/><con:config><dataSourceStep>DataSource</dataSourceStep><targetStep>add Request</targetStep></con:config></con:testStep><con:properties/><con:reportParameters/><con:breakPoints><con:testStepId>4939ae4b-59d6-486c-afe8-cfd2891a9a3f</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>7b0f03cc-feff-48ba-aa09-0117991ef50a</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>54584789-239b-4814-bb84-284f2709e373</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>43f288f9-a55a-4e91-b8a7-4ca6051029e9</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>2a754293-3a86-4e1b-9a68-220c6b3009bd</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints></con:testCase><con:properties/><con:reportParameters/></con:testSuite><con:mockService port="8089" path="/mockCalculatorSoapBinding" host="IN-WKS-374" name="CalculatorSoapBinding MockService1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.mock.WsdlMockService@require-soap-action">false</con:setting></con:settings><con:mockOperation name="add" interface="CalculatorSoapBinding" operation="add"><con:settings/><con:dispatchStyle>SEQUENCE</con:dispatchStyle><con:defaultResponse>ValidAddResponse</con:defaultResponse><con:response name="ValidAddResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:addResponse>
<ws:addReturn>20</ws:addReturn>
</ws:addResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/addResponse"/></con:response><con:response name="InValidAddResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the add request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/addResponse"/></con:response><con:dispatchConfig/></con:mockOperation><con:mockOperation name="divide" interface="CalculatorSoapBinding" operation="divide"><con:settings/><con:dispatchStyle>SEQUENCE</con:dispatchStyle><con:defaultResponse>ValidDivideResponse</con:defaultResponse><con:response name="ValidDivideResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:divideResponse>
<ws:divideReturn>1</ws:divideReturn>
</ws:divideResponse>
</soapenv:Body>
</soapenv:Envelope>
]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/divideResponse"/></con:response><con:response name="InValidDivideResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the Divide request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/divideResponse"/></con:response><con:dispatchConfig/></con:mockOperation><con:mockOperation name="multiply" interface="CalculatorSoapBinding" operation="multiply"><con:settings/><con:dispatchStyle>SEQUENCE</con:dispatchStyle><con:defaultResponse>ValidMultiplyResponse</con:defaultResponse><con:response name="ValidMultiplyResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:multiplyResponse>
<ws:multiplyReturn>100</ws:multiplyReturn>
</ws:multiplyResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/multiplyResponse"/></con:response><con:response name="InValidMultiplyResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the multiply request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/multiplyResponse"/></con:response><con:dispatchConfig/></con:mockOperation><con:mockOperation name="subtract" interface="CalculatorSoapBinding" operation="subtract"><con:settings/><con:dispatchStyle>SEQUENCE</con:dispatchStyle><con:defaultResponse>ValidSubtractResponse</con:defaultResponse><con:response name="ValidSubtractResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:subtractResponse>
<ws:subtractReturn>0</ws:subtractReturn>
</ws:subtractResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/subtractResponse"/></con:response><con:response name="InValidSubtractResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the subtract request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/subtractResponse"/></con:response><con:dispatchConfig/></con:mockOperation><con:properties/></con:mockService><con:requirements/><con:properties/><con:wssContainer/><con:databaseConnectionContainer/><con:reporting><con:xmlTemplates/><con:parameters/></con:reporting><con:sensitiveInformation/></con:soapui-project>
<con:soapui-project name="Calculator" resourceRoot="" soapui-version="4.6.0" abortOnError="false" runType="SEQUENTIAL" activeEnvironment="Default" xmlns:con="http://eviware.com/soapui/config"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.actions.iface.tools.soapui.ProTestRunnerAction@values-local"><![CDATA[<xml-fragment xmlns:con="http://eviware.com/soapui/config">
<con:entry key="Environment" value="Default"/>
<con:entry key="Global Properties" value=""/>
<con:entry key="TestSuite" value="<all>"/>
<con:entry key="Password" value=""/>
<con:entry key="soapui-setings.xml Password" value=""/>
<con:entry key="TestRunner Path" value=""/>
<con:entry key="Tool Args" value=""/>
<con:entry key="Ignore Errors" value="false"/>
<con:entry key="Host:Port" value=""/>
<con:entry key="WSS Password Type" value=""/>
<con:entry key="Save Project" value="false"/>
<con:entry key="Enable UI" value="false"/>
<con:entry key="System Properties" value=""/>
<con:entry key="Domain" value=""/>
<con:entry key="Coverage Report" value="true"/>
<con:entry key="Export JUnit Results" value="true"/>
<con:entry key="Open Report" value="true"/>
<con:entry key="Project Properties" value=""/>
<con:entry key="Export All" value="true"/>
<con:entry key="Project Password" value=""/>
<con:entry key="Report Format(s)" value=""/>
<con:entry key="TestCase" value="<all>"/>
<con:entry key="Print Report" value="true"/>
<con:entry key="Username" value=""/>
<con:entry key="Root Folder" value="D:\Pavan"/>
<con:entry key="Save After" value="false"/>
<con:entry key="Add Settings" value="false"/>
<con:entry key="Endpoint" value=""/>
<con:entry key="Select Report Type" value="JUnit-Style HTML Report"/>
</xml-fragment>]]></con:setting></con:settings><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="CalculatorSoapBinding" type="wsdl" bindingName="{http://ws.myeclipseide.com}CalculatorSoapBinding" soapVersion="1_1" anonymous="optional" definition="file:/C:/Users/PavanH/testJunit/Web%20Service%20Project/WebContent/wsdl/Calculator.wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="file:\C:\Users\PavanH\testJunit\Web%20Service%20Project\WebContent\wsdl\Calculator.wsdl"><con:part><con:url>file:\C:\Users\PavanH\testJunit\Web%20Service%20Project\WebContent\wsdl\Calculator.wsdl</con:url><con:content><![CDATA[<wsdl:definitions targetNamespace="http://ws.myeclipseide.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://ws.myeclipseide.com" xmlns:intf="http://ws.myeclipseide.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://ws.myeclipseide.com" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="add">
<complexType>
<sequence>
<element name="a" type="xsd:int"/>
<element name="b" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="addResponse">
<complexType>
<sequence>
<element name="addReturn" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="divide">
<complexType>
<sequence>
<element name="a" type="xsd:int"/>
<element name="b" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="divideResponse">
<complexType>
<sequence>
<element name="divideReturn" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="multiply">
<complexType>
<sequence>
<element name="a" type="xsd:int"/>
<element name="b" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="multiplyResponse">
<complexType>
<sequence>
<element name="multiplyReturn" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="subtract">
<complexType>
<sequence>
<element name="a" type="xsd:int"/>
<element name="b" type="xsd:int"/>
</sequence>
</complexType>
</element>
<element name="subtractResponse">
<complexType>
<sequence>
<element name="subtractReturn" type="xsd:int"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="subtractResponse">
<wsdl:part element="impl:subtractResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="divideResponse">
<wsdl:part element="impl:divideResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="addRequest">
<wsdl:part element="impl:add" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="addResponse">
<wsdl:part element="impl:addResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="subtractRequest">
<wsdl:part element="impl:subtract" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="divideRequest">
<wsdl:part element="impl:divide" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="multiplyResponse">
<wsdl:part element="impl:multiplyResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="multiplyRequest">
<wsdl:part element="impl:multiply" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:portType name="Calculator">
<wsdl:operation name="add">
<wsdl:input message="impl:addRequest" name="addRequest"></wsdl:input>
<wsdl:output message="impl:addResponse" name="addResponse"></wsdl:output>
</wsdl:operation>
<wsdl:operation name="divide">
<wsdl:input message="impl:divideRequest" name="divideRequest"></wsdl:input>
<wsdl:output message="impl:divideResponse" name="divideResponse"></wsdl:output>
</wsdl:operation>
<wsdl:operation name="multiply">
<wsdl:input message="impl:multiplyRequest" name="multiplyRequest"></wsdl:input>
<wsdl:output message="impl:multiplyResponse" name="multiplyResponse"></wsdl:output>
</wsdl:operation>
<wsdl:operation name="subtract">
<wsdl:input message="impl:subtractRequest" name="subtractRequest"></wsdl:input>
<wsdl:output message="impl:subtractResponse" name="subtractResponse"></wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CalculatorSoapBinding" type="impl:Calculator">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="add">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="addRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="addResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="divide">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="divideRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="divideResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="multiply">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="multiplyRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="multiplyResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="subtract">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="subtractRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="subtractResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CalculatorService">
<wsdl:port binding="impl:CalculatorSoapBinding" name="Calculator">
<wsdlsoap:address location="http://localhost:8080/Web_Service_Project/services/Calculator"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint></con:endpoints><con:operation isOneWay="false" action="" name="add" bindingOperationName="add" type="Request-Response" outputName="addResponse" inputName="addRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:add>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:add>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/addRequest"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="divide" bindingOperationName="divide" type="Request-Response" outputName="divideResponse" inputName="divideRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:divide>
<ws:a>?</ws:a>
<ws:b>?</ws:b>
</ws:divide>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/divideRequest"/></con:call></con:operation><con:operation isOneWay="false" action="" name="multiply" bindingOperationName="multiply" type="Request-Response" outputName="multiplyResponse" inputName="multiplyRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:multiply>
<ws:a>?</ws:a>
<ws:b>?</ws:b>
</ws:multiply>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/multiplyRequest"/></con:call></con:operation><con:operation isOneWay="false" action="" name="subtract" bindingOperationName="subtract" type="Request-Response" outputName="subtractResponse" inputName="subtractRequest" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:subtract>
<ws:a>?</ws:a>
<ws:b>?</ws:b>
</ws:subtract>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/subtractRequest"/></con:call></con:operation></con:interface><con:testSuite name="Automation Calculator TestSuite"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase failOnError="false" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Calculator TestCase" searchProperties="true" id="cbabb7e5-5483-4814-8200-140dac58a730" timeout="0" wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo="" amfAuthorisation="false" amfEndpoint="" amfLogin="" amfPassword=""><con:settings><con:setting id="IncludeOverview">true</con:setting><con:setting id="IncludeResults">true</con:setting><con:setting id="FlowLayout">false</con:setting><con:setting id="ErrorDetails">true</con:setting><con:setting id="IncludeCoverage">true</con:setting><con:setting id="GeneratableJUnitReport@Style">Multiple Pages</con:setting><con:setting id="GeneratableJUnitReport@Folder">D:\Pavan</con:setting></con:settings><con:testStep type="properties" name="Properties"><con:settings/><con:config xsi:type="con:PropertiesStep" saveFirst="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:properties><con:property><con:name>number1</con:name><con:value>10</con:value></con:property><con:property><con:name>number2</con:name><con:value>10</con:value></con:property><con:property><con:name>addResponseOuput</con:name><con:value>20</con:value></con:property><con:property><con:name>token</con:name><con:value>hfghf</con:value></con:property><con:property><con:name>hfgf</con:name><con:value>777</con:value></con:property></con:properties></con:config></con:testStep><con:testStep type="groovy" name="input"><con:settings/><con:config><script>import com.eviware.soapui.support.*;
import java.awt.*;
import javax.swing.*;
properties = testRunner.testCase.getTestStepByName("Properties");
// create dialog
def dialog = com.eviware.soapui.support.UISupport.createConfigurationDialog( "Enter Input Numbers" );
dialog.addTextField( "Number1", "" );
dialog.addTextField( "Number2", "" );
def map = new java.util.HashMap();
map.put( "Number1", properties.getPropertyValue("number1"));
map.put( "Number2", properties.getPropertyValue("number2"));
boolean finished = false;
while (!finished) {
if (!dialog.show(map)) {
testRunner.cancel( "Failed to capture entry!" );
return;
}
finished = true;
properties.setPropertyValue( "number1", map.get("Number1"));
properties.setPropertyValue( "number2", map.get("Number2"));
}
return;</script></con:config></con:testStep><con:testStep type="request" name="add Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>add</con:operation><con:request name="add Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:add>
<ws:a>${Properties#number1}</ws:a>
<ws:b>${Properties#number2}</ws:b>
</ws:add>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" name="Assert node [soapenv:Text]"><con:configuration><scriptText>import com.eviware.soapui.support.XmlHolder
def holder = new XmlHolder( messageExchange.responseContentAsXml )
holder.namespaces["soapenv"] = "http://schemas.xmlsoap.org/soap/envelope/"
def node = holder.getDomNode( "//soapenv:Text[1]" )
assert node != null
</scriptText></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Assert add Response"><con:settings/><con:config><script>import com.eviware.soapui.support.*;
def addResponse = testRunner.testCase.getTestStepByName("add Request");
def properties = testRunner.testCase.getTestStepByName("Properties");
String addResponseOutput = addResponse.getProperty("Response").getValue();
String operationName = "add Request"
String getProErrorsMsg = new String();
// Parse Add response
def node = new XmlSlurper().parseText(addResponseOutput);
String errorCode = node.Body.Fault.Code.Value.text();
//log.info(node);
if(!errorCode.equals("")) {
String errorMessage =node.Body.Fault.Reason.Text.text();
String message = '\nError Message = '+ errorMessage;
UISupport.showErrorMessage('Operation Failed! '+message );
assert errorMessage.equals("Error Occured while processing the add request.");
log.error(message);
}else
{
String output = node.Body.addResponse.addReturn.text();
assert output != null
assert output != "";
String out = 20;
assert output == out
if(output != null){
String title = 'Add Response';
String message = 'AddResponse = '+output ;
UISupport.showInfoMessage(message, title);
log.info(" Success ["+operationName+" ] Complete");
log.info(" Add Response ["+output+"] ");
}
}
</script></con:config></con:testStep><con:testStep type="request" name="divide Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>divide</con:operation><con:request name="divide Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:divide>
<ws:a>${Properties#number1}</ws:a>
<ws:b>${Properties#number2}</ws:b>
</ws:divide>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Assert Divide request"><con:settings/><con:config><script>import com.eviware.soapui.support.*;
def loginResponse = testRunner.testCase.getTestStepByName("divide Request");
def properties = testRunner.testCase.getTestStepByName("Properties");
String loginResponseOutput = loginResponse.getProperty("Response").getValue();
String operationName = "divide Request"
String tokens = "";
String getProErrorsMsg = new String();
// Parse Add Order response
def node = new XmlSlurper().parseText(loginResponseOutput);
String errorCode = node.Body.Fault.Code.Value.text();
//log.info(node);
if(!errorCode.equals("")) {
//String errorCode = node.Body.Fault.Reason.Text.text();
String errorMessage =node.Body.Fault.Reason.Text.text();
String message = '\nError Message = '+ errorMessage;
UISupport.showErrorMessage('Operation Failed! '+message );
assert errorMessage.equals("Error Occured while processing the Divide request.");
log.error(message);
}else
{
//properties.setPropertyValue( "getProErrorsMsg","");
String token = node.Body.divideResponse.divideReturn.text();
//String name = node.Body.getProfileByIdResponse.profile.name.firstName.text();
tokens = token.toString();
//log.info(names)
String en =properties.getPropertyValue("firstName");
if(tokens != null){
properties.setPropertyValue( "token",tokens);
String title = 'divide Response';
String message = 'DivideResponse = '+tokens ;
UISupport.showInfoMessage(message, title);
log.info(" Success ["+operationName+" ] Complete");
log.info(" Divide Response ["+tokens+"] ");
}
}</script></con:config></con:testStep><con:testStep type="request" name="multiply Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>multiply</con:operation><con:request name="multiply Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:multiply>
<ws:a>${Properties#number1}</ws:a>
<ws:b>${Properties#number2}</ws:b>
</ws:multiply>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Assert Multiply Request"><con:settings/><con:config><script>import com.eviware.soapui.support.*;
def loginResponse = testRunner.testCase.getTestStepByName("multiply Request");
def properties = testRunner.testCase.getTestStepByName("Properties");
String loginResponseOutput = loginResponse.getProperty("Response").getValue();
String operationName = "multiply Request"
String tokens = "";
String getProErrorsMsg = new String();
// Parse Add Order response
def node = new XmlSlurper().parseText(loginResponseOutput);
String errorCode = node.Body.Fault.Code.Value.text();
//log.info(node);
if(!errorCode.equals("")) {
//String errorCode = node.Body.Fault.Reason.Text.text();
String errorMessage =node.Body.Fault.Reason.Text.text();
String message = '\nError Message = '+ errorMessage;
assert errorMessage.equals("Error Occured while processing the multiply request.");
UISupport.showErrorMessage('Operation Failed! '+message );
log.error(message);
}else
{
//properties.setPropertyValue( "getProErrorsMsg","");
String token = node.Body.multiplyResponse.multiplyReturn.text();
//String name = node.Body.getProfileByIdResponse.profile.name.firstName.text();
tokens = token.toString();
//log.info(names)
String en =properties.getPropertyValue("firstName");
if(tokens != null){
properties.setPropertyValue( "token",tokens);
String title = 'multiply Response';
String message = 'MultiplyResponse = '+tokens ;
UISupport.showInfoMessage(message, title);
log.info(" Success ["+operationName+" ] Complete");
log.info(" Multiply Response ["+tokens+"] ");
}
}</script></con:config></con:testStep><con:testStep type="request" name="subtract Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>subtract</con:operation><con:request name="subtract Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:subtract>
<ws:a>${Properties#number1}</ws:a>
<ws:b>${Properties#number2}</ws:b>
</ws:subtract>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="groovy" name="Assert Subtract Request"><con:settings/><con:config><script>import com.eviware.soapui.support.*;
def loginResponse = testRunner.testCase.getTestStepByName("subtract Request");
def properties = testRunner.testCase.getTestStepByName("Properties");
String loginResponseOutput = loginResponse.getProperty("Response").getValue();
String operationName = "subtract Request"
String tokens = "";
String getProErrorsMsg = new String();
// Parse Add Order response
def node = new XmlSlurper().parseText(loginResponseOutput);
String errorCode = node.Body.Fault.Code.Value.text();
//log.info(node);
if(!errorCode.equals("")) {
//String errorCode = node.Body.Fault.Reason.Text.text();
String errorMessage =node.Body.Fault.Reason.Text.text();
String message = '\nError Message = '+ errorMessage+'\nsome of the Operations are failed while executing';
assert errorMessage.equals("Error Occured while processing the subtract request.");
UISupport.showErrorMessage('Operation Failed! '+message );
log.error(message);
}else
{
//properties.setPropertyValue( "getProErrorsMsg","");
String token = node.Body.subtractResponse.subtractReturn.text();
//String name = node.Body.getProfileByIdResponse.profile.name.firstName.text();
tokens = token.toString();
//log.info(names)
String en =properties.getPropertyValue("firstName");
if(tokens != null){
properties.setPropertyValue( "token",tokens);
String title = 'subtract Response';
String message = 'Subtract Response = '+tokens+'\n All Operations Executed Successfully' ;
UISupport.showInfoMessage(message, title);
log.info(" Success ["+operationName+" ] Complete");
log.info(" subtract Response ["+tokens+"] ");
}
}</script></con:config></con:testStep><con:properties/><con:reportParameters/></con:testCase><con:properties/><con:reportParameters/></con:testSuite><con:testSuite name="Manual Calculator TestSuite"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Valid Calculator TestCase" searchProperties="true" id="3dafd55f-e989-473c-a1bf-16850f475b1b"><con:settings><con:setting id="IncludeOverview">true</con:setting><con:setting id="IncludeResults">true</con:setting><con:setting id="FlowLayout">false</con:setting><con:setting id="ErrorDetails">true</con:setting><con:setting id="IncludeCoverage">true</con:setting></con:settings><con:testStep type="request" name="add Request" id="4939ae4b-59d6-486c-afe8-cfd2891a9a3f"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>add</con:operation><con:request name="add Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:add>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:add>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>(?s).*20.*</token><ignoreCase>false</ignoreCase><useRegEx>true</useRegEx></con:configuration></con:assertion><con:assertion type="Schema Compliance" name="Schema Compliance"><con:configuration><definition/></con:configuration></con:assertion><con:assertion type="SOAP Fault Assertion" name="Not SOAP Fault"/><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://ws.myeclipseide.com';
//ns1:addResponse[1]/ns1:addReturn[1]</con:xpath><con:element>ws:addReturn</con:element><con:type>XmlInt</con:type><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>10</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>true</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:addResponse>
<ws:addReturn>20</ws:addReturn>
</ws:addResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="XPath Match" name="Match content of [ws:addReturn]"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
//ws:addResponse[1]/ws:addReturn[1]/text()</path><content>20</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Check for existance of [ws:addReturn]"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
exists( //ws:addResponse/ws:addReturn)</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Match content of [ws:addReturn] using RegEx"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
matches( //ws:addResponse[1]/ws:addReturn[1]/text(), '20' )</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="Simple NotContains" name="Not Contains"><con:configuration><token>soapenv:Fault</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains 1"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="XPath Match" name="XPath Match"><con:configuration/></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="divideRequest" id="7b0f03cc-feff-48ba-aa09-0117991ef50a"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>divide</con:operation><con:request name="divideRequest"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:divide>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:divide>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance" name="Schema Compliance"><con:configuration><definition/></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>(?s).*1.*</token><ignoreCase>false</ignoreCase><useRegEx>true</useRegEx></con:configuration></con:assertion><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="SOAP Fault Assertion" name="Not SOAP Fault"/><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://ws.myeclipseide.com';
//ns1:divideResponse[1]/ns1:divideReturn[1]</con:xpath><con:element>ws:divideReturn</con:element><con:type>XmlInt</con:type><con:operator><</con:operator><con:enabled>true</con:enabled><con:expectedValue>0</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>true</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:divideResponse>
<ws:divideReturn>1</ws:divideReturn>
</ws:divideResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="XPath Match" name="Match content of [ws:divideReturn] using RegEx"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
matches( //ws:divideResponse[1]/ws:divideReturn[1]/text(), '1' )</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Check for existance of [ws:divideReturn]"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
exists( //ws:divideResponse/ws:divideReturn)</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="multiply Request" id="54584789-239b-4814-bb84-284f2709e373"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>multiply</con:operation><con:request name="multiply Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:multiply>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:multiply>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>(?s).*100.*</token><ignoreCase>false</ignoreCase><useRegEx>true</useRegEx></con:configuration></con:assertion><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://ws.myeclipseide.com';
//ns1:multiplyResponse[1]/ns1:multiplyReturn[1]</con:xpath><con:element>ws:multiplyReturn</con:element><con:type>XmlInt</con:type><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>100</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>true</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:multiplyResponse>
<ws:multiplyReturn>100</ws:multiplyReturn>
</ws:multiplyResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="SOAP Fault Assertion" name="Not SOAP Fault"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="Schema Compliance" name="Schema Compliance"><con:configuration><definition/></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="subtract Request" id="43f288f9-a55a-4e91-b8a7-4ca6051029e9"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>subtract</con:operation><con:request name="subtract Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:subtract>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:subtract>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="SOAP Fault Assertion" name="Not SOAP Fault"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="Schema Compliance" name="Schema Compliance"><con:configuration><definition/></con:configuration></con:assertion><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://ws.myeclipseide.com';
//ns1:subtractResponse[1]/ns1:subtractReturn[1]</con:xpath><con:element>ws:subtractReturn</con:element><con:type>XmlInt</con:type><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>0</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>true</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:subtractResponse>
<ws:subtractReturn>0</ws:subtractReturn>
</ws:subtractResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>(?s).*0.*</token><ignoreCase>false</ignoreCase><useRegEx>true</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="invalid test data"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>add</con:operation><con:request name="invalid test data"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:add>
<ws:a>yrtr</ws:a>
<ws:b>10</ws:b>
</ws:add>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>(?s).*20.*</token><ignoreCase>false</ignoreCase><useRegEx>true</useRegEx></con:configuration></con:assertion><con:assertion type="Schema Compliance" name="Schema Compliance"><con:configuration><definition/></con:configuration></con:assertion><con:assertion type="SOAP Fault Assertion" name="Not SOAP Fault"/><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://ws.myeclipseide.com';
//ns1:addResponse[1]/ns1:addReturn[1]</con:xpath><con:element>ws:addReturn</con:element><con:type>XmlInt</con:type><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>10</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>true</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:addResponse>
<ws:addReturn>20</ws:addReturn>
</ws:addResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="XPath Match" name="Match content of [ws:addReturn]"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
//ws:addResponse[1]/ws:addReturn[1]/text()</path><content>20</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Check for existance of [ws:addReturn]"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
exists( //ws:addResponse/ws:addReturn)</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="XPath Match" name="Match content of [ws:addReturn] using RegEx"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
matches( //ws:addResponse[1]/ws:addReturn[1]/text(), '20' )</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="Simple NotContains" name="Not Contains"><con:configuration><token>soapenv:Fault</token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:assertion type="Simple Contains" name="Contains 1"><con:configuration><token/><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:properties/><con:reportParameters/><con:breakPoints><con:testStepId>4939ae4b-59d6-486c-afe8-cfd2891a9a3f</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>7b0f03cc-feff-48ba-aa09-0117991ef50a</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>54584789-239b-4814-bb84-284f2709e373</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>43f288f9-a55a-4e91-b8a7-4ca6051029e9</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints></con:testCase><con:testCase failOnError="false" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Invalid Calculator TestCase" searchProperties="true" id="271ed00b-63c0-445d-a767-8d1962854681" timeout="0" wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo="" amfAuthorisation="false" amfEndpoint="" amfLogin="" amfPassword=""><con:settings/><con:testStep type="request" name="add Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>add</con:operation><con:request name="add Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:add>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:add>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="Not SOAP Fault Assertion" name="SOAP Fault"/><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://schemas.xmlsoap.org/soap/envelope/';
//ns1:Text[1]</con:xpath><con:element>soapenv:Text</con:element><con:type xsi:nil="true"/><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue xsi:nil="true"/><con:hasValue>false</con:hasValue><con:numberType>false</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the add request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="SOAP Response" name="SOAP Response"/><con:assertion type="Simple Contains" name="Contains"><con:configuration><token>(?s).*soapenv:Fault.*</token><ignoreCase>true</ignoreCase><useRegEx>true</useRegEx></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="divideRequest"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>divide</con:operation><con:request name="divideRequest"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:divide>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:divide>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response" name="SOAP Response"/><con:assertion type="Not SOAP Fault Assertion" name="SOAP Fault"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://schemas.xmlsoap.org/soap/envelope/';
//ns1:Text[1]</con:xpath><con:element>soapenv:Text</con:element><con:type xsi:nil="true"/><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>Error Occured while processing the Divide request.</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>false</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the Divide request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="multiply Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>multiply</con:operation><con:request name="multiply Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:multiply>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:multiply>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://schemas.xmlsoap.org/soap/envelope/';
//ns1:Text[1]</con:xpath><con:element>soapenv:Text</con:element><con:type xsi:nil="true"/><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>Error Occured while processing the multiply request.</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>false</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the multiply request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="Not SOAP Fault Assertion" name="SOAP Fault"/><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="subtract Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>subtract</con:operation><con:request name="subtract Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:subtract>
<ws:a>10</ws:a>
<ws:b>10</ws:b>
</ws:subtract>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="MessageContentAssertion" name="Message Content Assertion"><con:configuration xsi:type="con:MessageContentAssertion"><con:elements><con:xpath>declare namespace ns1='http://schemas.xmlsoap.org/soap/envelope/';
//ns1:Text[1]</con:xpath><con:element>soapenv:Text</con:element><con:type xsi:nil="true"/><con:operator>=</con:operator><con:enabled>true</con:enabled><con:expectedValue>Error Occured while processing the subtract request.</con:expectedValue><con:hasValue>false</con:hasValue><con:numberType>false</con:numberType></con:elements><con:originalMessage><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the subtract request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:originalMessage></con:configuration></con:assertion><con:assertion type="Response SLA Assertion" name="Response SLA"><con:configuration><SLA>1000</SLA></con:configuration></con:assertion><con:assertion type="Not SOAP Fault Assertion" name="SOAP Fault"/><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:properties/><con:reportParameters/></con:testCase><con:testCase failOnError="false" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="demo dataSource" searchProperties="true" id="d60bdad2-c35d-4884-954a-12d29ea66bf5" timeout="0" wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo="" amfAuthorisation="false" amfEndpoint="" amfLogin="" amfPassword=""><con:settings><con:setting id="IncludeOverview">true</con:setting><con:setting id="IncludeResults">true</con:setting><con:setting id="FlowLayout">false</con:setting><con:setting id="ErrorDetails">true</con:setting><con:setting id="IncludeCoverage">true</con:setting></con:settings><con:testStep type="datasource" name="DataSource" id="2a754293-3a86-4e1b-9a68-220c6b3009bd"><con:settings/><con:config xsi:type="con:DataSourceStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:dataSource type="Excel"><con:configuration><file/><worksheet/><cell>A1</cell><ignoreEmpty>false</ignoreEmpty></con:configuration></con:dataSource><con:property>number1</con:property><con:property>number2</con:property><con:property>ExpectedResult</con:property><con:restartOnRun>true</con:restartOnRun></con:config></con:testStep><con:testStep type="request" name="add Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CalculatorSoapBinding</con:interface><con:operation>add</con:operation><con:request name="add Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://IN-WKS-374:8089/mockCalculatorSoapBinding</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:add>
<ws:a>${DataSource#number1}</ws:a>
<ws:b>${DataSource#number2}</ws:b>
</ws:add>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="XPath Match" name="Match content of [ws:addReturn] using RegEx"><con:configuration><path>declare namespace ws='http://ws.myeclipseide.com';
matches( //ws:addResponse[1]/ws:addReturn[1]/text(), '${DataSource#ExpectedResult}' )</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="datasourceloop" name="DataSource Loop"><con:settings/><con:config><dataSourceStep>DataSource</dataSourceStep><targetStep>add Request</targetStep></con:config></con:testStep><con:properties/><con:reportParameters/><con:breakPoints><con:testStepId>4939ae4b-59d6-486c-afe8-cfd2891a9a3f</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>7b0f03cc-feff-48ba-aa09-0117991ef50a</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>54584789-239b-4814-bb84-284f2709e373</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>43f288f9-a55a-4e91-b8a7-4ca6051029e9</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints><con:breakPoints><con:testStepId>2a754293-3a86-4e1b-9a68-220c6b3009bd</con:testStepId><con:status>NONE</con:status><con:properties/></con:breakPoints></con:testCase><con:properties/><con:reportParameters/></con:testSuite><con:mockService port="8089" path="/mockCalculatorSoapBinding" host="IN-WKS-374" name="CalculatorSoapBinding MockService1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.mock.WsdlMockService@require-soap-action">false</con:setting></con:settings><con:mockOperation name="add" interface="CalculatorSoapBinding" operation="add"><con:settings/><con:dispatchStyle>SEQUENCE</con:dispatchStyle><con:defaultResponse>ValidAddResponse</con:defaultResponse><con:response name="ValidAddResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:addResponse>
<ws:addReturn>20</ws:addReturn>
</ws:addResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/addResponse"/></con:response><con:response name="InValidAddResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the add request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/addResponse"/></con:response><con:dispatchConfig/></con:mockOperation><con:mockOperation name="divide" interface="CalculatorSoapBinding" operation="divide"><con:settings/><con:dispatchStyle>SEQUENCE</con:dispatchStyle><con:defaultResponse>ValidDivideResponse</con:defaultResponse><con:response name="ValidDivideResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:divideResponse>
<ws:divideReturn>1</ws:divideReturn>
</ws:divideResponse>
</soapenv:Body>
</soapenv:Envelope>
]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/divideResponse"/></con:response><con:response name="InValidDivideResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the Divide request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/divideResponse"/></con:response><con:dispatchConfig/></con:mockOperation><con:mockOperation name="multiply" interface="CalculatorSoapBinding" operation="multiply"><con:settings/><con:dispatchStyle>SEQUENCE</con:dispatchStyle><con:defaultResponse>ValidMultiplyResponse</con:defaultResponse><con:response name="ValidMultiplyResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:multiplyResponse>
<ws:multiplyReturn>100</ws:multiplyReturn>
</ws:multiplyResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/multiplyResponse"/></con:response><con:response name="InValidMultiplyResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the multiply request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/multiplyResponse"/></con:response><con:dispatchConfig/></con:mockOperation><con:mockOperation name="subtract" interface="CalculatorSoapBinding" operation="subtract"><con:settings/><con:dispatchStyle>SEQUENCE</con:dispatchStyle><con:defaultResponse>ValidSubtractResponse</con:defaultResponse><con:response name="ValidSubtractResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<ws:subtractResponse>
<ws:subtractReturn>0</ws:subtractReturn>
</ws:subtractResponse>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/subtractResponse"/></con:response><con:response name="InValidSubtractResponse" encoding="UTF-8"><con:settings/><con:responseContent><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.myeclipseide.com">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soap:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">Error Occured while processing the subtract request.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>]]></con:responseContent><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.myeclipseide.com/Calculator/subtractResponse"/></con:response><con:dispatchConfig/></con:mockOperation><con:properties/></con:mockService><con:requirements/><con:properties/><con:wssContainer/><con:databaseConnectionContainer/><con:reporting><con:xmlTemplates/><con:parameters/></con:reporting><con:sensitiveInformation/></con:soapui-project>