Forum Discussion
A couple of last questions my host name changes because I am on a virtual machine. All my settings are set up by my user profile so how do
I get this set against various user profiles. Second do I need to export my scripts to a script file?
Thanks
Killoran
my second reply should solve that problem for you, since we are no longer using hostname, but using the Sys.UserName instead (which should give you the "Largent" or any other username value that you wanted; that is, whoever logged on to the VM with testcomplete should run this script and expect to get their username filled into that path)
as for exporting as a script file, that is not possible (nor would it be helpful, since you cannot run these scripts outside of the TC environment)
- Largent8034 years agoContributor
I worked with Technical Support and here is the way which seems to work for everyone.
We created a object method with the following parameters:
TestedApps.WINWORD.Params.ActiveParams the operation is a command line set and the code is "/n \"" + aqEnvironment.GetEnvironmentVariable("USERPROFILE") + "\\Desktop\\Myword.docx\" /o"
This seems to be working on for other users.