|
8#
楼主 |
发表于 2013-4-17 10:52:30
|
只看该作者
问题已经解决了,确实是关联的问题。
用lr11.5重新录制了脚本,查出三处关联,而在lr11的版本中,只能查出两个,而且进行手工关联也不对。
11.5的版本中用了regexp关联,如下:
/*Correlation comment - Do not change! Original value='A66FA539F16FCDB4742C829A96930757' Name ='CorrelationParameter' Type ='ResponseBased'*/
web_reg_save_param_regexp(
"ParamName=CorrelationParameter",
"RegExp=JSESSIONID=(.*?);",
SEARCH_FILTERS,
"Scope=Cookies",
"IgnoreRedirections=Yes",
"RequestUrl=*/login*",
LAST);
/*Correlation comment - Do not change! Original value='A66FA539F16FCDB4742C829A96930757?service=http%3A%2F%2Fiot.rkcloud.cn%2Fj_spring_cas_security_check' Name ='CorrelationParameter_1' Type ='ResponseBased'*/
web_reg_save_param_regexp(
"ParamName=CorrelationParameter_1",
"RegExp=jsessionid=(.*?)\"\\ method",
SEARCH_FILTERS,
"Scope=Body",
"IgnoreRedirections=Yes",
"RequestUrl=*/login*",
LAST);
/*Correlation comment - Do not change! Original value='LT-331-2crjoyHJoIqkjnjVk2YuBdUAPwqkLT' Name ='CorrelationParameter_2' Type ='RecordReplay'*/
web_reg_save_param_regexp(
"ParamName=CorrelationParameter_2",
"RegExp=name=\"lt\"\\ value=\"(LT-\\d+-\\w+)\"",
SEARCH_FILTERS,
"Scope=Body",
"IgnoreRedirections=Yes",
"RequestUrl=*/login*",
LAST); |
|