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:
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.
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
Like any posts? please acknowledge the contributor with kudos.
To kudo a post, use the star icon by the particular post.
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.