tuitest – tool to create and run automated tests of text user interfaces
AK just released the first official release of tuitest. Quoting the README:
tuitest is a tool to create an run automated tests of text user interfaces.
It is meant as a complement to the widespread use of unit tests, and uses
concepts known from GUI testing tools with the difference that it applies
them specifically to text- and terminal-based user interfaces.
tuitest is really great and I plan to use it for testing some components of the grml Linux Live-CD. That’s how tuitest looks like when running it with the console editor Vim via “./tt-record output.rb vim”:
The generated output.rb script looks like this:
% cat output.rb
#!/usr/bin/env ruby
# auto-generated tuitest script
require 'tuitest'
Tuitest.init
verifier = Tuitest::Verifier.new("output.rb.log")
Tuitest.run("vim")
Tuitest.wait(1030)
Tuitest.keypress("i"[0])
Tuitest.wait(306)
Tuitest.keypress("a"[0])
Tuitest.wait(159)
[...]
Tuitest.close
verifier.finish
# EOF
Either download tuitest-0.1.tar.gz or if you prefer to use Debian packages grab it from the grml repository (source available at git.grml.org). Have fun.
