Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/395.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
Java 使用TestNG管理数千个测试脚本_Java_Selenium_Automation_Automated Tests_Testng - Fatal编程技术网

Java 使用TestNG管理数千个测试脚本

Java 使用TestNG管理数千个测试脚本,java,selenium,automation,automated-tests,testng,Java,Selenium,Automation,Automated Tests,Testng,假设有2000多个测试脚本使用Java+selenium+TestNG和ExtentReports编写。 处理以下问题的最佳方法是什么: 如何在不经过大量testng.xml的情况下轻松标记脚本(运行和停止哪些脚本) 每个脚本的文档 使用多个子模块管理多个测试套件,每个子模块都包含脚本。最后在报表中可视化所有报表套件/模块/脚本 理想情况下,我喜欢Robot RIDE的UI以及管理测试脚本的简单性和灵活性。但我正在寻找一个非Robot解决方案。对于第1点:请对测试脚本进行分组,并从xml中选择要

假设有2000多个测试脚本使用Java+selenium+TestNG和ExtentReports编写。 处理以下问题的最佳方法是什么:

  • 如何在不经过大量testng.xml的情况下轻松标记脚本(运行和停止哪些脚本)
  • 每个脚本的文档
  • 使用多个子模块管理多个测试套件,每个子模块都包含脚本。最后在报表中可视化所有报表套件/模块/脚本

  • 理想情况下,我喜欢Robot RIDE的UI以及管理测试脚本的简单性和灵活性。但我正在寻找一个非Robot解决方案。

    对于第1点:请对测试脚本进行分组,并从xml中选择要运行的特定组,以便只执行该组中的测试脚本。不会执行其他测试脚本

    @测试(组={“smoketest”,“Endtoendflow”})

    在测试的xml中包含以下标记

            <groups>    
                <run>   
                     <include name="smoketest" />   
                </run>  
            </groups>