笑痴情 发表于 2013-1-17 09:57:29

LR自动关联失效

在录制前在录制期间启用关联,选择了LR录制一个登陆退出的脚本,该脚本有userSession。之后回放该脚本,回放失败。选择扫描脚本中的关联值。在关联结果中不显示要关联的数据。这是为什么啊?脚本代码如下:
Action()
{
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(8);
web_custom_request("URSTelemetry.asmx",
"URL=https://telemetry.urs.microsoft.com/URSTelemetry.asmx?MSTel-Client-Key=6fD/4jnmYxCAgNVHbBBBMA%3d%3d&MSTel-Patented-Lock=KvOVe%2bBMEUA%3d",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"><soap:Body><TelRep xmlns=\"http://Microsoft.Live.URSTelemetry/\"><Guid>{2CEDBFBC-DBA8-43AA-B1FD-CC8E6316E3E2}</Guid><DV>8.0.6001.9</DV><FV>8.00.6001.18669</FV><OSV>5.1.2600.3.0</OSV><CN>zh-cn</CN><PRG>{143AB63D-3460-4927-A637-B2EF11943E30}</PRG><RType>POST</"
"RType><CID>EDD3C62E-3625-4431-80D5-4F987BB987E5</CID><CTU>http://127.0.0.1/webtours&lt;/CTU><CWIp>NULL</CWIp><TUIp>127.0.0.1</TUIp><CS>64</CS><IB soapenc:arrayType=\"xsd:double\"><double>100</double><double>100</double><double>75</double><double>100</double><double>6.5</double></IB><Frames xmlns:q1=\"http://Microsoft.Live.URSTelemetry/\" soapenc:arrayType=\"q1:Frame\"><Frame><FUrl>http://127.0.0.1/webtours/home.html&lt;/FUrl><Z>NQHN</Z><CR>D32000|0|0|20000020|1FC0|0</CR><Kwds"
">3a00570065006c0063006f006d0065003a00</Kwds><UType>FRAME</UType><HIP>127.0.0.1</HIP></Frame><Frame><FUrl>http://127.0.0.1/webtours/nav.pl?in=home&lt;/FUrl><Z>KVHN</Z><CR>32D32000|2830015|0|80001064|FC0|0</CR><Kwds>3a003a00</Kwds><UType>FRAME</UType><HIP>127.0.0.1</HIP></Frame><Frame><FUrl>http://127.0.0.1/webtours/header.html&lt;/FUrl><Z>NQHN</Z><CR>D32000|0|0|20000020|F82|0</CR><Kwds>3a003a00</Kwds><UType>FRAME</UType><HIP>127.0.0.1</HIP></Frame><Frame><FUrl>http://127.0.0.1/webtours/welcome.pl?signOff"
"=true</FUrl><Z>NFHN</Z><CR>D32000|0|0|20000020|1FC2|0</CR><Kwds>3a003a00</Kwds><UType>FRAME</UType><HIP>127.0.0.1</HIP></Frame><Frame><FUrl>http://127.0.0.1/webtours&lt;/FUrl><Z>NFHN</Z><CR>D32000|0|0|20000020|1FC2|0</CR><Kwds>3a003a00</Kwds><UType>TOP</UType><HIP>127.0.0.1</HIP></Frame></Frames></TelRep></soap:Body></soap:Envelope>",
LAST);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=110022.385986229fzfQcHzptHQVzzzHDDQffpzfiiHf", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=28", ENDITEM,
"Name=login.y", "Value=1", ENDITEM,
LAST);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t4.inf",
LAST);
return 0;
}

rachel881003 发表于 2013-1-17 11:42:05

脚本里都没关联函数。。没有关联web_reg_save_param

笑痴情 发表于 2013-1-17 14:21:06

回复 2# rachel881003
是的!我就是想让他自动关联,之后点击关联,自动添加关联函数。

ffwithvv 发表于 2013-1-17 16:11:30

手动试试

笑痴情 发表于 2013-1-18 09:10:37

手动是可以找到要关联的数据的!但是自动为什么就悲剧呢!"Name=userSession", "Value=110022.385986229fzfQcHzptHQVzzzHDDQffpzfiiHf", ENDITEM,这个是能找到要关联的数据的!
页: [1]
查看完整版本: LR自动关联失效