TestNG plugin - no results displayed

3,525 views
Skip to first unread message

Nig

unread,
Jul 16, 2012, 5:27:18 AM7/16/12
to jenkins...@googlegroups.com
Hi,

I've installed  testng-6.5.2 and version 0.32 of the pulgin but no results are displayed.
 
The following is logged in the Console Output:
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
testng-results.xml was last modified before this build started. Ignoring it.
Saving reports...
Found matching files but did not find any TestNG results.
 
The testng-results.xml file is attached.
 

Am I doing something wrong ?

Thanks !

testng-results.xml

Sami Tikka

unread,
Jul 17, 2012, 4:01:14 AM7/17/12
to jenkins...@googlegroups.com
If you look at the message from Jenkins, it seems Jenkins is not happy with the last-modified attribute of the xml file. If Jenkins sees the xml file is older than the build, it thinks the file might be a left-over from an earlier build. This is a common mistake if people assume build always start with an empty workspace. It doesn't, unless you specifically configure it to be so.

Another possibility is the xml file has actually been checked into the version control by someone.

Yet another possibility is clocks aren't synchronized in your Jenkins server, your file server and your version control server. Unsynchronized clocks are an easy way to generate strange errors that are loads of fun to debug!

-- Sami
> <testng-results.xml>

Nig

unread,
Jul 17, 2012, 6:52:21 AM7/17/12
to jenkins...@googlegroups.com

It was indeed the clocks out of sync between the Jenkins master and the file server.

Many thanks Sami !

krishna chaitanya kurnala

unread,
Jul 17, 2012, 10:43:21 AM7/17/12
to jenkins...@googlegroups.com
Hi Nigel

I guess, I am facing the same issue, can you please let me know, how have you fixed the un-synchronized clocks?

Thanks,
Krishna Chaitanya

Nig

unread,
Jul 18, 2012, 4:56:06 AM7/18/12
to jenkins...@googlegroups.com

Hi Krishna,

I changed my job to run on the Jenkins master which fixed the issue.

If you do not want to do this then to sync the clocks you will need to set the date/time on the server hosting the filesystem (or the node running the job) to the same as the Jenkins server.
If they are Unix/Linux boxes then the date command can be used but you will need root access.

Hope this helps.

Thanks !

On Tuesday, 17 July 2012 15:43:21 UTC+1, krishna kurnala wrote:
Hi Nigel

I guess, I am facing the same issue, can you please let me know, how have you fixed the un-synchronized clocks?

Thanks,
Krishna Chaitanya

Sami Tikka

unread,
Jul 18, 2012, 6:08:08 PM7/18/12
to jenkins...@googlegroups.com
http://en.wikipedia.org/wiki/Network_Time_Protocol is a popular and easy way to keep the clocks in sync in your servers (and workstations.) Install ntpd and configure it to sync with the ntp server of your organization.

If you do not have professional IT staff, you can find an ntp server at http://pool.ntp.org

-- Sami

Laxmi Rukka

unread,
Mar 7, 2016, 12:16:01 AM3/7/16
to Jenkins Users
still , am facing this prb.
kindly let me know how to fix this

Mark Waite

unread,
Mar 7, 2016, 12:19:52 AM3/7/16
to Jenkins Users
"Last modified before this build started" may indicate that there is a significant difference between the clock on your slave computer and the clock on the master.  The Jenkins slave status page (http://localhost:8080/computer/) reports time differences between the slaves and the master.  If the clocks are not synchronized, you can install and configure time synchronization software (like ntp and ntpdate for Linux, FreeBSD, OpenBSD, HP-UX, AIX, etc., and similar programs for Windows).

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9db73550-38aa-4921-bff4-0ea9a1da2619%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Waite

unread,
Mar 7, 2016, 1:13:42 AM3/7/16
to Jenkins Users
Refer to earlier postings on this thread.  https://groups.google.com/d/msg/jenkinsci-users/La1kREcMg28/J81b6nN9-b0J 

Mark Waite


On Sunday, March 6, 2016 at 10:19:52 PM UTC-7, Mark Waite wrote:
"Last modified before this build started" may indicate that there is a significant difference between the clock on your slave computer and the clock on the master.  The Jenkins slave status page (http://localhost:8080/computer/) reports time differences between the slaves and the master.  If the clocks are not synchronized, you can install and configure time synchronization software (like ntp and ntpdate for Linux, FreeBSD, OpenBSD, HP-UX, AIX, etc., and similar programs for Windows).

Mark Waite

On Sun, Mar 6, 2016 at 10:16 PM Laxmi Rukka  wrote:
still , am facing this prb.
kindly let me know how to fix this

On Monday, July 16, 2012 at 5:27:18 AM UTC-4, Nigel Robbins wrote:
Hi,

I've installed  testng-6.5.2 and version 0.32 of the pulgin but no results are displayed.
 
The following is logged in the Console Output:
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
testng-results.xml was last modified before this build started. Ignoring it.
Saving reports...
Found matching files but did not find any TestNG results.
 
The testng-results.xml file is attached.
 

Am I doing something wrong ?

Thanks !

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.

Thada Anvesh

unread,
Feb 6, 2018, 11:01:00 AM2/6/18
to Jenkins Users
Guys, am still facing the issue.. any solution for this. am sure that clock is in sync. please find the screenshot
Jenkins.jpg
Reply all
Reply to author
Forward
0 new messages