Contributions
Re: Dynamic WSDL definition update and update test request
That will be really good. I already got the groovy script for this and i shared it already. All i want is can some one have a look at that and tell mw what the problom is. I am not comfortable with the parameters that i am passing in the below function. Please have a look and get back to me. Any help is appreciated. def nli1=com.eviware.soapui.impl.wsdl.actions.iface.UpdateInterfaceAction.recreateRequests( element,false,false,true,false) def nli=com.eviware.soapui.impl.wsdl.actions.iface.UpdateInterfaceAction.recreateTestRequests( element,false,false,true,false)10 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.8KViews0likes0CommentsRe: SoapUI Pro 5.1.1. upgrade Data sink error
The error remains the same even if its XLS or XLSX. I cant use the out file option because this will over-right the source file. All the headers will be lost. I am sending this a report. I have to use the Option File.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0CommentsSoapUI Pro 5.1.1. upgrade Data sink error
Hello I was using SoapUI Pro 4.6.4 and can be able to execute my test suite successfully. I upgraded to Pro 5.1.1 today and getting the following error when running the same test suit. Please help. TestCase failed [java.lang.Exception: Failed to prepare testStep [DataSinkExcel]; org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance:java.lang.Exception: Failed to prepare testStep [DataSinkExcel]; org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance], time taken = 0 Details: Its complaining about the Data Sink that i got. If i disable the test stem and run its running successfully. In the Data sing i am writing the out to an exel file. Its a XLS file. Please the snap shot provided.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes3CommentsRe: Dynamic WSDL definition update and update test request
hello Temil I think you didn't understand my question completely. I want to update my definitions dynamically when running a test suit. usually u right right click on the WSDL definition and update definition and select update test requests also. I want to automate this process. I want to update the definitions and update my test requests before i run the suit so that they fail.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.8KViews0likes0CommentsDynamic WSDL definition update and update test request
Hello i want to know how to update WSDL definitions dynamically and update the test requests in the test suit if any definition updated. I know we can do this manually but we got too many WSDl definitions and communication is really bad among different providers. So we don't know when and which definition is getting updated so unable to do it manually. when running the targeted test suit i need to update the latest definition first and then run the test suit on the updated test requests. I created a groovy script but its not working as expected. Is there any better way to implement this or can you please correct my script especially the parameters that i am passing to Create test request function. import com.eviware.soapui.impl.wsdl.actions.iface.UpdateInterfaceAction; import com.eviware.soapui.impl.*; import com.eviware.soapui.impl.wsdl.*; import com.eviware.soapui.config.*; import com.eviware.soapui.config.InterfaceConfig.Factory; import java.net.*; import java.io.*; import java.lang.*; InterfaceConfig config = InterfaceConfig.Factory.parse(new URL("http://wbmgwy1-dev3.metest.local:8655/ws/MEB_SM_ProductMgmt.WS.provider.v1:ProductService?WSDL")); WsdlProject project = new WsdlProject("S:\\Change & Technology\\Transformation Project\\04 Projects\\11 Origination\\06 .Test\\R2 System Testing\\04 Test Scripts\\Services Testing\\workspace\\Prasanth-soapui-project.xml"); def li= project.getInterfaceList() log.info li.size() Iterator iter=li.iterator() while(iter.hasNext()){ Object element=iter.next() log.info element.getName() // log.info element.get //element.reload() log.info element.getInterfaceType() def nli1=com.eviware.soapui.impl.wsdl.actions.iface.UpdateInterfaceAction.recreateRequests( element,false,false,true,false) def nli=com.eviware.soapui.impl.wsdl.actions.iface.UpdateInterfaceAction.recreateTestRequests( element,false,false,true,false) log.info nli.size() Iterator iter1=nli.iterator() while(iter1.hasNext()){ Object element1=iter1.next() log.info element1.getName() } // log.info element.getDefinition() // element.updateDefinition( } project.save() project.release()10 years agoPlace ReadyAPI QuestionsReadyAPI Questions5.5KViews0likes8CommentsTest Step Result
hello I am creating a health check test suit for a test environment. I created the test suit and its working fine. Now i want to put the results into a Excel sheet and send an email automatically. the only problem i am facing for this is how to capture a Test step result in a property so i can easily use the property in Data sing to print it in an Excel sheet. Say i got a 2 assertions for every test step in the suit and those assertions will decide whether the particular step failed or passed i know we can say it easily by looking at the color green and red but i want to capture it in a property and print it on a excel using Data sink. Can some one help me in how to know whether a test step is pass or fail in run time and store the result in a property.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes1CommentRe: Default Response Comparison.
We want it to show all the fields including all the optional. Can you be able to give a sample Groovy script that fires the MockResponse test step dynamically. After firing the groovy script is there any option that we need to enable to show all the fields. Thanks in advance.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes0CommentsRe: Default Response Comparison.
Thanks Markus. it worked but still didn't solve the issue. i created the mock response in the test suit and loaded the default response from the schema. Is there a way to load it dynamically from the schema every time i run the test suite. Because if the dev has changed the schema and didn't let us know we need to run the suit and find out the difference. but now if we run it loads once and compares the same when ever we run but what we need is it need to load the response from the schema every time we run the suit.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes0CommentsRe: Default Response Comparison.
Yes I do. After getting the pop up i am saving the default response in a variable as shown below. def responseDev = context.expand( '${BSBCode - Dev#Response}' ) but when you want to display it it displaying blank. def responseDev = context.expand( '${BSBCode - Dev#Response}' ) see the attached snapshot10 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes0CommentsDefault Response Comparison.
One of our third party vendor keep on changing the WSDL's with out informing us so we decided to compare the WSDL's between their DEv and out SIT env every day to know whether any change in the WSDL structure or now. I created a project load the required WSDL comparing the Default Request by using a Groovy script. I dont want to fire a request because many fields in the response or optional and Soap UI will only show the required. So i need to compare the default Response with out firring a request. I am just capturing the Default request successfully and can be able to compare by using the below groovy script. def requestDev = context.expand( '${GetPartyInformation - Dev#Request}' ) def requestJEnv = context.expand( '${GetPartyInformation - JEnv#Request}' ) if (requestDev == requestJEnv ) { testRunner.testCase.getTestStepByName("GetPartyInformation - JEnv").setPropertyValue( "Username", "XSD Match" ) } else { testRunner.testCase.getTestStepByName("GetPartyInformation - JEnv").setPropertyValue( "Username", "XSD Mismatch" ) } I tried the same way to capture the response as well but no luck. Can you please advice how to capture default response for an operation and compare against two env.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.9KViews0likes7Comments