|
附件是图:
脚本如下:
#include "web_api.h"
Action()
{
web_url("day.html",
"URL=http://www.sina.com.cn/allnews/day.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=download/config/setupdll.ddt", "Referer=", ENDITEM,
"Url=download/config/updatedll.ddt", "Referer=", ENDITEM,
"Url=http://pfp.sina.com.cn/hotkey.xml", "Referer=", ENDITEM,
LAST);
web_url("gameconfig.html",
"URL=http://www.sina.com.cn/ddt/gameconfig.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_url("oldversion.html",
"URL=http://www.sina.com.cn/ddt/oldversion.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_url("login.html",
"URL=https://192.168.0.119:9443/OE/login.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
lr_think_time( 73 );
web_submit_form("start",
"Snapshot=t5.inf",
ITEMDATA,
"Name=action", "Value=start", ENDITEM,
"Name=opr", "Value=dl", ENDITEM,
"Name=us1", "Value=oesa", ENDITEM,
"Name=us2", "Value=1", ENDITEM,
"Name=sb", "Value=提交", ENDITEM,
LAST);
lr_think_time( 6 );
web_url("getChildrenMbr.html",
"URL=https://192.168.0.119:9443/OE/getChildrenMbr.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
lr_think_time( 1 );
lr_rendezvous("zhanshi");
lr_think_time( 2 );
lr_start_transaction("zhanshi");
lr_think_time( 15 );
web_submit_form("oeservlet",
"Snapshot=t7.inf",
ITEMDATA,
"Name=action", "Value=OLAPMeta", ENDITEM,
"Name=path", "Value=柯常标", ENDITEM,
"Name=cmd", "Value=mbr", ENDITEM,
"Name=serverID", "Value=100", ENDITEM,
"Name=db", "Value=custrisk", ENDITEM,
"Name=cube", "Value=custrisk", ENDITEM,
"Name=dim", "Value={riqiwei}", ENDITEM,
"Name=mbr", "Value={riqiwei2}", ENDITEM,
"Name=sb", "Value=提交", ENDITEM,
LAST);
lr_end_transaction("zhanshi", LR_AUTO);
return 0;
}
我希望实现的是:
当{riqiwei}值是日期维时,{riqiwei2}也取日期维,{riqiwei}取值行业维时,{riqiwei2}也取值行业维,实现一一对应的关系?
像这类有逻辑关系的参数该如何设置呢? |
|