51Testing软件测试论坛
标题:
自定义函数中请求字段中包含嵌套字段,如何实现???求帮忙看看下面脚本有什么问题。
[打印本页]
作者:
晴空白鹤
时间:
2012-8-1 09:44
标题:
自定义函数中请求字段中包含嵌套字段,如何实现???求帮忙看看下面脚本有什么问题。
本帖最后由 晴空白鹤 于 2012-8-1 10:22 编辑
Action()
{
web_reg_find("Fail=NotFound",
"Search=Body",
"Text=\"retCode\":200",
LAST);
web_custom_request("task_createComplexAd",
"URL=http://192.168.9.76:9696/inter/task/createComplexAd",
"Method=POST",
"TargetFrame=",
"Resource=0",
"Referer=",
"Body={"
"\"version\":1.00,"
"\"systemId\":1,"
"\"userId\":\"149132\","
"\"sign\":\"12234\","
"\"data\":{"
"\"advertiserId\":149132,"
"\"templateId\":\"IMG_CLICK_WEB\", "
"\"adSize\":\"\", "
"\"adDuration\":0 ,"
"\"name\":\"sucai720-84001\" ,"
"\"description\":\"aaaaaaabbbbbccccc\", "
"\"parameterList\":["
"{\"id\":\"click_url\",\"value\":\"http://baidu.com\"}","
"{\"id\":\"image_url\", \"value \":\"HTTP://192.168.9.76:9696/temp-8ea994b6-9714-4617-89c6-4ebdd6342b39.jpg\"}"
"]"
"}"
"}",
LAST);
return 0;
}
大侠们看看这个代码有什么问题,为什么执行时提示:
Action.c:32:4: unterminated string or character constant
Action.c:27: possible real start of unterminated constant
作者:
晴空白鹤
时间:
2012-8-1 09:54
自己顶一下,大仙们帮忙看看吧。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2