cancel
Showing results for 
Search instead for 
Did you mean: 

TestComplete command line problems

Highlighted
Occasional Contributor

TestComplete command line problems

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.2019-05-22 13_37_57-TestComplete.png

13 REPLIES 13
Community Hero

Re: TestComplete command line problems

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.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Occasional Contributor

Re: TestComplete command line problems

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?2019-05-22 15_03_07-.png

Community Hero

Re: TestComplete command line problems

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?


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Occasional Contributor

Re: TestComplete command line problems

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. 

 

TestComplete.exe

Environment Variables:

2019-05-22 15_26_00-Edit environment variable.png

 

Community Hero

Re: TestComplete command line problems

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.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Occasional Contributor

Re: TestComplete command line problems

So do you think reinstalling is my best bet now? I have removed the environment variables. Same problem. 

Community Hero

Re: TestComplete command line problems

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.  


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Contributor

Re: TestComplete command line problems

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.

See help https://support.smartbear.com/testcomplete/docs/working-with/automating/session-creator/index.html

 

Occasional Contributor

Re: TestComplete command line problems

All I type in to the terminal if that is what your asking is: 

TestComplete.exe

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.

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors