|
5#
楼主 |
发表于 2007-9-7 13:00:03
|
只看该作者
以下是登陆部分,登陆后,系统默认打开一个项目的查询,然后可以在查询结果上进行增删改,如果想切换到其他项目,可以选择其他项目(但这部分没有包括到下面脚本里,这边脚本只有登陆和打开默认项目)
/* -------------------------------------------------------------------------------
Script Title :
Script Description :
Recorder Version : 1008
------------------------------------------------------------------------------- */
vuser_init()
{
web_set_max_html_param_len("1024");
web_url("projectplan.jsp",
"URL=http://bs-pc-135:8080/project/projectplan.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=https://bs-pc-149:8443/cas/images/background_mac.jpg", "Referer=https://bs-pc-149:8443/cas/login?service=http%3A%2F%2Fbs-pc-135%3A8080%2Fproject%2Fj_acegi_cas_security_check%3Bjsessionid%3D88A2FA172034E8E172B129E9189587A2", ENDITEM,
LAST);
web_add_cookie("project_plan_cookie=8; DOMAIN=bs-pc-135");
/* Registering parameter(s) from source task id 23
// {CSRule_1_UID10} = "1"
// */
web_reg_save_param("CSRule_1_UID10",
"LB= value=\"",
"RB=\"",
"Ord=7",
"Search=Body",
"RelFrameId=1",
LAST);
/* Registering parameter(s) from source task id 23
// {CSRule_1_UID9} = "0"
// */
web_reg_save_param("CSRule_1_UID9",
"LB= value=\"",
"RB=\"",
"Ord=6",
"Search=Body",
"RelFrameId=1",
LAST);
web_submit_form("login;jsessionid=1B949C56FB30C8AE76B9C73BABFF87C3",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value=user1", ENDITEM,
"Name=password", "Value=password", ENDITEM,
EXTRARES,
"Url=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/javascripts/builder.js", "Referer=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/projectplan.jsp", ENDITEM,
"Url=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/javascripts/dragdrop.js", "Referer=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/projectplan.jsp", ENDITEM,
"Url=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/javascripts/controls.js", "Referer=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/projectplan.jsp", ENDITEM,
"Url=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/javascripts/effects.js", "Referer=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/projectplan.jsp", ENDITEM,
"Url=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/images/plus_tog_white.gif", "Referer=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/projectplan.jsp", ENDITEM,
"Url=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/images/checked.gif", "Referer=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/projectplan.jsp", ENDITEM,
"Url=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/images/ts/valid_baseline.gif", "Referer=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/projectplan.jsp", ENDITEM,
LAST);
web_custom_request("ProjectAction.getOpenProjectsByPM.dwr",
"URL=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/dwr/call/plaincall/ProjectAction.getOpenProjectsByPM.dwr",
"Method=POST",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/projectplan.jsp",
"EncType=text/plain",
"Body=callCount={CSRule_1_UID10}\npage=/project/projectplan.jsp\nhttpSessionId=88A2FA{CSRule_1_UID10}72{CSRule_1_UID9}34E8E{CSRule_1_UID10}72B{CSRule_1_UID10}29E9{CSRule_1_UID10}89587A2\nscriptSessionId=A5FD64F8D5{CSRule_1_UID10}4853B{CSRule_1_UID9}D6D9{CSRule_1_UID10}C{CSRule_1_UID10}A4{CSRule_1_UID9}7{CSRule_1_UID9}E6F4{CSRule_1_UID10}5\nc{CSRule_1_UID9}-scriptName=ProjectAction\nc{CSRule_1_UID9}-methodName=getOpenProjectsByPM\nc{CSRule_1_UID9}-id={CSRule_1_UID9}\nbatchId={CSRule_1_UID9}\n",
LAST);
web_custom_request("ProjectPlanService.getProjectPlan.dwr",
"URL=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/dwr/call/plaincall/ProjectPlanService.getProjectPlan.dwr",
"Method=POST",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/projectplan.jsp",
"EncType=text/plain",
"Body=callCount={CSRule_1_UID10}\npage=/project/projectplan.jsp\nhttpSessionId=88A2FA{CSRule_1_UID10}72{CSRule_1_UID9}34E8E{CSRule_1_UID10}72B{CSRule_1_UID10}29E9{CSRule_1_UID10}89587A2\nscriptSessionId=A5FD64F8D5{CSRule_1_UID10}4853B{CSRule_1_UID9}D6D9{CSRule_1_UID10}C{CSRule_1_UID10}A4{CSRule_1_UID9}7{CSRule_1_UID9}E6F4{CSRule_1_UID10}5\nc{CSRule_1_UID9}-scriptName=ProjectPlanService\nc{CSRule_1_UID9}-methodName=getProjectPlan\nc{CSRule_1_UID9}-id={CSRule_1_UID9}\nc{CSRule_1_UID9}-e"
"{CSRule_1_UID10}=string:8\nc{CSRule_1_UID9}-param{CSRule_1_UID9}=Object_Object:{id:reference:c{CSRule_1_UID9}-e{CSRule_1_UID10}}\nbatchId={CSRule_1_UID10}\n",
LAST);
web_custom_request("ValidateTask.getMessageList.dwr",
"URL=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/dwr/call/plaincall/ValidateTask.getMessageList.dwr",
"Method=POST",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/projectplan.jsp",
"EncType=text/plain",
"Body=callCount={CSRule_1_UID10}\npage=/project/projectplan.jsp\nhttpSessionId=88A2FA{CSRule_1_UID10}72{CSRule_1_UID9}34E8E{CSRule_1_UID10}72B{CSRule_1_UID10}29E9{CSRule_1_UID10}89587A2\nscriptSessionId=A5FD64F8D5{CSRule_1_UID10}4853B{CSRule_1_UID9}D6D9{CSRule_1_UID10}C{CSRule_1_UID10}A4{CSRule_1_UID9}7{CSRule_1_UID9}E6F4{CSRule_1_UID10}5\nc{CSRule_1_UID9}-scriptName=ValidateTask\nc{CSRule_1_UID9}-methodName=getMessageList\nc{CSRule_1_UID9}-id={CSRule_1_UID9}\nc{CSRule_1_UID9}-param{CSRule_1_UID9}="
"number:4426\nc{CSRule_1_UID9}-param{CSRule_1_UID10}=string:8\nbatchId=2\n",
LAST);
web_custom_request("ProjectPlanAction.getCategories.dwr",
"URL=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/dwr/call/plaincall/ProjectPlanAction.getCategories.dwr",
"Method=POST",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/projectplan.jsp",
"EncType=text/plain",
"Body=callCount={CSRule_1_UID10}\npage=/project/projectplan.jsp\nhttpSessionId=88A2FA{CSRule_1_UID10}72{CSRule_1_UID9}34E8E{CSRule_1_UID10}72B{CSRule_1_UID10}29E9{CSRule_1_UID10}89587A2\nscriptSessionId=A5FD64F8D5{CSRule_1_UID10}4853B{CSRule_1_UID9}D6D9{CSRule_1_UID10}C{CSRule_1_UID10}A4{CSRule_1_UID9}7{CSRule_1_UID9}E6F4{CSRule_1_UID10}5\nc{CSRule_1_UID9}-scriptName=ProjectPlanAction\nc{CSRule_1_UID9}-methodName=getCategories\nc{CSRule_1_UID9}-id={CSRule_1_UID9}\nbatchId=3\n",
LAST);
web_custom_request("ProjectAction.getProjectMemberByProjectId.dwr",
"URL=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/dwr/call/plaincall/ProjectAction.getProjectMemberByProjectId.dwr",
"Method=POST",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://bs-pc-{CSRule_1_UID10}35:8{CSRule_1_UID9}8{CSRule_1_UID9}/project/projectplan.jsp",
"EncType=text/plain",
"Body=callCount={CSRule_1_UID10}\npage=/project/projectplan.jsp\nhttpSessionId=88A2FA{CSRule_1_UID10}72{CSRule_1_UID9}34E8E{CSRule_1_UID10}72B{CSRule_1_UID10}29E9{CSRule_1_UID10}89587A2\nscriptSessionId=A5FD64F8D5{CSRule_1_UID10}4853B{CSRule_1_UID9}D6D9{CSRule_1_UID10}C{CSRule_1_UID10}A4{CSRule_1_UID9}7{CSRule_1_UID9}E6F4{CSRule_1_UID10}5\nc{CSRule_1_UID9}-scriptName=ProjectAction\nc{CSRule_1_UID9}-methodName=getProjectMemberByProjectId\nc{CSRule_1_UID9}-id={CSRule_1_UID9}\nc{CSRule_1_UID9}-param"
"{CSRule_1_UID9}=string:8\nbatchId=4\n",
LAST);
return 0;
} |
|