angelodiego
14 years agoOccasional Contributor
Passing shared path to slaves
I'd like to pass the value of a shared folder located on the master project pc to the slaves so that I can copy files from it, using the shared folder property of the project doesen't work (I have permission problems with the sharing and I don't want to run testcomplete as administrator and anyway on the slaves the value of sharedpath was always ''), using a Networksuite doesen't work either, it looks like the slave project can't find the NetworkSuite variable.
I created the variable on the master only and the code I execute to run my test is roughly like this:
//master
procedure runtests;
begin
NetworkSuite.Variables.MySharedPath := '\\' + Sys.HostName + '\FolderName\';
NetworkSuite.Run(True);
end;
//slave
procedure blah;
begin
Log.Message(NetworkSuite.Variables.MySharedPath); <- kaboom
end;
Thanks,
Angelo Diego
I created the variable on the master only and the code I execute to run my test is roughly like this:
//master
procedure runtests;
begin
NetworkSuite.Variables.MySharedPath := '\\' + Sys.HostName + '\FolderName\';
NetworkSuite.Run(True);
end;
//slave
procedure blah;
begin
Log.Message(NetworkSuite.Variables.MySharedPath); <- kaboom
end;
Thanks,
Angelo Diego