51Testing软件测试论坛
标题:
如何關聯訂單編號
[打印本页]
作者:
bencheung
时间:
2007-10-22 22:06
标题:
如何關聯訂單編號
/*
這是一個訂單編號為207100157的訂單排期錄制的腳本。如果在自動處理其他訂單編號,請問如何通過關聯處理。
。多謝謝各位大蝦。
*/
#include "web_api.h"
Action()
{
web_url("Pordin2.asp",
"URL=http://10.2.10.240/LF/ordernew/Pordin2.asp?editmode=9",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.2.10.240/LF/ordernew/",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
lr_think_time( 6 );
web_submit_form("POrdIn2.asp",
"Snapshot=t4.inf",
ITEMDATA,
"Name=Ord", "Value=207100157", ENDITEM,
"Name=B1", "Value=½T©w", ENDITEM,
LAST);
web_url("POrdIn2.asp_2",
"URL=http://10.2.10.240/LF/ordernew/POrdIn2.asp?Ord=207100157",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
lr_think_time( 6 );
web_url("SelTimeHour.Asp",
"URL=http://10.2.10.240/LF/ordernew/SelTimeHour.Asp?chkTime=True&temptime=2007/10/22%2006:00",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
lr_think_time( 3 );
web_url("SelTimeHour.Asp_2",
"URL=http://10.2.10.240/LF/ordernew/SelTimeHour.Asp?chkTime=True&temptime=2007/10/22%2006:00",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
lr_think_time( 16 );
web_submit_data("POrdIn2.asp_3",
"Action=http://10.2.10.240/LF/ordernew/POrdIn2.asp",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.2.10.240/LF/ordernew/POrdIn2.asp?Ord=207100157",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=h_no", "Value=YES018", ENDITEM,
"Name=m1", "Value=", ENDITEM,
"Name=color1", "Value=", ENDITEM,
"Name=met1", "Value=", ENDITEM,
"Name=jetA1", "Value=", ENDITEM,
"Name=jetB1", "Value=", ENDITEM,
"Name=paint1", "Value=", ENDITEM,
"Name=m2", "Value=", ENDITEM,
"Name=color2", "Value=", ENDITEM,
"Name=met2", "Value=", ENDITEM,
"Name=jetA2", "Value=", ENDITEM,
"Name=jetB2", "Value=", ENDITEM,
"Name=paint2", "Value=", ENDITEM,
"Name=Remark", "Value=", ENDITEM,
"Name=Mod1", "Value=8-9", ENDITEM,
"Name=Mod2", "Value=9/2-11", ENDITEM,
"Name=
作者:
Zee
时间:
2007-10-22 22:12
打开replay log,看看服务端返回的数据。
作者:
bencheung
时间:
2007-10-23 18:36
标题:
回复 2# 的帖子
但是回放時,也只是回放訂單編號207100157的排期資料。
如果我要在回放時,新增207100158 或者 207100159 等等的訂單排期哪如何處理?
因為每一個訂單編號的資料不一樣。所以不知如何處理。請教,多謝!
作者:
rickyzhu
时间:
2007-10-23 22:43
reply log里面自然有服务器返回的数据,你就利用那个进行关联即可。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2