courseid = ${courseid}
priceid = ${priceid}
coursecategoryid = ${coursecategoryid}..
.....etc
Step2: I have set my regular expression extractor is
1) courseid
Reference name: Courseid
Regular expression: courseid=(.+?)&
Template: $0$
Mathch No: 0
2)Price id
Reference name: Priceid
Regular expression: priceid=(.+?)&
Template: $0$
Mathch No: 0
3)coursecategory id
Reference name: Coursecategoryid
Regular expression: coursecategoryid=(.+?)&
Template: $0$
Mathch No: 0
My result is showing below error in view result tree
http://192.168.2.41:8092/ecloudbaseweb//app/managecourseinfo?courseid= $ {courseid}&安培; coursetitle =数学和安培; coursesubtitle =安培; coursedescription =数学和安培; coursegoal =数学和安培; coursepromevideopath = 815%2Fpromovideo%2Ffile_19_Sep_2016_16_05_32_Promovideo.mp4&安培; priceid = $ {priceid}&安培;价格= 0安培; coursecategoryid = $ {coursecategoryid}
Kindly give me a solution for how can i using dynamic parameter for this scenario and kindly refer the snapshots
答案 0 :(得分:1)
我建议您按照以下步骤查找并修复问题:
注意:应该将正则表达式提取器添加为采样器的子级,其中应该应用响应正则表达式。
注意:正则表达式中使用的引用名称区分大小写。
注意:如果单个组捕获多个值,请指定索引在请求中使用的值。匹配0 - 随机值,匹配n - 值' n'索引。
例如:假设正则表达式:courseid =(。+?)& ,从响应中捕获多个courseid,然后您需要指定匹配以检索特定值。检查调试样本结果以了解使用“查看结果树”捕获的值。
修改强>
正如您所命名"参考名称"作为' Courseid'但是使用它作为' $ {courseid}',它不会匹配。使用' $ {Courseid}',即大写' c'。
Reg Expr Extractor:
用法: