...
- Python has a list of reserved keywords. Most keywords are regular words but there are a few that are abnormal. One part of the test plan is to make sure these abnormal keywords are communicated to AT users in an understandable way.
- The other part of the test plan is to make sure special characters used in scripts such as punctuations and symbols are are communicated to AT users in an understandable way.
- Screenreader: check accuracy of speech, check navigation options, are additional character files required to be installed to reader
Steps to test reserved keywords "def" and "nonlocal"
1. Launch IDLE, which brings up a command line interface;
...
...
2. Input the line below lines from Code Block A into the interface while using your AT, then hit enter twice until you see or hear the prompt sign ">>>";
Code Block | ||
---|---|---|
| ||
def myfunc1(): x = "John" def myfunc2(): nonlocal x x = "hello" myfunc2() return x |
3. Continue to input the line below from Code Block B into the interface while using your AT, then hit enter twice;
...
4. IDLE should print out this line shown in Code Block C:
Code Block | ||
---|---|---|
| ||
hello |
5. Input the line below from Code Block D into the interface while using your AT, then hit enter;
...
6. The error below should be output in red as shown in Code Block E:
Code Block | ||
---|---|---|
| ||
Traceback (most recent call last): File "<pyshell#47>", line 1, in <module> print(func1()) NameError: name 'func2' is not defined |
...
1. Launch IDLE, which brings up a command line interface;
2. Input the line below from Code Block F into the interface while using your AT, then hit enter;
Code Block | ||
---|---|---|
| ||
hello_world = True |
3. Continue to input the line lines from Code Block G below into the interface while using your AT, then hit enter twice until you see the prompt sign ">>>";
...
4. IDLE should print out this line shown in Code Block H:
Code Block | ||
---|---|---|
| ||
hi |
...
1. Launch IDLE, which brings up a command line interface;
2. Input the line below from Code Block I into the interface while using your AT, then hit enter;
...
3. Continue to input the line below from Code Block J into the interface while using your AT, then hit enter;
...
4. Continue to input the line below from Code Block K into the interface while using your AT, then hit enter;
Code Block | ||
---|---|---|
| ||
print(removeSpecialChars) |
5. IDLE should print out this line shown in Code Block L:
Code Block | ||
---|---|---|
| ||
world great |
This whole process should be communicated to IDLE users via AT such as screen readers or dictators.
...
2. Copy and paste the script below in Code Block M into the editor;
Code Block | ||
---|---|---|
| ||
hello_world = True if (hello_world) : print("hi, hello world") elif (hello_world == "True") : print("true, hello world") else : print("false, hello world") |
...
8. Python Launcher opens a terminal, runs the script and print the output below in the terminal as shown in Code Block N:
Code Block | ||
---|---|---|
| ||
Last login: Fri Mar 5 12:49:38 on ttys001 cd '/Users/cindyli/Development/' && '/usr/local/bin/python3' '/Users/cindyli/Development/test.py' && echo Exit status: $? && exit 1 The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. cindyli@Cindys-MacBook-Pro-3.local:~$ cd '/Users/cindyli/Development/' && '/usr/local/bin/python3' '/Users/cindyli/Development/test.py' && echo Exit status: $? && exit 1 hi, hello world Exit status: 0 logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Process completed] |
...