I'm using Eclipse in Windows. I have an application that should be tested on a Linux server. I usually connect to the server via winSCP and putty, but I want to make automated tests.
My questions is: How do I connect to Linux server from Windows to test the application?
In general, the better way is using ci tool like Jenkins . If you want do it by yourself, just act as ci server or plan your test procedure.
Act as ci :
on-development-host:
on-linux:
Arrange test procedure by yourself :
There is a problem in winscp. It is a gui tool and is difficlut to automate. Ant sshexec and scp task is better for automating test.
您可以使用plink
非交互地在服务器上运行命令。
去检查是否有JSCH连接,您可以使用它运行多个命令甚至脚本(从系统加载它们之后)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.