%40在Jmeter中未被解码为@ [英] %40 is not getting decoded to @ in Jmeter

查看:276
本文介绍了%40在Jmeter中未被解码为@的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Jmeter工具进行负载测试,我正在通过一个csv文件来提供数据,该文件具有所有用于登录请求的电子邮件和密码。但是在传递参数时,Jmeter正在使用'%40'编码'@'号,如果我把%40替换为我的csv中的@,那么它不会在Jmeter中被解码为@。对于其他特殊字符,编码和解码正常进行。请帮助。

I'm trying Jmeter tool for load testing where i'm feeding the data through a csv file which has all the emails and passwords for login request. But while passing the parameter, Jmeter is encoding '@' sign with '%40' and if i put %40 in place of @ in my csv, its not getting decoded to @ in Jmeter. For other special characters, the encoding and decoding is happening properly. Please help.

推荐答案

当我们通过参数
执行时,如果我们使用Body Data可以正常工作。

This is coming when we do via Parameters, If we do using "Body Data" that would work fine.

我用这种方法。
{password:$ {password},emailId:$ {emailId}}

I used this way. {"password":"${password}","emailId":"${emailId}"}

这篇关于%40在Jmeter中未被解码为@的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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