Service Virtualization

  • 1.  Can we set Dynamic Basepath for REST services in DEVTEST 10.1

    Posted May 14, 2018 03:58 AM

    Hello All,

     

    We are trying to make the Dynamic Basepath for REST service in DEVTEST 10.

    Below is the Virtualized service url. Here, we need to pass some random values for highlighted value for every request.

     

    http://Server:Port/conversations/771f0b66-af48-43e9-a8ab-1547dd158dfa/messages

     

    For example,

    At 1st request, URL will be triggered with AA and for 2nd hit , value will be BB like wise we have to pass some random values for every request and Devtest needs to accept the request and send the stubbed response back.

    How can we achieve this.

     

    Please contact me @044 674 35937

     

    Thanks in Advance.

     

    Priya G



  • 2.  Re: Can we set Dynamic Basepath for REST services in DEVTEST 10.1
    Best Answer

    Broadcom Employee
    Posted May 14, 2018 04:41 AM

    Make sure you select the REST DPH.

    In the REST configuration panel, your argument is /conversations/{DevTestPropertyName}/messages

    (single parenthesis around the property name)

     

    This will create a request argument called "DevTestPropertyName", and will match all requests that have a base path of /conversations/anything/messages. You can use this for your matching (in case it's something useful like a correlation ID), or you can delete it using the Request Data Manager DPH if it's not needed.