简体   繁体   English

如何传递 karate.prevRequest 和 response 是 arguments 从一个功能文件到另一个功能文件

[英]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 到另一个功能

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 空手道-如何从响应/通过运行另一个功能文件获取数据 - KARATE - How to get data from response/by running another feature file 空手道 Api 测试 - 如何将数据从一个特征文件传递到另一个特征文件 - Karate Api Testing - How to pass data from one feature file to another 空手道-从另一个特征文件中的响应中获取字段的值 - Karate- get value of a field from response in another feature file 如何使用空手道 API 测试将变量从一个特征文件调用到另一个特征文件 - How can I call a variable from one feature file to another feature file using Karate API Testing 空手道:将变量从一个特征文件传递到另一个作为查询参数 - Karate : Passing variable from one feature file to another as a query parameter 空手道 API 测试 - 将变量从一个特征文件传递到另一个 - Karate API Testing - Passing variable from one feature file to another 如何从一个特征文件表中读取数据并传递值以在空手道的 *.json 文件中设置 json 参数? - How to read data from one feature file table and pass the value to set json parameter in a *.json file in karate? 如何将参数传递给Selenium Java测试文件中的空手道特征文件 - How to pass arguments to karate feature file from selenium java test file 我可以使用空手道dsl将值从一个文件夹的一个功能文件传递到/ src / java / test下的另一个文件夹的另一个功能文件 - Can I pass values from one feature file of one folder to another feature file of another folder under /src/java/test using karate dsl 如何将一个功能文件的json列表响应作为参数传递给另一功能文件 - How to pass the json list response of one feature file as parameter to another feature file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM