Service Virtualization

  • 1.  VSI Selection

    Posted 11-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 11-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 11-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