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: Creating Combination Static/Random Values For Parameters
Posted on September 26, 2012 by Admin
This post addresses a situation where part of a VuGen parameter value needed to be a hard coded value, and another part had to be totally random. This specific example had to do with a credit card where the total number of digits for the card was 16, but the first two digits needed to start with “47” to pass the business rules of the site for processing valid card numbers. If the number on the card did not start off with “47”, the card would automatically be rejected.
// DECLARE VARIABLESchar result[100], creditCardNum[1056];
in Read Entire Entry -
VuGen: Extracting String Data From A Parameter
Posted on September 24, 2012 by Admin
This post examines a condition where data being returned in the VuGen parameter captured (in the web_reg_save_param function) included more characters than was needed and there no easy left/right boundaries to use to get only what was needed. In this case, it was capturing something like “2297,4648”, and we needed to extract the first four numbers and the last four numbers of the string, while stripping out the “comma” character.
//We need to grab the 1st four (ENTERPRISEID)
//and the last four digits (which is a tax return ) Read Entire Entry -
VuGen: Detailed Logging
Posted on September 19, 2012 by Admin
The purpose of this VuGen code is so you have one place to enter the URL for the application and grab all the Load Generator and Controller information, and send it to the execution output logs for troubleshooting purposes. Variables are set at top of the action file that it can be changed by modifying one line of code instead of all the code within the script.
Put this code in the vuser_init() section of the script outside the vuser_init function
//*******************************************************************
//* GLOBA Read Entire Entry -
More Old School Vugen Code For Randomization
Posted on September 17, 2012 by Admin
Here is some old code I had laying around which simply illustrates how to randomize a VuGen parameter by using srand and randomizing a value used within the array. This assumes you are grabbing multiple values in the array using the web_reg_save_param() function with the ORD=ALL argument.
// Randomize based on total numbers of Beneficiaries and selecting onesrand( time(NULL) );
rnum1 = (rand () % atoi(lr_eval_string(“{pBeneficiary_count}”)) +1);// Merge Parameter to include the random number just selected
spri Read Entire Entry
-
How LoadRunner Calculates Hits Per Second
Posted on September 12, 2012 by Admin
LoadRunner calculates hits per second in the “Hits per second” graph depending on the HTTP requests sent out each second. If there are no HTTP requests sent for some time, then a request is sent out, and the “hits per second” is computed for the entire interval since the last hit was received.
The measurement seen on the graph is per second, but the granularity of the graph is not 1 second. It is possible to have fractions of hits per second. If you change the granularity to 1 second, then only whole hits per second will b Read Entire Entry
-
VuGen: Make SOAP Calls With The SOAP/WEB Protocol
Posted on September 10, 2012 by Admin
This post will attempt to explain how VuGen SOAP calls look by comparing the WEB/HTTP protocol and the SOAP protocol. Below is an example of raw XML that is received from a request.
<?xml version=”1.0″ encoding=”UTF-8″?>
<soap-env:Envelope xmlns:soap-env=”http://schemas.xmlsoap.org/soap/envelope/”>
<soap-env:Header>
<Authentication soap-env:mustUnderstand=”1″>
<UserID>xxxx</UserID>
<Password>xxxx</Password>
</Authentication>
<Appl Read Entire Entry -
Load Testing: Concurrent Users verses Simultaneous Users
Posted on September 5, 2012 by Admin
It seems like on every new project, there is a need to educate members of the project team on the difference between concurrent users and simultaneous users as it applies to load testing applications.
Concurrent = users on the system using resources.
Simultaneous = users executing the same code at the exact same time.Concurrency has various levels. I generally it explain things this way to my clients at the initial project kickoff meeting to make sure everyone agrees with the definitions:
Application Concurrency – how Read Entire Entry
-
VuGen: Find A Shorter String Within A Longer One
Posted on September 3, 2012 by Admin
We had a web application which was easy to script, but had an unusual situation dealing with the business rules that we had to work around. This was an application where users update their personal information, emergency contacts, and other forms.
The problem was the Emergency Contacts. Since this was a brand new application to the company, most users would not have anything listed and would need to input this information. The first time the user accesses the page, they would get a message that they are required to have at least on Read Entire Entry
-