Table of contents for Code Snippets(HP LoadRunner)
- Code Snippets(HP LoadRunner): Randomly Selecting an Array of Values and Using That Value As A Parameter by Howard Clark
- Code Snippets(HP LoadRunner): Decrypting Passwords and Using those Values in a web_submit statement by Howard Clark
- Code Snippet(HP LoadRunner) : FILE I/O and creating dummy XMLs
declare either as a global in the globals.h available in multi-protocol scripts or outside of the vuser_init
//placeholder variables
char *Temp;
char decrypted_password;
//Retrieves the paramater value and decrypts it.
Temp = lr_eval_string(“{UserPwd}”);
Temp = lr_decrypt(Temp);
//optional output of decrypted parameter value
//_output_message(“%s”, Temp);
//creates a new parameter that can be used in a text string with paramater delimiters
lr_save_string(Temp, “decrypted_password”);
For example:
web_submit_data
.
.
“Value={decrypted_password}”, ENDITEM
A trivial but useful code snippet to meet security requirements when the login credentials are being passed outside the company in a hosted Performance Center solution and/or where electronic submission or network storage is being used.
google advertising costs // May 28, 2014 at 6:32 am
I’m not that much of a online reader to be honest
but your sites really nice, keep it up! I’ll go ahead and bookmark your
website to come back later on. Many thanks