cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Up a VIRT to Test ESB Transformation

Community Leader

Setting Up a VIRT to Test ESB Transformation

Hi,

 

I know it's bad form to ask 'open questions' but despite this I'm hoping you can let this slide and provide a little guidance anyway.

 

My developers create apis that allow me to exercise various tests in soapui and now they want me to start creating VIRTs so they dont have to bother creating these apis anymore.

 

I want to see if I can create a VIRT that will support testing ESB transformations (json to XML, json to json etc.) and I know from my reading (Web Services Testing with SoapUI.pdf and soap.org help) it can be done - but I don't know where to start really and I was hoping that you guys might be able to point me to some resources I can read to get me started?

 

Many thanks to any help/guidance anyone can provide and again - apologies for the 'open question'

 

Cheers,

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
3 REPLIES
Moderator

Re: Setting Up a VIRT to Test ESB Transformation

Hi richie,

 

Please see the following article about scripting in ServiceV: Virtual Service Scripting.

And the following articles which could help you with the transformation:

Converting XML to JSON in Groovy: https://stackoverflow.com/questions/18830248/converting-xml-to-json-in-groovy

Processing XML: http://groovy-lang.org/processing-xml.html

Parsing and producing JSON: http://groovy-lang.org/json.html

 

Anastasia
Customer Care Team




Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

Community Leader

Re: Setting Up a VIRT to Test ESB Transformation

thank you - I'll start reading up!

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
Highlighted
Community Leader

Re: Setting Up a VIRT to Test ESB Transformation

Hi Richie! 

 

My starting point (after reading docs) was to import WSDL or WADL into ServiceV first. Once imported successfully, the application will create the mock/virtual service and auto-generate API response for you. You will then customise that response to your needs and configure end-points to hit when you call the service. 

 

You can data-drive your responses, select your dispatch style (prefer script) but if you are starting new, then play around with sequence/random/xPath etc to get comfortable. 

 

I hope it helped. 

 

I have done some significant work on virtualisation/mocking so if you get stuck anywhere, create a post and we can provide all the support you need!

 

Goodluck

 

 

Share Your Stories
Read Latest News