51Testing软件测试论坛
标题:
关于脚本中--Registering parameter(s)
[打印本页]
作者:
nicole830
时间:
2008-5-19 11:52
标题:
关于脚本中--Registering parameter(s)
我先后录制了两个页面提交的操作,提交后转向的页面,都是会出现交易流水(每次自动生成),交易时间(取自系统时间),两个字段,可是为什么前后两个脚本出现的不一致呢?
第一次是有Registering parameter(s) ,把交易流水(每次自动生成),交易时间(取自系统时间)都做了参数化
第二次的脚本是交易流水、交易时间在脚本中都是写死的,想了半天也搞不清楚原因。特向高手请教!!
拜谢!!
作者:
nicole830
时间:
2008-5-19 11:54
第一次出现的脚本是:
/* Registering parameter(s) from source task id 9
// {CSRule_1_UID40} = "88abc03dc0a878f701f30035f4ea17b6"
// */
web_reg_save_param("CSRule_1_UID40",
"LB= value=\"",
"RB=\"",
"Ord=3",
"RelFrameId=1",
"Search=Body",
LAST);
/* Registering parameter(s) from source task id 9
// {CSRule_1_UID41} = "20080307175640"
// */
web_reg_save_param("CSRule_1_UID41",
"LB= value=\"",
"RB=\"",
"Ord=4",
"RelFrameId=1",
"Search=Body",
LAST);
web_submit_data("TX11.jsp_2",
"Action=http://192.168.120.116:8888/Simulator/merchant/{CSRule_1_UID27}.jsp",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.120.116:8888/Simulator/index.jsp",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
LAST);
lr_think_time(38);
lr_rendezvous("orderSubmt");
lr_start_transaction("personOrder");
web_submit_form("MerchantTxControl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=TxTraceNo", "Value={CSRule_1_UID40}", ENDITEM,
"Name=TxTotalAmount", "Value=80000", ENDITEM,
"Name=MerchantTxTime", "Value={CSRule_1_UID41}", ENDITEM,
"Name=TxPayEndDate", "Value=20080907175640", ENDITEM,
"Name=PayerProtestEndDays", "Value=20", ENDITEM,
"Name=MerchantID", "Value=000100", ENDITEM,
"Name=OrderNo", "Value={ordNO}", ENDITEM,
"Name=OrderAmount", "Value=80000", ENDITEM,
"Name=OrderTime", "Value={orderTime}", ENDITEM,
"Name=OrderDesc", "Value={CSRule_1_UID30}", ENDITEM,
"Name=SettleType", "Value={settleType}", ENDITEM,
LAST);
lr_think_time(5);
作者:
nicole830
时间:
2008-5-19 11:56
第二次出现的脚本为:
web_url("test.html",
"URL=http://192.168.200.201:8080/hapex/test.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_submit_form("action.html",
"Snapshot=t2.inf",
ITEMDATA,
"Name=functionCode", "Value=200000", ENDITEM,
"Name=actionCode", "Value=00", ENDITEM,
LAST);
lr_think_time(6);
web_submit_form("action.html_2",
"Snapshot=t3.inf",
ITEMDATA,
"Name=merTxTraceNo", "Value=ff4d3e66c0a8c8c90103345080cb910f", ENDITEM,
"Name=txtotalAmt", "Value=2000", ENDITEM,
"Name=merchantTxTime", "Value=20080519115102", ENDITEM,
"Name=txPayEndDate", "Value=20080519115102", ENDITEM,
"Name=merchantId", "Value=merchantid_000111", ENDITEM,
"Name=merOrderNo", "Value=e76c0a8c8c9009f2588d", ENDITEM,
"Name=orderAmount", "Value=2000", ENDITEM,
"Name=orderTime", "Value=20080519115102", ENDITEM,
"Name=orderDesc", "Value=鏈\xAA\xE6坊鍔犳弿杩\xB0", ENDITEM,
"Name=settleTypeId", "Value=2010锛堜釜浜洪潪涓\xAD\xE4粙鏀\xAF\xE4粯锛\x89", ENDITEM,
LAST);
作者:
whyleave
时间:
2008-5-19 11:59
第1个脚本做了关联,第2个脚本没做关联
作者:
nicole830
时间:
2008-5-19 13:37
原帖由
whyleave
于 2008-5-19 11:59 发表
第1个脚本做了关联,第2个脚本没做关联
请教如何让第二个脚本也做关联呢?
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2