51Testing软件测试论坛
标题:
Loadrunner遇到中文解析问题
[打印本页]
作者:
小狐狸如如
时间:
2008-5-6 14:38
标题:
Loadrunner遇到中文解析问题
我在测试我录制的论坛回帖的脚本时候提示错误。提示的信息如下:
Action.c (1956): missing "
Action.c (1957): undeclared identifier `ENDITEM'
我找到1956行,1956行的脚本如下:
web_submit_data("1109",
"Action=http://community.re1001.com/brand/1109",
"Method=POST",
"RecContentType=text/html",
"Referer=http://community.test.com/brand/1109",
"Snapshot=t14.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE", "Value=/wEPDwUJOTA1Nzk3OTc5D2QWAmYPZBYCZg9kFgQCAQ9kFgICCA8WAh4EVGV4dAVScmUxMDAxLnVzZXI9e3VzZXJJZDoxMTAwNyx1c2VybmFtZTonZm94cnVydScsbmlja25hbWU6J+Wwj+eLkOeLuOWmguWmgicscG9pbnRzOjB9O2QCAw9kFgICAQ9kFgICAQ8PFgIeB1Zpc2libGVnZBYkAgEPDxYCHgtOYXZpZ2F0ZVVybAUraHR0cDovL2NvbW11bml0eS5yZTEwMDEuY29tL2JyYW5kLzExMDkvcG9zdGRkAgIPDxYCHwIFJmh0dHA6Ly9jb21tdW5pdHkucmUxMDAxLmNvbS9icmFuZC9wb3N0ZGQCBA8WAh8ABXQ8YSBocmVmPSJodHRwOi8vY29tbXVuaXR5LnJlMTAwMS5jb20vYnJhbmQiPuWTgeeJjOS4h+ixoTwvYT4gJmd0OyA8YT7jgI7lk4HniYzlj5Hlrrblrp3lhbjjgI8g5aaC5a6255qE5Yqg5YeP5rOVPC9hPmQCBg8WAh8ABSvjgI7lk4HniYzlj5Hlrrblrp3lhbjjgI8g5aaC5a6255qE5Yqg5YeP5rOVZAIIDxYCHwAFEzIwMDgtMDQtMjYgMTY6MzA6MTBkAgoPFgIfAAWcTjxwPg0KPGRpdj4mbmJzcDsmbmJzcDsmbmJzcDsg5Z2Q6JC95Zyo5LiK5rW35aSp6ZKl5qGl6LevNDAw5Y+355qE5aaC5a625b+r5o236YWS5bqX5Zyo6auY5qW85p6X56uL55qE5b6Q5a625rGH5ZWG5Lia5ZyI5pi+5b6X5bm25LiN6LW355y877yM54S26ICM5q+P5aSp5p2l5Yiw6L+Z6YeM5L2P5a6/55qE5a6i5Lq65Y205Y+R546w77ya5LuW5Lus5b+F6aG75o+Q5YmN5LiJ5aSp6aKE5a6a6K+l6YWS5bqX77yM5LiN54S25bCx5b6I6Zq+6aKE5a6a5Yiw5a6i5oi/44CC5"
[
本帖最后由 小狐狸如如 于 2008-5-11 22:08 编辑
]
作者:
小狐狸如如
时间:
2008-5-6 14:39
接着,是
"AUHdml2aWxlZWQCEQ8WAh8ABQvmspnlj5EuLi4uLmQCEw8WBB8ABRg8ZGl2IGNsYXNzPSJwbGFuIj48L2Rpdj4fAWhkAigPDxYCHgpVcmxQYXR0ZXJuBSpodHRwOi8vY29tbXVuaXR5LnJlMTAwMS5jb20vYnJhbmQvMTEwOS17MH1kZAIqDw8WAh8BZ2QWAgIBEGRkFgICAQ8WAh8ABQdmb3hydXJ1ZAIsDxYCHwRmZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAQUfY3RsMDAkY3RsMDAkbWFpbiRtYWluJGJ0blN1Ym1pdBc0m1ORTaDZ7K1um4CFdlR+iQhF", ENDITEM,
"Name=ctl00$ctl00$main$main$txtContent", "Value=鐢ㄥ績鍋氫簨锛屾垚鍔熸槸蹇呯劧鐨?, ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWAwKW9YS8BAL87eLsAwLZpu7GDO2clJZvLyT8zAqbAvv2UBQCDaJj", ENDITEM,
"Name=ctl00$ctl00$main$main$btnSubmit.x", "Value=71", ENDITEM,
"Name=ctl00$ctl00$main$main$btnSubmit.y", "Value=8", ENDITEM,
LAST);
作者:
小狐狸如如
时间:
2008-5-6 14:40
我怀疑是 "Name=ctl00$ctl00$main$main$txtContent", "Value=鐢ㄥ績鍋氫簨锛屾垚鍔熸槸蹇呯劧鐨?, ENDITEM,的问题,是中文解析不好吧。想问下各位,谁知道怎么解决啊:
作者:
小狐狸如如
时间:
2008-5-6 15:02
终于解决了。解决办法如下:Tools->recording Option -->advanced-->Support charset-->UTF-8
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2