Service Virtualization

 View Only
  • 1.  With Exec mode - LIVE and FAILOVER - VS not responding.

    Posted Oct 06, 2020 12:19 AM
    Hi All.
    VS has been created . It responds well from postman when the exec mode is most efficient (always provide virtualized response). However when the exec mode is changed to ALWAYS PROVIDE LIVE response and FAILOVER , the trigger from postman does not give proper results. I am pasting the message here for both the scenarios as got from the inspection view of the portal. could you please check and let me know how to resolve this. I basically want to check for both the exec modes .

    ============================================================================
    | java.net.UnknownHostException: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    ============================================================================
    | Step: Virtual HTTPS Live Invocation 80
    ----------------------------------------------------------------------------
    | Message: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    ----------------------------------------------------------------------------
    | Trapped Exception: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    | Trapped Message: java.net.UnknownHostException: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    ----------------------------------------------------------------------------
    STACK TRACE
    java.net.UnknownHostException: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at com.itko.lisa.utils.VSESocketManager.openRealSocket(VSESocketManager.java:239)
    at com.itko.lisa.utils.VSESocketManager.openSocket(VSESocketManager.java:133)
    at com.itko.lisa.vse.stateful.protocol.http.HttpLiveInvocationStep.execute(HttpLiveInvocationStep.java:455)
    at com.itko.lisa.test.TestNode.executeNode(TestNode.java:984)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
    at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
    at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)
    at com.itko.lisa.coordinator.Instance.run(Instance.java:208)
    ============================================================================

    [STEP] Current execution mode is Failover, branching to VS Image Response Selection`{`!Result: true`^Actual Value: Failover`^Expectation: Failover`}


    ============================================================================
    | Unable to connect to localhost:80.
    ============================================================================
    | Step: Virtual HTTPS Live Invocation 80
    ----------------------------------------------------------------------------
    | Message: Connection refused
    ----------------------------------------------------------------------------
    | Trapped Exception: Connection refused
    | Trapped Message: java.net.ConnectException: Connection refused
    ----------------------------------------------------------------------------
    STACK TRACE
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at com.itko.lisa.utils.VSESocketManager.openRealSocket(VSESocketManager.java:239)
    at com.itko.lisa.utils.VSESocketManager.openSocket(VSESocketManager.java:133)
    at com.itko.lisa.vse.stateful.protocol.http.HttpLiveInvocationStep.execute(HttpLiveInvocationStep.java:455)
    at com.itko.lisa.test.TestNode.executeNode(TestNode.java:984)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
    at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
    at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)
    at com.itko.lisa.coordinator.Instance.run(Instance.java:208)
    ============================================================================


    ============================================================================
    | java.net.UnknownHostException: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    ============================================================================
    | Step: Virtual HTTPS Live Invocation 80
    ----------------------------------------------------------------------------
    | Message: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    ----------------------------------------------------------------------------
    | Trapped Exception: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    | Trapped Message: java.net.UnknownHostException: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    ----------------------------------------------------------------------------
    STACK TRACE
    java.net.UnknownHostException: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at com.itko.lisa.utils.VSESocketManager.openRealSocket(VSESocketManager.java:239)
    at com.itko.lisa.utils.VSESocketManager.openSocket(VSESocketManager.java:133)
    at com.itko.lisa.vse.stateful.protocol.http.HttpLiveInvocationStep.execute(HttpLiveInvocationStep.java:455)
    at com.itko.lisa.test.TestNode.executeNode(TestNode.java:984)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
    at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
    at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)
    at com.itko.lisa.coordinator.Instance.run(Instance.java:208)
    ============================================================================



    ============================================================================
    | java.net.UnknownHostException: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    ============================================================================
    | Step: Virtual HTTPS Live Invocation 80
    ----------------------------------------------------------------------------
    | Message: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    ----------------------------------------------------------------------------
    | Trapped Exception: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    | Trapped Message: java.net.UnknownHostException: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    ----------------------------------------------------------------------------
    STACK TRACE
    java.net.UnknownHostException: https://xxxxxx.yyyyyy.net/api/order/queryOrder
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at com.itko.lisa.utils.VSESocketManager.openRealSocket(VSESocketManager.java:239)
    at com.itko.lisa.utils.VSESocketManager.openSocket(VSESocketManager.java:133)
    at com.itko.lisa.vse.stateful.protocol.http.HttpLiveInvocationStep.execute(HttpLiveInvocationStep.java:455)
    at com.itko.lisa.test.TestNode.executeNode(TestNode.java:984)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
    at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
    at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)
    at com.itko.lisa.coordinator.Instance.run(Instance.java:208)
    ============================================================================

    [STEP] The assertion of type "Assert on Execution Mode" passed evaluation.`{`!Result: false`^Actual Value: Live System`^Expectation: Failover`}

    [STEP] The assertion of type "Assert on Execution Mode" passed evaluation.`{`!Result: false`^Actual Value: Live System`^Expectation: Stand In`}


  • 2.  RE: With Exec mode - LIVE and FAILOVER - VS not responding.

    Broadcom Employee
    Posted Oct 06, 2020 12:50 AM
    Hi Anil,
        Error says that Unknownhost exception while forwarding request to host name so "xxxxxx.yyyyyy.net" . This says, VSE is unable to identify target host.
        So, make sure you are able to access target host name "xxxxxx.yyyyyy.net" from VSE server. It means there are no firewall restrictions in connecting to target host and port.



  • 3.  RE: With Exec mode - LIVE and FAILOVER - VS not responding.

    Posted Oct 06, 2020 01:00 AM
    Hi Anil,

    It seems more of a connectivity issue between DevTest Server and live backend.

    Thanks.

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