How do we write a user-defined function in loadrunner?



How do we write a user-defined function in loadrunner?..

Answer / sushma

1)First we need to write user defined function in note pad
Save it as .h file
Include the file path in global.h
Eg. #include "f:\ user_fun.h"
2) Add the code directly in global.h and use it where ever u required
3) we can add extra file . By r. Click on extra files and create new or add new file to script. We have to add file and the include the file in global.h

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Load Runner Interview Questions

What is the think time?

0 Answers  


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?

0 Answers  


suppose in ur company one new project is came for testing applictaion.. duration 1 year.. so,with in one week manual tester role starts and qtp(any) testers role starts..and others role starts,,,,BUT WHEN THE PERFORMANCE TESTER ROLE STARTS... in the midle of the project or ending of the project..and how many months it takes to starts the load runner tester role begins?

1 Answers  


what is the difference between placing a think time in between trasaction and the end of the transaction

3 Answers   GE, ProKarma,


Diff btn silk Performer& Loadrunner?

1 Answers   EDS,






What is the exactly use of webserver and Application server in Load Runner.

1 Answers  


The response time of an application was 2.5 seconds.After a minor hotfix,the response time increased to 5 seconds.What analysis can you make out. What are all the things u check in the server side in such a scenario?

4 Answers   Symphony,


differance between "lr_output_message" and "lr_error_message"?

2 Answers   Kanbay,


What is the think time? What is the threshold level for think time and how can be this changed?

0 Answers  


Correlation function web_reg_save_param(pname,LB,RB,ORD,LAST); with in the function ORD default value how much? can any one send sss4702@gmail.com it is Amdocs company asked?

3 Answers   Amdocs,


If a Page is having 5 Links and there are 5 users and each user is clicking on one link. How can we achieve it in Loadrunner.

6 Answers   ABC, TCS,


where do you save u r scripts in Load Runner?

2 Answers   TCS,


Categories