Forum Discussion
rraghvani
2 years agoChampion Level 3
I'm using the latest version of TestComplete, and the output log shows,
You can also try this,
function PSTest()
{
var oExec = WshShell.Exec("powershell -Command \"C:\\Temp\\HelloWorld.ps1\"");
while (oExec.Status == 0) {
aqUtils.Delay(1000);
}
while (!oExec.StdOut.AtEndOfStream) {
Log.Message(oExec.StdOut.ReadLine());
}
}
Does POST_REQ.PS1 produce any output when running the script via PowerShell command?
Can you insert Log.Message(oExec) beneath the line, var oExec = oShell.Exec(`powershell -file ${powerShellScript}`);
What is the output?
Related Content
- 5 years ago
Recent Discussions
- 4 days ago
- 4 days ago