JMeter正则表达式-学习(3)

同时关联多个值的方法:

{
:   "error_no":"0",
:   "results":
:   [
:   :   {
:   :   :   "total_earnings":"",
:   :   :   "num_page":"5",
:   :   :   "retrace_rate_thirty":"0.0909",
:   :   :   "day_yield_rankings":"",
:   :   :   "choose_success_rate":"0",
:   :   :   "state":"",
:   :   :   "week_yield_rankings":"",
:   :   :   "month_yield_rankings":"",
:   :   :   "act_id":"",
:   :   :   "last_week_yield_rankings":"",
:   :   :   "name":"康与好",
:   :   :   "total_yield":"1.5092",
:   :   :   "total_rows":"6270",
:   :   :   "user_id":"10537",
:   :   :   "day_earnings":"",
:   :   :   "face_image":"",
:   :   :   "month_earnings":"",
:   :   :   "week_earnings":"",
:   :   :   "apply_state":"1",
:   :   :   "total_page":"1254",
:   :   :   "account_id":"1355",
:   :   :   "turnover_thirty_rate":"0",
:   :   :   "strongHold":"新晨科技",
:   :   :   "month_yield":"0.0173",
:   :   :   "total_yield_rankings":"1",
:   :   :   "account_name":"",
:   :   :   "week_yield":"-0.0426",
:   :   :   "cur_page":"1",
:   :   :   "face_image_small":"",
:   :   :   "day_yield":"-0.017"
:   :   },
:   :   {
:   :   :   "total_earnings":"",
:   :   :   "num_page":"5",
:   :   :   "retrace_rate_thirty":"0.0909",
:   :   :   "day_yield_rankings":"",
:   :   :   "choose_success_rate":"0",
:   :   :   "state":"",
:   :   :   "week_yield_rankings":"",
:   :   :   "month_yield_rankings":"",
:   :   :   "act_id":"",
:   :   :   "last_week_yield_rankings":"",
:   :   :   "name":"周懿冉",
:   :   :   "total_yield":"1.5092",
:   :   :   "total_rows":"6270",
:   :   :   "user_id":"10557",
:   :   :   "day_earnings":"",
:   :   :   "face_image":"",
:   :   :   "month_earnings":"",
:   :   :   "week_earnings":"",
:   :   :   "apply_state":"1",
:   :   :   "total_page":"1254",
:   :   :   "account_id":"1395",
:   :   :   "turnover_thirty_rate":"0",
:   :   :   "strongHold":"新晨科技",
:   :   :   "month_yield":"0.0173",
:   :   :   "total_yield_rankings":"2",
:   :   :   "account_name":"",
:   :   :   "week_yield":"-0.0426",
:   :   :   "cur_page":"1",
:   :   :   "face_image_small":"",
:   :   :   "day_yield":"-0.017"
:   :   },
:   :   {
:   :   :   "total_earnings":"",
:   :   :   "num_page":"5",
:   :   :   "retrace_rate_thirty":"0.0727",
:   :   :   "day_yield_rankings":"",
:   :   :   "choose_success_rate":"0",
:   :   :   "state":"",
:   :   :   "week_yield_rankings":"",
:   :   :   "month_yield_rankings":"",
:   :   :   "act_id":"",
:   :   :   "last_week_yield_rankings":"",
:   :   :   "name":"1079977833",
:   :   :   "total_yield":"0.1961",
:   :   :   "total_rows":"6270",
:   :   :   "user_id":"10494",
:   :   :   "day_earnings":"",
:   :   :   "face_image":"",
:   :   :   "month_earnings":"",
:   :   :   "week_earnings":"",
:   :   :   "apply_state":"1",
:   :   :   "total_page":"1254",
:   :   :   "account_id":"1267",
:   :   :   "turnover_thirty_rate":"0",
:   :   :   "strongHold":"宁波海运",
:   :   :   "month_yield":"0.1174",
:   :   :   "total_yield_rankings":"3",
:   :   :   "account_name":"",
:   :   :   "week_yield":"-0.0084",
:   :   :   "cur_page":"1",
:   :   :   "face_image_small":"",
:   :   :   "day_yield":"-0.015"
:   :   },
:   :   {
:   :   :   "total_earnings":"",
:   :   :   "num_page":"5",
:   :   :   "retrace_rate_thirty":"0.0224",
:   :   :   "day_yield_rankings":"",
:   :   :   "choose_success_rate":"1",
:   :   :   "state":"",
:   :   :   "week_yield_rankings":"",
:   :   :   "month_yield_rankings":"",
:   :   :   "act_id":"",
:   :   :   "last_week_yield_rankings":"",
:   :   :   "name":"小君君",
:   :   :   "total_yield":"0.1298",
:   :   :   "total_rows":"6270",
:   :   :   "user_id":"10939",
:   :   :   "day_earnings":"",
:   :   :   "face_image":"",
:   :   :   "month_earnings":"",
:   :   :   "week_earnings":"",
:   :   :   "apply_state":"1",
:   :   :   "total_page":"1254",
:   :   :   "account_id":"2320",
:   :   :   "turnover_thirty_rate":"1.0025",
:   :   :   "strongHold":"中国铁建",
:   :   :   "month_yield":"0.1141",
:   :   :   "total_yield_rankings":"4",
:   :   :   "account_name":"",
:   :   :   "week_yield":"0.0167",
:   :   :   "cur_page":"1",
:   :   :   "face_image_small":"",
:   :   :   "day_yield":"-0.002"
:   :   },
:   :   {
:   :   :   "total_earnings":"",
:   :   :   "num_page":"5",
:   :   :   "retrace_rate_thirty":"0.1124",
:   :   :   "day_yield_rankings":"",
:   :   :   "choose_success_rate":"0.7143",
:   :   :   "state":"",
:   :   :   "week_yield_rankings":"",
:   :   :   "month_yield_rankings":"",
:   :   :   "act_id":"",
:   :   :   "last_week_yield_rankings":"",
:   :   :   "name":"朱勇",
:   :   :   "total_yield":"0.1094",
:   :   :   "total_rows":"6270",
:   :   :   "user_id":"10679",
:   :   :   "day_earnings":"",
:   :   :   "face_image":"",
:   :   :   "month_earnings":"",
:   :   :   "week_earnings":"",
:   :   :   "apply_state":"1",
:   :   :   "total_page":"1254",
:   :   :   "account_id":"1643",
:   :   :   "turnover_thirty_rate":"2.9298",
:   :   :   "strongHold":"佳电股份",
:   :   :   "month_yield":"-0.0333",
:   :   :   "total_yield_rankings":"5",
:   :   :   "account_name":"",
:   :   :   "week_yield":"-0.0068",
:   :   :   "cur_page":"1",
:   :   :   "face_image_small":"",
:   :   :   "day_yield":"-0.009"
:   :   }
:   ],
:   "dsName":
:   [
:   :   "results"
:   ],
:   "error_info":""
}

多参数关联

"name":"(.+?)".+?user_id":"(.+?)".+?"strongHold":"(.+?)"

"name":"(.+?)",".*","user_id":"(.+?)","
"name":"谁主沉浮",".*","user_id":"10256",AAA"
"name":"(.+?)","total_yield":".*","total_rows":".*","user_id":"(.+?)"

"name":"(.+?)","total_yield":".+?","total_rows":".+?","user_id":"(.+?)"

"name":"(.+?)".+?"user_id":"(.+?)"
"name":"(.+?).+?user_id":"(.+?)"

"name":"(.+?).+?user_id":"(.+?).+?"strongHold":"(.+?)"

"name":"(.+?)";"user_id":"(.+?)"

posted @ 2016-09-26 12:41  Agoly  阅读(510)  评论(0编辑  收藏  举报