Rishi Khanna
2014-10-28 02:59:59 UTC
I am running mavenized TestNG Webdriver project from command prompt using '*mvn
clean install*' but I get the following exception in the cmd prompt
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
17:test (default-test) on project WebdriverWithTestNG: Execution default-test of
goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: There was
an error in the forked process
[ERROR] org.testng.TestNGException:
[ERROR] An error occurred while instantiating class com.generic.validateorders.W
ebAppTest: null
[ERROR] at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:398)
On the other hand whenever I run it from the eclipse it executes perfectly
fine without any issues. Is there any issue with my project classpath? If
yes then how do I fix it. I have attached the complete stack trace of the
exception.
clean install*' but I get the following exception in the cmd prompt
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
17:test (default-test) on project WebdriverWithTestNG: Execution default-test of
goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: There was
an error in the forked process
[ERROR] org.testng.TestNGException:
[ERROR] An error occurred while instantiating class com.generic.validateorders.W
ebAppTest: null
[ERROR] at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:398)
On the other hand whenever I run it from the eclipse it executes perfectly
fine without any issues. Is there any issue with my project classpath? If
yes then how do I fix it. I have attached the complete stack trace of the
exception.
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.