通过testng套件运行时,testng的超时注释会被忽略吗?

问题描述 投票:0回答:2

[当我从下面的google docs链接运行带有TestNG测试的代码时,它运行得很好https://docs.google.com/document/d/1GHNxnZdiHbpkbJ8YTTKd4608CirQhCcNg5OTLT7SOIc/edit

但是,当我通过TestNG Suite使用TestNG.xml文件从google docs链接上方运行代码时,注释超时将被忽略,并且在1000毫秒(即1秒)后没有显示错误消息。 TestNG.xml代码也是用Google文档编写的。

请让我知道如何通过testNG.xml文件使timeout注释起作用,或者让我知道是否还有其他解决方法。我的测试版本:6.8.0.20121120_1820

webdriver testng
2个回答
0
投票
<methods> <include name="f"></include> </methods>

0
投票
© www.soinside.com 2019 - 2024. All rights reserved.