Posts

Network virtualisation in Tru-client Protocol

Here is step by step procedure for network virtualisation in truclient protocol http://community.hpe.com/t5/LoadRunner-and-Performance/New-to-Network-Virtualization-emulation-in-TruClient-Here-s-an/ba-p/6883204#.V5z5DPl97IU

Lr_set_debug_message Function In Loadrunner With Examples

Image
Lr_set_debug_message – One of my favourite lr function in load runner. It is mainly useful when we are unable to find correlation value in a particular request. We usually use  Extended log -> Data Returned by Server  in Run-time Settings to get all the response in replay log. Sometimes the vugen will crash or becomes slow as the vugen is writing all the response to replay log. Extended Log in Run-time Settings If it crashes or taking long time to execute the script then it’s better to use lr_set_debug_message instead of using  Data Returned by Server . In the following example we have added data returned by server only to particular request. Example:   lr_set_debug_message   ( LR_MSG_CLASS_EXTENDED_LOG   |   LR_MSG_CLASS_FULL_TRACE ,   LR_SWITCH_ON );          web_ url ( "Bing" ,          " URL = http://www.bing.com/ " ,      ...

Deep Description on Runlogic

Image
Types of Action files Vuser_init Action Vuser_end Vuser_init This is the first action that is executed by the vuser and it comes under the  init  section of the script. It is executed only once in the life cycle of a vuser. By life cycle we mean the time between the start and the stop of a vuser. Even if the vuser has multiple iterations to execute, the set of steps incorporated within this action file is executed only once. We cannot disable/delete vuser_init. Even if it does not contain any steps to execute, it has to be present. We can put those steps in vuser_init that need to be executed only once. E.g. a script that logs in the same user to an application and performs certain tasks, since the same user is logging in every time, login steps can be put in vuser_init. But it also depends on the business requirement whether we should include launch and login in vuser_init. If launch and login is to be observed for its performance then including them in vuser_i...

Error -27492: "HttpSendRequest" failed, Windows error code=12057 (certificate revoked) and retry limit (0) exceeded for URL="

This error occurs when using WinInet replay instead of sockets with Integrated Authentication enabled in run-time settings. The purpose of this was to allow vusers to use SSO with SPNEGO authentication in an IBM WebSEAL environment. After spending some time with the mystical HP level 3 support, they identified an undocumented flag which helps out significantly in this. So, instead of using the WinInet replay engine (which is not encouraged by HP) you should do something similar to the following. vuser_init() {             // Preferred run-time settings             // Browser -> Browser Emulation        // [ ] Simulate a new user on each iteration        // Preferences -> Options        // Enable Integration Authentication [Yes]     ...

CHECK POINTS or FUNCTIONS or VALIDATIONS:

Check Points: To validate the data on a web page use the below 2 types of check points in LOAD RUNNER script. 1.        Text Check Point 2.        Image Check Point Text Check Point : To validate the text on a web page, we use the below type of text check points. i)                     web_reg_find( ) : It verifies the given text on a web page and it returns the count of the given text using a SaveCount argument. Syntax:          Web_reg_find(“Text=Username”, “SaveCount=Test1”, LAST); Web_url(“…………………………………………..                         …………………………………………                  ...

Writing data in to a file

Char * file1="c://documentd//t1.txt";  // declaring the file path long f1; f1=fopen(file1, "a");  // opening the file in apend mode fprintf(f1,"stored value is:%d", lr_eval_string("{param}"));  // writing data in to the file fclose(f1);  // close the file

Lr Advance Param Function In Loadrunner With Example

This function is not recorded during recording. We manually insert this function whenever there is a need of it. lr_advance_param works depends upon the settings we give in parameter list (ctrl+L). lr_advance_param is like update value on each occurrence. Whenever we want to update a parameter value in the same iteration we use lr_advance_param. For example when we want to use two parameters Google and Bing in one Iteration. Usually the Vugen takes the first value google and if we want to use the second value in the same iteration we use  update value on each occurrence  in the parameter settings. We can do the same using lr_advance_param function. Example: I have set following settings in Parameter Select Next Row:  Sequential Update value on:  Each Iteration If we want to take the next value in the pramater list we use lr_advance_param as shown below. Parameter Name:  DomainName Google Bing Yahoo Ask Vugen S...