xca/test/opendb.pl
Christian Hohnstaedt 2896382ff7 improve autotest
- autotests are still not very usable
2009-11-25 09:01:49 +01:00

27 lines
697 B
Raku
Executable File

#!/usr/bin/perl
use X11::GUITest qw/StartApp WaitWindowViewable SendKeys GetInputFocus GetWindowName WaitWindowClose/;
my $password = "ThisIsMyPassword";
my $db = "__x.xdb";
unlink $db;
StartApp("./xca");
my ($xcaId) = WaitWindowViewable("X Certificate and Key management");
SendKeys("%(fn)");
WaitWindowViewable("Open XCA Database");
SendKeys($db . "{ENT}");
WaitWindowViewable("New Password");
SendKeys($password . "{TAB}" . $password . "{ENT}");
SendKeys("%(fc)");
SendKeys("%(fo)");
WaitWindowViewable("Open XCA Database");
SendKeys($db . "{ENT}");
WaitWindowViewable("Password");
SendKeys($password ."{ENT}");
SendKeys("%({F4})");
WaitWindowClose($xcaId, 10);
exec("lib/db_dump", $db);