51Testing软件测试论坛

标题: 回放脚本时报错了,急,请高手帮看看! [打印本页]

作者: lcyu888    时间: 2009-6-12 19:10
标题: 回放脚本时报错了,急,请高手帮看看!
录了一份A脚本,这部份代码如下,没变动       
录了脚本B,关联数据如下,有所改动
现回放脚本B时,所请求语法错,总找不到错的原因

录了一份A脚本,这部份代码如下,没变动       
web_url("creditCustProjectsAction.do",
                "URL=http://10.60.108.51/ras/ras/credit/creditCustProjectsAction.do?taskTargetObjectId=0000000000000000000000000000000000008149&pageflowNodeInstanceId=000000051836",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://10.60.108.51/ras/ras/credit/pageflow.jsp?selectedIndex=1&ratingType=1&objectType=00&objectId=500000000000000D0002&period=2009-06-12&startNodeName=newStart&startNodeInstanceId=000000051834",
                "Snapshot=t22.inf",
                "Mode=HTML",
                LAST);

录了脚本B,关联数据如下,有所改动
        web_url("creditCustProjectsAction.do",
                "URL=http://10.60.108.51/ras/ras/credit/creditCustProjectsAction.do?taskTargetObjectId={taskTargetObjectId}&pageflowNodeInstanceId={instanceId_1}",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://10.60.108.51/ras/ras/credit/pageflow.jsp?selectedIndex=1&ratingType=1&objectType=00&objectId=500000000000000D0002&period=2009-06-12&startNodeName=newStart&startNodeInstanceId={startNodeInstanceId}",
                "Snapshot=t21.inf",
                "Mode=HTML",
                LAST);
作者: prince198509    时间: 2009-6-12 19:54
应该是HTTP请求头错了,服务器无法接受请求,去了解一下http协议请求与与响应结构体,不知是否可以自动加入header,用web_add_header函数
作者: lcyu888    时间: 2009-6-13 10:09
标题: web_add_header 在脚本中怎么加?
在脚本中怎么加?




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