I have written come python scripts to call TestComplete as a part of the CI system I am building. I then installed Test Complete on a remote machine and am having problems understanding why TestComplete is trying to open TestComplete.exe. Is this a bug or am I just missing something obivious? I never encourtered this on my local machine.
Solved! Go to Solution.
I've reproduced the issue on my side.
Try use "Start-Process TestComplete.exe". Also if you need to use some parameters read help info for PowerShell "Start-Process" command.
TestComplete is a locally installed executable. So, in order to run it from a CI system (like Jenkins), whatever machine you intend to execute it on HAS to have TestComplete installed. The way Jenkins works is that there is an agent on a remote machine that executes the automation and that remote machine has TestComplete installed.
So, my guess is that you're calling the TestComplete commandline but the machine you're making the call on doesn't actually have TestComplete installed.
Interesting. I am using remote desktop and using it as if it was a local machine. I downloaded it and installed it just like I did on the local machine as well. The Test Complete directory is on the C drive of machine with the executable in it. It just seems like the path to TestComplete is getting passed as the argument for the project path. Could this be a problem with my environment variables or do you have any other ideas?
It might be helpful to know what you're actually doing in the way of a commandline to execute automation. Can you paste in the commandline string you're executing?
This error happen whenever I run this commandline regardless if there are parameters or not. Usually when I run this command without paramaters it just open test complete without any project open but on this machine it seems to be acting differently.
It almost seems like something got message up in your registry... that it's trying to open the executable as a project, that the EXE extension has been associated,somehow, with TestComplete trying to open it as a project rather than running it as an executable.
I think a reinstall/repair install would be the line of attack. It's not that TestComplete is not running, just that the EXE extension is being treated as an MDS or PJS file.
Looks like you use path to testcomplete.exe as a parameter for testcomplete.exe. Could you show us your code to run TC.
When TC started and displayed such message, please look into his command line. For example, you can open ObjectBrowser in TC and find Sys.Process("TestComplete") object. What is the value for "CommandLine" property?
Also, TestComplete 14.10 now have a command line tool to use with CI systems to run tests. You can try this.
All I type in to the terminal if that is what your asking is:
No parameter at all. I have tried it in the actual bin directory and exported as an enviroment variable. I do agree it is taking the exe as the project for some reason. I tried repair and complete reinstall but nothing changed.