Service Virtualization with JMeter

755 views Asked by At

I am using JMeter for API Testing. Using HTTP Request and Beanshell I am able to achieve this.

There are times where the Services are down for a weeks time.

Since I the have the Request and Response with me, I would like to implement Service Virtualization using JMeter.

Even when the Services are down, I should be able to continue my testing.

Can I achieve Service Virtualization in JMeter? If yes, can I request you to let me know the steps please.

2

There are 2 answers

0
Wojtek On

No you can't.

I suggest you check out API simulation tools which will allow you to do service virtualization. You can then use JMeter to run your tests and an API simulation tool to mock the dependencies.

2
Ori Marko On

JMeter doesn't do Service Virtualization, but you can use JMeter in recording, see article:

You can import the incoming traffic to JMeter using tcpreplay and JMeter Proxy. Run a test suite in your performance environment using JMeter and use the virtual services to decouple yourself from other dependencies. Just to be safe, repeat the recording process every week. This could prove to be very easy or very difficult to implement depending on the specifics of the system you are working with.