You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by arihan <ar...@gmail.com> on 2013/10/03 18:31:10 UTC
result.jtl file is not getting parsed in jenkin for jmeter
Hi
I am trying to run the jmeter test from Jenkin. I've already installed
performance plugin and restarted the jenkin. I don't want to use any
maven/ant.
Execute shell command
cd /Users/Shared/Jenkins/Home/jobs/meineTui-QA-Test-Jmeter/workspace
java -jar /Users/Shared/Jenkins/apache-jmeter/bin/ApacheJMeter.jar -n -t
Login_Logout.jmx -l result.jtl
In the post build actions of jenkin-> publish performance test result report
-> jmeter -> report files -> **/*.jtl
While I am running from jenkin the console says
Performance: Failed to parse
/Users/Shared/Jenkins/Home/jobs/meineTui-QA-Test-Jmeter/builds/2013-10-03_17-14-53/performance-reports/JMeter/result.jtl:
Content is not allowed in prolog.
So I am not able view the result/report in the performance Report section.
Any suggestion how to fix.
==================================console output=============
+ cd /Users/Shared/Jenkins/Home/jobs/meineTui-QA-Test-Jmeter/workspace
+ java -jar /Users/Shared/Jenkins/apache-jmeter/bin/ApacheJMeter.jar -n -t
Login_Logout.jmx -l result.jtl
Creating summariser <summary>
Created the tree successfully using Login_Logout.jmx
Starting the test @ Thu Oct 03 17:14:55 BST 2013 (1380816895721)
Waiting for possible shutdown message on port 4445
summary + 2 in 4.1s = 0.5/s Avg: 2013 Min: 766 Max: 3260 Err:
0 (0.00%) Active: 1 Started: 1 Finished: 0
summary + 10 in 4s = 2.5/s Avg: 392 Min: 286 Max: 573 Err:
0 (0.00%) Active: 0 Started: 1 Finished: 1
summary = 12 in 8s = 1.5/s Avg: 662 Min: 286 Max: 3260 Err:
0 (0.00%)
Tidying up ... @ Thu Oct 03 17:15:04 BST 2013 (1380816904307)
... end of run
Performance: Percentage of errors greater or equal than 0% sets the build as
unstable
Performance: Percentage of errors greater or equal than 0% sets the build as
failure
Performance: Recording JMeter reports '**/*.jtl'
Performance: Parsing JMeter report file result.jtl
Performance: Failed to parse
/Users/Shared/Jenkins/Home/jobs/meineTui-QA-Test-Jmeter/builds/2013-10-03_17-14-53/performance-reports/JMeter/result.jtl:
Content is not allowed in prolog.
Finished: SUCCESS
==============================
--
View this message in context: http://jmeter.512774.n5.nabble.com/result-jtl-file-is-not-getting-parsed-in-jenkin-for-jmeter-tp5718309.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: result.jtl file is not getting parsed in jenkin for jmeter
Posted by sebb <se...@gmail.com>.
Sounds like a problem with Jenkins, not JMeter.
Please ask on the appropriate Jenkins mailing list/forum.
On 3 October 2013 17:31, arihan <ar...@gmail.com> wrote:
> Hi
>
> I am trying to run the jmeter test from Jenkin. I've already installed
> performance plugin and restarted the jenkin. I don't want to use any
> maven/ant.
>
> Execute shell command
> cd /Users/Shared/Jenkins/Home/jobs/meineTui-QA-Test-Jmeter/workspace
> java -jar /Users/Shared/Jenkins/apache-jmeter/bin/ApacheJMeter.jar -n -t
> Login_Logout.jmx -l result.jtl
>
> In the post build actions of jenkin-> publish performance test result report
> -> jmeter -> report files -> **/*.jtl
>
> While I am running from jenkin the console says
> Performance: Failed to parse
> /Users/Shared/Jenkins/Home/jobs/meineTui-QA-Test-Jmeter/builds/2013-10-03_17-14-53/performance-reports/JMeter/result.jtl:
> Content is not allowed in prolog.
>
> So I am not able view the result/report in the performance Report section.
> Any suggestion how to fix.
>
> ==================================console output=============
> + cd /Users/Shared/Jenkins/Home/jobs/meineTui-QA-Test-Jmeter/workspace
> + java -jar /Users/Shared/Jenkins/apache-jmeter/bin/ApacheJMeter.jar -n -t
> Login_Logout.jmx -l result.jtl
> Creating summariser <summary>
> Created the tree successfully using Login_Logout.jmx
> Starting the test @ Thu Oct 03 17:14:55 BST 2013 (1380816895721)
> Waiting for possible shutdown message on port 4445
> summary + 2 in 4.1s = 0.5/s Avg: 2013 Min: 766 Max: 3260 Err:
> 0 (0.00%) Active: 1 Started: 1 Finished: 0
> summary + 10 in 4s = 2.5/s Avg: 392 Min: 286 Max: 573 Err:
> 0 (0.00%) Active: 0 Started: 1 Finished: 1
> summary = 12 in 8s = 1.5/s Avg: 662 Min: 286 Max: 3260 Err:
> 0 (0.00%)
> Tidying up ... @ Thu Oct 03 17:15:04 BST 2013 (1380816904307)
> ... end of run
> Performance: Percentage of errors greater or equal than 0% sets the build as
> unstable
> Performance: Percentage of errors greater or equal than 0% sets the build as
> failure
> Performance: Recording JMeter reports '**/*.jtl'
> Performance: Parsing JMeter report file result.jtl
> Performance: Failed to parse
> /Users/Shared/Jenkins/Home/jobs/meineTui-QA-Test-Jmeter/builds/2013-10-03_17-14-53/performance-reports/JMeter/result.jtl:
> Content is not allowed in prolog.
> Finished: SUCCESS
> ==============================
>
>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/result-jtl-file-is-not-getting-parsed-in-jenkin-for-jmeter-tp5718309.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: result.jtl file is not getting parsed in jenkin for jmeter
Posted by arihan <ar...@gmail.com>.
Now I am able to parse it. My silly mistake.
properties file I changed as below
# legitimate values: xml, csv, db. Only xml and csv are currently
supported.
jmeter.save.saveservice.output_format=xml
# true when field should be saved; false otherwise
# assertion_results_failure_message only affects CSV output
#jmeter.save.saveservice.assertion_results_failure_message=false
#
# legitimate values: none, first, all
#jmeter.save.saveservice.assertion_results=none
#
jmeter.save.saveservice.data_type=true
jmeter.save.saveservice.label=true
jmeter.save.saveservice.response_code=true
# response_data is not currently supported for CSV output
#jmeter.save.saveservice.response_data=false
# Save ResponseData for failed samples
#jmeter.save.saveservice.response_data.on_error=false
#jmeter.save.saveservice.response_message=true
jmeter.save.saveservice.successful=true
jmeter.save.saveservice.thread_name=true
Also changed the jtl to result.xml
--
View this message in context: http://jmeter.512774.n5.nabble.com/result-jtl-file-is-not-getting-parsed-in-jenkin-for-jmeter-tp5718309p5718315.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: result.jtl file is not getting parsed in jenkin for jmeter
Posted by arihan <ar...@gmail.com>.
result.jtl
===========
1380816896268,766,Login,200,OK,Group1 1-1,text,true,230,766
1380816897071,3260,Reservations,200,OK,Group1 1-1,text,true,3295,3260
1380816900339,335,ReservationID,200,OK,Group1 1-1,text,true,8683,335
1380816900681,353,Weather,200,OK,Group1 1-1,text,true,2022,353
1380816901039,563,Summary,200,OK,Group1 1-1,text,true,6528,563
1380816901607,573,Home,200,OK,Group1 1-1,text,true,11955,573
1380816902187,329,HolidayCountdown,200,OK,Group1 1-1,text,true,344,329
1380816902520,375,Contacts,200,OK,Group1 1-1,text,true,2835,375
1380816902899,286,Excursions,200,OK,Group1 1-1,text,true,237,286
1380816903189,361,TravelAgent,200,OK,Group1 1-1,text,true,570,361
1380816903554,319,Profile,200,OK,Group1 1-1,text,true,395,319
1380816903877,427,Logout,200,OK,Group1 1-1,text,true,304,427
===============
--
View this message in context: http://jmeter.512774.n5.nabble.com/result-jtl-file-is-not-getting-parsed-in-jenkin-for-jmeter-tp5718309p5718310.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org