Re: compilation error in load generator... (234 Views)
Reply
Occasional Contributor
harry_no_spot
Posts: 6
Registered: ‎11-07-2012
Message 1 of 5 (243 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.

Frequent Advisor
ArJ3N
Posts: 62
Registered: ‎05-09-2013
Message 2 of 5 (234 Views)

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

Occasional Contributor
harry_no_spot
Posts: 6
Registered: ‎11-07-2012
Message 3 of 5 (215 Views)

Re: compilation error in load generator...

I tried. It worked. Thank you v much!
Frequent Advisor
ArJ3N
Posts: 62
Registered: ‎05-09-2013
Message 4 of 5 (204 Views)

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.

Occasional Contributor
harry_no_spot
Posts: 6
Registered: ‎11-07-2012
Message 5 of 5 (171 Views)

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.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.