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
Java 并行执行的数据块报告_Java_Selenium_Automation_Extentreports_Selenium Extent Report - Fatal编程技术网

Java 并行执行的数据块报告

Java 并行执行的数据块报告,java,selenium,automation,extentreports,selenium-extent-report,Java,Selenium,Automation,Extentreports,Selenium Extent Report,我需要根据testNG.xml中可用的测试标记生成一个区段报告(在testNG.xml中,如果我有两个测试标记,那么它应该生成两个区段报告)。另外,我需要在并行执行(parallel=test)的情况下生成这个。在顺序运行中,它正确地生成,但当我使用parallel运行testng.xml时,它没有正确地生成- 预期- report_Chrome.html(它应该包含TestA和TestB) report_IR.html(它应该包含TestA和TestB) 实际- report_Chrome.h

我需要根据testNG.xml中可用的测试标记生成一个区段报告(在testNG.xml中,如果我有两个测试标记,那么它应该生成两个区段报告)。另外,我需要在并行执行(parallel=test)的情况下生成这个。在顺序运行中,它正确地生成,但当我使用parallel运行testng.xml时,它没有正确地生成-

预期-

  • report_Chrome.html(它应该包含TestA和TestB)
  • report_IR.html(它应该包含TestA和TestB)
  • 实际- report_Chrome.html(它包含TestA、TestB-2次)

    我使用的是线程概念


    提前谢谢

    这回答了你的问题吗?