TEST ENVIRONMENTSSmarter Mocking : Eclipse IDE with Service Virtualization

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. Learn more about our eclipse plugin here.
Giridharan Jagadeesan Giridharan JagadeesanMay 19, 20193 min

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.

Eclipse IDE with Service Virtualization

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.

Eclipse IDE with Service Virtualization
This plugin allows you to create, deploy and update virtual services by using 3 different input files.

  •      Using RR pairs

Create

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.

Eclipse IDE with Service Virtualization

Augment

To augment, user will have to drag-drop the RRpair folder on specific VS.

  •      Using mar file

Create

Right-click or drag drop on mar file to create VS.

Overwrite

If the VS based on the specific mar file already exists, the previous VS will be overwritten

  •      Using Swagger specification

Create

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.

Augment

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.

Eclipse IDE with Service Virtualization

Eclipse IDE with Service Virtualization
Additionally, other important actions now available on VSE Manager view are:

Eclipse IDE with Service Virtualization

–      Refresh VS services

–      Start

–      Stop

–      Reset Counters

–      Undeploy

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.

You can learn more about our eclipse plugin in our documentation,  or you can watch this video to learn more:

Giridharan Jagadeesan

Giridharan Jagadeesan

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts