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?
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
- 4 months ago
- 3 years ago
- 12 years ago
Recent Discussions
- 4 hours ago