51Testing软件测试论坛

标题: loadrunnr获取XML返回值的问题求教 [打印本页]

作者: csj    时间: 2010-7-7 12:04
标题: loadrunnr获取XML返回值的问题求教
服务器返回的是一个XML文件形式的页面,我想获取其中的某个属性或者节点值,在loadrunner上应该怎么操作?
作者: msnshow    时间: 2010-7-7 13:41
不是有一些XML函数可用么
作者: csj    时间: 2010-7-7 17:19
标题: 回复 2# 的帖子
能不能给个参考的文档之类的东西,我刚进该行业,不大知道门路
作者: 云层    时间: 2010-7-7 17:43
lr_get_xml_value
好像是这个函数吧。
作者: dionysus    时间: 2010-7-7 21:43
使用的是什么协议录制的?
作者: csj    时间: 2010-7-8 09:36
标题: 回复 5# 的帖子
HTTP/HTML这个
作者: yzylion    时间: 2010-9-6 15:46
lr_get_xml_value
是不是只在9.5里面才有?
作者: 云层    时间: 2010-9-6 17:47
函数打错了应该是lr_xml_get_values
作者: patrick_1984    时间: 2010-9-7 17:23
int lr_xml_get_values ( <List of specifications> [, <List of optional specifications> ] [, LAST]);

List of specifications  For the following list of required specifications, use the following string format:
"Specification=value"

XML: the XML Input String to query

ValueParam: the name of the output parameter which stores the result of the query. If it does not exist, it is created.
Query: the XML Query or Fast Query on the input string XML. You can specify elements or attributes.

List of optional specifications  For the following list of optional specifications, use the following string format:
"Specification=value"


SelectAll: If "yes", all elements matching the query will be processed. If "no", only the first match will be processed. Default is "no". See Multiple Query Matching

NotFound: See Continuing on Error  
LAST  A marker which indicates the end of the List of optional specifications




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