Computer Science GCES OCR
-
Cpu Architecture Performance And Embedded Systems Ocr5 主题
-
Primary And Secondary Storage Ocr6 主题
-
Data Storage And Compression Ocr12 主题
-
Units Of Data Storage Ocr
-
Processing Binary Data Ocr
-
Data Capacity And Calculating Capacity Requirements Ocr
-
Converting Between Denary And Binary Ocr
-
Binary Addition Ocr
-
Converting Between Denary And Hexadecimal Ocr
-
Converting Between Binary And Hexadecimal Ocr
-
Binary Shifts Ocr
-
Representing Characters Ocr
-
Representing Images Ocr
-
Representing Sound Ocr
-
Compression Ocr
-
Units Of Data Storage Ocr
-
Networks And Topologies Ocr6 主题
-
Wired And Wireless Networks Protocols And Layers Ocr6 主题
-
Identifying And Preventing Threats To Computer Systems And Networks Ocr2 主题
-
Operating Systems And Utility Software Ocr2 主题
-
Ethical Legal Cultural And Environmental Impact Ocr2 主题
-
Computational Thinking Searching And Sorting Algorithms Ocr3 主题
-
Designing Creating And Refining Algorithms Ocr5 主题
-
Programming Fundamentals And Data Types Ocr5 主题
-
Additional Programming Techniques Ocr7 主题
-
Defensive Design And Testing Ocr6 主题
-
Boolean Logic Diagrams Ocr2 主题
-
Programming Languages And Integrated Development Environments Ides Ocr3 主题
-
The Exam Papers Ocr2 主题
-
Structuring Your Responses Ocr3 主题
Selecting And Using Suitable Test Data Ocr
Exam code:J277
Normal, Boundary & Erroneous Tests
Categories of tests
-
There are three main categories of tests a programmer or test-user would carry out whilst performing both iterative or final testing on a program
-
Normal tests
-
Boundary tests
-
Erroneous tests
-
-
There is an additional test that users would always carry out to test the robustness of their program, this is known as an invalid test
-
To explain the types of tests, some example code will be used
Example code
# Ask for user's namename = input("What is your name? ")
# Ask for user's ageage = int(input("How old are you? "))
# Check if age is between 12 and 18if age >= 12 and age <= 18: print("Welcome, " + name + "! Your age is accepted.")else: print("Sorry, " + name + ". Your age is not accepted.")
Normal tests
-
A normal test is when a user enters data that should be accepted in the program
-
An example would be a user entering their age as 16 into the age field of the program
Boundary tests
-
A boundary test is when a user enters data that is on the edge of what is acceptable
-
An example would be a user entering their age as 12 or 18 into the age field of the program
Erroneous tests
-
An erroneous test is when a user enters data that is the wrong data type
-
An example would be a user entering their age as “F” into the age field of the program
Invalid tests
-
An invalid test is when a user enters data that is the right data type but it is outside of what is accepted
-
An example would be a user entering their age as 67 into the age field of the program
Selecting suitable test data

Worked Example
SME Electronics is an online shop which sells electronic items.
The following flowchart shows an algorithm used to calculate the price of an item when they have a sale.

-
Complete the following test plan for the algorithm [4]
|
Price Input |
Test Type |
Expected Price Output |
|
50 |
Normal |
|
|
100 |
|
|
|
150 |
|
|
|
200 |
Boundary |
|
|
FFF |
|
|
Answer
-
Marked in pairs
-
1 mark per two correct cells

Responses