Home page

Monday, October 23, 2017

Create a Selenium Webdriver Maven Project using TestNG in Eclipse

Steps:

  1. Create Maven project.
  2. Remove app.java from src/main/java
  3. Remove apptest.java from src/test/java
  4. Create java file in src/test/java
  5. Create testng.xml and enter class name
  6. Enter dependencies in pom.xml as mentioned below 
<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-java</artifactId>
        <version>3.141.59</version>
          </dependency>

              <dependency>
                <groupId>org.testng</groupId>
                  <artifactId>testng</artifactId>
                    <version>6.14.3</version>
                      <scope>test</scope>
                        </dependency>

                            <dependency>
                              <groupId>org.uncommons</groupId>
                                <artifactId>reportng</artifactId>
                                  <version>1.1.4</version>
                                    <scope>test</scope>
                                      </dependency>

                                          <dependency>
                                            <groupId>org.apache.poi</groupId>
                                              <artifactId>poi</artifactId>
                                                <version>4.1.0</version>
                                                  </dependency>

                                                      <dependency>
                                                        <groupId>org.apache.poi</groupId>
                                                          <artifactId>poi-ooxml</artifactId>
                                                            <version>4.1.0</version>
                                                              </dependency>

                                                              No comments:

                                                              Post a Comment