How do you write user defined functions in LR? Give me few
functions you wrote in your previous project?

Answer Posted / mahesh sv

Before we create the User Defined functions we need to
create the external library (DLL) with the function. We add
this library to VuGen bin directory. Once the library is
added then we assign user defined function as a parameter.
The function should have the following format: __declspec
(dllexport) char* <function name>(char*, char*)Examples of
user defined functions are as follows:GetVersion,
GetCurrentTime, GetPltform are some of the user defined
functions used in my earlier project.

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we recording vuser scripts using vugen?

622


What do you mean by path?

630


What is parameterization & why is parameterization necessary in the script?

564


What is remote command launcher?

620


What is scenario default?

638






What protocols does loadrunner support?

628


What is lr-function?

715


What is the purpose of selecting ‘show browser’ during replay in the general options settings?

577


What is protocol function?

596


What is the vuser in the scenario?

599


When the loadrunner controller open the winrunner file then what is the location of the winner configuration file?

638


Difference b/w 9.1 and 9.5 Versions in LoadRunner?

6351


What are different types of vuser logs which can be used while scripting and execution? What is the difference between these logs? When you disable logging?

606


How can we find database related issues?

627


What are all the types of goals in goal-oriented scenario of load runner?

576