Forum Discussion
The short answer: No.
The longer answer: You can run tests via command line but it still involves running either TestComplete or TestExecute. Automation code written within TestComplete utilizes a lot of internal objects of the TEstComplete tool including, but no limited to, checkpoints, name mapping, and aq* objects. The TestComplete tool is not intended to be an IDE to develop a compiled external executable but to be used as a tool to both develop and execute the tests.
For command line execution, see https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/index.html
Now, if you want to get REALLY advanced, you can build an application externally in C# or Visual Basic in some other IDE and use TestComplete as a COM server to execute the tests. But, again, the development of the tests, themselves, are in the TestComplete tool.
But When I Try This Method,
Set wshShell = CreateObject("WScript.Shell")
wshShell.Run("""C:\Program Files\SmartBear\TestComplete 12\Bin\TestComplete.exe"" ""C:\Users\kkr Ganesh\Documents\TestComplete 12 Projects\PYTHON\PYTHON.pjs"" /r /p:NEW /u:python /rt:VariablePartsDemo /e /SilentMode")
It Also Open The Test Complete Tool. I don't Like to Open the Test Complete tool Any alternate Way to Achieve to execute the project without open the Test COmplete
- Marsha_R7 years agoModerator
Yes that method will always open TestComplete because you told it to run:
Set wshShell = CreateObject("WScript.Shell")
wshShell.Run("""C:\Program Files\SmartBear\TestComplete 12\Bin\TestComplete.exe"" ""C:\Users\kkr Ganesh\Documents\TestComplete 12 Projects\PYTHON\PYTHON.pjs"" /r /p:NEW /u:python /rt:VariablePartsDemo /e /SilentMode")You can use TestExecute to run the tests without the TestComplete UI if you have that license.
- tristaanogre7 years agoEsteemed Contributor
As noted, the answer is no. There is no way of executing the project without executing the tool. Tests created within TestComplete are intended to execute within the tool. They are not "stand alone" where you can run them without the tool.
You mention a "security issue" as being the reason. Can you elaborate? Perhaps there is something else that can be done that will allow you to run the tests without violating your security problem.
Related Content
- 2 years ago
- 8 years ago
Recent Discussions
- 3 hours ago
- 10 hours ago
Working with Visual Test
Solved2 days ago