问题描述
测试如下:
主要脚本"-测试计划 步进线程组
"MAIN SCRIPT " -Test Plan Stepping Thread Group
Test Fragment
Include Controller - TT3.jmx
Include Controller - TT6.jmx
"TT3" Thread Group
Does some actions like Login,Select Projoect,Logout
No.Of Users : 7
CSV Dats Config file : For UserName & Password(TT3.csv)
"TT6 End" Thread Group
Does some actions like Login,Select Projoect,Logout
No.Of Users : 2
CSV Dats Config file : For UserName & Password(TT6.csv)
当我执行测试时,抛出以下错误:
When I exectued the test Throws below error:
2015/04/03 12:40:11信息-jmeter.control.IncludeController:loadIncludedElements-尝试加载包含的模块:E:\ JMETER \ J_Scripts \ TT3_UsingPort8080.jmx2015/04/03 12:40:11警告-jmeter.control.IncludeController:在包含的测试计划中未找到测试片段,返回了空的HashTree2015/04/03 12:40:11信息-jmeter.control.IncludeController:loadIncludedElements-尝试加载包含的模块:E:\ JMETER \ J_Scripts \ TT6_UsingPort8080.jmx2015/04/03 12:40:11警告-jmeter.control.IncludeController:在包含的测试计划中未找到测试片段,返回了空的HashTree2015/04/03 12:40:12信息-jmeter.control.IncludeController:loadIncludedElements-尝试加载包含的模块:E:\ JMETER \ J_Scripts \ TT3_UsingPort8080.jmx2015/04/03 12:40:12警告-jmeter.control.IncludeController:在包含的测试计划中未找到测试片段,返回了空的HashTree2015/04/03 12:40:12信息-jmeter.control.IncludeController:loadIncludedElements-尝试加载包含的模块:E:\ JMETER \ J_Scripts \ TT6_UsingPort8080.jmx2015/04/03 12:40:12警告-jmeter.control.IncludeController:在包含的测试计划中未找到测试片段,返回了空的HashTree2015/04/03 12:41:33信息-jmeter.control.IncludeController:loadIncludedElements-尝试加载包含的模块:E:\ JMETER \ J_Scripts \ TT3_UsingPort8080.jmx2015/04/03 12:41:33警告-jmeter.control.IncludeController:在包含的测试计划中未找到测试片段,返回了空的HashTree2015/04/03 12:41:33信息-jmeter.control.IncludeController:loadIncludedElements-尝试加载包含的模块:E:\ JMETER \ J_Scripts \ TT6_UsingPort8080.jmx2015/04/03 12:41:33警告-jmeter.control.IncludeController:在包含的测试计划中未找到测试片段,返回了空的HashTree
2015/04/03 12:40:11 INFO - jmeter.control.IncludeController: loadIncludedElements -- try to load included module: E:\JMETER\J_Scripts\TT3_UsingPort8080.jmx2015/04/03 12:40:11 WARN - jmeter.control.IncludeController: No Test Fragment was found in included Test Plan, returning empty HashTree2015/04/03 12:40:11 INFO - jmeter.control.IncludeController: loadIncludedElements -- try to load included module: E:\JMETER\J_Scripts\TT6_UsingPort8080.jmx2015/04/03 12:40:11 WARN - jmeter.control.IncludeController: No Test Fragment was found in included Test Plan, returning empty HashTree2015/04/03 12:40:12 INFO - jmeter.control.IncludeController: loadIncludedElements -- try to load included module: E:\JMETER\J_Scripts\TT3_UsingPort8080.jmx2015/04/03 12:40:12 WARN - jmeter.control.IncludeController: No Test Fragment was found in included Test Plan, returning empty HashTree2015/04/03 12:40:12 INFO - jmeter.control.IncludeController: loadIncludedElements -- try to load included module: E:\JMETER\J_Scripts\TT6_UsingPort8080.jmx2015/04/03 12:40:12 WARN - jmeter.control.IncludeController: No Test Fragment was found in included Test Plan, returning empty HashTree2015/04/03 12:41:33 INFO - jmeter.control.IncludeController: loadIncludedElements -- try to load included module: E:\JMETER\J_Scripts\TT3_UsingPort8080.jmx2015/04/03 12:41:33 WARN - jmeter.control.IncludeController: No Test Fragment was found in included Test Plan, returning empty HashTree2015/04/03 12:41:33 INFO - jmeter.control.IncludeController: loadIncludedElements -- try to load included module: E:\JMETER\J_Scripts\TT6_UsingPort8080.jmx2015/04/03 12:41:33 WARN - jmeter.control.IncludeController: No Test Fragment was found in included Test Plan, returning empty HashTree
有人想念我可以告诉我吗?
Could some one please advise me wher am I missing?
谢谢,拉吉
推荐答案
包括外部JMX文件的正确方法是通过测试片段
The correct way of including external JMX files is via Test Fragments
根据包含控制器文档:
查看您的日志文件TT.jmx脚本似乎没有测试片段
Looking into your log file TT.jmx scripts don't seem to have Test Fragments
参考文献:
- JMeter bug 55464
- How to Manage Large JMeter Scripts With JMeter Test Fragments
这篇关于步进线程组引发错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!