youyoubeike 发表于 2013-9-22 15:34:56

LR录制JavaScript语言生成的脚本添加检查点后不起作用?

本帖最后由 youyoubeike 于 2013-9-22 16:57 编辑

用lr录制了一个前台为JavaScript语言实现的系统,录制成功后,添加检查点,无论怎样设置检查点都不起作用,URL方式录制也试过了,也不行,求助!下面是tree中检查内容和脚本。

Action()
{
lr_rendezvous("add");
lr_start_transaction("增加");
web_reg_find("Text=success:true",
"SaveCount=Welcome_Count",
LAST );

web_submit_data("save.json",
"Action=http://10.88.17.25/jsvc/service/pcLogItem/save.json?time=Fri%20Sep%2013%2009:07:27%20UTC+0800%202013",
"Method=POST",
"RecContentType=text/plain",
"Referer=http://10.88.17.25/jsvc/welllogMgr/pclogitem/pclogitem.jsp",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=pcLogItemPK.wellId", "Value=urRfGFWnuE", ENDITEM,
"Name=pcLogItemPK.wellboreId", "Value=4Xw6zzYNpP", ENDITEM,
"Name=pcLogItemPK.logId", "Value=00009", ENDITEM,
"Name=pcLogItemPK.logItemId", "Value=", ENDITEM,
"Name=logName", "Value=testadd{number}", ENDITEM,
"Name=noOfTraces", "Value=", ENDITEM,
"Name=logVersion", "Value=", ENDITEM,
"Name=mdTop", "Value=", ENDITEM,
"Name=toDepthu", "Value=", ENDITEM,
"Name=mdBase", "Value=", ENDITEM,
"Name=bottomDepthu", "Value=", ENDITEM,
"Name=wrlnLogPassS", "Value=", ENDITEM,
"Name=recallLog", "Value=", ENDITEM,
"Name=srcFileFormat", "Value=", ENDITEM,
"Name=uploadDate", "Value=", ENDITEM,
"Name=logHeader", "Value=", ENDITEM,
"Name=wellIdentifier", "Value=", ENDITEM,
"Name=remarks", "Value=", ENDITEM,
"Name=pScale", "Value=", ENDITEM,
"Name=pTapeCode", "Value=", ENDITEM,
"Name=measuringDepth", "Value=", ENDITEM,
"Name=logFile", "Value=", ENDITEM,
"Name=filePath", "Value=", ENDITEM,
"Name=startDate", "Value=", ENDITEM,
"Name=endDate", "Value=", ENDITEM,
EXTRARES,
"URL=/easyui/themes/default/images/messager_icons.png",
"Referer=http://10.88.17.25/jsvc/welllogMgr/pclogitem/pclogitem.jsp", ENDITEM,LAST);

lr_output_message("testid %d",atoi(lr_eval_string("{Welcome_Count}")));

if (atoi(lr_eval_string("{Welcome_Count}")) > 0)
{
lr_output_message("Addsuccessful.");
}
else{
lr_error_message("Add failed");
}

lr_end_transaction("增加", LR_AUTO);
return 0;
}

youyoubeike 发表于 2013-9-24 08:53:52

没有人遇到过这个问题吗???

深梧桐 发表于 2013-10-10 15:16:21

可以尝试把这个js包装一下,看能否在LR中用System()函数调用包装后的可执行文件也可以用C实现一遍这个加密算法,然后封装成DLL,在LR中调用
页: [1]
查看完整版本: LR录制JavaScript语言生成的脚本添加检查点后不起作用?