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: strcmp Example
Posted on July 25, 2012 by Admin
I was asked to post a simple strcmp example for use in Vugen scripting. Here it is:
if (strcmp(lr_eval_string(“{pParameter}”), “”) == 0)
{
lr_error_message(“No parameter value captured. Ending iteration.”);
return 0;
}
else{
lr_output_message(“The parameter value is %s”,
lr_eval_string(“{pParameter}”));
};
Anyone care to elaborate in the comments section as to what this code is doing? Read Entire Entry -
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 -