Hi,

I want to plot data generated during our tests regarding run time and
used peak memory to have some sort of basic performance and memory
monitoring. I have tried several things now but I cannot see any graph
generated yet.:-/

To start with testing I generate a csv and a properties file via
Windows batch script:

echo Zahl1,Zahl2,Buildnumber > %WORKSPACE%\TestResults\test.csv
echo 1,3,%BUILD_NUMBER% >> %WORKSPACE%\TestResults\test.csv
echo YVALUE=%BUILD_NUMBER% > %WORKSPACE%\TestResults\buildnumber.properties

The files are generated and Iook like I would expect. I would expect
to get two graphs, one for the csv file and one for the properties
file. Two flat lines and an ascending line in the csv plot, and only
an ascending line in the properties plot.

I configured the plot plugin as follows:

    <hudson.plugins.plot.PlotPublisher>
      <plots>
        <hudson.plugins.plot.Plot>
          <title>Testplot</title>
          <yaxis>Buildnumber</yaxis>
          <series>
            <hudson.plugins.plot.CSVSeries>
              <file>TestResults\test.csv</file>
              <label></label>
              <fileType>csv</fileType>
              <strExclusionSet>
                <string>Zahl1</string>
                <string>Zahl2</string>
                <string>Buildnumber</string>
              </strExclusionSet>
              <inclusionFlag>INCLUDE_BY_STRING</inclusionFlag>
              <exclusionValues>Zahl1,Zahl2,Buildnumber</exclusionValues>
              <url></url>
              <displayTableFlag>true</displayTableFlag>
            </hudson.plugins.plot.CSVSeries>
            <hudson.plugins.plot.PropertiesSeries>
              <file>TestResults\buildnumber.properties</file>
              <label>YVALUE</label>
              <fileType>properties</fileType>
            </hudson.plugins.plot.PropertiesSeries>
          </series>
          <group>Testplot</group>
          <numBuilds></numBuilds>
          <csvFileName>748986677.csv</csvFileName>
          <csvLastModification>0</csvLastModification>
          <style>line</style>
          <useDescr>false</useDescr>
        </hudson.plugins.plot.Plot>
      </plots>
    </hudson.plugins.plot.PlotPublisher>

And it generates some kind of output in the directory of the job:

"Title","Testplot"
"Value","Series Label","Build Number","Build Date","URL"
"2922 ","Build number","2922","1341923152769",""
"1","Zahl1","2923","1341924541678",""
"3","Zahl2","2923","1341924541678",""
"2923 ","Build number","2923","1341924541678",""
"1","Zahl1","2924","1341925216301",""
"3","Zahl2","2924","1341925216301",""
"2924 ","Build number","2924","1341925216301",""
"1","Zahl1","2925","1341926377626",""
"3","Zahl2","2925","1341926377626",""
"2925 ","YVALUE","2925","1341926377626",""
"1","Zahl1","2926","1341927373664",""
"3","Zahl2","2926","1341927373664",""
"2926 ","YVALUE","2926","1341927373664",""
"1","Zahl1","2927","1341928639901",""
"3","Zahl2","2927","1341928639901",""
"2927 ","YVALUE","2927","1341928639901",""
"1","Zahl1","2928","1341929824738",""
"3","Zahl2","2928","1341929824738",""
"2928 ","YVALUE","2928","1341929824738",""
"1","Zahl1","2929","1341930795720",""
"3","Zahl2","2929","1341930795720",""
"2929 ","YVALUE","2929","1341930795720",""
"1","Zahl1","2931","1341935454803",""
"3","Zahl2","2931","1341935454803",""
"2931 ","YVALUE","2931","1341935454803",""
"1","Zahl1","2932","1341937121896",""
"3","Zahl2","2932","1341937121896",""
"2932 ","YVALUE","2932","1341937121896",""
"1","Zahl1","2933","1341938148370",""
"3","Zahl2","2933","1341938148370",""
"2933 ","YVALUE","2933","1341938148370",""
"1","Zahl1","2934","1341939532902",""
"3","Zahl2","2934","1341939532902",""
"2934 ","YVALUE","2934","1341939532902",""
"1","Zahl1","2935","1341986841104",""
"3","Zahl2","2935","1341986841104",""
"2935 ","YVALUE","2935","1341986841104",""
"1","Zahl1","2936","1341989127826",""
"3","Zahl2","2936","1341989127826",""
"2936 ","YVALUE","2936","1341989127826",""
"1","Zahl1","2937","1341990218269",""
"3","Zahl2","2937","1341990218269",""
"2937 ","YVALUE","2937","1341990218269",""

What am I doing wrong? Unfortunately there are no real examples
available (or I didn't find them)...

BR
Dirk

Reply via email to