Service Virtualization

  • 1.  Dynamic mode - Operation

    Posted Aug 08, 2016 11:25 AM


    Hello Everyone,

     

    I need to know if there is a documentation or example to use the dynamic mode.

     

    I need to witch in live mode when I have the "CXN_INFO_REQUEST" operation and in tracking mode for all other operations.

     

    Thank for your help,



  • 2.  Re: Dynamic mode - Operation
    Best Answer

    Broadcom Employee
    Posted Aug 08, 2016 05:34 PM

    In the "Virtual Service Execution Router" step of your model, replace the existing code with the following.

     

    import com.itko.lisa.vse.ExecutionMode;

    if (lisa_vse_request.getOperation().equals("CXN_INFO_REQUEST")) {

        return ExecutionMode.LIVE;

    } else {

        return ExecutionMode.TRACK;

    }

     

    The comment in this step mentions

    // This script must return either an enum entry from ExecutionMode or

    // a string that is the name of an enum entry.  The DYNAMIC entry may

    // not be returned.  It will be executed for DYNAMIC execution mode

    // only.

     

    So with the above code in the model, when this is running in Dynamic mode, your expected routing should happen.



  • 3.  Re: Dynamic mode - Operation

    Posted Aug 09, 2016 03:34 AM

    Thank you very much, it's working good



  • 4.  Re: Dynamic mode - Operation

    Posted Aug 08, 2017 06:04 AM

    Hi , We need to add lisa.vse.execution.mode=DYNAMIC in Config file for this script to work ?. If we do not add , it will be running in Efficient mode and  it will go to HTTP/s  Listener and then it will route to VS Image response selection.  please clarify. Thanks. 



  • 5.  Re: Dynamic mode - Operation

    Broadcom Employee
    Posted Aug 08, 2017 08:43 AM

    A model can execute in DYNAMIC mode in two ways - one as you mentioned via config file.

     

    Second - the model could be deployed with default EFFICIENT mode & execution mode can be changed to DYNAMIC via the portal / console (depending on which version of Devtest you are working with)