标签: java automation command-line-interface
我想知道CLI自动化的任何基本程序(使用java)
答案 0 :(得分:1)
尝试ExpectJ
http://expectj.sourceforge.net/
(我认为你所寻找的通常被称为'Expect',用几种语言)
答案 1 :(得分:0)
您可以使用Java Robot编写自己的基本程序。
替代方法,你可以模拟System.in,检查这个帖子:JUnit: How to simulate System.in testing?