How to add C code to an existing AJAX True Client script in Load Runner 11

How to add C code to an existing AJAX True Client script in Load Runner 11

In Load Runner 11 external C functions can be called after recording the script with True Client protocol.

The steps below explain how external C functions are added and called from the script:

Solution

1) Add specific C-code into “C-functions.c” file in VuGen .This file is located in the script directory

2) Insert the “Evaluate C” step from the toolbox (refer to “How to Insert Custom JavaScript and C Code into Ajax True Client Scripts” of documentation for details, Page 525 Vuser Generator PDF)

3) In the step arguments define the function name, which should be called. Currently only functions without arguments can be used in “Evaluate C” step. If the functions need arguments create a parameter table and use the parameters to pass the arguments to the function.

Advertisements

One thought on “How to add C code to an existing AJAX True Client script in Load Runner 11

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s