51Testing软件测试论坛

标题: char zhubanid[10]在附值后提示parameter delimiters is not a parameter [打印本页]

作者: songyq521    时间: 2008-6-18 15:14
标题: char zhubanid[10]在附值后提示parameter delimiters is not a parameter
我在action里定义char zhubanid[10]在附值后提示parameter delimiters is not a parameter

脚本里:
zhubanid=4950;

        web_custom_request("FlowLog.start.dwr",
                "URL=http://192.168.99.48/sgcc/dwr/exec/FlowLog.start.dwr",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://192.168.99.48/sgcc/pmis/flow/f.start.over.jsp",
                "Snapshot=t172.inf",
                "Mode=HTML",
                "EncType=text/plain",
                "Body=callCount=1\nc0-scriptName=FlowLog\nc0-methodName=start\nc0-id=4960_1213680483000\nc0-param0=string"
                ":%3C%3Fxml%20version%3D%221.0%22%3F%3E%0D%0A%3Cdata%3E%3Cflowcode%3E20080611155254156%3C%2Fflowcode%3E%3Cflowid%3E{flowid1}%3C%2Fflowid%3E%3Cflowlogid%3E{flowlogid1}%3C%2Fflowlogid%3E%3Czhubanid%3E{zhubanid}%3C%2Fzhubanid%3E%3Csendtype%3ESEND%3C%2Fsendtype%3E%3Csubject%3E2009%E5%B9%B4%E5%8F%91%E5%B1%95%E7%AD%96%E5%88%92%E9%83%A8%EF%BC%88%E5%8F%91%E5%B1%95%E7%AD%96%E5%88%92%E9%83%A8%E7%94%9F%E4%BA%A7%E7%BB%8F%E8%90%A5%EF%BC%89%E7%BB%BC%E5%90%88%E8%AE%A1%E5%88%92%E7%BC%96%E5%88%B6%3C%2Fsubject%3E%3Cretrie"
                "vecondition%3E(to_char(REPORT_ID)%20%7C%7C%20'%3A'%20%7C%7C%20to_char(DEPT_ID))"
                "%3D'3011000000000020080618131645984%3A30110000600000001'%3C%2Fretrievecondition%3E%3Cyj%3E%3C%2Fyj%3E%3Cnodes%3E%3Cnode%20from%3D%222%22%20to%3D%224%22%20routeid%3D%225%22%3E%3Creceiver%20type%3D%22ZHUBAN%22%3E%3Cuser%20id%3D%2210000000000000cfd60e4d-6073-47b3-87dd-d20ba56590f9%22%20name%3D%22%E7%94%B0%E5%AE%8F%E5%BF%83%22%2F%3E%3C%2Freceiver%3E%3Creceiver%20type%3D%22READER%22%2F%3E%3C%2Fnode%3E%3C%2Fnodes%3E%3Cfiles%2F%3E%3C%2Fdata%3E%0D%0A\nxml=true\n",
                LAST);

[ 本帖最后由 songyq521 于 2008-6-18 15:19 编辑 ]
作者: qicyt1812    时间: 2008-6-18 16:14
我刚刚在录制socket回放的时候也出现这个警告,猜想可能该参数化为无效参数或者不是一个参数引起的,这个地方有必要参数化吗?或者你参数化的方式是否正确?
作者: 云层    时间: 2008-6-18 17:41
你开头定义的是变量不是参数要这样写就可以了
zhuban=4950;
lr_save_string(zhuban,"zhubanid");

强行转化一个参数出来
作者: songyq521    时间: 2008-6-19 08:35
昨天看帮助弄好了,方法是一样的,谢谢啊




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