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 BB0C110228 for ; Tue, 20 Aug 2013 13:05:21 +0000 (UTC) Received: (qmail 10068 invoked by uid 500); 20 Aug 2013 13:05:19 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 9942 invoked by uid 500); 20 Aug 2013 13:05:19 -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 9932 invoked by uid 99); 20 Aug 2013 13:05:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Aug 2013 13:05:18 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adrien.rivard@gmail.com designates 209.85.220.193 as permitted sender) Received: from [209.85.220.193] (HELO mail-vc0-f193.google.com) (209.85.220.193) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Aug 2013 13:05:13 +0000 Received: by mail-vc0-f193.google.com with SMTP id hz10so108150vcb.0 for ; Tue, 20 Aug 2013 06:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=b8QamKV59N1ZP883YJ2/p5Q9YRAeHaqr+ORWid2Hnx8=; b=ojbyveG0qHsOS6BR4/VOT75KjVoQX8x6yQLfPPGkxNGCe2QNF+GuLbE6vM+hENEtu3 67Fvrm9FUHDa1PG6j03+6tQADiGSYAj9+8mUHYsQsGElS4x28WAsZTaGaWnheCfMXfyj GcfvjO7l173hFrqX9aL0Fj1NGvOEEcEopjtbplSI7DmIMrZK8RCITnJwnYx3Aw1GC7T1 aayRXbhACuAIwvGD0kkrATVdDVQs3jPh8WdNAw8t5bRNKsc10XDWImP6i8bcCOLTYcdS iHbUK9o0QmPijq9abfGr7idC7ig8nxa1FkiFW0g4/oExrtNfIBfqS1vjjaVIBzeNiV51 Gtwg== MIME-Version: 1.0 X-Received: by 10.220.199.5 with SMTP id eq5mr1176709vcb.16.1377003892835; Tue, 20 Aug 2013 06:04:52 -0700 (PDT) Received: by 10.220.239.13 with HTTP; Tue, 20 Aug 2013 06:04:52 -0700 (PDT) In-Reply-To: References: <1376991543483-5768218.post@n5.nabble.com> Date: Tue, 20 Aug 2013 15:04:52 +0200 Message-ID: Subject: Re: Error when using Maven for test project. I need a help... From: Adrien Rivard To: Maven Users List Content-Type: multipart/alternative; boundary=047d7b5db26ae3286204e460b316 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5db26ae3286204e460b316 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You probably should have a look to the surefire reports to see the output of the tests and why it failed. Reports are usually in target/surefire-reports but you seem to have its location overriden in your pom. On Tue, Aug 20, 2013 at 2:50 PM, Baptiste Mathus wrote: > Hi, > From the output it seems more like you might actually have an issue with > your tests, not with maven. > > Does this test also fail if you run mvn test from the command line at the > root of that project? > > Cheers > Le 20 ao=C3=BBt 2013 12:04, "HoangVo" a =C3=A9crit = : > > > 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 =3D new ExtWebDriver(); // *<--- Error occurs w= hen > > 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 s= ec > > <<< 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 th= e > -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 > > ---------------------------------------------- > > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 > > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > > 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 > > > > > --=20 Adrien Rivard --047d7b5db26ae3286204e460b316--