google搜索 站内搜索                 软件测试门户 | 软件测试培训 | 文章资料精选 | 软件测试论坛 | 测试解决方案 | 软件测试博客 | 测试招聘求职 
打印

[求助] 关联函数web_reg_save的疑惑

关联函数web_reg_save的疑惑


用到关联函数时,若同时需关联两个,且关联的参数名一样,怎么运用?

TOP

回复 1# 的帖子


web_create_html_param_ex
Creates a parameter for dynamic data from an HTML page that contains multiple occurrences of the dynamic data. (for LR 6.5 and below)
试试看
爱几米,爱生活

TOP

web_reg_save_param


web_reg_save_param后面有个参数List of Attributes 其中他有个属性RelFrameID:你可以设置看看 能不能解决

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.

[ 本帖最后由 Spark.lee 于 2007-10-8 16:36 编辑 ]
我的世界因为有你而精彩!!!!

http://blog.51testing.com/index.php?uid/84226

TOP

web_reg_save_param("A", "LB/ic=<a href=", "RB=\'>", "Ord=All", LAST);

The first match is saved as A_1, the second match is saved as A_2, and so forth.
可以用ord这个参数来决定使用第几个匹配,如果是all的话就会把所有的匹配都保留下来
然后可以使用A_1, A_2来找每一个对应匹配

TOP

动态的关联,只需要一个函数吗?


ITEMDATA,
                "Name=appInfos", "Value=4a5cbb5c-60f4-11dc-b705-95e216347f0c$119$1$071100100000657600041$A", ENDITEM,
                "Name=appInfos", "Value=4a5a716a-60f4-11dc-b705-95e216347f0c$119$1$071100100000657600039$A", ENDITEM,
                LAST);
其中两个value均需进行关联,是不是只要用web_reg_save_param关联就行了。

TOP

 
当前时区 GMT+8, 现在时间是 2008-12-5 14:42Copyright(C)上海博为峰软件技术有限公司 2001-2007 电话:021-64471599-8017
当您在访问网站、论坛及博客过程中遇到问题时可发送email:webmaster@51testing.com或发送论坛短信至管理员风在吹