Service Virtualization

 View Only
  • 1.  SocketTimeOutException w.r.t to few environments on same testcase

    Posted Mar 03, 2020 12:59 AM

    Hello,

    Have a requirement where same request hits few different end points dlab01,qlab02 etc.

    Both works fine from postman and local workstation. However, on server deployment these test cases are getting aborted with 
    SocketTimeOutException: connect timed out error

    We have added dlab01,qlab02 certificates in cacerts & trustore.

    We have java 8 and jre_201 in DEVTEST_HOME directory and Cacerts placed correctly.

     

    How do we resolve it ? Please suggest.

    Regards,
    Harika Gonela.


  • 2.  RE: SocketTimeOutException w.r.t to few environments on same testcase

    Broadcom Employee
    Posted Mar 03, 2020 01:29 AM
    Hi Harika
               Can you share some more details about the timeout exception. Please share the stacktrace from log file if possible.

    --
    regards
    Sankar Natarajan





  • 3.  RE: SocketTimeOutException w.r.t to few environments on same testcase

    Posted Mar 03, 2020 01:59 AM
      |   view attached
    Hi Sankar,

    Its a test case with a simple REST call hitting these environment urls. Attached screenshot and error in text file. 

    Regards,
    Harika Gonela.

    Attachment(s)

    txt
    SocketTimeOut_NewEnvs.txt   2 KB 1 version


  • 4.  RE: SocketTimeOutException w.r.t to few environments on same testcase

    Broadcom Employee
    Posted Mar 03, 2020 02:12 AM
    Hi Harika
               If I understand it right, you are able to run the test step directly from workstation but when the test is staged, it doesnt work ? Please confirm.

    regards
    Sankar

    ------------------------------
    Sankar Natarajan
    Service Virtualization Product Engineering Team
    Broadcom
    ------------------------------



  • 5.  RE: SocketTimeOutException w.r.t to few environments on same testcase

    Posted Mar 03, 2020 02:53 AM
    Yes..correct sankar


  • 6.  RE: SocketTimeOutException w.r.t to few environments on same testcase
    Best Answer

    Broadcom Employee
    Posted Mar 03, 2020 03:46 AM
    Hi Harika
               Thanks for the confirmation. Please add the following entry to LISA_HOME\bin\SimulatorService.vmoptions file. Once added, restart Simulator Windows Service and stage your test again. Upon test completion, please share simulator.log file for analysis.

    -Djavax.net.debug=ssl:handshake:verbose:keymanager:trustmanager

    regards
    Sankar

    ------------------------------
    Sankar Natarajan
    Service Virtualization Product Engineering Team
    Broadcom
    ------------------------------