Service Virtualization

  • 1.  Route Web Services from Live System to Virtual System

    Posted Jul 21, 2017 10:26 AM

    Hello All,

     

    Can any one please guide, how we can achieve this ? We want to route web services from live system to virtual system when env is down and vice versa. Is there any auto switch function?

     

    I am not aware if this is possible or not. Please advise.

     

    Cheers..

     

    Shivam Garg



  • 2.  Re: Route Web Services from Live System to Virtual System
    Best Answer

    Posted Jul 21, 2017 02:27 PM

    You may be interested in researching & testing Failover Mode: Execution Mode - DevTest Solutions - 10.1 - CA Technologies Documentation  

    Failover Mode is described as: The VSE responds like it does in Live Invocation mode, except that when the live system call fails, the VSE responds instead.

     

    You will need to do some testing based on your requirements as to what constitutes a "live system failure".  HTTP exceptions should be caught and routed. However, if the Live System returns some type of response such as HTTP 404, 200, 403, etc., I believe step response IS NOT considered a failure. To solve for these scenarios, one could add an assertion that evaluates the HTTP Response-Code from the Live System and branch to virtual.

     

    The Live Invocation Step wait time for HTTP timeouts is based on the local.properties setting:

    ## ==============================================
    ## HTTP Timeouts (in milliseconds)
    ## The default values have been change to 15000 for the connection timeout
    ## and 180000 for the socket timeout. If you would like to extend the timeout
    ## to wait indefinitely, set the values to 0.
    ## ==============================================
    #lisa.http.timeout.connection=0
    #lisa.http.timeout.socket=0


    There is not a technique for specifying the HTTP timeout time at the Live Invocation Step level.  Therefore, if you override these properties, you are setting a global override that is applied to all services. 



  • 3.  Re: Route Web Services from Live System to Virtual System

    Posted Jul 24, 2017 06:55 AM

    Thanks Joe for reply.

     

    But I come to notice from some one that there is some options means some auto switch check box kind of thing which can be helpful in this. And this check box appears during creating virtual service.

     

    Is this correct?

     

    Cheers..