Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经集成了 eclipse & TestNG & 可以运行一个提供输出文件夹的示例 Java 程序。但是,虽然包含 Web 驱动程序脚本,但它无法使用 TestNG 运行,但能够使用 Java 程序运行相同的程序(右键单击脚本运行时会询问两个选项)。
请让我知道问题可能出在哪里。
谢谢, 阿马尔
正如@Chetan 在评论中所说 - 您需要将@Test注释附加到您的方法中。
@Test
你的方法看起来像......
@Test public void myTest() { WebDriver driver = new... }
此外,当您导入时,请导入 TestNG 的 Test 注释。不是jUnit 的。
I am trying to learn how to use Jasmine and Sinon for testing a Backbone application, and I was following Reference php × 1429865 c/c++ × 756500 nginx × 49975 mongodb × 159057 mybatis × 3233 anaconda × 13410 pycharm × 14671 python × 1902243 vscode × 56040 docker × 110988 github × 49000 flask × 49129 ffmpeg × 24037 jmeter × 16910 matplotlib × 63493 bootstrap × 54641