0

I have a simple karate feature file where i use get call to a particular rest api and i get the following exception,

com.intuit.karate.exception.KarateException: JOBS.feature:16 - INSTANCE

Does anyone know or come across this type of exception. There are no other information about the exception in the report.

It has JWT token authentication. So I have sent authentication token in the Authorization header.

Feature file is as below

Feature: API - scenarios

  Background:
    * def jwtToken = Java.type('utils.TokenGenerator').create(validClientId)
    * url baseUrl

  Scenario: Get template and create job

    Given path 'api/v1'
    And header Authorization = 'Bearer ' + jwtToken
    And header members = 'member_name'
    When method get
    Then status 200

I get the below exception

When method get 0.467 



com.intuit.karate.exception.KarateException: 

com.intuit.karate.exception.KarateException: JOBS.feature:16 - INSTANCE
irfan mike
  • 117
  • 2
  • 15

0 Answers0