开发者

Can you better explain the semantics of TestNG's @BeforeTest annotation?

I read the relevant documentation and didn't understand it. See als开发者_如何学JAVAo this question.


To understand that, you must understand testng.xml. Now reread the same thing,

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

It should be clear that this annotation will only work with the methods those belong to the classes defined under <test> tag in testng.xml.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜