I have downloaded and cofigured TestNG in eclipse LUNA. When i tried to run the basic code in TestNG its shows an error.
PFA screeshot and help me to solve this issue.
Instructor
Ashish Thakur Replied on 17/04/2020
Please click on details and share the complete exception stack trace along with screenshot.
I have attached the new screenshot with error details.
Instructor
Ashish Thakur Replied on 18/04/2020
Are you using maven with this?
Which version of testng is installed.
We recommend testng 7.0 as its stable
No i am not using maven with this. I have installed maven during the Maven tutorial. I added the URL availabe in TestNG official site. https://dl.bintray.com/testng-team/testng-eclipse-release/
Hi Sir, I have tried resinstalling the TestNG and able to execute now. The error is not showing now.
While using the annoations of TestNG the corresponding liberaries are not showing to import. Please have a look on this.
Instructor
Ashish Thakur Replied on 21/04/2020
Please use testng 7.0
And in screenshot i see that you have not made function
make a function below @beforemethod and you will be able to see option to add testng as lib