I need to pass data from one feature file to another.
Feature(1): Create a new user
Background:
* url 'http://127.0.0.1:8900/'
* header Accept = 'application/json'
Scenario: Create a new user
Given path '/user'
And request {"email" : "test@test.com", "name" : "Brian"}
When method post
And def newUser = $..id
Then status 201
Feature(2): Call newUser from feature 1
Background:
* url 'http://127.0.0.1:8900/'
* header Accept = 'application/json'
Scenario: Call User
* def newUser = $..id
* print newUser
Please read the docs: https://github.com/intuit/karate#calling-other-feature-files
And in
one.feature
you can get access to the JSON "argument"Which should print the value
data