本帖最后由 zengli80 于 2011-8-24 22:41 编辑
录制在线考试,回放不成功,web_submit_form("PUB_Online_Test.aspx",总是报错
Action()
{
web_add_cookie("hblb=hblb; DOMAIN=test5");
web_reg_save_param("Siebel_Analytic_ViewState1",
"LB/IC=pstrCheckNO=",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("login.aspx",
"URL=http://test5/etacp/Business/pub/webpub/PUb_Online/login.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/etacp/images/login1/webLogin_5.gif", ENDITEM,
"Url=/etacp/images/login1/webLogin_13.gif", ENDITEM,
"Url=/etacp/images/login1/webLogin_10.gif", ENDITEM,
"Url=/etacp/Images/css/textbox.css", ENDITEM,
"Url=/etacp/images/login1/webLogin_24.gif", ENDITEM,
"Url=/etacp/images/login1/webLogin_26.gif", ENDITEM,
"Url=/etacp/images/login1/webLogin_27.gif", ENDITEM,
LAST);
web_submit_form("login.aspx_2",
"Snapshot=t2.inf",
ITEMDATA,
"Name=strUserAccount", "Value=420204198008126554", ENDITEM,
"Name=strChechNO", "Value={Siebel_Analytic_ViewState1}", ENDITEM,
"Name=btnLogin.x", "Value=49", ENDITEM,
"Name=btnLogin.y", "Value=15", ENDITEM,
EXTRARES,
"Url=images/bg_mid.gif", "Referer=http://test5/etacp/Business/pub/webpub/PUb_Online/PUB_Online_Info.aspx?pExamNum=420204198008126554", ENDITEM,
LAST);
web_submit_form("PUB_Online_Info.aspx",
"Snapshot=t3.inf",
ITEMDATA,
"Name=imgbtnEnter.x", "Value=45", ENDITEM,
"Name=imgbtnEnter.y", "Value=5", ENDITEM,
EXTRARES,
"Url=images/left_mid.jpg", "Referer=http://test5/etacp/Business/pub/webpub/PUb_Online/PUB_Online_Test.aspx?ExamPaperCode=b6b9594d-1349-497c-9b36-09a7ecf8a550|fc254454-d7f3-4d8e-acdd-a840b7be8203|5ccf62c2-bc51-4c31-9ee2-3f293e6e53c0|8a87dfac-0476-422f-84bb-2cc3be5e63f5|ce48acf9-e62b-4342-9c2b-49da252b265e&ExamGuid=0e55b0b2-30f6-4ee0-8abb-827767d1615a&pExamNum=420204198008126554&pAccount=xy5&pClassCode=00010101013a1eaf15-0691-471c-9d4e-cda9a64efaaf", ENDITEM,
"Url=images/main_m.jpg", "Referer=http://test5/etacp/Business/pub/webpub/PUb_Online/PUB_Online_Test.aspx?ExamPaperCode=b6b9594d-1349-497c-9b36-09a7ecf8a550|fc254454-d7f3-4d8e-acdd-a840b7be8203|5ccf62c2-bc51-4c31-9ee2-3f293e6e53c0|8a87dfac-0476-422f-84bb-2cc3be5e63f5|ce48acf9-e62b-4342-9c2b-49da252b265e&ExamGuid=0e55b0b2-30f6-4ee0-8abb-827767d1615a&pExamNum=420204198008126554&pAccount=xy5&pClassCode=00010101013a1eaf15-0691-471c-9d4e-cda9a64efaaf", ENDITEM,
LAST);
web_submit_form("PUB_Online_Test.aspx",
"Snapshot=t4.inf",
ITEMDATA,
"Name=nLimitTime", "Value=60", ENDITEM,
"Name=dtRemainTime", "Value=3597", ENDITEM,
"Name=dgrdRadio:_ctl2:radlAnswer1", "Value=C", ENDITEM,
"Name=nextIndex", "Value=1", ENDITEM,
"Name=totalquestion", "Value=0", ENDITEM,
"Name=Indexanswered", "Value=0", ENDITEM,
"Name=strSjRecGuid", "Value=5ccf62c2-bc51-4c31-9ee2-3f293e6e53c0", ENDITEM,
"Name=strKsAccount", "Value=xy5", ENDITEM,
"Name=imgbtnNext.x", "Value=79", ENDITEM,
"Name=imgbtnNext.y", "Value=13", ENDITEM,
EXTRARES,
"Url=images/left_mid.jpg", "Referer=http://test5/etacp/Business/pub/webpub/PUb_Online/PUB_Online_Test.aspx?ExamPaperCode=b6b9594d-1349-497c-9b36-09a7ecf8a550|fc254454-d7f3-4d8e-acdd-a840b7be8203|5ccf62c2-bc51-4c31-9ee2-3f293e6e53c0|8a87dfac-0476-422f-84bb-2cc3be5e63f5|ce48acf9-e62b-4342-9c2b-49da252b265e&ExamGuid=0e55b0b2-30f6-4ee0-8abb-827767d1615a&pExamNum=420204198008126554&pAccount=xy5&pClassCode=00010101013a1eaf15-0691-471c-9d4e-cda9a64efaaf", ENDITEM,
"Url=images/main_m.jpg", "Referer=http://test5/etacp/Business/pub/webpub/PUb_Online/PUB_Online_Test.aspx?ExamPaperCode=b6b9594d-1349-497c-9b36-09a7ecf8a550|fc254454-d7f3-4d8e-acdd-a840b7be8203|5ccf62c2-bc51-4c31-9ee2-3f293e6e53c0|8a87dfac-0476-422f-84bb-2cc3be5e63f5|ce48acf9-e62b-4342-9c2b-49da252b265e&ExamGuid=0e55b0b2-30f6-4ee0-8abb-827767d1615a&pExamNum=420204198008126554&pAccount=xy5&pClassCode=00010101013a1eaf15-0691-471c-9d4e-cda9a64efaaf", ENDITEM,
LAST);
web_submit_form("PUB_Online_Test.aspx_2",
"Snapshot=t5.inf",
ITEMDATA,
"Name=nLimitTime", "Value=60", ENDITEM,
"Name=dtRemainTime", "Value=3593", ENDITEM,
"Name=dgrdRadio:_ctl2:radlAnswer1", "Value=<OFF>", ENDITEM,
"Name=nextIndex", "Value=2", ENDITEM,
"Name=totalquestion", "Value=0", ENDITEM,
"Name=Indexanswered", "Value=0", ENDITEM,
"Name=strSjRecGuid", "Value=5ccf62c2-bc51-4c31-9ee2-3f293e6e53c0", ENDITEM,
"Name=strKsAccount", "Value=xy5", ENDITEM,
"Name=btnOverTest.x", "Value=37", ENDITEM,
"Name=btnOverTest.y", "Value=9", ENDITEM,
EXTRARES,
"Url=images/left_mid.jpg", "Referer=http://test5/etacp/Business/pub/webpub/PUb_Online/PUB_Online_Test.aspx?ExamPaperCode=b6b9594d-1349-497c-9b36-09a7ecf8a550|fc254454-d7f3-4d8e-acdd-a840b7be8203|5ccf62c2-bc51-4c31-9ee2-3f293e6e53c0|8a87dfac-0476-422f-84bb-2cc3be5e63f5|ce48acf9-e62b-4342-9c2b-49da252b265e&ExamGuid=0e55b0b2-30f6-4ee0-8abb-827767d1615a&pExamNum=420204198008126554&pAccount=xy5&pClassCode=00010101013a1eaf15-0691-471c-9d4e-cda9a64efaaf", ENDITEM,
"Url=images/main_m.jpg", "Referer=http://test5/etacp/Business/pub/webpub/PUb_Online/PUB_Online_Test.aspx?ExamPaperCode=b6b9594d-1349-497c-9b36-09a7ecf8a550|fc254454-d7f3-4d8e-acdd-a840b7be8203|5ccf62c2-bc51-4c31-9ee2-3f293e6e53c0|8a87dfac-0476-422f-84bb-2cc3be5e63f5|ce48acf9-e62b-4342-9c2b-49da252b265e&ExamGuid=0e55b0b2-30f6-4ee0-8abb-827767d1615a&pExamNum=420204198008126554&pAccount=xy5&pClassCode=00010101013a1eaf15-0691-471c-9d4e-cda9a64efaaf", ENDITEM,
LAST);
web_submit_data("PUB_Online_Test.aspx_3",
"Action=http://test5/etacp/Business/pub/webpub/PUb_Online/PUB_Online_Test.aspx?pEvent=Over",
"Method=POST",
"RecContentType=text/html",
"Referer=http://test5/etacp/Business/pub/webpub/PUb_Online/PUB_Online_Test.aspx?ExamPaperCode=b6b9594d-1349-497c-9b36-09a7ecf8a550|fc254454-d7f3-4d8e-acdd-a840b7be8203|5ccf62c2-bc51-4c31-9ee2-3f293e6e53c0|8a87dfac-0476-422f-84bb-2cc3be5e63f5|ce48acf9-e62b-4342-9c2b-49da252b265e&ExamGuid=0e55b0b2-30f6-4ee0-8abb-827767d1615a&pExamNum=420204198008126554&pAccount=xy5&pClassCode=00010101013a1eaf15-0691-471c-9d4e-cda9a64efaaf",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value=dDwtMTE5MDkyODkxO3Q8cDxsPHBFeGFtTnVtO2h0O2h0TWFyaztkdGJsOz47bDw0MjAyMDQxOTgwMDgxMjY1NTQ7aDw1Y2UzNGM0NS00MzA5LTQ4MWEtYWJiYi1hZmQ0OGQ1ZjAxMTY7Qzs+"
"O2g8PjtiPEFBRUFBQUQvLy8vL0FRQUFBQUFBQUFBTUFnQUFBRkZUZVhOMFpXMHVSR0YwWVN3Z1ZtVnljMmx2YmoweExqQXVOVEF3TUM0d0xDQkRkV3gwZFhKbFBXNWxkWFJ5WVd3c0lGQjFZbXhwWTB0bGVWUnZhMlZ1UFdJM04yRTFZelUyTVRrek5HVXdPRGtGQVFBQUFCVlRlWE4wWlcwdVJHRjBZUzVFWVhSaFZHRmliR1VDQUFBQUNWaHRiRk5qYUdWdFlRdFliV3hFYVdabVIzSmhiUUVCQWdBQUFBWURBQUFBeGhzOFAzaHRiQ0IyWlhKemFXOXVQU0l4TGpBaUlHVnVZMjlrYVc1blBTSjFkR1l0TVRZaVB6NE5Dang0Y3pwelkyaGxiV0VnYVdROUluUnRjRVJoZEdGVFpYUWlJSGh0Ykc1elBTSWlJSGh0Ykc1ek9uaHpQU0pvZEhSd09pOHZkM2QzTG5jekxtOXlaeTh5TU"
|