cancel
Showing results for 
Search instead for 
Did you mean: 

Update definition of interface

Highlighted
Occasional Contributor

Update definition of interface

Hi all,

 

I'm finding solution for the problem, but still not finish yet.

Could you please help me?

I want to update definition of interface and including checking on option: Update TestRequests

 

Please refer to this document for more detail about update definition; https://www.soapui.org/soap-and-wsdl/reference/wsdl-interface.html

 

Here is script I use:

myInterface=(WsdlInterface) testRunner.testCase.testSuite.project.getInterfaceByName("interfacename");
myInterface.updateDefinition(url, false)
recreateRequests(myInterface,false,false,false,false);
recreateTestRequests(myInterface,false,false,false,false);
updateTestRequests(myInterface,true,true,true,true);

Thanks in advance.

 

Best regards,

Linh

Tags (4)
7 REPLIES 7
Highlighted
Community Hero

Have done a groovy script some time ago to update the definitions. Refer below and see if that is helpful:
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/UpdateWSDLDefinition.groovy


Regards,
Rao.
Highlighted
Occasional Contributor

Thanks for your response.

But it does not work in my side, could you please help to check?

I cannot run: updateWsdl.updateRequests()

It got error: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'com.eviware.soapui.impl.rest.RestService@50705e1b' with class 'com.eviware.soapui.impl.rest.RestService' to class 'com.eviware.soapui.impl.wsdl.WsdlInterface'

 

Thanks in advance.

 

 

Thanks,

Linh

Highlighted
Community Hero

I did it for wsdl update. Are you, by any chance, using it for Rest service update? If so, then it is not available at the moment.


Regards,
Rao.
Highlighted
Occasional Contributor

I used it to update definition of interface.

I think it matched with your code, but I cannot detect reason why it did work.

 

Thanks,

Linh

Highlighted
Community Hero

Do you mean to say that you could proceed?


Regards,
Rao.
Highlighted
Occasional Contributor

I think I could process with your script but now, it got error and I try to fix it, I need your help as well.

 

Thanks,

Linh

Highlighted
Contributor

This clears the existing message content. 


@nmrao wrote:
Have done a groovy script some time ago to update the definitions. Refer below and see if that is helpful:
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/UpdateWSDLDefinition.groovy

 

New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Want a fun and easy way to learn ReadyAPI and show off your skills? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get a full Raw JMS request

Participate!

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors