Forum Discussion

wynfranc1234's avatar
wynfranc1234
Contributor
11 years ago

Run test from command line .bat file with PSexec utility

Hi.

Need help ,pls.



I'm getting the following error when running my  Testcomplete test suite script to run the IE browser.





Jscript runtime  error

Unspecified error

Error Location : Unit "Master_Suite\Master_Project\Script\Runbrowser"



run from a .bat file with the following command:



psexec -s -i 2 "C:\Program Files (x86)\SmartBear\TestComplete 10\Bin\TestExecute.exe" "D:\Checkout_Dir\Testcomplete\TestSuite\Common_Scripts\Master_Suite.pjs"  /p:Master_Project /run /s /exit





it is failing on the following script  - Browser Item :



RunBrowser jscript


function RunIE()



{



Browsers.Item(btIExplorer).Run("about:blank");



}



if I run without PSEXEC , it is running fine







Any ideas why ?  Thanks



Version of TC : 10.2








 


  • I have to use PSexec as the test is in a remote environment. If I don't use psexec , the test just hangs and doesn't run.