Testing. Types of test data

12.5.3.2 perform testing using normal data 
12.5.3.3 perform testing using extreme data
12.5.3.4 perform testing using erroneous data 

Types of test data

Test execution is a complex process that contains numerous stages. 

It is important to test algorithms to check how they perform under a range of conditions. This includes testing any validation you have created to ensure it performs as expected.

Data creation is one of the key activities for test environment preparation. Each type of software testing requires different data, equally proper and sufficient. 

When creating a testing plan, the test data that you use shouldn’t be random values, but rather values that fulfill the following test criteria.

Normal data
Normal data is test data that is typical (expected) and should be accepted by the system.

Extreme data
Extreme data is test data at the upper or lower limits of expectations that should be accepted by the system.

Erroneous data
Erroneous data is test data that falls outside of what is acceptable and should be rejected by the system.


Task 1.
Applications at the school for participation in scientific projects are accepted from September 14 to September 23. The task-by-date should determine whether it is possible to send an application on that day.
Define test data to verify the solution to this problem.

To check the solution to this problem, we define test data:

Normal data Extreme data Erroneous data

16/09

22/09

14/09

23/09

10/09

24/09


Source: Computer Science GCSE GURU

Strategies for Test Data Preparation


Questions:

  1. What is test data?
  2. Describe what test data is Normal data, Extreme data, and Erroneous data.
  3. Give an example of a situation where different types of test data are used.

Exercises:

Ex. 1

Test "Test data"

Ex. 2

A program is written to record rainfall (in millimeters) over the course of a month. The program expects each daily measurement to be entered as a number between 0 and 200. An error message is displayed if the user tries to enter a number outside these limits.
Define test data to verify the solution to this problem. Add test data to the table.

 


Exam questions:

 

Категория: Debugging | Добавил: bzfar77 (20.09.2020)
Просмотров: 6713 | Теги: Erroneous data, test data, Extreme data, Normal data, testing | Рейтинг: 5.0/3
Всего комментариев: 0
avatar