51Testing软件测试论坛
标题:
Error -26612: HTTP Status-Code=500 (Internal Server Error) 在线等!!
[打印本页]
作者:
丁凯
时间:
2010-3-3 17:03
标题:
Error -26612: HTTP Status-Code=500 (Internal Server Error) 在线等!!
本人是新手,大虾们帮忙看一下下面代码参数化那里有问题…………小弟不会呀!!下面是考试系统的答题部分!!好心人帮忙解决一下。下面是错误提示:
Action.c(21): web_url("paper.swf") was successful, 338593 body bytes, 230 header bytes [MsgId: MMSG-26386]
Action.c(30): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.13.45.130:8080/ems/getUserunFinishPaperByID.html" [MsgId: MERR-26612]
Action.c(30): web_submit_data("getUserunFinishPaperByID.html") highest severity level was "ERROR", 2662 body bytes, 182 header bytes [MsgId: MMSG-26388]
Ending action Action.
Ending iteration 1.
Action()
{
web_add_auto_header("x-flash-version", "10,0,42,34");
lr_think_time(14);
web_submit_data("userLogin.html",
"Action=http://10.13.45.130:8080/ems/userLogin.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/Login.swf",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=password", "
Value={password}",
ENDITEM,
"Name=userID", "
Value={userid}",
ENDITEM,
LAST);
web_url("paper.swf",
"URL=http://10.13.45.130:8080/ems/paper.swf",
"TargetFrame=",
"Resource=1",
"RecContentType=application/x-shockwave-flash",
"Referer=http://10.13.45.130:8080/ems/Login.swf",
"Snapshot=t6.inf",
LAST);
web_submit_data("getUserunFinishPaperByID.html",
"Action=http://10.13.45.130:8080/ems/getUserunFinishPaperByID.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t7.inf",
"Mode=HTML",
ITEMDATA,
"Name=userID", "
Value={tbluser}",
ENDITEM,
LAST);
web_submit_data("getUserunFinishPaperByID.html_2",
"Action=http://10.13.45.130:8080/ems/getUserunFinishPaperByID.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=userID", "
Value={tbluser}",
ENDITEM,
LAST);
web_submit_data("getUserFinishPaperByID.html",
"Action=http://10.13.45.130:8080/ems/getUserFinishPaperByID.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t9.inf",
"Mode=HTML",
ITEMDATA,
"Name=userID", "
Value={tbluser}",
ENDITEM,
LAST);
lr_think_time(6);
web_submit_data("getQuestionTypeByID.html",
"Action=http://10.13.45.130:8080/ems/getQuestionTypeByID.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t10.inf",
"Mode=HTML",
ITEMDATA,
"Name=questionIDs", "Value=9085,9086,9087,9088,9089,9090,9091,9092,9093,9094,9095,9096,9097,9098,9099,9100,9101,9102,9103,9104,9105,9106,8697,8696,8695,8694,8693,8692,8691,8690,8689,8688,8687,8686,8685,8684,8683,8682,8681,8680,8679,8678,8677,8676", ENDITEM,
LAST);
web_submit_data("getQuestionByIDs.html",
"Action=http://10.13.45.130:8080/ems/getQuestionByIDs.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t11.inf",
"Mode=HTML",
ITEMDATA,
"Name=questionIDs", "Value=9085,9086,9087,9088,9089,9090,9091,9092,9093,9094,9095,9096,9097,9098,9099,9100,9101,9102,9103,9104,9105,9106,8697,8696,8695,8694,8693,8692,8691,8690,8689,8688,8687,8686,8685,8684,8683,8682,8681,8680,8679,8678,8677,8676", ENDITEM,
"Name=questionType", "Value=2", ENDITEM,
"Name=optionMode", "Value=", ENDITEM,
LAST);
web_submit_data("getQuestionByIDs.html_2",
"Action=http://10.13.45.130:8080/ems/getQuestionByIDs.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t12.inf",
"Mode=HTML",
ITEMDATA,
"Name=questionIDs", "Value=9085,9086,9087,9088,9089,9090,9091,9092,9093,9094,9095,9096,9097,9098,9099,9100,9101,9102,9103,9104,9105,9106,8697,8696,8695,8694,8693,8692,8691,8690,8689,8688,8687,8686,8685,8684,8683,8682,8681,8680,8679,8678,8677,8676", ENDITEM,
"Name=questionType", "Value=3", ENDITEM,
"Name=optionMode", "Value=1", ENDITEM,
LAST);
web_submit_data("getSelOptionByQuestionIDs.html",
"Action=http://10.13.45.130:8080/ems/getSelOptionByQuestionIDs.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t13.inf",
"Mode=HTML",
ITEMDATA,
"Name=questionIDs", "Value=9085,9086,9087,9088,9089,9090,9091,9092,9093,9094,9095,9096,9097,9098,9099,9100,9101,9102,9103,9104,9105,9106,8697,8696,8695,8694,8693,8692,8691,8690,8689,8688,8687,8686,8685,8684,8683,8682,8681,8680,8679,8678,8677,8676", ENDITEM,
LAST);
web_submit_data("getQuestionAnswer.html",
"Action=http://10.13.45.130:8080/ems/getQuestionAnswer.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t14.inf",
"Mode=HTML",
ITEMDATA,
"Name=questionIDs", "Value=9085,9086,9087,9088,9089,9090,9091,9092,9093,9094,9095,9096,9097,9098,9099,9100,9101,9102,9103,9104,9105,9106", ENDITEM,
"Name=questionType", "Value=2", ENDITEM,
LAST);
web_submit_data("getQuestionAnswer.html_2",
"Action=http://10.13.45.130:8080/ems/getQuestionAnswer.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t15.inf",
"Mode=HTML",
ITEMDATA,
"Name=questionIDs", "Value=8676,8677,8678,8679,8680,8681,8682,8683,8684,8685,8686,8687,8688,8689,8690,8691,8692,8693,8694,8695,8696,8697", ENDITEM,
"Name=questionType", "Value=3", ENDITEM,
LAST);
lr_think_time(69);
web_custom_request("createUserAnswerRcord.html",
"URL=http://10.13.45.130:8080/ems/createUserAnswerRcord.html",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t16.inf",
"Mode=HTML",
"Body=paperRecords="
"%3Crecord%3E%3CpaperID%3E3%3C%2FpaperID%3E%3CuserID%3E312%3C%2FuserID%3E%3Cscore%3E45%2E81%3C%2Fscore%3E%3Ctime%3E%E6%97%A0%E9%99%90%E5%88%B6%3C%2Ftime%3E%3Canswers%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9085%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9086%3C%2FquestionID%3E%3CuserAnswe"
"r%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9087%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9088%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E31"
"2%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9089%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9090%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2Fpa"
"perID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9091%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9092%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E"
[
本帖最后由 丁凯 于 2010-3-3 17:41 编辑
]
作者:
丁凯
时间:
2010-3-3 17:09
标题:
接上面的
接上面的
"%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9093%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9094%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3Cquestion"
"Type%3E2%3C%2FquestionType%3E%3CquestionID%3E9095%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9096%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3Cquesti"
"onID%3E9097%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9098%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9099%3C%2FquestionID%3E%3CuserA"
"nswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9100%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9101%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%"
"3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9102%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9103%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%"
"2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9104%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9105%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrec"
"t%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E2%3C%2FquestionType%3E%3CquestionID%3E9106%3C%2FquestionID%3E%3CuserAnswer%3E1%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8676%3C%2FquestionID%3E%3CuserAnswer%3E0010%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3Cq"
"uestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8677%3C%2FquestionID%3E%3CuserAnswer%3E0100%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8678%3C%2FquestionID%3E%3CuserAnswer%3E0100%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionTyp"
"e%3E%3CquestionID%3E8679%3C%2FquestionID%3E%3CuserAnswer%3E0100%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8680%3C%2FquestionID%3E%3CuserAnswer%3E0010%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8681%3C%2Fqu"
"estionID%3E%3CuserAnswer%3E0010%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8682%3C%2FquestionID%3E%3CuserAnswer%3E0100%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8683%3C%2FquestionID%3E%3CuserAnswer%3E0100%"
"3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8684%3C%2FquestionID%3E%3CuserAnswer%3E0010%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E1%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8685%3C%2FquestionID%3E%3CuserAnswer%3E0100%3C%2FuserAnswer%3E%3CuserID%3E31"
"2%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8686%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8687%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2Fpape"
"rID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8688%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8689%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%"
"2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8690%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8691%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3"
"E3%3C%2FquestionType%3E%3CquestionID%3E8692%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8693%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8"
"694%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8695%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8696%3C%2FquestionID%3E%3CuserAnswer%3E%3"
"C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3Canswer%3E%3CquestionType%3E3%3C%2FquestionType%3E%3CquestionID%3E8697%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3C%2Fanswers%3E%3C%2Frecord%3E",
LAST);
web_submit_data("getUserunFinishPaperByID.html_3",
"Action=http://10.13.45.130:8080/ems/getUserunFinishPaperByID.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t17.inf",
"Mode=HTML",
ITEMDATA,
"Name=userID", "
Value={tbluser}",
ENDITEM,
LAST);
web_submit_data("getUserunFinishPaperByID.html_4",
"Action=http://10.13.45.130:8080/ems/getUserunFinishPaperByID.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t18.inf",
"Mode=HTML",
ITEMDATA,
"Name=userID", "
Value={tbluser}",
ENDITEM,
LAST);
web_submit_data("getUserFinishPaperByID.html_2",
"Action=http://10.13.45.130:8080/ems/getUserFinishPaperByID.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://10.13.45.130:8080/ems/paper.swf",
"Snapshot=t19.inf",
"Mode=HTML",
ITEMDATA,
"Name=userID", "
Value={tbluser}",
ENDITEM,
LAST);
return 0;
}
[
本帖最后由 丁凯 于 2010-3-3 17:43 编辑
]
作者:
ermine
时间:
2010-3-3 17:15
额。。。被这么长的代码吓到了。。。
你哪里弄参数化了?可以试试只执行脚本的一部分,看看有没有问题,尽量定位清楚
还有就是问题信息是什么。。。
作者:
丁凯
时间:
2010-3-3 17:40
标题:
标出来给你看
我参数化了两个用户同是答题,用户名和密码参数化后没问题。下面的有问题。我吧参数化的地方标出来给你看。
作者:
丁凯
时间:
2010-3-3 18:18
标题:
第一次在51发贴
刚才没有描述清楚,补充下。我上面的代码意思是参数化两个用户登录系统,然后进行答题,我对用户名和密码进行了参数,Action迭代设为了二,参数类型为sequential,顺序执行执行。参数值设为each iteration类型。这部分没有任何问题。执行以后,也没有什么错,可就是只有一个用户登录进行答题了,迭代了两次,理论上应该有两个人都有答题了啊!!我在想是不是还有地方没有参数化,没关联起来,可可我找了一下午的原因就是没找到。实在很苦恼哦!!谁能帮帮我看看问题出在哪的啊!!感激不尽啊!!
我才刚入门啊。因为公司现在需要这方面的测试,之前没有的。最近也是强补这方面的知识哦!!希望大吓们能指点指点啊…………
[
本帖最后由 丁凯 于 2010-3-3 18:24 编辑
]
作者:
ermine
时间:
2010-3-3 19:02
呵呵,没碰到过,等高人来解答吧
不过网上Google了一下highest severity level was "ERROR",你也可以参考着看看。
http://www.google.cn/search?rlz= ... vel+was+%22ERROR%22
作者:
yu8023yan
时间:
2010-3-4 10:48
换个模式录制。。你的是URL还是http?换一下
作者:
丁凯
时间:
2010-3-4 11:56
标题:
不是模式的问题。
HTML和URL两种模式我都试过了。可结果还是一样的。不对,我想应该有哪个地方需要参数化而我没有参数化到。上面代码中有很长一段代码,如这一段:这只是一小段(2FquestionType%3E%3CquestionID%3E8697%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3C%2Fanswers%3E%3C%2Frecord%3E",) 我觉得这其中应该是需要参数化的,可就是不知道怎么弄啊!!也没弄明白这是什么意思:
3CuserID%3E312%3C%2FuserID
[
本帖最后由 丁凯 于 2010-3-4 12:08 编辑
]
作者:
yu8023yan
时间:
2010-3-4 12:27
是不是关联那块的问题啊?试了没有?
作者:
丁凯
时间:
2010-3-4 14:46
标题:
应该是的吧
应该是的吧?但我现在也不知道怎么操作了…………总感觉是参数化的时候有问题!!烦啊!!
作者:
丁凯
时间:
2010-3-4 18:45
标题:
哈哈…………找了一个下午的原因!终于解决了。
(2FquestionType%3E%3CquestionID%3E8697%3C%2FquestionID%3E%3CuserAnswer%3E%3C%2FuserAnswer%3E%3CuserID%3E312%3C%2FuserID%3E%3CpaperID%3E3%3C%2FpaperID%3E%3Ccorrect%3E0%3C%2Fcorrect%3E%3C%2Fanswer%3E%3C%2Fanswers%3E%3C%2Frecord%3E",)这些代码原来是THML加密码。我把上面哪一段代码解密出来以后,一下就明白了,原来userid这个我没有参数化,所以虽然迭代设置了2遍可只执行以后只有一个答题,将userid和数据库里的用户id对应起来参数化以后。执行一遍,一切都解决了。哈哈…………
作者:
hgl
时间:
2010-11-29 14:50
请问你这个怎么解密呀,我也遇到一段的这样的不知道什么意思
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2