Jenkins TestNG plugin does not fetch results from the test-results.xml file

testng-results.xml not generated
how to generate testng report in jenkins
how to configure testng in jenkins
testng result is not showing in jenkins
publish testng results in jenkins pipeline
testng report not generated in jenkins
add testng plugin to jenkins
how to display testng results in jenkins

In my project workspace, the test-results.xml file exists inside the target\surefire-reports\testng-results.xml directory. But Jenkins fails to read the XML file and gives below error on console.

TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **\target\surefire-reports\testng-results.xml
Did not find any matching files.

To ensure the file isn't too old, I had checked that the test-results.xml (and other files) belong to the latest test run. The Jenkins server is running on Ubuntu 14.04 LTS.

I'm running my tests in this manner: My project root directory has a run_tests.sh script which looks like this:

#!/bin/bash

if [ "$1" = "" ]; then
    echo "Please provide a valid suite XML file name."
else
    mvn clean
    mvn compile
    mvn clean test -Dsurefire.suiteXmlFiles="$1"
fi

I just pass the suite XML file name as a parameter to this script in Jenkins (execute shell).

Please help.

I found the solution for this.

  1. Go to Configure of your Job
  2. in General Tab, you may find Advanced Button, Click on this
  3. Check the check box of "Use custom workspace", under this you see the Directory text box, here you copy your Selenium Workspace Folder, for example mine is "E:\eclipse\eclipse-workspace\WebDriveTest\"
  4. Scroll down the page under the Post-build Actions, Publish TestNG Results, TestNG XML report pattern : give like this "**/target/surefire-reports/testng-results.xml" (check this path in the same workspace).

I hope this will help you!.

Jenkins TestNG plugin does not fetch results from the test - java, In my project workspace, the test-results.xml file exists inside the target\surefire- reports\testng-results.xml directory. But Jenkins fails to read the� Jenkins TestNG plugin does not fetch results from the test-results.xml file. In my project workspace, the test-results.xml file exists inside the target\surefire-reports\testng-results.xml directory.

You should be using / instead of \ (since you mentioned that your Jenkins is running on a UNIX box)

testlink plugin can't find test results in testng-results.xml, In my project workspace, the test-results.xml file exists inside the target\surefire- reports\testng-results.xml directory. But Jenkins fails to read the XML file and� To view TestComplete test results in Jenkins, open the build page in your browser and click TestComplete Test Results in the menu on the left: Click the image to enlarge it. The page displays a summary of TestComplete test runs, information on what nodes tests ran, their run time and the number of logged errors and warnings.

Krishnan, in the testng-users Google Group, pointed out that it could be an issue with my Jenkins project workspace, and it was the same.

I changed the default workspace in my Jenkins project.

So I've added the path "$HOME/myWorkspace/myProject/" in my Jenkins project workspace, and "**/target/surefire-reports/testng-results.xml" in my TestNG setting in the same Jenkins project, and it works!

Thank you Krishan for your help.

Viewing TestComplete Test Results in Jenkins, Is seems that Jenkins does not update testlink with it's test result. Attachements : 1. Testing-results.xml – this is the end results that Jenkins is� I have verified looking in the workspace after the build that all the XMl files are there and that all the tests have run. The problem is that Jenkins is reporting slightly different counts of unit tests every build. I've looked back over older builds and this has been happening f

Please see my answer in another post here, it should be very clear.

In short, it is caused by the current directory was changed to the default Jenkins workspace, you need set your custom workspace in the Job's Config.

TestNG Results, After the build is finished, you can view results of your TestComplete tests in Jenkins. commandLineArguments: '/ExportSummary:"C:\workspace\Test\ reports\result.xml"' The TestComplete Jenkins plugin does not skip tests, so the number of TestComplete will add the file to your project and you will be able to view it in� Visual Studio Enterprise 2015 or Visual Studio Ultimate 2013, gives you the possibility to test the performance of your application. If you don't want to run tests in a CI you can use Jenkins. What do you need? 1. Jenkins with MSTest Plugin installed is required. Don't forget to set the path to mstest.exe in Manage Jenking --> Global Tool

Test Results Analyzer, This plugin integrates TestNG test reports to Jenkins. TestNG result xml file contains more information than the junit report xml file . This plugin If build result is worse that UNSTABLE, this option has no effect; Mark build as failure on failed� For reference you can see a similar example for publishing test results under Build, test, and publish results with a Docker file section for Docker. View results. In order to view the code coverage results in the pipeline, see Review code coverage results. Related tasks. Publish Test Results; Open source. This task is open source on GitHub

Generate TestNG Reports Using Jenkins, This plugin shows history of test execution results in a tabular or graphical The plugin can be used enabling the "Publish junit results" or "Publish TestNG for loading icon to be shown while fetching and loading the report. Not sure if this is the case if we explicitly break up the flavors e.g. `./gradlew testDebug` Do we need to break up `./gradlew` commands between separate stages? Show Mark Han added a comment - 2019-09-06 03:43 I think there's still a problem where running a simple `./gradlew test` merges all tests into one section, even though there can be

jenkinsci/test-results-aggregator-plugin: Aggregate Test , Step 3: Installing TestNG Reports Plugin In Jenkins. Open Jenkins Enter TestNG XML Report Pattern as '**/testng-results.xml' and click on 'Save' button. We have It will invoke testng.xml from the batch file. Right click on� David Corbin added a comment - 2011-09-30 12:30 I ran into this one too. The workaround described by John McNair (30/Jan/10 11:36 PM) worked great. While I think this problem is reflective of bad design in Maven, I think Jenkins maven support should work around the bad design.

Comments
  • That does not work either. It gives a similar error message: Looking for TestNG results report in workspace using pattern: **/target/surefire-reports/testng-results.xml Did not find any matching files. I actually tried with both / and \
  • How exactly are you running your tests on Jenkins ?
  • Please edit your question and add the details of (1) how do you run your tests and (2) what are the contents of your shell script (run_tests.sh in your case)
  • I've added these details to the OP.
  • Glad to be of help!