Forum Discussion

Florian_Hofmann's avatar
Florian_Hofmann
Contributor
9 years ago

Command line arguments from Visual Studio to TestComplete

Hello everyone, I used to run my TC tests from command line/batch skripts, passing command line parameters and accessing them with "BuiltIn.ParamStr(X)", which worked just fine.   Now I want to ch...
  • tristaanogre's avatar
    9 years ago

    Rather than running via command-line, since you're using Visual Studio anyways, have you considered using the TestComplete objects directly in visual studio, what's called a "Connected" application? You build your tests and such directly in visual studio, calling TestComplete objects internally.

    I think the problem you're running into, though, has to do with that, previously, you were running TestComplete.exe from a command prompt and then passing parameters. Now, TestComplete.exe is not being run the same way and so, perhaps, may even have security blocks, etc.  Something you can try is to create a WScript.Shell object in your visual studio project and then call the "Run" method from there. That should do, basically, what you had been doing before.