background image
<< Programming Scripts on UNIX Platforms | Generating Templates >>
<< Programming Scripts on UNIX Platforms | Generating Templates >>

LoadRunner API calls

Appendixes · Programming Scripts on UNIX Platforms
Creating Vuser Scripts
Chapter C, page 469
About Programming Vuser Scripts to Run on UNIX Platforms
There are two ways to create Vuser scripts that run on UNIX platforms: by using
VuGen, or by programming.
VuGen
You can use VuGen to create Vuser scripts that run on
UNIX platforms. You record your application in a Windows
environment and run it in UNIX--recording is not supported
on UNIX (excluding UNIX RTE and GUI Vusers).
programming
Users working in UNIX-only environments can program
Vuser scripts. Scripts can be programmed in C or C++ and
they must be compiled into a dynamic library.
This appendix describes how to develop a Vuser script by programming.
To create a script through programming, you can use a LoadRunner template as a
basis for a larger Vuser script. The template provides:
·
correct program structure
·
LoadRunner API calls
·
source code and makefiles for creating a dynamic library
After creating a basic script from a template, you can enhance the script to provide
run-time Vuser information and statistics. For more information, see Chapter 4,
Enhancing Vuser Scripts
.