Forum Discussion

Oferv's avatar
Oferv
Super Contributor
14 years ago

TC launched and then closed

Hi,

i'm trying to schedule TC to start running on daily base and i'm using a VBS file in order to do so.here is the VBS file's content




Set wshShell = CreateObject("WScript.Shell")

wshShell.Run("""C:\Program Files (x86)\Automated QA\TestComplete 8\Bin\TestComplete.exe"" ""C:\Automation\Projects\depot\global\gdoc\QA\FXCreator\FXCreator\Test\FXCreator.pjs"" /r /p:FXCreator /u:ENC /rt:Test1 /e /SilentMode")


somehow TC starting,i can see that it launched the right project but i believe it can't find the unit a told it to run.



can someone help me with this one?



by the way,what do they mean by /rt:(Method to be executed).what methods?what can be the values here?


Thanks.


  • Hi Ofer,



    I don't see any obvious errors in the command line you provided, so this must be somehow related to the specific project suite. Try examinig the silent.log file for possible errors (see the help topic mentioned below for the file's location). Also, I recommend that you use the approach described in the Scheduling TestComplete Runs help topic to schedule TestComplete runs. If you need to store your command line in a file, you can simply use a .cmd file instead of a script.



    what do they mean by /rt:(Method to be executed)

     

    "rt" stands for script routine to be executed. Let me quote the TestComplete Command Line help topic:
     

    Routine_name is the name of the script routine to be called. The routine to be called must not use parameters or return any values.

     



    Note that you can also launch specific project items or tests via the /pi and /t parameters respectively.
     
  • Oferv's avatar
    Oferv
    Super Contributor
    Hi Allen,



    thanks,does anyone know why,if the command line is o.k,TC strat running showing the project to load for a solit of a second and then closed?



    thanks
  • Oferv's avatar
    Oferv
    Super Contributor
    o.k figured it out ,it's the /e (thought it tells TC to close while the script end but,it seems to close it right away) anyway,now it's loading but doesn't run the script. i can see that it marked the right unit while it's loading but no run is being preformed.

    any ideas?



    thanks