Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

display ip addresses in load runner

This is a discussion on display ip addresses in load runner within the LoadRunner forums, part of the Software Testing category; Hi: I am recording a script in load runner whwere I want the script to display the ip of the vuser. This is what I put in the script: lr_get_vuser_ip(); ...

Go Back   Geeks Talk > Software Testing > LoadRunner
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 05-19-2009
Junior Member
 
Join Date: Nov 2007
Location: india
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
saumyarao is on a distinguished road
display ip addresses in load runner

Hi:

I am recording a script in load runner whwere I want the script to display the ip of the vuser. This is what I put in the script:
lr_get_vuser_ip();
if (lr_get_vuser_ip)

lr_output_message("The IP address is %s", lr_get_vuser_ip());

else

lr_output_message("IP spoofing disabled");

However when I replay the script I get the message "The IP address is (null)".
Do I need to change anything? is this code right?Please advise

Thanks in advance
Saumya
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-20-2009
Junior Member
 
Join Date: Oct 2007
Location: Bangalore - INDIA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ganeshmuralidhar is on a distinguished road
Re: display ip addresses in load runner

This function gives the IP only when IP spoofing is enabled. I tried my luck to find the answer, but got only this clarification til now.
Probably, if you want to get the name of the machine where the script is running. u can use. 'lr_get_host_name'
Reply With Quote
  #3 (permalink)  
Old 05-20-2009
Junior Member
 
Join Date: Nov 2007
Location: india
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
saumyarao is on a distinguished road
Re: display ip addresses in load runner

Hi thanks..this works and displays the hostname. However I am doing ip spoofing eventually. I have a few free available ip addresses.Can i put these ip addresses in the list of load generators on the controller, assign a script and a vuser to each of these ? will this be the same thing as setting up ip addresses in the ip wizard for spoofing? I am unable to add ip addresses in the ip wizard because they are DHCP. So I am looking for an alternative way of doing the same. Please advise.

Thanks in advance!
Reply With Quote
  #4 (permalink)  
Old 10-18-2009
Junior Member
 
Join Date: Jan 2007
Posts: 28
Thanks: 1
Thanked 0 Times in 0 Posts
abdul_sma is on a distinguished road
Re: display ip addresses in load runner

let me know if u still need help on this issue
Reply With Quote
Reply

  Geeks Talk > Software Testing > LoadRunner

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Load Runner villjuj LoadRunner 2 07-13-2009 04:10 AM
New to load runner priya_mano LoadRunner 3 06-05-2009 11:05 AM
QTP Script in Load Runner for Load Testing rohits_1982 QTP 2 08-13-2008 04:51 AM
Using load runner tool balajip82 LoadRunner 4 01-28-2008 03:06 AM
LOAD RUNNER _VIEWSTATE value smoin LoadRunner 3 07-08-2007 03:33 PM


All times are GMT -4. The time now is 08:12 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved