开发者

basics of CLI automation [closed]

开发者 https://www.devze.com 2023-02-26 09:30 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcanno开发者_如何学Ct be reasonably answered in its current form.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and canno开发者_如何学Ct be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

I want to know any basic program (using java) for CLI automation


Try ExpectJ

http://expectj.sourceforge.net/

(I think what you're looking for is generally known as 'Expect' in several languages)


You can use the Java Robot to write your own basic program.

Alternative you can wsimulate System.in, check this thread: JUnit: How to simulate System.in testing?

0

精彩评论

暂无评论...
验证码 换一张
取 消