个性化阅读
专注于IT技术分析

标签:@AfterMethod

TestNG

TestNG @AfterMethod注解用法示例

半瓶木阅读(1588)评论(0)赞(0)

@AfterMethod批注特定于类而不是XML文件。在每个测试方法执行后, 将调用@AfterMethod带注释的方法。假设有四种测试方法, 这意味着@AfterMethod注释方法将被执行四次。 让我们通过示例了解@AfterMetho...