Blog
Categories
- Agile
- Best Practices
- Center of Excellence
- Cloud
- Featured
- Functional Testing and Automation
- Giveaway
- Healthcare IT
- HP
- HP Discover Conference
- HP Software Patches
- Latest News
- LoadRunner
- Methodology
- Mobile
- Northway Navigator Club News
- Operating Systems
- Performance Testing and Automation
- Quality Assurance
- Security
- Service Virtualization
- SiteScope
- Training
- TweakLR
- Uncategorized
- VuGen Code
Archives
- April 2019
- September 2018
- July 2018
- June 2018
- October 2017
- August 2016
- April 2015
- February 2015
- September 2014
- August 2014
- May 2014
- April 2014
- March 2014
- October 2013
- September 2013
- August 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- February 2011
- July 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- September 2007
- August 2007
- July 2007
- October 2006
- April 2006
- March 2005
- October 2004
- March 2004
- February 2004
- January 2004
- December 2003
- November 2003
- April 2003
-
Vugen: Replace Any String With Another
Posted on July 23, 2012 by Admin
Here is an easy way to replace anything with anything in a captured string in your LoadRunner Vugen script. It is a function called “string_replace”. Place this in the top of your action section, right after the include but before the main section begins:
char *string_replace(char *input_string,
char *substring_to_be_replaced,
char *substitution_string){
// strstr function declaration
char *strstr(const char *s1, const char *s2);// newstring variable the new string to be returned
// increase the buffer size if needed. Read Entire Entry -
Vugen: HTML and URL Recording Options Compared
Posted on July 18, 2012 by Admin
In LoadRunner Vugen, there are two general modes of recording: HTML and URL.
HTML (Context Sensitive) is usually preferred for several reasons. Firstly, because it is “context sensitive” , i.e. each mouse click recorded in the script is made in the context of the previous step/page. In order to maintain context it looks through the previous page to make sure the current operation is available. This adds extra overhead because it is performed by a background utility called the run-time parser. Although the parser uses extra overhead Read Entire Entry
-
Vugen: Using LAST Value For web_reg_save_param_ex
Posted on July 16, 2012 by Admin
Whenever the ORD=ALL attribute is used with the web_reg_save_param_ex function, VuGen creates an array containing the number of instances that are actually captured. It also stores the total count for the number of instances automatically. This count can be referenced by getting the value of “_count”. For example, if the parameter name is ParamName, a separate parameter ParamName_count will be available with number of times the value was captured. This can also serve as index for last values captured. Use the sample code below to Read Entire Entry
-
LoadRunner 11: Capturing text using the Citrix Agent on XenApp 6.5 SOLVED
Posted on July 13, 2012 by Admin
Recently at one of our clients, they had an issue with not being able to capture text with the ctrx_get_text function using the 64-Bit version of the Citrix Agent for LoadRunner 11. Read the steps here that finally fixed the issue for them. This is based on XenApp 6.5. The client was running Windows 2008 RS SP1. This resolution references Win2008R2, but it still worked. Notice it is for version 11 Patch 2 of the Citrix Agent (not Patch 2 of LoadRunner as a whole). Patch 3 version of the Citrix agent had issues with the Read Entire Entry
-
Vugen: Simulate Various Browser Behaviors
Posted on July 12, 2012 by Admin
Let’s discuss the various Browser Emulation settings in Vugen’s Run-Time Settings.
The “Simulate browser cache” option tells LoadRunner to “pretend” that it has a cache stored in the current session, and to keep track of the resources it has already downloaded. If a resource is in the cache and it is requested again by a new step in the Vugen script, it will not request this resource again from the server for that session. This is how a browser would typically behave unless the user has altered the browser cache settings. -
Vugen: Will This Code Remove Trailing Spaces?
Posted on July 9, 2012 by Admin
Let’s have a little fun today – and hopefully I can get some interaction from you C Guru’s out there. How about something cryptic in C? Let’s say I wanted to remove some trailing spaces with as few lines of C code as possible. Will the example below work?
static char* rtrim( char* s)
{
int i;
if (s){i = strlen(s); while ((–i)>0 && isspace(s[i]) ) s[i]=0;}
return s;
};
Why or why not? Care to explain what this code is doing? Comments are open and welcome. Read Entire Entry -
HP LoadRunner 11.50 and HP Performance Center 11.50 Tutorials (Technical videos)
Posted on July 3, 2012 by Admin
From Silvia Siqueira – Sr Product Marketing for HP LoadRunner
After launching the new version of HP LoadRunner 11.5 and HP Performance Center 11.5, we are pleased to provide a list of great recorded tutorials that describe the new features and enhancements. See the list below for tutorial videos title and URLs:
HP LoadRunner 11.50 – Tutorial: Web Async (HP Videos)
HP LoadRunner 11.50 – Tutorial: GTW DFE (HP Videos)
HP LoadRunner 11.50 – Tutorial: Flex protocol (HP Videos)
HP LoadRunner 11.50 – Tutorial: Truclient Firef Read Entire Entry -
Vugen: Gracefully Handle Various HTTP Return Codes
Posted on July 2, 2012 by Admin
There may be times where you want to build in logic for how your Vuser reacts to the various types of HTTP status return codes received throughout a script. For example, as web servers get overloaded, they may start sending 503 return codes. If you wanted to try and resubmit and finish out the transaction, this might be a more graceful way to handle the occasional 503 than just giving up and killing the iteration immediately. Of course, as the load continues to increase, the 503’s will become more frequent and eventually you will Read Entire Entry
-
LoadRunner 11.5 VuGen – Why SharpDevelop?
Posted on June 28, 2012 by Admin
Many folks are probably wondering why HP decided to change the engine for VuGen to the SharpDevelop platform in LoadRunner 11.5. I recently posed this question to Shane Evans, the product manager for LoadRunner:
“There were a lot of reasons for the decision. We looked at Visual Studio and Eclipse as options, among others, but each had challenges. Eclipse would have been nice, [but] the whole Java thing was a deal breaker…The team was able to build in SharpDevelop in just 2 months… We also had the experience of our Servic Read Entire Entry -
LoadRunner VuGen: Build Your Own web_custom_request
Posted on June 27, 2012 by Admin
Guest article from Tony Gartrell.
There are occasions where a dynamic web_submit_data function needs to be built pro grammatically. Sometimes it is possible to work around them by only sending the information that has changed since the last form submit. But there are times where this is not be possible. For example, take the “cancel itinerary” step in the HP Web Tour test application (that comes with LoadRunner) when recorded in Explicit URL or URL mode. You get a request like this:This list will change as more flights ar Read Entire Entry
-