URL连接在JMeter中code变量 [英] URL encode variable in Jmeter

查看:615
本文介绍了URL连接在JMeter中code变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要带code在的JMeter 的变量,但它不是一个参数。例如:

I need to encode a variable in Jmeter, but it isn't a parameter. For example:

URL路径:/文件夹/间/ ID;令牌= $ {}记号/ profile文件细节= YES

我要带code中的 $ {令牌} 变量,只有令牌变量。我知道,你可以在参数部分选择连接code ,但这不是一个参数。

I want to encode the ${token} variable, and only the token variable. I know that you can select encode in the parameters section, but this isn't a parameter.

有谁知道如何做到这一点?

Does anyone know how to do this?

推荐答案

JMeter的是2.10版现在包含一个urlen code函数。

JMeter as of version 2.10 now includes a urlencode function.

${__urlencode(${token})}

请参阅http://jmeter.apache.org/usermanual/functions.html

这篇关于URL连接在JMeter中code变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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