简体   繁体   中英

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

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 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM