Service Virtualization

  • 1.  How to make argument optional in virtualisation?

    Posted Sep 28, 2017 05:10 AM

    Is there any way to make request data arguments optional?

    I mean I am trying to virtualize a webservice which can take dynamic arguements, and depending on how many arguments you pass, data will be returned for those many arguments.

    The service accepts upto 25 arguments, and I want to avoid creating 25 different transactions.



  • 2.  Re: How to make argument optional in virtualisation?
    Best Answer

    Posted Sep 28, 2017 12:23 PM

    Hi Mahesh,

     

    I am wondering if the Request Data Manager DPH would help you in this case.

    When creating the VSI add the Request Data Manager DPH in the request side and add actions to keep the arguments that are mandatory in your request and leave the optional arguments.

    The created VSI will show the arguments you selected to 'keep' and your request should match even if it contains the optional arguments.

     

    Request Data Manager Data Protocol - DevTest Solutions - 10.1 - CA Technologies Documentation 

     

    Hope it helps.

    Heloisa



  • 3.  Re: How to make argument optional in virtualisation?

    Posted Dec 14, 2017 07:20 AM

    Hi Maria,

     

    Could you please take a look at below thread - 

    how can i enter value dynamically while lisa is running a test? 

     

    I tried tagging you but could not. How does one enter values dynamically while the automated tests are running?

     

    -Regards,

    Shashank



  • 4.  Re: How to make argument optional in virtualisation?

    Posted Oct 04, 2017 02:08 PM

    Hi Mahesh,

     

    Did Heloisa's recommendation help you out with this issue?