testng执行顺序

@BeforeSuite: The annotated method will be run before all tests in this suite have run. 

@AfterSuite: The annotated method will be run after all tests in this suite have run. 

@BeforeTest: The annotated method will be run before any test method belonging to the classes inside the tag is run. 

@AfterTest: The annotated method will be run after all the test methods belonging to the classes inside the tag have run. 

@BeforeGroups: The list of groups that this configuration method will run before. This method is guaranteed to run shortly before the first test method that belongs to any of these groups is invoked. 

@AfterGroups: The list of groups that this configuration method will run after. This method is guaranteed to run shortly after the last test method that belongs to any of these groups is invoked. 

@BeforeClass: The annotated method will be run before the first test method in the current class is invoked. 

@AfterClass: The annotated method will be run after all the test methods in the current class have been run. 

@BeforeMethod: The annotated method will be run before each test method. 

@AfterMethod: The annotated method will be run after each test method.




©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,817评论 0 10
  • 有一句大家都知道的话:我学了这么多道理,怎么还过不好这一生。这句被很多人拿来调侃的话,不就是困扰很多人的问题吗,不...
    秦家炎阅读 281评论 1 3
  • 看以色列年轻的历史学家尤瓦尔·赫拉利的《未来简史》,会让人产生一种对未来恐惧,对当下感到毫无意义的错觉。你甚至会怀...
    甘球阅读 826评论 0 3
  • 尼采有一句话,我把它贴在笔记本里,存在手机相册里,挂在床边。“在自己身上克服这个时代”。我并不清楚尼采是处于何种情...
    吴一幺阅读 373评论 0 3
  • 在我建立 Blog 之初,尽管每一篇文章都是口语化文章,但这些都属于自己的,无论是个人经验还是日常生活,对于我们来...
    曾宪华阅读 772评论 0 1

友情链接更多精彩内容