cthulhu/test/keystrokes/progressbar/progress_updates.py

30 lines
834 B
Python
Raw Permalink Normal View History

#!/usr/bin/python
"""Test of progressbar output using custom program."""
from macaroon.playback import *
import utils
sequence = MacroSequence()
sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Return"))
sequence.append(PauseAction(5000))
sequence.append(utils.AssertPresentationAction(
"1. Progress bar updates",
["SPEECH OUTPUT: '10 percent.'",
"SPEECH OUTPUT: '20 percent.'",
"SPEECH OUTPUT: '30 percent.'",
"SPEECH OUTPUT: '40 percent.'",
"SPEECH OUTPUT: '50 percent.'",
"SPEECH OUTPUT: '60 percent.'",
"SPEECH OUTPUT: '70 percent.'",
"SPEECH OUTPUT: '80 percent.'",
"SPEECH OUTPUT: '90 percent.'",
"SPEECH OUTPUT: '100 percent.'"]))
sequence.append(KeyComboAction("<Alt>F4"))
sequence.append(utils.AssertionSummaryAction())
sequence.start()