Service Virtualization

  • 1.  how to virtualize REST  service where request argument are sent in "META" tab instead of "Attribute"

    Posted Aug 31, 2016 12:05 AM

    This question is for how to virtualize REST  service where request argument are sent in "META" tab instead of "Attribute" Tab. I've virtualized service but it works only with first instance response instance (5). 2nd instance of request keep grabbing same response from first one , it is not responding from second response instance (12). why it is not getting response from 2nd response.

     

    Please see attached. how do we read values from meta tab in this situation. 

     

    Request 1 – #– works

    Copy of Request 1-PLASTIC -  this second  is not working. this should pick up second response from “META”

     

     

     Thanks!



  • 2.  Re: how to virtualize REST  service where request argument are sent in "META" tab instead of "Attribute"
    Best Answer

    Posted Aug 31, 2016 09:40 AM

    User Request Data Manager Data Protocol and copy the Meta Data attributes to arguments list and you can do matching on them for exact transactions. 

     

    Follow the below steps : 

     

    Step 1 : Add Request Data Manager

    Add Request Data Manager

     

     

    Step2: Copy the Meta attributes as arguments 

     

    Copy the Meta attributes as arguments

     

    Step3 : Proceed and save the Image : 

     

     

    Now you can see the service images transactions has request arguments as shown in the below pic.

    Service Image



  • 3.  Re: how to virtualize REST  service where request argument are sent in "META" tab instead of "Attribute"

    Posted Aug 31, 2016 09:56 AM

    Thanks Vamsi. can you please provide steps and screen prints for  Data Manager Data Protocol and  how to  copy the Meta Data attributes to arguments list



  • 4.  Re: how to virtualize REST  service where request argument are sent in "META" tab instead of "Attribute"

    Posted Aug 31, 2016 10:08 AM

    Just updated the previous comment with screen-shoots , please take a look.



  • 5.  Re: how to virtualize REST  service where request argument are sent in "META" tab instead of "Attribute"

    Posted Aug 31, 2016 03:19 PM



  • 6.  Re: how to virtualize REST  service where request argument are sent in "META" tab instead of "Attribute"

    Posted Aug 31, 2016 03:19 PM

    Thanks very much Vamsi, This is really helpful & resolved the issue.  I again did the live recording of REST service and used steps and screenshot provided from you  for Data manger protocol and copied the arguments from Meta to arguments. added 4 instances and now every instances giving response properly for it's corresponding argument. result is attached. 

     

    Thanks & have a great day!



  • 7.  Re: how to virtualize REST  service where request argument are sent in "META" tab instead of "Attribute"

    Posted Aug 31, 2016 06:56 PM

    Excellent , please go ahead and mark this thread as helpful.