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

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

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

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

        如何以编程方式使用 TestNG 运行 Selenium Java 测试?

        How to run Selenium Java tests with TestNG programmatically?(如何以编程方式使用 TestNG 运行 Selenium Java 测试?)

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

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

              <tbody id='K1VkV'></tbody>

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

              • <legend id='K1VkV'><style id='K1VkV'><dir id='K1VkV'><q id='K1VkV'></q></dir></style></legend>

                  本文介绍了如何以编程方式使用 TestNG 运行 Selenium Java 测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 Selenium RC 和 Java,使用 TestNG 作为测试框架.我使用 Eclipse 作为 IDE.我想很容易地从我自己的程序中调用 TestNG.我该怎么做?

                  I am using Selenium RC with Java using TestNG as Test Framework. I'm using Eclipse as IDE. I want to invoke TestNG from my own program very easily. How can I do that?

                  推荐答案

                  TheStijn 给出了一些好的方向,虽然 TestMethodWorker() 是内部的,所以你不应该使用它.

                  TheStijn gives a few good directions, although TestMethodWorker() is internal so you shouldn't use it.

                  基于这个问题,我什至不确定原始发帖人是否试图在单独的进程中启动 TestNG,因此 API 文档可能是您正在寻找的:

                  Based on the question, I'm not even sure the original poster is trying to launch TestNG in a separate process, so the API documentation might be what you're looking for:

                  http://testng.org/doc/documentation-main.html#running-testng-programmatically

                  这篇关于如何以编程方式使用 TestNG 运行 Selenium Java 测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                    <i id='mZN6R'><tr id='mZN6R'><dt id='mZN6R'><q id='mZN6R'><span id='mZN6R'><b id='mZN6R'><form id='mZN6R'><ins id='mZN6R'></ins><ul id='mZN6R'></ul><sub id='mZN6R'></sub></form><legend id='mZN6R'></legend><bdo id='mZN6R'><pre id='mZN6R'><center id='mZN6R'></center></pre></bdo></b><th id='mZN6R'></th></span></q></dt></tr></i><div id='mZN6R'><tfoot id='mZN6R'></tfoot><dl id='mZN6R'><fieldset id='mZN6R'></fieldset></dl></div>

                    <tfoot id='mZN6R'></tfoot>

                        <bdo id='mZN6R'></bdo><ul id='mZN6R'></ul>
                      • <small id='mZN6R'></small><noframes id='mZN6R'>

                        <legend id='mZN6R'><style id='mZN6R'><dir id='mZN6R'><q id='mZN6R'></q></dir></style></legend>
                          <tbody id='mZN6R'></tbody>