0% found this document useful (0 votes)
61 views25 pages

3-4 Types of Test Data 2

Uploaded by

dilshat.me
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views25 pages

3-4 Types of Test Data 2

Uploaded by

dilshat.me
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 25

What is the next stage?

???
Development
and
Programming
Design

Analysis
Types of test data
Learning objectives:

1 2 3
perform testing perform testing perform testing
using normal using extreme using
data data erroneous data
Assessment criteria

Give example of normal/extreme/erroneous data

Define the type of test data

Use normal/extreme/erroneous data to test


solution
Testing

Once we have created our solution, we need to test that the


whole system functions effectively. To do this should be easy, as
all we need to do is compare the finished product next to the
objectives of the system.

The purpose of testing is to try and uncover undetected errors.


Testing Using Normal Data
Testing using normal data involves entering data
within the expected range or domain. This type
of testing verifies that the system works
correctly under standard operating conditions.
Testing Using Normal Data

Imagine you are testing a simple


program that calculates the
average of three test scores:

Normal Data: Scores between


0 and 100, such as (65, 78,
90).
Testing Using Normal Data

Expected Purpose:
Outcome: • To confirm that the
• The system should program behaves
process the input as expected when
without errors and valid and typical
return the correct input values are
output. provided.
Testing Using Extreme Data
Extreme data testing is done by entering values
at the boundary limits of what is acceptable. It
checks how the system behaves when it
encounters the maximum or minimum input
values.
Testing Using Extreme Data

Using the same example of a


program calculating the
average test score:

Extreme Data: Scores at the


boundaries like (0, 0, 100) or
(100, 100, 0).
Testing Using Extreme Data

Expected Outcome:
• The system should Purpose:
return accurate results • To ensure the system
even at the can handle edge cases
boundaries, ensuring without failure, like
it handles the smallest the highest or lowest
and largest inputs possible inputs.
without errors.
Testing Using Erroneous Data
Testing with erroneous data involves inputting
invalid data types or values that fall outside the
expected range. This tests the system's ability to
handle invalid data gracefully.
Testing Using Erroneous Data

For the program calculating the


average test score:

Erroneous Data: Non-numeric


inputs such as ('abc', 78, 90) or
negative numbers (-10, 105, 50).
Testing Using Erroneous Data

Expected Outcome: Purpose:


• To ensure that the
• The system should
system can handle
produce an appropriate
incorrect data types,
error message and not
out-of-range values, or
crash or produce
formatting errors
unpredictable behavior.
without crashing.
normal - the most obvious or
common data that should
Test data work
If you are testing data that has Normal,
Abnormal and Extreme data, it is best
to show tests for all three.

extreme - unusual, extreme


or unexpected data, eg. the
highest and lowest (data that
tests the limits but that
should work)

erroneous - data that should


fail
Examples:

The age of the college teacher:

normal: 28, 45, 32

Abnormal: 70, thirty, -43

Extreme: 21, 62(for man)


Examples:

Number of pages in a book

normal: 24, 500

Abnormal: -5

Extreme: 1, 500
See appendix 1

GROUP WORK
Task (individual)
Give examples of test data for the following sticker
https://padlet.com/pranik
ula/mffyud6gmfb8cndv

Selecting
Marks for course work Bank working E-mail password on
time registration page

Date of birthday
Grades in your school Triangle angle of 15 year olds IELTS exam result
(for today)

The username for a system that must There should Someone’s hair The name of a
be on the form be no more color team should be
“<letter><letter><digit><digit>” than 15 no longer than
minutes extra 20 characters
time in a game
Test plan
When a system is designed it is important that
some consideration is given to making sure that
no mistakes have been made. A schedule should
be draw up which contains a test for every type
of input that could be made.
Test No. Test
Building
Test
a test Plan
Test Data Expected Actual Reference
objective method used Outcome outcome

You will describe what the test is looking for and how
Expected outcome
you will perform it

Describe what you are expecting to see, this is what Test Data
your result screen shot should show happening
Explain whether it passed or failed, if it fails you need
to explain what went wrong, if it works explain that it Reference
works.

This will be Typical, Erroneous or Extreme Test method

This is where you need to link to your screen shots to


prove that you completed these tests. Actual outcome
(W) Complete the test plan
• The clothing store has announced a discount.
If the purchase amount is more than 10,000 tg
and less than 30,000 tg, the buyer receives a
5% discount. If the purchase amount is more
than 30,000 tg, then 10% discount is provided.

Test No. Test Test Test Data Expected


objective method used Outcome
(I) Create test plan of your CW
Testing 7 Marks
A collection of hardcopy test run outputs with no test plan, or a test plan with no 1
hardcopy evidence may also be present. A teacher may award 1 mark if they
have been shown the system working satisfactorily and there is no hard evidence
in the project report.

There is little evidence of testing with a badly developed test plan with clear 2 -3
omissions. A small number of tests have been carried out, which demonstrate
that some parts of the solution work/some outcomes of the investigation are
achieved.

There should be hardcopy evidence of most of the objectives’ test runs cross- 4-5
referenced to the test plan. Tests include cases with valid, invalid and extreme
data. However, not all cases have been tested or not clearly presented evidences
for some tests.

The tests completed should show that the system developed has fulfilled all its 6-7
objectives and demonstrates the scope of the final system. Tests include clear
evidences for cases with valid, invalid and extreme data.
Teacher will read
statements. Raise your I can distinguish test
Reflection hand if you agree. data
(Self-assessment)

I can select data for I understand test plan


testing structure

I still have problem


I can explain this topic
with understanding
to others
today’s topic
Home task
Finish your test plan and test
solution.
Resources

http://13.234.219.125:3000/past_topicals/4.4.2%20Testing%20PP.pdf

A level wikibooks Computing

BBC Bitesize

GCSE OCR Computer Science

TeachICT

You might also like