Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何获取红色背景和白色字体的Reporter.log错误消息_Html_Selenium_Testng - Fatal编程技术网

Html 如何获取红色背景和白色字体的Reporter.log错误消息

Html 如何获取红色背景和白色字体的Reporter.log错误消息,html,selenium,testng,Html,Selenium,Testng,现在我使用的代码如下 Reporter.log(“在”+Thread.currentThread().getStackTrace()[2].getLineNumber()+”:“+ELEMENT+”)上的“+this.getClass()+”中不存在任何元素) 我进行了TestNG更新。现在它显示错误消息(白色背景和黑色字体),但我希望Bachground=红色和白色字体。C5.Banking.C5_Banking_PaymentSettings_编辑于899:仅在真正更新时处理:现在这是Rep

现在我使用的代码如下 Reporter.log(“在”+Thread.currentThread().getStackTrace()[2].getLineNumber()+”:“+ELEMENT+”)上的“+this.getClass()+”中不存在任何元素)


我进行了TestNG更新。现在它显示错误消息(白色背景和黑色字体),但我希望Bachground=红色和白色字体。

C5.Banking.C5_Banking_PaymentSettings_编辑于899:仅在真正更新时处理:现在这是Reporter.log输出(以白色背景和黑白文本字体显示),当由以下人员调用时:“+Thread.currentThread().getStackTrace()[2].getLineNumber()+”:“+text+”);您正在检查哪个报告?@niharika_neo我正在检查emailable-report.html(由TestNG在testoutput文件夹下生成。)@Tarken你可以查看一下吗。我已经在第一条评论中附上了代码。