Module 9 - testng programmatical run | Selenium Forum
M
Posted on 10/08/2016
Hi,

I am currently learning the testing programmatically running part of Module 9.

In my Runner.java class, I am creating an object of the 'TestNG' class (TestNG myTestNG = new TestNG();)
however I am unable to find the option to import the 'org.testng.TestNG' package. Due to this I am getting a red line on the TestNG class. Kindly help!

Regards
Varunendra Verma

M
Replied on 11/08/2016

watch the module carefully. this is not how you use testng. you cannot create objects of testng.