Contributions
Re: Unable to set TestedApps Path dynamically
I don't use tested apps at all. I just run a batch that launches the app. Wrap it , don't wrap it. Doesn't matter. I use wshellrun. static runBatchFile(batchFile, waitForExit, args = '') { WshShell.Run("cmd /c .\\Stores\\Files\\" + batchFile + " " + args, 1, waitForExit); }1.8KViews0likes0CommentsRe: TestComplete does not wait for SQL query results before performing next step
Your problem is bigger than that... you need to wait for lots of things in your scripts probably.. Create a generic funciton like this and use it: static runBatchFile(batchFile, waitForExit, args = "") { WshShell.Run("cmd /c .\\Stores\\Files\\" + batchFile + " " + args, 1, waitForExit); }2.6KViews0likes0CommentsRe: Task Scheduler Fails - Requested Operation Requires Elevation (0x800702E4).
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: https://stackoverflow.com/questions/4037939/powershell-says-execution-of-scripts-is-disabled-on-this-system6.9KViews1like0Comments