Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Пример отчета 3 и 4.doc
Скачиваний:
2
Добавлен:
10.07.2019
Размер:
121.34 Кб
Скачать

6. Тест план

6.1 Настройка

6.1.1 сценарий

Запустить программу

На экране появляется меню:

  1. input from keyboard / output on the screen

  2. input from keyboard / output in file

  3. input from file / output on the screen

  4. input from file / output in file

  5. 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"

  1. 124

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"

  1. data

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)?"

  1. y

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"

  1. q1.2

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”

  1. fileNotExist

4) y –на экране появляется меню (выбрать пункт 3 см. далее 5))

6) data

7) 123 - one hundred and twenty three

124 – one hundred and twenty four

8)файл data содержит:

123 124

5

  1. “Do you

want do continue the work (y/n)?”

3) “Do you want to continue the work (y/n)?”

  1. y – на экране

появляется меню (выбрать пункт 5 см. далее 3)

4) n - оканчание работы с программой