Not able to launch TestNG | Selenium Forum
S
Suraj M B Posted on 15/04/2020

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. 

 


A
Ashish Thakur Replied on 17/04/2020

Please click on details and share the complete exception stack trace along with screenshot.


S
Suraj M B Replied on 17/04/2020

I have attached the new screenshot with error details.


A
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


S
Suraj M B Replied on 18/04/2020

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/


S
Suraj M B Replied on 18/04/2020

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.

Responsive image

A
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


Related Posts