AnsweredAssumed Answered

SOAPUI Converter for SOAP Request

Question asked by mehercharan on Nov 16, 2017
Latest reply on Nov 20, 2017 by mehercharan

Using 8.0.1 version

I am converting SOAP UI SOAP Request Test Cases to Dev Test.

I found one linkSOAPUI DevTest Importer  with that help was able to do Rest Request but getting stuck for the SOAP Requests.

Steps taken below:-

1. Created LISA Nodes for 

<Node name="{{teststepname}}" log="" type="com.itko.lisa.ws.nx.NxWSStep" version="1"
uid="502EF201CAB311E7811FC0335EE23A52" think="500-1S" useFilters="true" quiet="false"

next="{{teststepname_next}}" >

 

<wsdl>{{Endpoint}}?wsdl</wsdl>
<endpoint>{{Endpoint}}</endpoint>
<service>{{testCasename}}</service>
<operation>{{teststepname}}</operation>
<request>{{steprequest}}</request>
<onError>abort</onError>
<data-type>text</data-type>
<onError>abort</onError>
{{Header}}
{{Assert}}

 

2. Dev Test created the file .tst which is basically Web Service Execution(XML) step.

 

The XML created by DEvTest is in below format

 

<?xml version="1.0" encoding="UTF-8"?>
<TestCase name="AccountDaaSDispatchProcessBinding" version="5">
<meta>
<create version="8.0.1" buildNumber="8.0.1.644" author="pkuma412" date="06/14/2016" host="FCGJ05450172" />
<lastEdited version="8.0.1" buildNumber="8.0.1.644" author="pkuma412" date="06/15/2016" host="FCGJ05450172" />
</meta>
<id>F04119831E711E6A103EA6420524153</id>
<Documentation>Put documentation of the Test Case here.</Documentation>
<IsInProject>true</IsInProject>
<sig>ZWQ9NSZ0Y3Y9NSZsaXNhdj04LjAuMSAoOC4wLjEuNjQ0KSZub2Rlcz0xNTc4Mjk2NTY5</sig>
<subprocess>false</subprocess>
<initState />
<resultState />
<deletedProps />
<Node name="process" log="" type="com.itko.lisa.ws.nx.NxWSStep" version="1" uid="502EF201CAB311E7811FC0335EE23A52" think="500-1S" useFilters="true" quiet="false" next="">
<!-- Filters -->
<wsdl>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx?wsdl</wsdl>
<endpoint>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</endpoint>
<service>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</service>
<operation>process</operation>
<request>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:acc="http://www.vmware.com/it/mw/AccountDaaS">
<soapenv:Header />
<soapenv:Body>
<ns2:*************************** xmlns:ns2="http://www.vmware.com/it/mw/Accountxxxxx" xmlns:ns4="http://www.vmware.com/it/mw/common">
<ns2:************************************>
<ns2:sourceSystem>MDM Portal</ns2:sourceSystem>
<ns2:sourceRecordIdentifier>1e273d3f-c86e-4613-bda3-a9e8773ca960</ns2:sourceRecordIdentifier>
<ns2:entitlementAccountNumber>586599766</ns2:entitlementAccountNumber>
<ns2:customerType>DIRECT</ns2:customerType>
<ns2:outputRecordCount>10</ns2:outputRecordCount>
<ns2:searchMode>combination</ns2:searchMode>
<ns2:searchType>Append</ns2:searchType>
<ns2:TRLMatchScoreThreshold>90</ns2:TRLMatchScoreThreshold>
<ns2:IMConfidenceCodeThreshold>7</ns2:IMConfidenceCodeThreshold>
</ns2:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
</ns2:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
</soapenv:Body>
</soapenv:Envelope>
</request>
<onError>abort</onError>
<data-type>text</data-type>
<onError>abort</onError>
<CheckResult assertTrue="false" name="Valid HTTP Status Codes" type="com.itko.lisa.test.CheckResultHTTPResponseCode">
<log />
<then>fail</then>
<param>200</param>
</CheckResult>
</Node>
<Node name="abort" log="" type="com.itko.lisa.test.AbortStep" version="1" uid="F04119A31E711E6A103EA6420524153" think="0h" useFilters="true" quiet="true" next="" />
<Node name="fail" log="" type="com.itko.lisa.test.Abend" version="1" uid="F04119C31E711E6A103EA6420524153" think="0h" useFilters="true" quiet="true" next="abort" />
<Node name="end" log="" type="com.itko.lisa.test.NormalEnd" version="1" uid="F04119E31E711E6A103EA6420524153" think="0h" useFilters="true" quiet="true" next="fail" />
</TestCase>

 

But when I open the Test do not find any Request being passed to step in the .tst.

This is format I am getting in .tst

<?xml version="1.0" encoding="UTF-8"?>
<TestCase name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" version="5">
<meta>
<create version="8.0.1" buildNumber="8.0.1.644" author="pkuma412" date="06/14/2016" host="FCGJ05450172" />
<lastEdited version="8.0.1" buildNumber="8.0.1.644" author="bcbc" date="11/16/2017" host="bcbc" />
</meta>
<id>F04119831E711E6A103EA6420524153</id>
<Documentation>Put documentation of the Test Case here.</Documentation>
<IsInProject>true</IsInProject>
<sig>ZWQ9NSZ0Y3Y9NSZsaXNhdj04LjAuMSAoOC4wLjEuNjQ0KSZub2Rlcz0xOTExNzQzMDc1</sig>
<subprocess>false</subprocess>
<initState />
<resultState />
<deletedProps />
<Node name="process" log="" type="com.itko.lisa.ws.nx.NxWSStep" version="1" uid="502EF201CAB311E7811FC0335EE23A52" think="500-1S" useFilters="true" quiet="false" next="">
<!-- Assertions -->
<CheckResult assertTrue="false" name="Valid HTTP Status Codes" type="com.itko.lisa.test.CheckResultHTTPResponseCode">
<log>Assertion name: Valid HTTP Status Codes checks for: false is of type: HTTP Response Code.</log>
<then>fail</then>
<valueToAssertKey />
<param>200</param>
</CheckResult>
<wsdl>http://dev15soa.vmware.com:7777/orabpel/default/AccountDaaSDispatchProcess/1.0?wsdl</wsdl>
<endpoint>http://dev15soa.vmware.com:7777/orabpel/default/AccountDaaSDispatchProcess/1.0</endpoint>
<targetNamespace />
<service>AccountDaaSDispatchProcessBinding</service>
<port />
<operation>process</operation>
<onError>abort</onError>
<maintainSession>true</maintainSession>
<clearSession>false</clearSession>
<style>document</style>
<use>literal</use>
<soapAction />
<sslInfo />
<wsiInfo>
<wsi-check-wsdl>false</wsi-check-wsdl>
<wsi-check-msg>false</wsi-check-msg>
<wsi-display-type>onlyFailed</wsi-display-type>
<wsi-on-fail>continue</wsi-on-fail>
</wsiInfo>
<transport>
<soapVersionUri>1.1</soapVersionUri>
<httpVersionUri>1.1</httpVersionUri>
<webMethodUri>POST</webMethodUri>
<mtom>false</mtom>
<dontSendRequest>false</dontSendRequest>
<fault-as-error>true</fault-as-error>
<callTimeout>30000</callTimeout>
</transport>
<uddiActive>false</uddiActive>
<uddi-result>
<uddi-selection>
<inquiry-url />
<binding-template-key />
<access-point />
<tmodel-key />
</uddi-selection>
</uddi-result>
<wss4jInfo>
<version>5</version>
<wssecurity>
<isSend>true</isSend>
<must>false</must>
</wssecurity>
<wssecurity>
<isSend>false</isSend>
<must>false</must>
</wssecurity>
<wsi-bsp>false</wsi-bsp>
</wss4jInfo>
<wsaInfo>
<useAddressing>false</useAddressing>
<must>false</must>
<to />
<toOverride>false</toOverride>
<toDefault>true</toDefault>
<from />
<fromOverride>false</fromOverride>
<fromDefault>true</fromDefault>
<action />
<actionOverride>false</actionOverride>
<actionDefault>true</actionDefault>
<msgid />
<msgidOverride>false</msgidOverride>
<msgidDefault>true</msgidDefault>
<replyTo />
<replyToOverride>false</replyToOverride>
<faultTo />
<faulttToOverride>false</faulttToOverride>
<addressingVersion>http://www.w3.org/2005/08/addressing</addressingVersion>
</wsaInfo>
<customHTTPHeaderInfo />
<attachments>
<attachment-type>MIME</attachment-type>
</attachments>
<mtom-paths />
</Node>
<Node name="end" log="" type="com.itko.lisa.test.NormalEnd" version="1" uid="F04119E31E711E6A103EA6420524153" think="0h" useFilters="true" quiet="true" next="fail" />
<Node name="fail" log="" type="com.itko.lisa.test.Abend" version="1" uid="F04119C31E711E6A103EA6420524153" think="0h" useFilters="true" quiet="true" next="abort" />
<Node name="abort" log="" type="com.itko.lisa.test.AbortStep" version="1" uid="F04119A31E711E6A103EA6420524153" think="0h" useFilters="true" quiet="true" next="" />
</TestCase>

 

Due to which Test is failing.

Outcomes