路口 发表于 2013-3-19 15:44:10

LR11脚本回放时,未将数据插入数据库。

web_submit_form("reservations.pl_2",
"Snapshot=t5.inf",
ITEMDATA,
"Name=outboundFlight", "Value=021;301;03/20/2013", ENDITEM,
"Name=reserveFlights.x", "Value=48", ENDITEM,
"Name=reserveFlights.y", "Value=9", ENDITEM,
LAST);
web_find("web_find",
"What=Payment Details",
LAST);
lr_end_transaction("LR_FIND FLIGHT_1", LR_AUTO);

lr_think_time(5);
   
lr_start_transaction("LR_PAYMENT");

web_submit_form("reservations.pl_3",
"Snapshot=t6.inf",
ITEMDATA,
"Name=firstName", "Value=111", ENDITEM,
"Name=lastName", "Value=", ENDITEM,
"Name=address1", "Value=111", ENDITEM,
"Name=address2", "Value=", ENDITEM,
"Name=pass1", "Value= 111", ENDITEM,
"Name=pass2", "Value=", ENDITEM,
"Name=creditCard", "Value=22222222222222222", ENDITEM,
"Name=expDate", "Value=", ENDITEM,
"Name=saveCC", "Value=<OFF>", ENDITEM,
LAST);

wuheemaq 发表于 2013-3-20 10:42:55

未插入数据库肯定是没有提交成功。

jerryaaa 发表于 2013-3-21 09:13:33

回放有报错的没?可以跟踪一下

jerryaaa 发表于 2013-3-21 09:14:22

回放报错没?可以跟踪一下

51dhy1014 发表于 2013-4-2 15:47:23

我也遇到类似情况了,不知道怎么办好。之前遇到过类似问题,改用url方式录制脚本后,成功了。这回不行了
页: [1]
查看完整版本: LR11脚本回放时,未将数据插入数据库。