Why "Interface ITestNGMethod" is used?? | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
15% Learning Discount Avail now

Selenium Training Forum

Why "Interface ITestNGMethod" is used??

N
nandisubhasish Post on 04/11/2019

Can you please help me understand.?

What does "ITestNGMethod" interface do and why it is used.

I asked this question before but the response was not related to my query.

I think you pasted someone's else reply to my query.

Thanks,

Subhasish

S

Instructor

Support Team Reply on 06/11/2019

This is internal interface used by testng guys

Its not meant for users

look at javadoc.. it clearly says that end users are not supposed to use this as its used internally by testng -"This interface is not meant to be implemented by users."

https://static.javadoc.io/org.testng/testng/6.11/org/testng/ITestNGMethod.html