Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When update a parameter in Jenkisn, error would be:Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: There was an error in the forked process #46

Closed
pengxiangxu opened this issue May 8, 2015 · 0 comments

Comments

@pengxiangxu
Copy link

pic1

It's very strange. We have link Jenkins with Jazz Server(RTC) so that the latest code can be reached. And build toolkit also configured.
When I run the job with parameter "PostalErrorMsgValidation.xml", it build success. But when I change it to "maventest.xml", it alway failed with the following error. I don't know why was that, just change a parameter.

But it can be success in the command window with the command: mvn test -DsuiteXmlFile=src/com/ibm/testautomation/TestPlan/maventest.xml -Djenkins_env=DST2_LIVE -Djenkins_productType=WATSON_ANALYTICS -Djenkins_locale=en_US -Djenkins_browser=firefox

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] Recording test results

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.231 s
[INFO] Finished at: 2015-05-08T10:35:12+08:00
[INFO] Final Memory: 27M/75M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project SCWTestAutomation: 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] java.lang.RuntimeException: java.lang.NullPointerException
[ERROR] at org.testng.internal.MethodInvocationHelper.invokeDataProvider(MethodInvocationHelper.java:161)
[ERROR] at org.testng.internal.Parameters.handleParameters(Parameters.java:429)
[ERROR] at org.testng.internal.FactoryMethod.invoke(FactoryMethod.java:63)
[ERROR] at org.testng.internal.TestNGClassFinder.(TestNGClassFinder.java:140)
[ERROR] at org.testng.TestRunner.initMethods(TestRunner.java:409)
[ERROR] at org.testng.TestRunner.init(TestRunner.java:235)
[ERROR] at org.testng.TestRunner.init(TestRunner.java:205)
[ERROR] at org.testng.TestRunner.(TestRunner.java:153)
[ERROR] at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:522)
[ERROR] at org.testng.SuiteRunner.init(SuiteRunner.java:157)
[ERROR] at org.testng.SuiteRunner.(SuiteRunner.java:111)
[ERROR] at org.testng.TestNG.createSuiteRunner(TestNG.java:1299)
[ERROR] at org.testng.TestNG.createSuiteRunners(TestNG.java:1286)
[ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
[ERROR] at org.testng.TestNG.run(TestNG.java:1057)
[ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:293)
[ERROR] at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
[ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:91)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant