Forum Discussion

MegO's avatar
MegO
Contributor
7 years ago
Solved

Using /exit does not close TestComplete when running from a batch File

Hi,   I am currently running groups of Tests using a combination of a Jscript file:   // RunTestItemGroup.js var testItemGroup, project; var objArgs = WScript.Arguments; var projectSuite = obj...
  • AlexKaras's avatar
    7 years ago

    Hi,

     

    You are manually starting an instance of TestComplete as a COM object in your code. Started TC instance has no clue about parameters that were passed to the script file (RunGroup.js) used to instantiate it thus you must handle this in your code.

    https://support.smartbear.com/viewarticle/54655/ illustrates well what you need.