When developing apps, developers want to have all the dependencies, like virtual services, to be available/accessible from within their Eclipse IDE. If they can emulate the missing, unavailable, or costly components or systems in their IDEs, then errors can be easily and quickly identified, and fixed long before they get to production.
With Service Virtualization/DevTest 10.5, we have enhanced the Virtual Services Environment (VSE) Manager plugin that allows for easier development adoption by supporting the creation of virtual services directly through Eclipse. This plugin helps in creating and deploying virtual services from directories of RR pairs and Swagger specification files, creation of HTTPs virtual services, and augmenting virtual services by updating the RR pairs.
You can access the plugin on the Eclipse Marketplace here.
Setting up the Eclipse Plugin
To start using the plugin, certain configuration steps are necessary. First, configure Registry web server connection settings. Second, configure the SSL details to connect to SSL enabled Registry and also create HTTPs virtual services, if needed.
Having the configuration set, open the VSE Manager by Windows -> Show View -> VSE Manager. This view will list all the available VSEs, in order to create and deploy the virtual services.
This plugin allows you to create, deploy and update virtual services by using 3 different input files.
- Using RR pairs
Right-click or drag drop on RRpair folder: “Create Virtual Services” pop-up appears with Port and HTTPS fields to create. RRpair can be .xml / .json / .txt formats.
To augment, user will have to drag-drop the RRpair folder on specific VS.
- Using mar file
Right-click or drag drop on mar file to create VS.
If the VS based on the specific mar file already exists, the previous VS will be overwritten
- Using Swagger specification
Right-click or drag drop on Swagger file (.yaml / .json): “Create Virtual Services” pop-up appears with Port and HTTPS fields to create VS. Both Swagger 2.0 and 3.0 are being supported.
To augment, user can drag-drop RRpairs on the VS.
The virtual service properties can be updated by right-click context menu option “Properties” to view or update selected virtual service properties. Developers can edit only Capacity and Think Scale.
Additionally, other important actions now available on VSE Manager view are:
– Refresh VS services
– Reset Counters
This is a fundamental shift in the way developers develop and test software today. It can be defined as a “smarter mocking”. It’s a new way for developers to “have everything” they need when they need it in order to be as efficient as possible.
Giri is a product management professional, with over a decade's worth of experience, focusing on driving product development. His current focus area is Service Virtualization.