Highlighted
Absent Member.
Absent Member.
505 views

compilation error in load generator...

hi everyone

In C , or WinSockets Vuser type scripts, I created and maintained one uniqe header file. and in my several Vuser scripts, I include it like this:

#include "../myinc.h"

 

but if I run a scenario, It will fail cuz compilation error on load generator except localhost.

 

Is there any way to solve this problem?

BTW, if I place the inculde file in the script foulder, and add this file. It will  compile ok. But then I have to maintain every include file for every script.

0 Likes
4 Replies
Highlighted
New Member.

Re: compilation error in load generator...

Put the file on a path accessible by all the loadgenerators.

To do this, you will need to put the myinc.h in the shared path, and then map that location as a network drive on all of the loadgenerators.

 

Then, in your script your location in the include statement should be //sharedlocation/inc.h

 

Regards,

AJ

Highlighted
Absent Member.
Absent Member.

Re: compilation error in load generator...

I tried. It worked. Thank you v much!
0 Likes
Highlighted
New Member.

Re: compilation error in load generator...

Like any posts? please acknowledge the contributor with kudos.

To kudo a post, use the star icon by the particular post.

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: compilation error in load generator...

I'd like to add something

If u use windows xp as shared machine. note that xp only support 10 clients at the same time. so if you have more than 10 loader machine, there may be a prolem. windows server edition will be ok.

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.