Forum Discussion

fayrehouse's avatar
fayrehouse
Frequent Contributor
12 years ago

Problems with TC from command line when using "start /wait"

All,



Can anyone advise what I'm getting not-quite-right below?




start /wait "c:\Program Files (x86)\SmartBear\TestComplete 9\


Bin\TestComplete.exe" "n:\path\to\my\test\complete\project.pjs" /run /ns /SilentMode /e /project:mytcprojectname /test:"KeywordTests|somekeywordtest"



This simply loads TC with the pjs loaded "as normal" - ie, WITH the splashscreen (despite /ns), and does NOT start any test running.



If I take out the "start /wait" - it runs the test silently as expected.



Help?!

3 Replies

  • fayrehouse's avatar
    fayrehouse
    Frequent Contributor
    Solution found. It's an issue with MS' start command and how it handles quotes. Nothing faulty with TC here :) Bizarrely, you just need to insert a blank set of double quotes "up front"...



    Solution:




    start /wait "" "c:\Program Files (x86)\SmartBear\TestComplete 9\


    Bin\TestComplete.exe" "n:\path\to\my\test\complete\project.pjs" /run /ns /SilentMode /e /project:mytcprojectname /test:"KeywordTests|somekeywordtest"

  • Hi, me too I have the same problem.

    I tried by usinh "" before start wait but it still doesnlt work...



    Does anyone have a different solution please?



    Raluca
  • fayrehouse's avatar
    fayrehouse
    Frequent Contributor
    Hi Raluca - any chance you could post the command line(s!) you've tried that haven't worked?