Selenium+TestNG+Maven 搭建

  • Java环境配置
  • Eclipse配置TestNG
  • Eclipse配置Maven
  • pom.xml文件相关配置,添加依赖selenium和TestNg的jar包
  • <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
            <dependency>
                <groupId>org.seleniumhq.selenium</groupId>
                <artifactId>selenium-java</artifactId>
                <version>2.53.1</version>
            </dependency>
            <!-- https://mvnrepository.com/artifact/org.testng/testng -->
            <dependency>
                <groupId>org.testng</groupId>
                <artifactId>testng</artifactId>
                <version>6.9.10</version>
                <scope>test</scope>
            </dependency>
    View Code

     

posted @ 2017-07-20 11:06  Lozz  阅读(447)  评论(0编辑  收藏  举报