1. <legend id='AjeTB'><style id='AjeTB'><dir id='AjeTB'><q id='AjeTB'></q></dir></style></legend>
        <bdo id='AjeTB'></bdo><ul id='AjeTB'></ul>
    2. <tfoot id='AjeTB'></tfoot>

      <small id='AjeTB'></small><noframes id='AjeTB'>

      1. <i id='AjeTB'><tr id='AjeTB'><dt id='AjeTB'><q id='AjeTB'><span id='AjeTB'><b id='AjeTB'><form id='AjeTB'><ins id='AjeTB'></ins><ul id='AjeTB'></ul><sub id='AjeTB'></sub></form><legend id='AjeTB'></legend><bdo id='AjeTB'><pre id='AjeTB'><center id='AjeTB'></center></pre></bdo></b><th id='AjeTB'></th></span></q></dt></tr></i><div id='AjeTB'><tfoot id='AjeTB'></tfoot><dl id='AjeTB'><fieldset id='AjeTB'></fieldset></dl></div>

        TestNG.xml 套件包含所有包的所有文件

        时间:2023-10-01

        <small id='YT00D'></small><noframes id='YT00D'>

        <tfoot id='YT00D'></tfoot>

          <legend id='YT00D'><style id='YT00D'><dir id='YT00D'><q id='YT00D'></q></dir></style></legend>

            <bdo id='YT00D'></bdo><ul id='YT00D'></ul>

              <tbody id='YT00D'></tbody>
            <i id='YT00D'><tr id='YT00D'><dt id='YT00D'><q id='YT00D'><span id='YT00D'><b id='YT00D'><form id='YT00D'><ins id='YT00D'></ins><ul id='YT00D'></ul><sub id='YT00D'></sub></form><legend id='YT00D'></legend><bdo id='YT00D'><pre id='YT00D'><center id='YT00D'></center></pre></bdo></b><th id='YT00D'></th></span></q></dt></tr></i><div id='YT00D'><tfoot id='YT00D'></tfoot><dl id='YT00D'><fieldset id='YT00D'></fieldset></dl></div>
                • 本文介绍了TestNG.xml 套件包含所有包的所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  即将用 Maven+TestNG+Selenium 实现一个测试框架.

                  Just about to implement a test framework with Maven+TestNG+Selenium.

                  你如何声明一个告诉 TestNG 运行 ALL 测试的 suite.xml?我已经尝试了所有这些都无济于事:

                  How do you declare a suite.xml that tells TestNG to run ALL tests? I've tried all these to no avail:

                  <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
                  <suite name="Toplevel TestNG configuration" verbose="10">
                    <test name="all">
                      <classes>
                        <class name="*" />
                      </classes>
                    </test>
                  </suite>
                  
                  <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
                  <suite name="Toplevel TestNG configuration" verbose="10">
                    <test name="all">
                      <groups>
                        <run>
                          <include name="*" />
                          <exclude name="disabled" />
                        </run>
                      </groups>
                    </test>
                  </suite>
                  
                  <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
                  <suite name="Toplevel TestNG configuration" verbose="10">
                    <test name="all">
                      <packages>
                        <package name="*" />
                      </packages>
                    </test>
                  </suite>
                  

                  我需要使用不同的参数指定不同的套件配置,但都运行所有测试.我可以挖掘的每个示例都明确列出了对我来说意义小于零的每个类或包.

                  I need to specify different suite configurations with different paramers but all running all tests. Every example I could dig up explicitely lists each class or package which makes less than zero sense to me.

                  推荐答案

                  据我所知,应该使用 .* 来匹配它们.

                  Should use .* to match them all as far as I know.

                  这篇关于TestNG.xml 套件包含所有包的所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:“Chrome Legacy Window"的自动化(铬)使用 Winium 下一篇:将 window tester 与 eclipse 集成以测试 UI

                  相关文章

                  最新文章

                  <i id='ot5ad'><tr id='ot5ad'><dt id='ot5ad'><q id='ot5ad'><span id='ot5ad'><b id='ot5ad'><form id='ot5ad'><ins id='ot5ad'></ins><ul id='ot5ad'></ul><sub id='ot5ad'></sub></form><legend id='ot5ad'></legend><bdo id='ot5ad'><pre id='ot5ad'><center id='ot5ad'></center></pre></bdo></b><th id='ot5ad'></th></span></q></dt></tr></i><div id='ot5ad'><tfoot id='ot5ad'></tfoot><dl id='ot5ad'><fieldset id='ot5ad'></fieldset></dl></div>

                • <tfoot id='ot5ad'></tfoot>

                  1. <small id='ot5ad'></small><noframes id='ot5ad'>

                    <legend id='ot5ad'><style id='ot5ad'><dir id='ot5ad'><q id='ot5ad'></q></dir></style></legend>
                      <bdo id='ot5ad'></bdo><ul id='ot5ad'></ul>