空手道-当从文件中调用特征文件中的请求时,我们如何看到确切的请求和输入参数

问题描述 投票:-1回答:1

空手道-当从文件调用请求并且输入参数通过CSV文件时,我们如何看到发送的确切请求和输入参数

在HTML报告中-在给定的请求步骤,如果将请求放置在功能文件中,则会显示整个带有输入参数的请求。

HTML Report:
**Test 49 : Given request**

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Add xmlns="http://tempuri.org/">
      <intA>2</intA>
      <intB>6</intB>
    </Add>
  </soap:Body>
</soap:Envelope>

而如果将请求放入XML文件中,然后通过使用功能文件中的XML进行调用,则它不会在HTML报告中显示整个请求。

例如-功能文件:给定请求读取('classpath:RequestFiles / AddRequest.xml')

HTML报告仅将测试步骤显示为:“测试86:当肥皂动作'http://tempuri.org/Add'时”]

如果从XML文件中调用了请求(在功能文件中,是否有人知道用输入参数显示整个请求的方式?

soap reporting karate
1个回答
0
投票
有一种简单的方法可以将任何内容放入报告的Doc String部分。只需print

* print someVarYouReadFromAFile

© www.soinside.com 2019 - 2024. All rights reserved.