6. Тест план
6.1 Настройка
6.1.1 сценарий
Запустить программу
На экране появляется меню:
input from keyboard / output on the screen
input from keyboard / output in file
input from file / output on the screen
input from file / output in file
exit
Cоздать файл data, содержащий эл-ты 123 124.
Файл fileNotExist не существует.
Ввод с клавиатуры пункта меню |
Сообщения на экране |
Ввод с клавиатуры |
Вывод на экран |
Вывод в файл |
|||
1 |
1) "Input integer value" |
2) 123 |
3) 123 – one hundred and twenty three |
Файл не существует |
|||
2 |
1)"Input integer value" 4)"Enter the file name to place the result in" |
5) first |
3) 124 – one hundred and twenty four |
6) файл first содержит: 124 – one hundred and twenty four
|
|||
3 |
1)"Enter the file name to read from"
|
2) data |
3)123 - one hundred and twenty three 124 – one hundred and twenty four |
4)файл data содержит: 123 124
|
|||
4
|
1)"Enter the file name to read from" 3)"Enter the file name to place the result in"
|
4) second |
|
5) файл data cодержит: 123 124 6) файл second содержит: 123 - one hundred and twenty three 124 – one hundred and twenty four |
|||
5 |
1)"Do you want to continue the work (y/n)?" 6)"Do you want to continue the work (y/n)?"
|
4) 5 5) n |
3) на экране появляется меню 6) работа с программой закончена |
Файл не существует |
|||
ПРОВЕРКА ОБРАБОТКИ ОШИБОК |
|||||||
1 |
1)"Input integer number" 3)"Error.Enter the integer value" 5)"Error.Numbers with only 3 digits are avaible" 7)"Error.Enter the integer value" |
4) 2234 6) 1.2 7) 12 |
8)12 – twelve |
Файл не существует |
|||
3 |
1)"Enter the file to read from” 3)”Error. This file doesn’t exist. Do you want to continue (y/n)?” 5)"Enter the file to read from” |
4) y –на экране появляется меню (выбрать пункт 3 см. далее 5)) 6) data |
7) 123 - one hundred and twenty three 124 – one hundred and twenty four |
8)файл data содержит: 123 124
|
|||
5 |
want do continue the work (y/n)?” 3) “Do you want to continue the work (y/n)?”
|
появляется меню (выбрать пункт 5 см. далее 3) 4) n - оканчание работы с программой
|
|
|