Home > Automation Testing > Advance Selenium > How to Create Configure TestNG project

How to Create Configure TestNG project

Setting up a new TestNG project

In the previous topic, we have discussed the installation of TestNG in the Eclipse.

Let’s create a TestNG project in the eclipse and Name it as “TestNGProject”.

Step 1. Click on File > New > Java project.

Image: Create a new java project

Step 2. Type “TestNGProject” as the Project Name then click Next.

Image: Enter Project Name
Image: Click on next

Step 3. We will now start to import the TestNG Libraries onto our project. Click on the “Libraries” tab, and then “Add Library“.

Image: Click on Add Library

Step 4. On the Add Library dialog, choose “TestNG” and click Next.

Image: Select TestNG

Step 5. Click on finish.

Image: Click on Finish

Now we will verify if TestNG library added.

Image: TestNG Library added

Then we will verify if Project created.

Note: Don’t forget to add the latest selenium webdriver library in the project,
You can download the Webdriver from here Selenium webdriver

Image: TestNG Project added

As we can see our TestNG project is successfully created.

In the next topic, we will start with Annotations in TestNG.

This Article is TAGGED in , , , . BOOKMARK THE permalink.

Devanand Tripathi
Software Test Engineer Skills : Selenium Webdriver, Manual Testing, Database Testing, STLC Java, UI / UX Testing

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">