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. |
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(); ...
|
|||||||
|
|||
|
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 |
| Sponsored Links |
|
|||
|
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' |
|
|||
|
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! |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |