脚本
lr_end_transaction("add", LR_AUTO);
lr_start_transaction("modify");
lr_think_time(20);
web_reg_save_param("DealerID",
"LB=<input name=\"txtDealerID\" type=\"text\" value=\"",
"RB=\" id=\"txtDealerID\" />",
LAST );
lr_log_message("Dealer ID is : %s",lr_eval_string ("{DealerID}"));
generator Log
Action.c(88): web_reg_save_param started [MsgId: MMSG-26355]
Action.c(88): Registering web_reg_save_param was successful [MsgId: MMSG-26390]
Action.c(93): Warning: The string 'DealerID' with parameter delimiters is not a parameter.
Dealer ID is : {DealerID}
//自动生成的可以打印
lr_log_message("CurrentDealerID ID is : %s", lr_eval_string("{Siebel_Analytic_ViewState4}"));
//我写的打印不了
lr_log_message("CurrentDealerID ID is : %s", lr_eval_string("{CurrentDealerID}"));
lr_end_transaction("modify", LR_AUTO);
就是这情况下,还是报
Warning: The string 'CurrentDealerID' with parameter delimiters is not a parameter作者: cexowyc 时间: 2009-9-30 10:17
谢谢版主的回复,不过我的问题是
页面上有一个DealerID的Textbox,并且有新增和修改按钮
点新增按钮以后,系统会将新增的DealerID传回到页面,
点修改的时候,系统回根据Textbox的值,修改刚增加的Dealer