【问题标题】:ExtentReports: Not printing soap request in log.info messageExtentReports:不在 log.info 消息中打印肥皂请求
【发布时间】:2019-08-22 07:24:36
【问题描述】:

我想使用范围报告在 log.info 消息中打印肥皂请求,但我在 html 报告中显示为空白。

String str = domparser(System.getProperty("user.dir")+"/Requests/soapRequest.xml");
        System.out.println("str"+str);
extentTest.log(LogStatus.INFO,str);

举报 -

更新:我添加了 textview 但文本区域仍然是标准大小。 是否有任何选项可以根据内容调整 textview 区域的大小?

这是我添加的代码:

logger.log(Status.FAIL, " <textarea style='overflow:hidden;resize:none;'>"+ 
response+"</textarea>");

【问题讨论】:

    标签: html xml soap extentreports selenium-extent-report


    【解决方案1】:

    您可以尝试将请求/响应 XML 包装在文本区域标签中。

        extentTest.log(LogStatus.INFO,"<textarea>" + str + "</textarea>");
    

    【讨论】:

      猜你喜欢
      • 2016-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-10
      • 1970-01-01
      • 2012-05-07
      • 2017-11-24
      • 1970-01-01
      相关资源
      最近更新 更多