Highlighted
Trusted Contributor.
Trusted Contributor.
1112 views

script c on vugen loadrunner 12

Hello

I want to write a script on C on vugen .

first step : i want to parse a directory and read all the files on this directory .

second step : compare a name of these file to a string .

how to write on vugen c lanquage 

 

please help 

 

best regards

0 Likes
5 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: script c on vugen loadrunner 12

Hi

To use LoadRunner properly, you must be familiar on a deep level with either C language or JS scripting language.

without this knowledge, your work will be very difficult on this product.

This example describes parsing in C language. I suggest you go over it and also read and execute the entire tutorial. 

It will significantly improve your profeciency in LoadRunner

Good Luck,

Lior

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: script c on vugen loadrunner 12

thanks you

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: script c on vugen loadrunner 12

please 

where i put this:

include<stdio.h>
#include<stdlib.h>
#include<string.h>

in Vugen script :

 

in the action ou in global.sh ?

Best Regards

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: script c on vugen loadrunner 12

Hi

In the global.h file

you should also go through the function reference for C scripting here

Hope this helps,

Lior

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: script c on vugen loadrunner 12

Thanks you very for your help .

 

Best regards

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.