I'm wondering if it's possible to use TestComplete API to establish ssh/telnet connection with remote machine. I need to connect with multiple Linux machines and run there some commands, gathering output.
Now I'm using Ruby external script that can be parametrized and writes remote output to file that TestComplete parses.
Is it another way to achieve it in a simplest way?
It would be great if TestComplete had an API to connect with ssh/telnet protocols to remote machines (as net-ssh packages in many languages).
There is no special support for that in TestComplete. However, you can try using some WinAPI or .NET functions to establish the needed connection from TestComplete as both WinAPI and .NET functions can be called from TestComplete scripts.
Although I am not using ssh, I am using something similar by using the dos "net use" command to copy files from a server. I execute a cmd window and launch the "net use" command. Maybe you can try the same from a cmd window.
Well, it looks like the needed functionality can be achieved only with some additional components, but it's hard to find one free of charge. If you fail to do this and do not want to purchase such components, I recommend that you just use a third-party application to establish the connection instead of replicating the application's functionality in the TestComplete script.