开发者

Unable to use Performance Plugin with Hudson

I have been trying to integrate 开发者_如何学编程JMeter test with Maven and Hudson. I came across this beautiful post on Maven JMeter and got it set up easily. And then I got to know that Hudson has a performance plugin using with JMeter results could be directly displayed on Hudson dashboard. Now problem I face is in using Performance plugin of Hudson. Performance plugin says to specify path of JMeter Report files wherein default path is considered as "**/*.jtl" if no path is specified. My Maven JMeter tests produce this file under "target\jmeter-reports\GoogleAdvanceSearch.xml" Notice that an "xml" file is generated here but it is same as ".jtl" file. I provided the entire path this xml file under "report files" section of Hudson but when ever I initiate a build I encounter following exception after performance test execution -

Performance: Recording JMeter reports 'C:\SelNG\jmeter2\target\jmeter-reports\GoogleAdvanceSearch-100905.xml'
Performance: no JMeter files matching 'C:\SelNG\jmeter2\target\jmeter-reports  \GoogleAdvanceSearch-100905.xml' have been found. Has the report generated?. Setting Build to FAILURE

But I know that file is physically available at the location I specified.

To double check if problem is coz of "xml" file and not having ".jtl" file as specified in performance plugin of Hudson. Now I created a build file which would execute JMeter tests and generate ".jtl" file. Now get to see following ".jtl" file generated. "C:\SelNG\jmeter\GoogleSearch.jtl". I specified this path under "Performance Report > Report files" section of Hudson plugin but again encountered same exception on build execution

Performance: Recording JMeter reports 'C:\SelNG\jmeter\GoogleSearch.jtl'
Performance: no JMeter files matching 'C:\SelNG\jmeter\GoogleSearch.jtl' have been     found. Has the report generated?. Setting Build to FAILURE
Finished: FAILURE

Though I know that file 'C:\SelNG\jmeter\GoogleSearch.jtl' is physically available at specified location.

What is that I am missing in here? has any one of u come across such problem while using Hudson-Performance plugin?

Thanks in advance ~ T


I hope this will help you a little. Hudson select job. Choose configure.

Let's focus on paths

This is my path to tests c:\Hudson\data\jobs\template-peformance-test2-mvn\workspace\trunk\src\test\jmeter\

This is my path to report files

c:\Hudson\data\jobs\template-peformance-test2-mvn\workspace\trunk\target\jmeter-reports\

For Hudson the root starts in job workspace.

My Build conf:

Root POM: trunk\pom.xml
Goals and options: celan verify

Then in Post Build Actions

selected Publish Performance test result report

Performance report JMeter

Report files */target/jmeter-reports/*.xml
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜