无法将性能插件与 Hudson 一起使用
我一直在尝试将 JMeter 测试与 Maven 和 Hudson 集成。我在 Maven JMeter 和很容易就设置好了。 然后我知道Hudson有一个性能插件使用JMeter结果可以直接显示在Hudson仪表板上。 现在我面临的问题是使用 Hudson 的性能插件。 性能插件表示指定 JMeter 报告文件的路径,其中如果未指定路径,则默认路径被视为“**/*.jtl”。 我的 Maven JMeter 测试在“target\jmeter-reports\GoogleAdvanceSearch.xml”下生成此文件 请注意,此处生成了一个“xml”文件,但它与“.jtl”文件相同。 我在 Hudson 的“报告文件”部分下提供了此 xml 文件的完整路径,但是当我启动构建时,我在执行性能测试后遇到以下异常 -
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
但我知道该文件在我指定的位置物理上可用。
仔细检查问题是否是因为“xml”文件而不是 Hudson 性能插件中指定的“.jtl”文件。现在我创建了一个构建文件,它将执行 JMeter 测试并生成“.jtl”文件。现在可以看到生成的以下“.jtl”文件。 “C:\SelNG\jmeter\GoogleSearch.jtl”。我在 Hudson 插件的“性能报告 > 报告文件”部分下指定了此路径,但在构建执行时再次遇到相同的异常,
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
尽管我知道文件“C:\SelNG\jmeter\GoogleSearch.jtl”在指定位置物理上可用。
我在这里缺少什么?你们中有人在使用 Hudson-Performance 插件时遇到过这样的问题吗?
提前致谢 〜T
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我希望这对你有一点帮助。
哈德森选择工作。选择配置。
让我们关注路径
这是我的测试路径
c:\Hudson\data\jobs\template-peformance-test2-mvn\workspace\trunk\src\test\jmeter\
这是我的报告文件路径
对于 Hudson,根目录从作业工作区开始。
我的构建conf:
然后在构建后操作中
选择发布性能测试结果报告
性能报告JMeter
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
For Hudson the root starts in job workspace.
My Build conf:
Then in Post Build Actions
selected Publish Performance test result report
Performance report JMeter