51Testing软件测试论坛

标题: 帮忙看看下这段脚本错在哪儿了? [打印本页]

作者: camer    时间: 2008-9-10 17:43
标题: 帮忙看看下这段脚本错在哪儿了?
web_submit_data("wa_IMAdd.aspx_2",
"Action=http://10.136.236.206:82/Pages/SupplyStation/WareMod/wa_IMAdd.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.136.236.206:82/Pages/SupplyStation/WareMod/wa_IMAdd.aspx",
"Snapshot=t9.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState4}", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtSimcode", "Value={WCSParam_Diff1}", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtPlant", "Value=丰台分库", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtDepot", "Value=金属库122", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtSUCODE", "Value=", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtSUNAME", "Value=", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtSSTARSTATION", "Value=", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtSARRNAME", "Value=", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtSCARRYCODE", "Value=", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$ddlSPACKAGE", "Value=木箱", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtNPIECES", "Value=0", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtSSENDER", "Value=", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtSPACKAGESTATE", "Value=完整", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtDINDATE", "Value=2008-09-10", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtSCOMMENTS", "Value=", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$btnSubmit", "Value=保 存(S)", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtMatlList", "Value=00011080$铸铁棒$80×300mm$根$$$$$$$$$$&", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtMainCobox", "Value=01;01", ENDITEM,
"Name=ctl00$ContentPlaceHolder1$txtBindJs", "Value=document.getElementById('ctl00_ContentPlaceHolder1_txtSUNAME').value = '';ChangeCat(document.getElementById('ctl00_ContentPlaceHolder1_txtPlantddl').value);document.getElementById('ctl00_ContentPlaceHolder1_txtDepot').value = '金属库122';document.getElementById('ctl00_ContentPlaceHolder1_txtDepotddl').selectedIndex = 0;", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWGALN4+KYDwKGwuLdAQK4tcvRBwKq6LuqBwKr9tf1CgKl9te2CAL67vvjBgKP5tbGBgKox5ysBQKgwrqaAgKw8bqaAgLPmsndAwKttd7xBwLJwJrvDgLipsKZDALIwv2aDQKixbxiAp7opVEC0f2dsQMCn9TMpwsC+NCVogoC44P/5w8Cvtf29QYC9PTuigitFaecZKoNOIY3XoSugDy/VhWE9w==", ENDITEM,
                LAST);

Asp.Net的程序,正常操作没问题,测试脚本时老是提示HTTP 状态代码=500 (Internal Server Error)          [MsgId: MERR-26612]
在网上看了一些解决办法,关联什么也试了都不行,帮忙看看是不是脚本有什么问题
作者: AJan1000    时间: 2008-9-11 10:00
看LZ的脚本里面,用的是LR自带的关联吧
分别关联了{Siebel_Analytic_ViewState4} 和{WCSParam_Diff1}这两个?
ViewState的内容好像是不需要关联的。你就用默认的试试。
{WCSParam_Diff1}你在运行设置当中设置一下返回参数的值
在运行查看一下有没有关联到值,值对不对。





欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2