Selenium TestNG runs prototype test fine but Does not work when using maven test -
im next http://qtp-help.blogspot.in/2013/09/webdriver-with-maven.html tutorial on selenium/maven/testng ci (will add together jenkins). test runs fine while using testng build runs errors when using "maven test.
heres test:
import org.openqa.selenium.webdriver; //import org.openqa.selenium.firefoxdriver; import org.openqa.selenium.firefox.*; import org.testng.annotations.test; public class googletest { private webdriver driver; @test public void verifysearch() { driver = new firefoxdriver(); driver.get("http://www.google.com/"); driver.quit(); } } heres pom.xml
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>mavenwebdriverdemo</groupid> <artifactid>mavenwebdriverdemo</artifactid> <version>0.0.1-snapshot</version> <dependencies> <dependency> <groupid>org.seleniumhq.selenium</groupid> <artifactid>selenium-java</artifactid> <version>2.33.0</version> </dependency> <dependency> <groupid>org.seleniumhq.selenium</groupid> <artifactid>selenium-server</artifactid> <version>2.33.0</version> </dependency> <dependency> <groupid>org.testng</groupid> <artifactid>testng</artifactid> <version>6.8.8</version> <scope>test</scope> </dependency> </dependencies> the testng executes passes heres console output after seek execute pom maven test: http://pastebin.com/jpiep8ct
please help! thanks!
maven selenium testng
No comments:
Post a Comment