Forum Discussion
Has someone figured this out yet?
On one pc it works perfectly fine, and when i tried to implement the same function on another pc it gave me this error.
opening TestExecute works when I do it manually, but when calling the TestExecute.exe file from task scheduler it throws this error. That doesn't make sence... right?
- tristaanogre7 years agoEsteemed Contributor
It really comes down to a permissions problem. The user under which the windows task is running does not have sufficient permissions to do what it needs to do. Please make sure that you have your scheduled user set up properly with the correct permissions and that the task is set to run with elevated permissions.
- cneedham7 years agoOccasional Contributor
You can run as elevated.
Basically you need to run as admin via the command line.
Here's an example. The easy way to do this is to create two batch files.
1. Batch file launches the other one as elevated.
Here's the launcher batch file:
Create this file
runTcAsAdmin.bat (you will schedule this file in your scheduled task)
Put this text in the file
powershell -Command Start-Process launchTest -Verb RunAs
Create this file:
launchTest.bat
Put this text in the file:
"C:\Program Files (x86)\SmartBear\TestExecute 12\Bin\TestExecute.exe" /exit /run /SilentMode /ErrorLog:tcErrors.txt C:\projectFolder\projectName.pjs
That should run your test as an administrator.
If you get an error with powershell, you need to do this:
Related Content
- 5 months ago
- 3 years ago
- 12 years ago
- 9 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago