web_reg_find函数返回错误26366

时间:2017-07-18 09:51:35

标签: performance-testing loadrunner vugen

我运行一个脚本:

web_url("yangibazar@ya.ru",
"URL=http://u0351361.isp.regruhosting.ru/viewtopic.php?t=11", 
"TargetFrame=", 
"Resource=0", 
"RecContentType=text/html",
"Referer=http://u0351361.isp.regruhosting.ru/viewforum.php?f=3", 
"Snapshot=t6.inf", 
"Mode=HTML", 
LAST);

lr_think_time(20);

web_reg_find("Text=templates/subSilver/images/icon_mini_faq.gif",LAST );

web_reg_find("Text=u=16",LAST );

首先,web_reg_find找到字符串,第二个 - 返回错误

 118    Action.c(118): Error -26366: "Text=u=16" not found for web_reg_find   [MsgId: MERR-26366]   Action.c

但快照t6.inf响应来自之前的web_url(“yangibazar@ya.ru”......包含两个字符串。实际上问题是可以找到一些响应,有些不是。 view-source:http://u0351361.isp.regruhosting.ru/viewtopic.php?t=11 - 该页面的代码

1 个答案:

答案 0 :(得分:0)

服务功能的上下文是在您有兴趣查找结果的呼叫之前启动它。从这个意义上讲,服务功能(web_reg_ *)就像一个筛子,通过它可以倾倒所有响应的HTML。 web_reg_ *函数的条件决定了最终在筛子中捕获的内容(如果有的话)进行评估。

在上面提供的代码示例中,在web_url()之后调用服务函数。他们的操作背景将是以下请求,而不是前一个请求。这里的问题是影响您实施的概念。

这一概念作为产品培训的一部分被广泛涵盖。如果您的管理层拒绝向您发送培训并在一段时间内提供导师(至少在迁移到新的学科/工具时),那么您应该考虑从HP网站下载自定进度的教程。