Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import xml.filter.*;
- def RequestXML = testRunner.testCase.getTestStepByName('PSWS, SOAP Request, See readme').getProperty('Request').getValue()
- //log.info ("Request XML: " + RequestXML)
- def xmlInput = RequestXML
- //Filter filter = new Filter();
- def filter = new Filter();
- //filter.setProperty("/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='UserName']", "MEW I AM CAT");
- // Load data from test data file.
- def projectPath = new com.eviware.soapui.support.GroovyUtils(context).projectPath //gets the path of the project root
- //log.info "Project Path: ${projectPath}"
- def directory = "${projectPath}" + "\tests\test_data"
- def expected_file = "test_data2.xml"
- def filepath = "${directory}" + "\" + "${expected_file}"
- //log.info ("Attempting To Load Test Data File: " + filepath)
- def file = new File(filepath)
- assert file.exists()
- String fileContents = new File("${filepath}").getText('UTF-8')
- def response = new XmlSlurper().parseText(fileContents)
- def test_data = response.test_data.testCase
- def count = 0
- // Clear ALL SOAP PROPERTIES BERFORE ENTERING... BEWARE, MONSTERS LIE HERE..
- // Iterate over test_data file, loading all attributes.
- test_data.each { testcase ->
- //log.info ('tag' + tag)
- count ++
- log.info ( "------ $count -------" )
- for (String attrib : testcase.attributes().keySet()){
- value = testcase.@"$attrib".text()
- testRunner.testCase.testSuite.setPropertyValue( "${attrib}", "${value}")
- //log.info ("Setting AttributeName: ${attrib}, Attribute Value: " + testRunner.testCase.testSuite.getPropertyValue( "${attrib}"))
- }
- testcase.children().each { testprops ->
- for (String propattrib : testprops.attributes().keySet()) {
- value = testprops.@"$propattrib".text()
- log.info ('prop: ' + "${propattrib}" + ' value: ' + "${value}") // this is okay
- testRunner.testCase.testSuite.setPropertyValue( "${propattrib}", "${value}") // this sets a property
- testRunner.testCase.testSuite.setPropertyValue( "${propattrib}", "${value}") // this sets a property
- log.info ("READING SOAP Properties to prop value.... AttributeName: ${propattrib}, Attribute Value: " + testRunner.testCase.testSuite.getPropertyValue( "${propattrib}")) // this reads the property just set, but its wrong - WTF?
- if (propattrib.toLowerCase().contains("xpath")){
- // BUGS BE HERE!!!
- // Get attribute value from Soap Properties.
- def substring = propattrib.minus("xpath_")
- def attributeValue = testRunner.testCase.testSuite.getPropertyValue( "${substring}") // this don't look right
- def xpath = testprops.@"$propattrib".text()
- log.info ("XPATH FOUND for Attribute Name: " + propattrib + "Xpath: " + xpath)
- filter.setProperty("$xpath", "$propattrib");
- //log.info ('property set.')
- }
- else {
- //log.info ('No xpath attribute found for' + attrib1.toLowerCase())
- }
- }
- }
- log.info("TEST FILTER xmlInput: " + xmlInput);
- def tc_output = filter.filterAndChange(xmlInput)
- //log.info("MAGIC HAPPENS HERE, TEST CASE OUTPUT: " + tc_output);
- def stepName = "PSWS, SOAP Request, See readme"
- def requestSet = testRunner.testCase.getTestStepByName( "${stepName}" );
- requestSet.getProperty("request").setValue(tc_output);
- def executeStep = testRunner.runTestStepByName("${stepName}")
- //log.info "Validation Status = $executeStep.status";
- if ("$executeStep.status" == "FAILED"){
- log.error ("Validation Status = FAILED")
- }
- else {log.info ("Validation Status = PASSED")
- }
- // RESET REQUEST XML
- //requestSet.getProperty("request").setValue('');
- def executeStep2 = testRunner.runTestStepByName("Update Soap Request/TestRequests From Definition")
- }
- package xml.filter;
- import java.io.StringReader;
- import java.io.StringWriter;
- import java.util.HashMap;
- import java.util.Map;
- import javax.xml.parsers.DocumentBuilder;
- import javax.xml.parsers.DocumentBuilderFactory;
- import javax.xml.transform.OutputKeys;
- import javax.xml.transform.Transformer;
- import javax.xml.transform.TransformerFactory;
- import javax.xml.transform.dom.DOMSource;
- import javax.xml.transform.stream.StreamResult;
- import javax.xml.xpath.XPath;
- import javax.xml.xpath.XPathConstants;
- import javax.xml.xpath.XPathExpression;
- import javax.xml.xpath.XPathFactory;
- import org.apache.commons.lang3.StringUtils;
- import org.w3c.dom.Document;
- import org.w3c.dom.Element;
- import org.w3c.dom.Node;
- import org.xml.sax.InputSource;
- public class Filter {
- public static final String CHANGE_ELEMENT = "CHANGE_ELEMENT";
- public static final String CHANGE_ATTRIBUTE = "CHANGE_ATTRIBUTE";
- public static final String REMOVE_ELEMENT = "REMOVE_ELEMENT";
- public static final String REMOVE_ATTRIBUTE = "REMOVE_ATTRIBUTE";
- public static class FilterData {
- public String xpath;
- public String wantedValue;
- public String attributeName;
- public String operation;
- public FilterData(String xpath, String wantedValue) {
- this(xpath, null, wantedValue,
- wantedValue == "null" ? REMOVE_ELEMENT : CHANGE_ELEMENT);
- }
- public FilterData(String xpath, String attributeName,
- String wantedValue, String operation) {
- this.xpath = xpath;
- this.attributeName = attributeName;
- this.wantedValue = wantedValue;
- this.operation = operation;
- }
- }
- private final Map<String, FilterData> xpaths;
- public Filter() {
- xpaths = new HashMap<String, FilterData>();
- }
- public void setProperty(String xpath, String value) {
- xpaths.put(xpath, new FilterData(xpath, value));
- }
- public void setProperty(String xpath, String attributeOrElementName,
- String attributeOrElementValue, String operation) {
- xpaths.put(xpath, new FilterData(xpath, attributeOrElementName,
- attributeOrElementValue, operation));
- }
- /**
- * Removes elements (if required) from the input XML and also updates nodes.
- *
- * @param xmlInput
- * the input xml.
- * @return XML with nodes filter and/or their text content changed.
- */
- public String filterAndChange(String xmlInput) {
- if (StringUtils.isBlank(xmlInput)) {
- System.out.println("Problem");
- return null;
- }
- String xml = xmlInput;
- try {
- InputSource source = new InputSource(new StringReader(xml));
- DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
- DocumentBuilder db = dbf.newDocumentBuilder();
- Document document = db.parse(source);
- for (Map.Entry<String, FilterData> entry : xpaths.entrySet()) {
- String xpath = entry.getKey();
- String wantedValue = entry.getValue().wantedValue;
- String attributeName = entry.getValue().attributeName;
- String operation = entry.getValue().operation;
- Node node = runXPath(document, xpath);
- if (node == null) {
- throw new IllegalArgumentException(
- "Cannot find node - check XPATH: " + xpath);
- }
- switch (operation) {
- case REMOVE_ELEMENT:
- node.getParentNode().removeChild(node);
- break;
- case REMOVE_ATTRIBUTE:
- ((Element) node).getAttributes().removeNamedItem(
- attributeName);
- break;
- case CHANGE_ELEMENT:
- node.setTextContent(wantedValue);
- break;
- case CHANGE_ATTRIBUTE:
- ((Element) node).getAttributes()
- .getNamedItem(attributeName)
- .setNodeValue(wantedValue);
- break;
- default:
- throw new IllegalArgumentException(
- "Unknown operation type: " + operation);
- }
- }
- xml = documentToString(document);
- } catch (Exception e) {
- throw new RuntimeException("Error updating XML", e);
- }
- return xml;
- }
- public static String documentToString(Document doc) throws Exception {
- TransformerFactory transfac = TransformerFactory.newInstance();
- Transformer trans = transfac.newTransformer();
- trans.setOutputProperty(OutputKeys.METHOD, "xml");
- trans.setOutputProperty(OutputKeys.INDENT, "yes");
- trans.setOutputProperty("{http://xml.apache.org/xslt}indent-amount",
- Integer.toString(4));
- StringWriter sw = new StringWriter();
- StreamResult result = new StreamResult(sw);
- DOMSource source = new DOMSource(doc.getDocumentElement());
- trans.transform(source, result);
- return sw.toString();
- }
- public static Node runXPath(Document document, String xPathString) {
- try {
- XPath xPath = XPathFactory.newInstance().newXPath();
- XPathExpression expr = xPath.compile(xPathString);
- return (Node) expr.evaluate(document, XPathConstants.NODE);
- } catch (Exception e) {
- throw new RuntimeException("Error executing xPath: " + xPathString,
- e);
- }
- }
- }
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:tem="http://tempuri.org/">
- <soapenv:Header/>
- <soapenv:Body>
- <tem:Execute>
- <tem:UserName>?</tem:UserName>
- <tem:Password>?</tem:Password>
- <tem:PayLoad>
- <tem:RequestHeader>
- <tem:User>
- <tem:UserName>?</tem:UserName>
- <tem:UserFullName>?</tem:UserFullName>
- <tem:UserIdentity>?</tem:UserIdentity>
- <!--Optional:-->
- <tem:UserRole>?</tem:UserRole>
- </tem:User>
- <!--Optional:-->
- <tem:SystemHeader>
- <tem:Identification>?</tem:Identification>
- </tem:SystemHeader>
- </tem:RequestHeader>
- <tem:RequestBody>
- <tem:RequestMethod>
- <tem:MethodDefinition>
- <tem:Name>?</tem:Name>
- <tem:Version>?</tem:Version>
- <!--Optional:-->
- <tem:Format>?</tem:Format>
- </tem:MethodDefinition>
- <tem:Content>
- <!--Optional:-->
- <tem:Filter>?</tem:Filter>
- <tem:Patient>
- <!--Optional:-->
- <tem:Type>?</tem:Type>
- <!--Optional:-->
- <tem:Value>?</tem:Value>
- <!--Optional:-->
- <tem:dob>?</tem:dob>
- <!--Optional:-->
- <tem:soundex>?</tem:soundex>
- <!--Optional:-->
- <tem:forename>?</tem:forename>
- <!--Optional:-->
- <tem:surname>?</tem:surname>
- <!--Optional:-->
- <tem:postcode>?</tem:postcode>
- <!--Optional:-->
- <tem:address>?</tem:address>
- </tem:Patient>
- <!--Optional:-->
- <tem:Consent>
- <tem:Type>?</tem:Type>
- <!--Optional:-->
- <tem:Reason>?</tem:Reason>
- <!--Optional:-->
- <tem:DateTime>?</tem:DateTime>
- </tem:Consent>
- </tem:Content>
- </tem:RequestMethod>
- </tem:RequestBody>
- </tem:PayLoad>
- </tem:Execute>
- </soapenv:Body>
- </soapenv:Envelope>
- <root>
- <test_data>
- <!-- AUTHENTICATION TESTS -->
- <!--Trusted UserName/Password Valid, providing service is setup-->
- <testCase TestCase_Name="some meaningful name 1" Expected_Result="sys_auth_failure">
- <trustedUser trustedUser="wales2000" xpath_trustedUser="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='UserName']"/>
- <trustedUserPassword trustedUserPassword="Password1" xpath_trustedUserPassword="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='Password']"/>
- <!-- Request Header-->
- <!-- User -->
- <UserName UserName="ABCtest" xpath_UserName="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestHeader']/*[local-name()='User']/*[local-name()='UserName']"/>
- <UserFullName UserFullName="ABCtest1" xpath_UserFullName="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestHeader']/*[local-name()='User']/*[local-name()='UserFullName']"/>
- <UserIdentity UserIdentity="6554" xpath_UserIdentity="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestHeader']/*[local-name()='User']/*[local-name()='UserIdentity']"/>
- <UserIdentity UserRole="" xpath_UserRole="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestHeader']/*[local-name()='User']/*[local-name()='UserRole']"/>
- <!-- System Header-->
- <Identification Identification="" xpath_Identification="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestHeader']/*[local-name()='SystemHeader']/*[local-name()='Identification']"/>
- <!-- Request Body -->
- <!-- Method Definition -->
- <MethodName MethodName="MIG.DetailedRecord" xpath_MethodName="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='MethodDefinition']/*[local-name()='Name']"/>
- <Version Version="1.0.0" xpath_Version="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='MethodDefinition']/*[local-name()='Version']"/>
- <Format Format="" xpath_Format="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='MethodDefinition']/*[local-name()='Format']"/>
- <!-- Content -->
- <Filter Filter="PATIENT DETAILS" xpath_Filter="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Filter']"/>
- <!-- Patient -->
- <patientNumberType patientNumberType="NHS" xpath_patientNumberType="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='Type']"/>
- <patientNumber patientNumber="7536556357" xpath_patientNumber="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='Value']"/>
- <dob dob="null" xpath_dob="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='dob']"/>
- <soundex soundex="null" xpath_soundex="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='soundex']"/>
- <forename forename="null" xpath_forename="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='forename']"/>
- <surname surname="patientsurname6" xpath_surname="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='surname']"/>
- <postcode postcode="null" xpath_postcode="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='postcode']"/>
- <address address="null" xpath_address="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='address']"/>
- <!-- Consent -->
- <Type Type="null" xpath_Type="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Consent']/*[local-name()='Type']"/>
- <Reason Reason="null" xpath_Reason="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Consent']/*[local-name()='Reason']"/>
- <DateTime DateTime="null" xpath_DateTime="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Consent']/*[local-name()='DateTime']"/>
- </testCase>
- <!-- PAT NOT FOUND SCENARIOS -->
- <testCase TestCase_Name="some meaningful name 2" Expected_Result="sys_auth_failure">
- <trustedUser trustedUser="adastra2000" xpath_trustedUser="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='UserName']"/>
- <trustedUserPassword trustedUserPassword="Password1" xpath_trustedUserPassword="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='Password']"/>
- <!-- Request Header-->
- <!-- User -->
- <UserName UserName="ABCtest" xpath_UserName="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestHeader']/*[local-name()='User']/*[local-name()='UserName']"/>
- <UserFullName UserFullName="ABCtest1" xpath_UserFullName="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestHeader']/*[local-name()='User']/*[local-name()='UserFullName']"/>
- <UserIdentity UserIdentity="6554" xpath_UserIdentity="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestHeader']/*[local-name()='User']/*[local-name()='UserIdentity']"/>
- <UserIdentity UserRole="" xpath_UserRole="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestHeader']/*[local-name()='User']/*[local-name()='UserRole']"/>
- <!-- System Header-->
- <Identification Identification="" xpath_Identification="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestHeader']/*[local-name()='SystemHeader']/*[local-name()='Identification']"/>
- <!-- Request Body -->
- <!-- Method Definition -->
- <MethodName MethodName="MIG.DetailedRecord" xpath_MethodName="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='MethodDefinition']/*[local-name()='Name']"/>
- <Version Version="1.0.0" xpath_Version="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='MethodDefinition']/*[local-name()='Version']"/>
- <Format Format="" xpath_Format="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='MethodDefinition']/*[local-name()='Format']"/>
- <!-- Content -->
- <Filter Filter="PATIENT DETAILS" xpath_Filter="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Filter']"/>
- <!-- Patient -->
- <patientNumberType patientNumberType="NHS" xpath_patientNumberType="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='Type']"/>
- <patientNumber patientNumber="7536556357" xpath_patientNumber="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='Value']"/>
- <dob dob="null" xpath_dob="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='dob']"/>
- <soundex soundex="null" xpath_soundex="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='soundex']"/>
- <forename forename="null" xpath_forename="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='forename']"/>
- <surname surname="patientsurname6" xpath_surname="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='surname']"/>
- <postcode postcode="null" xpath_postcode="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='postcode']"/>
- <address address="null" xpath_address="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Patient']/*[local-name()='address']"/>
- <!-- Consent -->
- <Type Type="null" xpath_Type="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Consent']/*[local-name()='Type']"/>
- <Reason Reason="null" xpath_Reason="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Consent']/*[local-name()='Reason']"/>
- <DateTime DateTime="null" xpath_DateTime="/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='Execute']/*[local-name()='PayLoad']/*[local-name()='RequestBody']/*[local-name()='RequestMethod']/*[local-name()='Content']/*[local-name()='Consent']/*[local-name()='DateTime']"/>
- </testCase>
- </test_data>
- </root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement