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

which exception will be loadrunner send during recording of oracle database

1 Answers   TCS,


What are the process for developing a vuser script?

0 Answers  


What is the difference between Group and Scenario in Load Runner Controller terminology?

4 Answers   ADP,


What function is used for Encryption and Decryption in your Script?

2 Answers  


what is meant by virtual users.what is the purpose of it.

8 Answers  






Specific Performance Monitoring counters for, 1. Web Servers (IIS, Apache etc) 2. Application Servers (Weblogic etc) 3. Database Servers a. Oracle Database b. Sybase c. SQL Server d. DB2

1 Answers  


What is planning for the test?

0 Answers  


In Real time what should be the duration(30 min,1 hr) of the loadtest? In the controller how do we handle errors and failed transactions.....When the transactions fail, do we perform the loadtest again? Can anyone please help?

2 Answers   TCS,


If you had 6 hours of load testing to complete but the business unit wanted it turned over in 3 hours what would you tell them?

1 Answers   Satyam,


How can you set the number of vusers in loadrunner?

0 Answers  


How to calculate Elapsed Time in LoadRunner?

2 Answers  


What is Latency and Bandwidth

1 Answers   HP,


Categories