51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1802|回复: 2
打印 上一主题 下一主题

[原创] loadrunner的关联功能问题~~~~~~

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2004-11-11 20:39:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
loadrunner的关联功能有什么作用啊,什么情况下使用??
大虾,斑竹帮忙解答拉~~~~~~~~~~~~
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏

该用户从未签到

2#
发表于 2004-11-12 10:57:04 | 只看该作者

先看一下帮助吧。

在帮助中输入Correlation,有详细解释。参见后面的Case

Understanding the Correlation Options
Correlation allows you to save dynamic values during test execution. These settings let you configure the extent of automatic correlation performed by VuGen while recording. All of correlation options are disabled by default. The Correlation options only apply to the VBScript and JScript languages.

Case 1
Suppose a Web page contains a hypertext link with text: "Buy me now!" When you record a script with HTTP data, the URL is recorded by VuGen as:

"http://host//cgi-bin/purchase.cgi?date=170397&ID=1234"

Since the date "170397" and ID "1234" are created dynamically during recording, each new browser session recreates the date and ID. When you run the script, the link "Buy me now!" is no longer associated with the same URL that was recorded—but with a new one. The Web server is therefore unable to retrieve the URL.

Case 2
Consider a case where a user fills in his name and account ID into a form, and then submits the form.

When the form is submitted, a unique serial number is also sent to the server together with the user's data. Although this serial number is contained in a hidden field in the HTML code, it is recorded by VuGen into the script. Because the serial number changes with each browser session, LoadRunner is unable to successfully replay the recorded script.

You can use correlated statements to resolve the difficulties in both of the above cases. Replace the dynamic data in the recorded script with one or more parameters. When the script runs, LoadRunner assigns parameter values.
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2007-6-2 17:23:46 | 只看该作者
关联的作用 :从服务器返回的信息里获得动态数据,保存到变量里,以备后续脚本使用。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-25 09:52 , Processed in 0.063818 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表