Unable to run the Maven Project

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to run the Maven Project

tarunohri
Hello
I am not able to run the maven projects of the tutorials. I have installed the maven properly and i am getting the version by entering the mvn --version command .
When i run the project i get this error ::

[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ seleniumtests -
--
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ se
leniumtests ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ seleniu
mtests ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.4.2:test (default-test) @ seleniumtests ---
[INFO] Surefire report directory: C:\Documents and Settings\tarun.ohri\Desktop\s
elenium_test\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
...
... TestNG 6.8.2beta_20130330_0839 by CĪ˜dric Beust (cedric@beust.com)
...

Tests run: 10, Failures: 1, Errors: 0, Skipped: 9, Time elapsed: 13.398 sec <<<
FAILURE!

Results :

Failed tests:
  launchBrowser(com.seleniumtests.test.WebDriverTest)

Tests run: 10, Failures: 1, Errors: 0, Skipped: 9

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.020s
[INFO] Finished at: Thu Sep 19 10:40:44 IST 2013
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
4.2:test (default-test) on project seleniumtests: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Documents and Settings\tarun.ohri\Desktop\selenium_te
st\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 swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
Reply | Threaded
Open this post in threaded view
|

Re: Unable to run the Maven Project

softwaretestingforum
Administrator
could you see what logs are available in test report ?

C:\Documents and Settings\tarun.ohri\Desktop\selenium_te
st\target\surefire-reports
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: Unable to run the Maven Project

tarunohri
surefire-reports.zip

Please have a look at the surefire-reports folder & guide me where i am going wrong .
Thanks !!!
Regards
Reply | Threaded
Open this post in threaded view
|

Re: Unable to run the Maven Project

softwaretestingforum
Administrator
well, I am going to suggest you to open the report and find the relevant error. This would help you in debugging when you encounter similar issues in future.
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: Unable to run the Maven Project

tarunohri
Ok Tarun i will try to find myself.
Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Unable to run the Maven Project

tarunohri
I have tried going through the reports and googled it , they say " In my dependency tree the firefox driver doesn't declare a dependency on xml-apis."
Still searching on it to get over it. Just guide me if i am going in right direction to solve it or not.
Thanks!!!
Reply | Threaded
Open this post in threaded view
|

Re: Unable to run the Maven Project

softwaretestingforum
Administrator
which selenium dependency are you using in pom file?
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: Unable to run the Maven Project

tarunohri
I am using same dependencies as was in your project ie.
selenium-server & testng