Is it possible to pass compiled applications to the LoadRunner load generators?
Question ID: 104066
1
0

We're using LoadRunner 9.5 for our .net application testing. We were wondering if it's possible to pass compiled applications to the load generators, as opposed to the scripts having to be compiled every time a new load test is started.

Marked as spam
Posted by (Questions: 36, Answers: 3)
Asked on March 29, 2010 9:01 pm
6 views
Answers (1)
4
Private answer

One method is to compile the script into a DLL with MS vc++, then load the DLL through a small ''stub'' program in vuser_init. The DLL must be compiled to use the C calling conventions, not C++, then the functions in the DLL can be called from the LR script. You're not strictly speaking passing an EXE, but the ''heart'' of the script will be compiled to the DLL level.

vuser_init() {

lr_load_dll(''dllfilename'');

my_dll_init_function();

return 0;

}

Action() {

my_dll_action_function();

return 0;

}

vuser_end() {

my_dll_end_function();

return 0;

}

Add the DLL to the list of files to be copied to the LG in the scenario.

Marked as spam
Posted by (Questions: 1, Answers: 5)
Answered on March 29, 2010 9:08 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top