cancel
Showing results for 
Search instead for 
Did you mean: 

How do you use VirtResponse test step?

SOLVED
New Contributor

How do you use VirtResponse test step?

Hi

I am looking to get a better understand on how the VirtResponse test works in SoapUI Pro.

I have read the the ReadyAPI documentation for this and have tried to use in in a test, but i haven't been able to get it to work.

 

Does the VirtResponse listen and capture the request for a real endpoint? or does its require a virt to be set up in ServiceV?

 

Are there any example what needs to be setup to work with VirtResponse step?

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How do you use VirtResponse test step?

Hi,

 

Thank you for your post.

 

The Rest VirtResponse test step is where you could preconfigure the response, you will have an endpoint created in the Rest VirtResponse test step, try to hit that endpoint from your Rest request test step. The Rest VirtResponse test step works more like a virtual server. Once you hit the endpoint you should receive the preconfigured response in your rest request test step.

 

For your questions:

 

Does the VirtResponse listen and capture the request for a real endpoint? or does its require a virt to be set up in ServiceV?

The Virtresponse teststep only gets triggered by the rest request within the test case. It doesn't require a virt to be set in the ServiceV, as it is a virt by itself. However, a real service can't use this endpoint as it is confined to the local machine.

 

Are there any example what needs to be setup to work with VirtResponse step?

I am attaching a VirtServerResponseDemo-readyapi-project file here, you could import and try.

 

Best,

Lakshmi.

-------------Lakshmi

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

Re: How do you use VirtResponse test step?

Thanks for reaching out, @lamplessgenie!

 

Community, any suggestions or comments?


Olga Terentieva
SmartBear Assistant Community Manager

Moderator

Re: How do you use VirtResponse test step?

Hi @lamplessgenie,

 

It looks like you were working on this question with our support team, right?

It would be great if you could share the results of the investigation with the Community.

Thank you in advance!


Olga Terentieva
SmartBear Assistant Community Manager

Re: How do you use VirtResponse test step?

Hi,

 

Thank you for your post.

 

The Rest VirtResponse test step is where you could preconfigure the response, you will have an endpoint created in the Rest VirtResponse test step, try to hit that endpoint from your Rest request test step. The Rest VirtResponse test step works more like a virtual server. Once you hit the endpoint you should receive the preconfigured response in your rest request test step.

 

For your questions:

 

Does the VirtResponse listen and capture the request for a real endpoint? or does its require a virt to be set up in ServiceV?

The Virtresponse teststep only gets triggered by the rest request within the test case. It doesn't require a virt to be set in the ServiceV, as it is a virt by itself. However, a real service can't use this endpoint as it is confined to the local machine.

 

Are there any example what needs to be setup to work with VirtResponse step?

I am attaching a VirtServerResponseDemo-readyapi-project file here, you could import and try.

 

Best,

Lakshmi.

-------------Lakshmi

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors