Thank you, Mark.

I visited the link you gave me. But I don't see any charts/plots there. 
Maybe I misunderstood you?

My tests are not JUnit tests.

Here is what we do at work:

I developed a cmdline test tool in perl. This tool tests whether our 
nightly builds (in perforce, mainly c codes at kernel level) can be 
installed on 100+ Linux hosts. So it is merely a smoke test.

My tool can compile a report in html format which lists pass/fail/skip on 
every host with links to the detailed log files.

I have configured my test tool run through Jenkins. What I am trying to do 
now is as follows:

Besides publish the html report, it would be nice to draw a pie chart to 
show the results visually, such as 90% pass (in green), 2% fail (in red) 
and 8% skipped (in yellow).

But I don't know --
1) How to format the data for Jenkins to use? CSV of XML? Please show me 
smaple files.
2) What plugin to use? I guess it might be either plot plugin or dashboard 
view plugin?
3) How to configure my jenkins to read the data file? Please show me 
what-to-do/how-to-do step by step with screen shots. All I know is that 
this has to be done in "Post-build Actions" stage. 

In addition, I have read this book: "Jenkins Continous Integration 
Cookbook" by Alan Mark Berg:
http://s1.downloadmienphi.net/file/downloadfile7/171/1380449.pdf
The book has an example and I could make it work on my jenkins. 

However, the book also says (pp. 91):

"There are currently two other data formats that you can use: XML and CSV. 
However, until the online help clearly explains the structures used, I 
would recommend staying with the properties format."

That's exactly what I need, I guess. :(

Again, thank you, Mark. Your help is highly appreciated. Have a wonderful 
2014.

Charley



On Monday, December 30, 2013 2:58:09 PM UTC-5, Mark Waite wrote:
>
> Jenkins has built-in support to read the results of JUnit tests from JUnit 
> XML result files, and displays those results.  Many tools are able to write 
> JUnit XML test result files (Java unit test libraries, C++ unit test 
> libraries, Ruby unit test libraries, Python unit test libraries, etc.)  If 
> you can write your results in an XML format that is compatible with JUnit 
> XML, then Jenkins will display the results without any plugins.
>
> I don't know what you're hoping to gain from a pie chart presentation of 
> the test results.  If you truly require a pie chart, you may need to 
> investigate one of the charting plugins.  I'd suggest first that you look 
> at the existing Jenkins test results displays.  They probably already meet 
> your needs.
>
> An example of the Jenkins unit test results is visible at:
>
>
> https://buildhive.cloudbees.com/job/MarkEWaite/job/git-plugin/59/testReport/
>
> Thanks,
> Mark Waite
>
>
> On Fri, Dec 27, 2013 at 8:39 AM, Charley Yen <charl...@gmail.com<javascript:>
> > wrote:
>
>>   
>>
>> <http://stackoverflow.com/questions/20787761/need-help-guidance-on-jenkins-plot-plugin-setup-and-configure#>
>>  
>>   
>> I am new to Jenkins and need some help to configure it so that it can 
>> display my test results in pie chart.
>>
>> It's my first time being here and still getting to know this group so if 
>> someone has already asked the same or similar question before, my apology. 
>> I actually did a search. But still, I could have missed the previous posts.
>>
>> I have a tool to run a smoke test which is to install a piece of software 
>> on multiple hosts. And my tool can keep track the number of 
>> passed/failed/skipped installations. I want to display the test statistics 
>> in a pie chart on jenkins. What plug-ins am I supposed to use? What kind of 
>> data file am I supposed to provide? Please show me step by step with data 
>> file format and the screen shots.I guess I should generate either csv or 
>> xml files. But I don't know what the exact formats in either file. And I 
>> don't know how to configure my jenkins to read this file. I don't even know 
>> what plugin I should use, plot plugin or dashboard plugin or something else?
>>
>> I hope I have made myself clear and your help is highly appreciated.
>>
>> -- 
>> 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 <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to