I am getting an error as below when I execute my scenario
Feature: sample karate test script for ws+
Background:
- url 'https://pluss-nav2.ekstern.acos/api/api/register/'
- configure headers = { Accept: 'application/json' }
- configure ssl = true
- header Authorization = 'Bearer token'
Scenario: get all users and then get the first user by id
Given path 'sakmaler'
- When method get
- Then status 200
When method gets executed, I get the below exception.
com.intuit.karate.exception.KarateException:
com.intuit.karate.exception.KarateException: wsplussnav.feature:14 -
java.net.UnknownHostException: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server (pluss-nav2.ekstern.acos)
Note: I get this exception only when I execute test on this url. This url does not have any proper domain like .net or .com
I tested in postman, and it works.
I tested in powershell command, and it works.
Any idea how to re-solve this error in Karate?