Forum Discussion

SarahS's avatar
SarahS
Icon for Staff rankStaff
2 years ago

Scripting in ReadyAPI Virtualization for Dynamic Mocks

Hey Everyone. 

I wanted to make a post about scripting in ReadyAPI Virtualization for the purpose of creating dynamic mocks. Scripted samples always help when I'm trying to achieve something, so I hope that these scripts will help guide you with dynamic mocks.

I've primarily used two resources to learn how to work with dynamic mocks.  The first is a support document for SoapUI OS. This page has a comprehensive overview on working with mock services and provides examples on how to accomplish various tasks when working with the virtual service scripts. 
https://www.soapui.org/docs/soap-mocking/creating-dynamic-mockservices/

The second resource that I've found to be useful is our documentation on Virtual service scripting. I find that this page is better than the previous one above at explaining the scripting objects that ReadyAPI uses.  here: https://support.smartbear.com/readyapi/docs/virtualization/configure/scripting.html

My intent here is to provide some scripted samples that I've worked on. I'd also like to hear if anyone has requests on scripted tasks with virtual services in ReadyAPI.