Selenium & TestNG

How to configure Eclipse with TestNG

1. In Eclipse, choose Help > Eclipse Marketplace
2. Search for TestNG
3. Select TestNG and install, Next, Finish

Configuring TestNG with your Project

1. Right-click your project and choose Build Path > Configure Build Path…
2. Choose Add Library
3. Add TestNG and click Next to Finish

Setup up Test

1. Right-Click Project
2. Add > New and choose TestNG class
3. Enter a Package Name
Note: You do not have to use any Annotations. If you don’t select an Annotation, the only item you have to have in the file is @Test

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s