Using response data from one scenario to another
问题 With Karate, I'm looking to simulate an end-to-end test structure where I do the following: Make a GET request to specific data Store a value as a def variable Use that information for a separate scenario This is what I have so far: Scenario: Search for asset Given url "https://foo.bar.buzz" When method get Then status 200 * def responseItem = $.items[0].id // variable initialized from the response Scenario: Modify asset found Given url "https://foo.bar.buzz/" + responseItem // making request