We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
For example,
function Test()
{
var oExec = WshShell.Exec("powershell.exe -Command \"C:\\Temp\\Book2.ps1\" -excelfile \"C:\\Temp\\Book2.xlsx\"");
while (oExec.Status == 0) {
aqUtils.Delay(1000);
}
while (!oExec.StdOut.AtEndOfStream) {
Log.Message(oExec.StdOut.ReadLine());
}
}
Thanks a lot this solves all my problems
Thank you once again for all the effort
Thank you very much for your help this is perfect
One more question how can I pass a parameter from test complete to Powershell
for example, in the above script if I want file path to be a variable getting its value from the test complete
$excel = New-Object -ComObject Excel.Application
$workbook = $excel.Workbooks.Open('C:\Temp\Book2.xlsx')