51Testing软件测试论坛

标题: WinRunner:String Length Limitation in "report_msg" [打印本页]

作者: pcl2004_27    时间: 2006-10-25 13:59
标题: WinRunner:String Length Limitation in "report_msg"
Description

      There is a limit to the length of string passed to "report_msg"


Solution

      It is good practice to write log information during script execution to ease script debugging and so forth. A common practice involves loggin "pop-up" messages that may appear. I always read the text from a pop-up message and write the message to the WinRunner log before confirming the prompt.

The length of the string is limited to 1023 characters. Any strings of lenght greater than this will need to be split using "substr" or other similar function in order to write to the log. The length of this string is pretty unlikely, but I haven't seen this documented anywhere else and thought it should be noted.




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