Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D060510C8C for ; Tue, 20 Aug 2013 10:04:35 +0000 (UTC) Received: (qmail 77950 invoked by uid 500); 20 Aug 2013 10:04:33 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 77873 invoked by uid 500); 20 Aug 2013 10:04:30 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 49029 invoked by uid 99); 20 Aug 2013 09:39:32 -0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of thanhoang@gmail.com does not designate 216.139.236.26 as permitted sender) Date: Tue, 20 Aug 2013 02:39:03 -0700 (PDT) From: HoangVo To: users@maven.apache.org Message-ID: <1376991543483-5768218.post@n5.nabble.com> Subject: Error when using Maven for test project. I need a help... MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello, Im very new to Maven (im researching it) Im assigned to project that using maven. I got the message when use command: Maven Test in eclipse. Currently I don't know how to fix it :( Can anybody help me? I really don't know the root cause.... I appreciate too much... I comment main code to find why the bug happens but I have no idea. The source code is very simple (of course there are some heritances...) ------------------------------------------------------------------------------ import com.validant.e3.controls.ExtWebDriver; public class TestBase { protected ExtWebDriver driver; protected UIMap uimap; @BeforeSuite public void beforeSuite(){ System.out.println("Before Suite"); driver = new ExtWebDriver(); // *<--- Error occurs when adding this sentence* } @AfterSuite public void afterSuite() { System.out.println("After Suite"); } @BeforeTest public void beforeTest() { System.out.println("Before Test"); } @AfterTest public void afterTest() { System.out.println("After test"); } } ------------------------------------------------------------------------------ The error is: [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building enigma3 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ e3 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory D:\WORK\Workspace\Selenium_E3\src\main\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ e3 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ e3 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory D:\WORK\Workspace\Selenium_E3\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ e3 --- [INFO] Compiling 7 source files to D:\WORK\Workspace\Selenium_E3\target\test-classes [INFO] [INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ enigma3 --- [INFO] Surefire report directory: D:\WORK\Workspace\Selenium_E3\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running TestSuite Before Suite Tests run: 6, Failures: 1, Errors: 0, Skipped: 5, Time elapsed: 0.441 sec <<< FAILURE! Results : Failed tests: beforeSuite(com.validant.enigma3.samples.HoangTest) Tests run: 6, Failures: 1, Errors: 0, Skipped: 5 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.984s [INFO] Finished at: Tue Aug 20 16:19:47 ICT 2013 [INFO] Final Memory: 15M/37M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (default-test) on project E3: There are test failures. [ERROR] [ERROR] Please refer to D:\WORK\Workspace\Selenium_Enigma3\target\surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException ------------------------------------------------------------------------------------------------------------- This is my POM.xml ---------------------------------------------- 4.0.0 com.validant e3 1.0 jar e3 http://maven.apache.org UTF-8 ${maven.build.timestamp} yyyyMMdd-HHmm ui.map test.suites test.reports tools org.testng testng 6.8.5 org.uncommons reportng 1.1.2 org.testng testng com.google.inject guice 3.0 org.seleniumhq.selenium selenium-java 2.33.0 org.seleniumhq.selenium selenium-server 2.33.0 org.apache.poi poi 3.8 org.apache.maven.plugins maven-surefire-report-plugin 2.14.1 ${test.report.dir}/${timestamp} usedefaultlisteners false listener com.validant.enigma3.reports.ScreenshotHTMLReporter, org.uncommons.reportng.JUnitXMLReporter false Chrome http://docs.sencha.com/extjs/4.2.1/extjs-build/examples 10 ${ui.map.dir}/UIMap.xls ${test.report.dir}/${timestamp} ${test.tool.dir}/chromedriver.exe ${test.tool.dir}/IEDriverServer.exe ${test.suite.dir}/HoangTest.xml true test report -- View this message in context: http://maven.40175.n5.nabble.com/Error-when-using-Maven-for-test-project-I-need-a-help-tp5768218.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org