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.
如果跳过的测试用例在范围测试报告中显示为未知,那么如何将 logstatus.unknown 重命名为 logstatus.skip
以下解决方案对我有用
@AfterMethod public void testStatus() { if (test.getRunStatus().equals(LogStatus.UNKNOWN)) { test.log(LogStatus.SKIP, "这个测试方法被跳过"); } }