待提取的文字为
<input name="user.userName" type="text" placeholder="用户名" />
<input name="user.password" type="password" placeholder="密 码" />
提前的结果为:
userInfo=密 码_user.password
userInfo_g0= <input name="user.password" type="password" placeholder="密 码" />
userInfo_g1=密 码
userInfo_g2=user.password
userInfo_g=2
reference name : 变量存储按template格式提取的内容
regular expression: 正则表达式,()内表示待提前的内容,整个正则表达式表示匹配的范围
template 表示对提前的内容如何组织,"$1$_$2$"表示将第一个()和第二个()中的内容使用_拼接
match No, 表示使用哪一次匹配的结果,比如本例,1表示用户名那行,2表示密码那行
userInfo_g 表示匹配的第二组
userInfo_g1 表示第一个括号提取的内容
userInfo_g0 表示整个正则表达式匹配的内容
Posted in: JMeter
Comments are closed.