Loadrunner学习笔记之ip欺骗

上一篇 / 下一篇  2007-11-28 10:39:23 / 个人分类:loadrunner

ip欺骗设置:51Testing软件测试网)I4OX}u$m
1.在总控机上使用loadrunner->tools->ip wizard工具设置虚拟ip,其中server ip指要监控的服务器的ip,添加ip时选择A、B或C类ip,设置开始ip和要添加的虚拟ip的个数,并选中verify the new ip addresses are not already use,已检查添加的ip是否与局域网中的其它ip冲突
_:jZzz+J:?|nu02.重启机器51Testing软件测试网$f$[N+dy UYk
3.在controller的scenario中勾选enable ip spoofer,启用虚拟ip
(R+` q*\&ea-GW03.在controller的tools中选中expert mode,在options->general中设置multiple ip address mode与run-time settings中的multithreading设置保持一致
/~8z)G+q U e8L/nf04.在load generators中选择localhost
kbhjQDn Q0^0查看脚本执行过程中是否使用了设置的虚拟ip,可以如下设置:
9^A lT2A{-ZI0在脚本中添加代码:51Testing软件测试网.jvfV@N t
char *ip = lr_get_vuser_ip();51Testing软件测试网T@#hMZFh,My
if (ip)
FLNNe G4hF4~#s0     lr_output_message("The IP address is %s", ip);
9\-AG@/W{u5N)pt0else
$C;u5Jd5^{w8u#O0     lr_output_message("IP spoofing disabled");
g6~4e hlGnJ0在脚本运行过程中查看controller的output,view->show output,选择all messages,查看输出的ip是否为设置的虚拟ip

TAG: loadrunner ip欺骗

bossy的个人空间 引用 删除 bossy   /   2008-03-06 09:33:20
没有作用
 

评分:0

我来说两句

Open Toolbar