cancel
Showing results for 
Search instead for 
Did you mean: 

TestComplete command line problems

SOLVED
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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Contributor

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.

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/start-process?vie...

 

 

View solution in original post

14 REPLIES 14
Highlighted
Community Hero

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
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available
Highlighted
Occasional Contributor

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

Highlighted
Community Hero

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
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available
Highlighted
Occasional Contributor

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

 

Highlighted
Community Hero

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
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available
Highlighted
Occasional Contributor

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

Highlighted
Community Hero

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
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available
Highlighted
Contributor

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

 

Highlighted
Occasional Contributor

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:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors