0

I have the following Scenario in a feature file :

Feature: Sample API Tests

  Scenario: Test a sample GET API
    * configure headers = {Host: 'some-valid-host', Authorization: 'Basic valid-credentials'}
    * configure ssl = true
    Given url 'https://20.105.120.62/http/abs/quark'
    When method GET
    Then status 200

When I run the above feature, I get the following error :

13:47:09.259 [main] DEBUG org.apache.http.conn.ssl.LenientSslConnectionSocketFactory - Starting handshake
13:47:09.589 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-0: Shutdown connection
13:47:09.589 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection discarded
13:47:09.590 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 0][route: {s}->https://20.105.120.62:443][total available: 0; route allocated: 0 of 5; total allocated: 0 of 10]
13:47:09.590 [main] ERROR com.intuit.karate - java.net.SocketException: Connection reset, http call failed after 945 milliseconds for url: https://20.105.120.62/http/abs/quark
13:47:09.591 [main] ERROR com.intuit.karate - src/test/java/tests/Firsttest.feature:7

Could someone please help me here.

Nitesh Agrawal
  • 105
  • 1
  • 2
  • 12

0 Answers0