gpt4 book ai didi

java - 您能更好地解释一下 TestNG 的 @BeforeTest 注解的语义吗?

转载 作者:行者123 更新时间:2023-12-01 15:59:24 24 4
gpt4 key购买 nike

我读了relevant documentation并且不明白。另请参阅this question .

最佳答案

要理解这一点,您必须理解 testng.xml 。现在重读同样的内容,

The annotated method will be run before any test method belonging to the classes inside the <test> tag is run.

应该清楚的是,此注释仅适用于属于 <test> 下定义的类的方法。标签 testng.xml .

关于java - 您能更好地解释一下 TestNG 的 @BeforeTest 注解的语义吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4311457/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com