I wanted to pass karate.prevRequest and response are the arguments to another feature
Background:
* def KLog = Java.type('com.support.KaratePrint')
@SmokeTest
Scenario: Fetch random quote
* print 'My method executed' +KLog.scenarioInfo('Scenario_1', tcDetails.Scenario_1)
Given path '/api/users/'+pageNo.Pageno
When method GET
Then status 200
Here I wanted to pass KLog, Karate.prevRequest and response are the arguments to another feature
The documentation is https://github.com/intuit/karate#calling-other-feature-files
The example file is https://github.com/intuit/karate/blob/master/karate-demo/src/test/java/demo/callfeature/call-feature.feature
Please see the other files in the directory https://github.com/intuit/karate/tree/master/karate-demo/src/test/java/demo/callfeature
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.