Service Virtualization

  • 1.  Getting org.apache.http.conn.ConnectTimeoutException: Connect to hostname:port timed out error when executing the test caseusing TestRunner command

    Posted Jun 07, 2017 12:00 PM

    I am getting org.apache.http.conn.ConnectTimeoutException: Connect to <host>:<port> timed out error when executing the test caseusing TestRunner command.

     

    Same test case is working when executing ITR mode

     

    Can any please help?



  • 2.  Re: Getting org.apache.http.conn.ConnectTimeoutException: Connect to hostname:port timed out error when executing the test caseusing TestRunner command

    Broadcom Employee
    Posted Jun 07, 2017 12:09 PM

    Do you mean TestRunner fails to start the test, or TestRunner successfully starts the test, but the test fails?



  • 3.  Re: Getting org.apache.http.conn.ConnectTimeoutException: Connect to hostname:port timed out error when executing the test caseusing TestRunner command

    Posted Jun 08, 2017 04:34 AM

    TestRunner successfully starts the test , but the test fails



  • 4.  Re: Getting org.apache.http.conn.ConnectTimeoutException: Connect to hostname:port timed out error when executing the test caseusing TestRunner command

    Broadcom Employee
    Posted Jun 08, 2017 10:26 PM

    Thanks for the details. Since you are able to run test in ITR, Can you please try staging the test locally using following command

     

    TestRunner -u admin -p admin -r <Staging_doc_file> -cs local -t TestCaseDocument -m <remote_registey>



  • 5.  Re: Getting org.apache.http.conn.ConnectTimeoutException: Connect to hostname:port timed out error when executing the test caseusing TestRunner command

    Broadcom Employee
    Posted Jun 12, 2017 02:36 PM

    There seems to be a connectivity issue between the DevTest server and the service you are trying to hit (probably a firewall).  See if you can log on to the DevTest server and telnet to the services host and port.  If that fails, you'll need a network admin to open a firewall port for you.

     

    --Mike



  • 6.  Re: Getting org.apache.http.conn.ConnectTimeoutException: Connect to hostname:port timed out error when executing the test caseusing TestRunner command

    Broadcom Employee
    Posted Jun 07, 2017 12:37 PM

    Can you please provide the complete command being used with Test Runner. You can replace sensitive info.



  • 7.  Re: Getting org.apache.http.conn.ConnectTimeoutException: Connect to hostname:port timed out error when executing the test caseusing TestRunner command

    Broadcom Employee
    Posted Jun 07, 2017 11:40 PM

    Hello,

        Please verify, to which registry URL testrunner is trying to connect. By default, it will try to connect to local registry url. If your registry is running on remote server, please add -m <Registry_URL> to Testrunner command and execute the test.

     

    Ex:  TestRunner -u admin -p admin -t C:\Devtest_10.1\DevTest10.1\examples\Tests\DevTest_config_info.tst -m tcp:\\Myhostname:2010\Registry -a

     

    Thanks

    Srikanth



  • 8.  Re: Getting org.apache.http.conn.ConnectTimeoutException: Connect to hostname:port timed out error when executing the test caseusing TestRunner command

    Posted Jun 08, 2017 09:08 AM

    Can you run with -cs local option. If that works, then Your coordinator server might have connectivity issues like firewall, proxy, etc with the web service url.