Re: compilation error in load generator... (258 Views)
Reply
Occasional Contributor
Posts: 6
Registered: ‎11-07-2012
Message 1 of 5 (267 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
Posts: 62
Registered: ‎05-09-2013
Message 2 of 5 (258 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
Posts: 6
Registered: ‎11-07-2012
Message 3 of 5 (239 Views)

Re: compilation error in load generator...

I tried. It worked. Thank you v much!
Frequent Advisor
Posts: 62
Registered: ‎05-09-2013
Message 4 of 5 (228 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
Posts: 6
Registered: ‎11-07-2012
Message 5 of 5 (195 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.