51Testing软件测试论坛

标题: 参数设置(高手进来) [打印本页]

作者: steave5139    时间: 2006-4-3 17:23
标题: 参数设置(高手进来)
请教web_reg_save_param下的参数应该如何设置?
作者: performer    时间: 2006-4-3 20:59
不是高手也能回答:


NOTFOUND: The handling option when a boundary is not found and an empty string is generated.
"Notfound=error", the default value, causes LoadRunner to issue an error when a boundary is not found.
"Notfound=warning" ("Notfound=empty" in earlier versions), does not issue an error. If the boundary is not found, it sets the parameter count to 0, and continues executing the script. The "warning" option is ideal if you want to see if the string was found, but you do not want the script to fail.
Note: if Continue on Error is enabled for the script, then even when NOTFOUND is set to "error", the script continues when the boundary is not found, but an error message is written to the Extended log file. This attribute is optional.


LB: The left boundary of the parameter or the dynamic data. If you do not specify an LB value, it uses all of the characters from the beginning of the data as a boundary. Boundary parameters are case-sensitive. To further customize the search text, use one or more text flags. This attribute is required. See the Boundary Arguments section.
RB: The right boundary of the parameter or the dynamic data. If you do not specify an RB value, it uses all of the characters until the end of the data as a boundary. Boundary parameters are case-sensitive. To further customize the search text, use one or more text flags. This attribute is required. See the Boundary Arguments section.
RelFrameID: The hierarchy level of the HTML page relative to the requested URL. The possible values are ALL or a number. Click RelFrameID Attribute for a detailed description. This attribute is optional.
ORD: This parameter, also known as Instance, indicates the ordinal position or instance of the match. The default instance is 1. If you specify "All," it saves the parameter values in an array. This attribute is optional.
Search: The scope of the search-where to search for the delimited data. The possible values are Headers (Search only the headers), Body (search only body data, not headers), Noresource (search only the HTML body, excluding all headers and resources), or ALL (search body , headers, and resources). The default value is ALL. This attribute is optional.
SaveOffset: The offset of a sub-string of the found value, to save to the parameter. The default is 0. The offset value must be non-negative.
SaveLen: The length of a sub-string of the found value, from the specified offset, to save to the parameter. The default is -1, indicating to save to the end of the string.
Convert: The possible values are:
HTML_TO_URL: convert HTML-encoded data to a URL-encoded data format
HTML_TO_TEXT: convert HTML-encoded data to plain text format


主要用的是lb和rb
作者: steave5139    时间: 2006-4-4 08:37
楼上非常感谢!谢谢啦!




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