51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1344|回复: 1
打印 上一主题 下一主题

[原创] 帮忙看看下这段脚本错在哪儿了?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-9-10 17:43:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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]
在网上看了一些解决办法,关联什么也试了都不行,帮忙看看是不是脚本有什么问题
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2008-9-11 10:00:05 | 只看该作者
看LZ的脚本里面,用的是LR自带的关联吧
分别关联了{Siebel_Analytic_ViewState4} 和{WCSParam_Diff1}这两个?
ViewState的内容好像是不需要关联的。你就用默认的试试。
{WCSParam_Diff1}你在运行设置当中设置一下返回参数的值
在运行查看一下有没有关联到值,值对不对。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-8 01:32 , Processed in 0.069081 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表