Service Virtualization

 View Only
  • 1.  VSI Selection

    Posted Nov 02, 2017 12:12 AM

    I have created 3 different VSI for same service and each VSI have different data, depend on user ID, which is in the request, I want to select particular VSI file in my image selection steps. Right now in default VSM, I have only one VSI file selected. Pls advise what will be the best approach to do this. Thanks.



  • 2.  Re: VSI Selection

    Broadcom Employee
    Posted Nov 02, 2017 03:29 AM

    Hi,

     

    I am not sure about your vsi files in detail. But please read the Combine Service Images from the DevTest documentation. This information may help you.

     

    Cheers,



  • 3.  Re: VSI Selection
    Best Answer

    Broadcom Employee
    Posted Nov 02, 2017 10:18 AM

    If UserId is unique, you can create assertion(s) on it in the Listen step and go to specific VSI when UserId is matched.

    For example:

    . If UserId matches (True) with "Abc123" then go to "VS Image Response Selection 1" step.

    . If UserId matches (True) with "Def345" then go to VS Image Response Selection 2 step.

    and so on.

    Make sure you add the assertions before "If being efficient" assertion.

     

    Thanks,

    Prema



  • 4.  RE: Re: VSI Selection

    Posted Mar 28, 2023 08:45 AM

    I have a case where we have around 18 VSI files (respective services), and we want to use script to set required VSI location under "VS Image Response Selection" step using operation name. It is to enable packaging it into single MAR file for ease of deployment.

    But currently it does not accept property under Service image location, setting up assertion for 18 such steps would be difficult to manage and maintain. Please advise what would be best approach, or how to extend existing functionality.

    Thanks, Nikhil




  • 5.  RE: Re: VSI Selection

    Posted Jun 02, 2023 01:57 AM

    Hi Nikhil,

    You can merge the VSIs into single VSI and set the operation name based on the criteria. Using this you can achieve the different combinations within single VSI

    Thanks



    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------