Jmeter 将CSV数据集配置与IncludeController一起使用会导致变量未被替换
我有一个jmeter脚本,它读取csv文件并将条目加载到变量名n_id中。所以脚本看起来像:Jmeter 将CSV数据集配置与IncludeController一起使用会导致变量未被替换,jmeter,Jmeter,我有一个jmeter脚本,它读取csv文件并将条目加载到变量名n_id中。所以脚本看起来像: Test Plan - CSV Data Set Config - Test Fragment - HTTP Sampler that uses the ${n_id} variable 当我用一个线程组验证这个脚本时,它工作正常,${n_id}变量被替换。但是,当我想在包含IncludeController的脚本中使用它时,其结构如下: Test Plan - Thread Group -
Test Plan
- CSV Data Set Config
- Test Fragment
- HTTP Sampler that uses the ${n_id} variable
当我用一个线程组验证这个脚本时,它工作正常,${n_id}变量被替换。但是,当我想在包含IncludeController的脚本中使用它时,其结构如下:
Test Plan
- Thread Group
- Include Controller
- link to the previously described script
我尝试验证脚本,它应该以相同的方式运行,在使用${n_id}变量的所有采样器中都会出现错误。出于某种原因,它不会被取代。我的所有其他用户变量仍然可以正常工作,只是这个CSV配置没有替换变量。有什么想法可能是错误的吗?结果是IncludeController只读取测试片段。因此,脚本的结构应为:
Test Plan
- Test Fragment
- CSV Data Set Config
- HTTP Sampler that uses the ${n_id} variable
结果是IncludeController只读取测试片段。因此,脚本的结构应为:
Test Plan
- Test Fragment
- CSV Data Set Config
- HTTP Sampler that uses the ${n_id} variable
将适当的标记添加到您的帖子可以使更多的人看到您的帖子。将适当的标记添加到您的帖子可以使更多的人看到您的帖子。