JMeter CSV数据集不采用第一列的值 [英] JMeter CSV Data Set doesn't take the values of the first column

查看:79
本文介绍了JMeter CSV数据集不采用第一列的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JMeter 5.1.1.

I am using JMeter 5.1.1.

我有一个CSV文件

当我这样调用HTTP请求

When I call HTTP Request like this

我明白了

Jmeter不使用值,而只是将变量的名称传递给URI.

Jmeter doesn't take the value but just pass the name of the variable to the URI.

但是,如果我通过输入 $ {CustomerParam} 来添加第二列 CustomerParam ,则JMeter将获取值(而不是变量的名称).

But if I take the second column CustomerParam by putting ${CustomerParam} , then JMeter will grab the value (instead of the name of the variable).

我想知道如何获取第一列的值?

I am wondering how can I get the values of the first column ?

谢谢.

推荐答案

我找到了根本原因.使用最新的Microsoft Excel 365创建CSV文件时,将其另存为CSV,而不是CSV UTF-8.

I found the root cause. When creating the CSV file using the newest Microsoft Excel 365 , save it as CSV , not CSV UTF-8.

当我使用CSV保存文件时,JMeter可以正常工作.但是,当我使用CSV UTF-8保存它时,确实出现了我先前描述的问题.

When I saved the file using CSV, JMeter works perfectly fine. But when I saved it using CSV UTF-8, then the issue I described earlier does appear.

这篇关于JMeter CSV数据集不采用第一列的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆