Forum Discussion
sarya
14 years agoFrequent Contributor
Hi Jared,
Thanks for the reply. I read the SQA forum reply for enviroment variables.Can you please give me an example how can we set the program files path on different machine.
for example : - The script line below displays the OS name but how can we make it to display the C:\ProgramFiles path .Does it need to have a special naming convention for different paths that we want to specify .
.Message("The used OS is: " + wshShell.ExpandEnvironmentStrings("%OS%"));In test complete help files,there is an option TestedApp.Path where it is mentioned "Within the string specifying the path, the environment variable name must be enclosed in % signs, for example, “”, “”, “”. "How can I know these specific names that needs to be used .How is the "TestedApp.Path" used in the scripts?Thanks,Sumedha
Thanks for the reply. I read the SQA forum reply for enviroment variables.Can you please give me an example how can we set the program files path on different machine.
for example : - The script line below displays the OS name but how can we make it to display the C:\ProgramFiles path .Does it need to have a special naming convention for different paths that we want to specify .
Log.Message("The used OS is: " + wshShell.ExpandEnvironmentStrings("%OS%"));
In test complete help files,there is an option TestedApp.Path where it is mentioned "Within the string specifying the path, the environment variable name must be enclosed in % signs, for example, “%USERPROFILE%
”, “%WINDIR%
”, “%SYSTEMROOT%
”. "
How can I know these specific names that needs to be used .How is the "TestedApp.Path" used in the scripts?
Thanks,
Sumedha
.Message("The used OS is: " + wshShell.ExpandEnvironmentStrings("%OS%"));In test complete help files,there is an option TestedApp.Path where it is mentioned "Within the string specifying the path, the environment variable name must be enclosed in % signs, for example, “”, “”, “”. "How can I know these specific names that needs to be used .How is the "TestedApp.Path" used in the scripts?Thanks,Sumedha
Related Content
- 5 years agoKrishna_Kumar
- 2 years agoTestQA1
- 3 years agoloricotton
Recent Discussions
- 3 days agovladd1