Wednesday, February 13, 2019

How to create Selenium, TestNG project using Maven?

Lets create maven project first.

Step 1: Launch eclipse, then select File --> New --> Maven Project as shown in the below image



Step 2: Select quick-start archetype, and click on Next


Step 3: Enter Group Id, Artifact Id and Package names. Click on Finish.



Step 4: We should see Maven being created as shown below. I have renamed project name here.



Step 5: Now we have to add Selenium and TestNG dependencies in pom.xml file. Open pom.xml file, add below Selenium and TestNG maven dependencies as shown below.

Save it, Ctrl+S. Then maven will download the Selenium and TestNG dependencies to project as shown below.


That's it we created a Selenium - TestNG project using Maven.

7 comments:

  1. Thank you so much for providing information on this. It was very useful.

    Article submission sites
    Guest posting sites

    ReplyDelete
  2. Thanks for sharing this valuable information. Check on the below link if you are looking for best Selenium training in chennai.
    Selenium Training In Chennai

    ReplyDelete
  3. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    Selenium Training in Electronic City

    ReplyDelete

Katalon 08: Integration of HP ALM with Katalon Studio

In this post, this post we discuss about integration of  HP ALM with Katalon Studio. If we can integrate HP ALM with Katalon we can update ...