51Testing软件测试论坛

标题: 求助,高手来给一段标准代码 [打印本页]

作者: wangmeng814    时间: 2009-8-3 16:02
标题: 求助,高手来给一段标准代码
我从HELP文档里找到 WEB_REG_FIND的一个用法
In the following example,web_reg_findfunction searches for the text string "ABC". If the string is not found, the script. executesAction A. If the string is found one or more times, it executesAction B.

web_reg_find("Text=ABC", "SaveCount=abc_count", LAST);
web_url("Step", "URL=...", LAST);
if (strcmp(lr_eval_string("{abc_count}"), "0") == 0)
Action A
else
Action B

但是 调用ACTION A和 ACTION B 该怎么写?像它写得这么简单 直接就写上ACTION的名字 报错的。 求高手给一段 执行ACTION的代码!
作者: sunhope800    时间: 2009-8-13 15:28
路过,顶一下!
作者: alexanty    时间: 2009-9-4 00:03
学习中,。,。,
作者: kuangquanshui    时间: 2009-9-4 09:44

作者: mball    时间: 2009-9-4 10:36
顶了~~等高手来~
作者: lampson_82    时间: 2009-9-4 11:55
web_reg_find("Text=ABC", "SaveCount=abc_count", LAST);
web_url("Step", "URL=...", LAST);
if (strcmp(lr_eval_string("{abc_count}"), "0") == 0)
    Action A();
else
   Action B();
作者: xiaoy035    时间: 2009-9-4 21:24





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