google搜索 站内搜索                 软件测试门户 | 软件测试培训 | 文章资料精选 | 软件测试论坛 | 测试解决方案 | 软件测试博客 | 测试招聘求职 
打印

[求助] 上传图片为什么不能成功呢?请大虾们指点

上传图片为什么不能成功呢?请大虾们指点


我录制了上传图片的一段程序,也对随机产生的图片id做了关联,但回放以后看结果却仍然显示“无图”。请问这是为什么呢?

在run-time viewer中也可以看到图片是上传了。

附:主要的代码:

        char *picstr;
        web_set_max_html_param_len("1196");

        web_submit_data("doUpload",                "Action=http://.../imgup/turbine/action/imgup.UploadFileAction/eventsubmit_doupload/doUpload",
                "Method=POST",
                "EncType=multipart/form-data",
                "RecContentType=text/html",
                "Referer=http://.../my/turbine/template/imgup%2Cupload.html?picstr={picstr}",
                "Snapshot=t11.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=upFile", "Value=C:\\2.gif", "File=yes", ENDITEM,
                "Name=isAddWater", "Value=0", ENDITEM,
                "Name=fileType", "Value=.gif.jpg", ENDITEM,
                "Name=fileMinSize", "Value=1", ENDITEM,
                "Name=fileMaxSize", "Value=204800", ENDITEM,
                "Name=imgMinWidth", "Value=0", ENDITEM,
                "Name=imgMaxWidth", "Value=0", ENDITEM,
                "Name=imgMinHeight", "Value=0", ENDITEM,
                "Name=imgMaxHeight", "Value=0", ENDITEM,
                "Name=imgWidth", "Value=96", ENDITEM,
                "Name=imgHeight", "Value=95", ENDITEM,
                "Name=imgSize", "Value=16944", ENDITEM,
                "Name=suffix", "Value=CFJ4", ENDITEM,
                "Name=picstr", "Value={picstr}", ENDITEM,
                "Name=hasPic", "Value=0", ENDITEM,
                LAST);


日志部分:
BuyAction.c(51): web_url("template") was successful, 22 body bytes, 276 header bytes, 15 chunking overhead bytes          [MsgId: MMSG-26385]
BuyAction.c(60): Redirecting "http://.../imgup/turbine/action/imgup.UploadFileAction/eventsubmit_doupload/doUpload" (redirection depth=0)          [MsgId: MMSG-26694]
BuyAction.c(60): To location "http://.../my/turbine/template/imgup,upload.html?r=0&picstr=aced000573720021636f6d2e68633336302e696d6775702e626f2e4d756c746946696c65506172616d0000000000000000020007490008627573696e466c67490007636f7079466c674a00066d61696e49644900067069634e756d490007706963666c6167490008706963696e6465784900047479706578720026636f6d2e68633336302e696d6775702e626f2e55706c6f61645061676542617365506172616d00000000000000000200044a000a70726f766964657249644a000973657373696f6e49644c00076261636b55726c7400124c6a6176612f6c616e672f537472696e673b4c000673756666697871007e00027872001c636f6d2e68633336302e696d6775702e626f2e42617365506172616d00000000000000000200014c000a75706c6f61645479706574001c4c636f6d2f68633336302f696d6775702f55706c6f6164547970653b78707e72001a636f6d2e68633336302e696d6775702e55706c6f61645479706500000000000000001200007872000e6a6176612e6c616e672e456e756d00000000000000001200007870740009425553494e5f494d470000001748e2266300000000053a0ad774003d687474703a2f2f6d792e6232622e68633336302e636f6d2f6d792f74757262696e652f74656d706c6174652f696d6775702c75706c6f61642e68746d6c74000463356b490000000000000000000000000000000000000003000000000000000000000000"          [MsgId: MMSG-26693]
BuyAction.c(60): Resource "http://.../imgup/style/main.css" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
BuyAction.c(60): Resource "http://.../imgup/images/ddsc_03.gif" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
BuyAction.c(60): Found resource "http://.../imgup/tmppic/l_87689943_1RFk.gif" in HTML "http://my.b2b.hc360.com/my/turbine/template/imgup,upload.html?r=0&picstr=aced000573720021636f6d2e68633336302e696d6775702e626f2e4d756c746946696c65506172616d0000000000000000020007490008627573696e466c67490007636f7079466c674a00066d61696e49644900067069634e756d490007706963666c6167490008706963696e6465784900047479706578720026636f6d2e68633336302e696d6775702e626f2e55706c6f61645061676542617365506172616d00000000000000000200044a000a70726f766964657249644a000973657373696f6e49644c00076261636b55726c7400124c6a6176612f6c616e672f537472696e673b4c000673756666697871007e00027872001c636f6d2e68633336302e696d6775702e626f2e42617365506172616d00000000000000000200014c000a75706c6f61645479706574001c4c636f6d2f68633336302f696d6775702f55706c6f6164547970653b78707e72001a636f6d2e68633336302e696d6775702e55706c6f61645479706500000000000000001200007872000e6a6176612e6c616e672e456e756d00000000000000001200007870740009425553494e5f494d470000001748e2266300000000053a0ad774003d687474703a2f2f6d792e6232622e68633336302e636f6d2f6d792f74757262696e652f74656d706c6174652f696d6775702c75706c6f61642e68746d6c74000463356b490000000000000000000000000000000000000003000000000000000000000000"          [MsgId: MMSG-26659]
BuyAction.c(60): Resource "http://.../imgup/images/1x1.jpg" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
BuyAction.c(60): Resource "http://..../imgup/images/fieldset_bottom_03.gif" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
BuyAction.c(60): web_submit_data("doUpload") was successful, 7185 body bytes, 2161 header bytes, 18 chunking overhead bytes          [MsgId: MMSG-26385]

TOP

大家还需要其他的是什么东西来定位问题吗?

TOP

谁能给指点一下啊?

TOP

对不起,实在是解决不了了,不想让它沉下去

TOP

 
当前时区 GMT+8, 现在时间是 2008-12-5 23:53Copyright(C)上海博为峰软件技术有限公司 2001-2007 电话:021-64471599-8017
当您在访问网站、论坛及博客过程中遇到问题时可发送email:webmaster@51testing.com或发送论坛短信至管理员风在吹