51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1254|回复: 0
打印 上一主题 下一主题

LoadRunner:Verifying LoadRunner data transfer

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-10-25 14:07:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Description

      Tips on how to make sure that LoadRunner is pulling down all the files you think it is


Solution

      A common request from many new users of LoadRunner is for a method by which they can verify that their LoadRunner scripts are pulling down all the data they think is being accessed.

There are three relatively easy ways to do this.

1) Use the VUser logging capabilities of the LoadRunner Controller. The key is to enable the logging of data sent back from the server. This will place the binary data of the object request responses in your logs, so it is not recommended that this be done during large VUser runs, but rather during smaller test runs to verify script functionality.

After the test, open the VUser logs and look for the filenames you wish to verify. If you see the response from the server with the desired filename (and the accompanying binary data for that file), then LoadRunner successfully transferred that data during the course of the test.

2) Use a software packet sniffer. Using a sniffer, you can monitor all the traffic between a workstation and a server. What you want to look for are the GET requests made by LoadRunner and the resulting responses from the server.

I find it easiest to use a sniffer while doing a VUser test run from localhost.

I recommend using Ethereal for most basic sniffing tasks. It's available at www.ethereal.com.

3) Enable logging on the web server. By enabling logging for all files transferred, you can easily see which files have been requested/sent and how many times this happened. You can also use server usage statistics programs like Webtrends to cull this data and present it in an easily accessible format.

With those three methods, you should be able to see everything that happens between LoadRunner and your web server. Doing this kind of verification can be time intensive, but it is better to know that you are simulating accurate load than to later find out that all your tests were invalid because key data files were not being retrieved.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-11 05:50 , Processed in 0.060325 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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