[英]How to pass karate.prevRequest and response are the arguments from one feature file to another feature file
I wanted to pass karate.prevRequest and response are the arguments to another feature我想通过 karate.prevRequest 和响应是 arguments 到另一个功能
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这里我想通过 KLog,Karate.prevRequest 和 response 是 arguments 到另一个功能
The documentation is https://github.com/intuit/karate#calling-other-feature-files文档是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示例文件为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请查看目录https 中的其他文件://github.com/intuit/karate/tree/master/karate-demo/src/test/java/demo/callfeature
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.