-
-
Notifications
You must be signed in to change notification settings - Fork 614
/
startupShutdownNVDA.robot
57 lines (47 loc) · 2.04 KB
/
startupShutdownNVDA.robot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# A part of NonVisual Desktop Access (NVDA)
# Copyright (C) 2018 NV Access Limited
# This file may be used under the terms of the GNU General Public License, version 2 or later.
# For more details see: https://www.gnu.org/licenses/gpl-2.0.html
*** Settings ***
Documentation Basic start and exit tests
Default Tags NVDA smoke test
Library OperatingSystem
Library Process
Library sendKey.py
Library nvdaRobotLib.py
Library helperLib.py
Test Setup start NVDA standard-dontShowWelcomeDialog.ini
Test Teardown quit NVDA
Variables variables.py
*** Test Cases ***
Starts
[Documentation] Ensure that NVDA can start
process should be running nvdaAlias
Quits from keyboard
[Documentation] Starts NVDA and ensures that it can be quit using the keyboard
[Setup] start NVDA standard-doShowWelcomeDialog.ini
${Welcome dialog title} = catenate double space Welcome to NVDA dialog
wait for specific speech ${Welcome dialog title}
wait for speech to finish
sleep 1 # the dialog is not always receiving the enter keypress, wait a little longer for it
send key enter
${Exit NVDA dialog} = catenate double space Exit NVDA dialog
send key insert q
${INDEX} = wait for specific speech ${Exit NVDA dialog}
wait for speech to finish
${actual speech} = get speech from index until now ${INDEX}
assert strings are equal ${actual speech} ${QUIT_DIALOG_TEXT}
sleep 1 # the dialog is not always receiving the enter keypress, wait a little longer for it
send key enter
wait for process nvdaAlias timeout=10 sec
process should be stopped nvdaAlias
Read welcome dialog
[Documentation] Ensure that the welcome dialog can be read in full
[Setup] start NVDA standard-doShowWelcomeDialog.ini
${Welcome dialog title} = catenate double space Welcome to NVDA dialog
${INDEX} = wait for specific speech ${Welcome dialog title}
wait for speech to finish
${actual speech} = get speech from index until now ${INDEX}
assert strings are equal ${actual speech} ${WELCOME_DIALOG_TEXT}
sleep 1 # the dialog is not always receiving the enter keypress, wait a little longer for it
send key enter