Developing and Testing the System – Grade 12 A/L ICT Notes 7.8

© 2026 schoolict.net (Ruwan Mangala Suraweera)

7.8 Developing and Testing the Systemපද්ධතිය සංවර්ධනය සහ පරීක්ෂා කිරීම

Grade 12 A/L ICT · Lesson 712 ශ්‍රේණිය A/L ICT · පාඩම 7

Prints all tabs in the language you are reading. Use “Save as PDF” in the print window to keep a copy.ඔබ කියවන භාෂාවෙන් සියලු tabs මුද්‍රණය වේ. පිටපතක් තියාගන්න print window එකේ “Save as PDF” තෝරන්න.
🎬Video coming soon in this language. Switch language to watch the other video.මේ භාෂාවෙන් වීඩියෝව ඉක්මනින් එනවා. අනෙක් වීඩියෝව බලන්න භාෂාව මාරු කරන්න.

In this videoමේ වීඩියෝවේ

  • Develop programs and database from the design.සැලසුමෙන් සංවර්ධනය.
  • Test cases give input and expected output.ආදානය සහ අපේක්ෂිත ප්‍රතිදානය.
  • White box = code; black box = behaviour.සුදු = කේතය; කළු = හැසිරීම.
  • Unit → integration → system → acceptance.ඒකක → ඒකාබද්ධ → පද්ධති → පිළිගැනීම.
  • Use normal, boundary and erroneous data.සාමාන්‍ය, සීමා, වැරදි දත්ත.
Program developmentDatabase developmentTest caseWhite box testingBlack box testingUnit testingIntegration testing

Notesසටහන්

Syllabus 7.8. After design, programmers do program development and database development. The system is then tested with planned test cases, using white box and black box testing at four levels: unit, integration, system and acceptance testing.විෂය නිර්දේශය 7.8. සැලසුමෙන් පසු ක්‍රමලේඛ සංවර්ධනය සහ දත්ත සමුදාය සංවර්ධනය. පසුව පරීක්ෂණ අවස්ථා සමඟ සුදු පෙට්ටි සහ කළු පෙට්ටි පරීක්ෂණ – ඒකක, ඒකාබද්ධ, පද්ධති, පිළිගැනීමේ මට්ටම්වලින්.

1. Development1. සංවර්ධනය

Program development codes each module from the EPDs and UI designs. Database development creates tables, keys, indexes and validation rules from the data dictionary.ක්‍රමලේඛ සංවර්ධනය EPD සහ UI වලින් මොඩියුල කේත කරයි. දත්ත සමුදාය වගු, යතුරු, දර්ශක සාදයි.

2. Test cases2. පරීක්ෂණ අවස්ථා

A test case states the input, the expected output and later the actual result. Good test data includes normal, boundary (extreme) and erroneous values.පරීක්ෂණ අවස්ථාවක ආදානය, අපේක්ෂිත ප්‍රතිදානය සහ සැබෑ ප්‍රතිඵලය ඇත. සාමාන්‍ය, සීමා සහ වැරදි දත්ත.

📝 Function under testපරීක්ෂා කරන ශ්‍රිතය

FUNCTION grade(m)
  IF m < 0 OR m > 100 THEN RETURN "Invalid"
  IF m >= 75 THEN RETURN "A"
  IF m >= 65 THEN RETURN "B"
  IF m >= 50 THEN RETURN "C"
  IF m >= 35 THEN RETURN "S"
  RETURN "W"
END FUNCTION
Testපරීක්ෂණMark inputලකුණClassවර්ගයExpected outputඅපේක්ෂිත
11−1−1InvalidඅවලංගුInvalidInvalid
2200ValidවලංගුWW
3311ValidවලංගුWW
449999ValidවලංගුAA
55100100ValidවලංගුAA
66101101InvalidඅවලංගුInvalidInvalid
🧮 Worked exampleවිසඳූ උදාහරණය Design boundary value tests for a mark field that accepts 0–100.0–100 ලකුණු ක්ෂේත්‍රයට සීමා අගය පරීක්ෂණ.
Test just below, on and just above each limit: −1, 0, 1, 99, 100, 101. 4 are valid and 2 (−1, 101) must be rejected. For white box coverage of grade(), one test per branch needs 6 tests (Invalid, A, B, C, S, W).අගයන් −1, 0, 1, 99, 100, 101; වලංගු 4; ප්‍රතික්ෂේප 2. සුදු පෙට්ටියට පරීක්ෂණ 6.

3. Testing methods and levels3. පරීක්ෂණ ක්‍රම සහ මට්ටම්

Testing levels (bottom to top) and box viewsUnit testingIntegration testingSystem testingAcceptance testingWhite boxcode paths knownBlack boxinputs → outputs
Testing levelsපරීක්ෂණ මට්ටම්
1
White boxසුදු පෙට්ටි
Tester knows the code; tests paths, loops and conditions.කේතය දනී; මාර්ග සහ කොන්දේසි.
2
Black boxකළු පෙට්ටි
Tester checks inputs vs expected outputs without seeing code.කේතය නොදැක ආදාන/ප්‍රතිදාන.
3
Unit → Integrationඒකක → ඒකාබද්ධ
Test each module, then modules working together.මොඩියුල, පසුව එකට.
4
System → Acceptanceපද්ධති → පිළිගැනීම
Test the whole system, then users confirm it meets requirements.මුළු පද්ධතිය, පසුව පරිශීලක අනුමැතිය.
💡 Developers do unit tests; the client does acceptance tests.ඒකක පරීක්ෂණ සංවර්ධකයින්; පිළිගැනීම සේවාලාභියා.
🚀 Beyond the syllabus (2026 update)🚀 විෂය නිර්දේශයෙන් ඔබ්බට (2026 යාවත්කාලීනය) Not required for the exam – read for interest.විභාගයට අවශ්‍ය නැත – දැනුම සඳහා කියවන්න. Automated test pipelines in 2026 run thousands of unit tests every time code is changed.2026 ස්වයංක්‍රීය පරීක්ෂණ කේත වෙනස් වන සෑම විටම ධාවනය වේ.

Key Wordsප්‍රධාන පද

Program developmentක්‍රමලේඛ සංවර්ධනය
Writing code for each module.මොඩියුල කේත කිරීම.
Database developmentදත්ත සමුදාය සංවර්ධනය
Creating tables, keys and rules.වගු, යතුරු සෑදීම.
Test caseපරීක්ෂණ අවස්ථාව
Input with expected output for a test.අපේක්ෂිත ප්‍රතිදානය සහිත ආදානය.
White box testingසුදු පෙට්ටි පරීක්ෂණය
Testing with knowledge of internal code.අභ්‍යන්තර කේතය දැන පරීක්ෂාව.
Black box testingකළු පෙට්ටි පරීක්ෂණය
Testing inputs and outputs without seeing code.කේතය නොදැක පරීක්ෂාව.
Unit testingඒකක පරීක්ෂණය
Testing one module alone.එක් මොඩියුලයක් පරීක්ෂාව.
Integration testingඒකාබද්ධ පරීක්ෂණය
Testing modules working together.මොඩියුල එකට පරීක්ෂාව.
System testingපද්ධති පරීක්ෂණය
Testing the complete system against the specification.සම්පූර්ණ පද්ධතිය පරීක්ෂාව.
Acceptance testingපිළිගැනීමේ පරීක්ෂණය
Users confirm the system meets their needs.පරිශීලකයින් අනුමත කිරීම.
Boundary valueසීමා අගය
Value on or next to a valid limit.සීමාවේ හෝ ආසන්න අගය.
Erroneous dataවැරදි දත්ත
Invalid data that should be rejected.ප්‍රතික්ෂේප විය යුතු දත්ත.
Expected outputඅපේක්ෂිත ප්‍රතිදානය
Result the system should produce.පද්ධතිය දිය යුතු ප්‍රතිඵලය.

Sample Q&Aආදර්ශ ප්‍රශ්න සහ පිළිතුරු

1What is a test case?පරීක්ෂණ අවස්ථාව?

Answerපිළිතුර: A planned input with its expected output (and actual result).අපේක්ෂිත ප්‍රතිදානය සහිත ආදානය.

2White box vs black box?සුදු සහ කළු පෙට්ටි?

Answerපිළිතුර: White box uses the code structure; black box only inputs and outputs.කේතය; ආදාන/ප්‍රතිදාන පමණි.

3List the four test levels.මට්ටම් හතර.

Answerපිළිතුර: Unit, integration, system, acceptance.ඒකක, ඒකාබද්ධ, පද්ධති, පිළිගැනීම.

4Boundary tests for 0–100?0–100 සීමා?

Answerපිළිතුර: −1, 0, 1, 99, 100, 101.−1, 0, 1, 99, 100, 101.

5Who does acceptance testing?පිළිගැනීම කවුද?

Answerපිළිතුර: The client / end users.සේවාලාභියා / පරිශීලකයින්.

6Why integration testing?ඒකාබද්ධ ඇයි?

Answerපිළිතුර: Modules that work alone may fail when passing data to each other.එකට වැඩ කරන විට දෝෂ.

MCQබහුවරණ ප්‍රශ්න

Choose the correct answer for each question.සෑම ප්‍රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.

Scoreලකුණු: 0 / 20

1Testing with full knowledge of the code isකේතය දැන

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

White box.සුදු.

2Checking outputs for given inputs without code isකේතය නොදැක

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Black box.කළු.

3Testing a single module alone isඑක් මොඩියුලය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Unit.ඒකක.

4Users confirming the system meets needs isපරිශීලක අනුමැතිය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Acceptance.පිළිගැනීම.

5For a 0–100 field, which value is erroneous?වැරදි අගය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Above limit.සීමාවට ඉහළ.

6Boundary value tests for 0–100 useසීමා අගයන්

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Below/on/above.සීමා.

7grade(70) returnsgrade(70)

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

70 ≥ 65.B.

8Branch coverage of grade() needs at leastශාඛා ආවරණය

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

One per branch.ශාඛාවකට එකක්.

9Which term means: “Writing code for each module”?“මොඩියුල කේත කිරීම” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Program development – Writing code for each module.ක්‍රමලේඛ සංවර්ධනය – මොඩියුල කේත කිරීම.

10Which term means: “Creating tables, keys and rules”?“වගු, යතුරු සෑදීම” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Database development – Creating tables, keys and rules.දත්ත සමුදාය සංවර්ධනය – වගු, යතුරු සෑදීම.

11Which term means: “Input with expected output for a test”?“අපේක්ෂිත ප්‍රතිදානය සහිත ආදානය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Test case – Input with expected output for a test.පරීක්ෂණ අවස්ථාව – අපේක්ෂිත ප්‍රතිදානය සහිත ආදානය.

12Which term means: “Testing with knowledge of internal code”?“අභ්‍යන්තර කේතය දැන පරීක්ෂාව” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

White box testing – Testing with knowledge of internal code.සුදු පෙට්ටි පරීක්ෂණය – අභ්‍යන්තර කේතය දැන පරීක්ෂාව.

13Which term means: “Testing inputs and outputs without seeing code”?“කේතය නොදැක පරීක්ෂාව” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Black box testing – Testing inputs and outputs without seeing code.කළු පෙට්ටි පරීක්ෂණය – කේතය නොදැක පරීක්ෂාව.

14Which term means: “Testing one module alone”?“එක් මොඩියුලයක් පරීක්ෂාව” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Unit testing – Testing one module alone.ඒකක පරීක්ෂණය – එක් මොඩියුලයක් පරීක්ෂාව.

15Which term means: “Testing modules working together”?“මොඩියුල එකට පරීක්ෂාව” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Integration testing – Testing modules working together.ඒකාබද්ධ පරීක්ෂණය – මොඩියුල එකට පරීක්ෂාව.

16Which term means: “Testing the complete system against the specification”?“සම්පූර්ණ පද්ධතිය පරීක්ෂාව” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

System testing – Testing the complete system against the specification.පද්ධති පරීක්ෂණය – සම්පූර්ණ පද්ධතිය පරීක්ෂාව.

17Which term means: “Users confirm the system meets their needs”?“පරිශීලකයින් අනුමත කිරීම” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Acceptance testing – Users confirm the system meets their needs.පිළිගැනීමේ පරීක්ෂණය – පරිශීලකයින් අනුමත කිරීම.

18Which term means: “Value on or next to a valid limit”?“සීමාවේ හෝ ආසන්න අගය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Boundary value – Value on or next to a valid limit.සීමා අගය – සීමාවේ හෝ ආසන්න අගය.

19Which term means: “Invalid data that should be rejected”?“ප්‍රතික්ෂේප විය යුතු දත්ත” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Erroneous data – Invalid data that should be rejected.වැරදි දත්ත – ප්‍රතික්ෂේප විය යුතු දත්ත.

20Which term means: “Result the system should produce”?“පද්ධතිය දිය යුතු ප්‍රතිඵලය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Expected output – Result the system should produce.අපේක්ෂිත ප්‍රතිදානය – පද්ධතිය දිය යුතු ප්‍රතිඵලය.

MCQ answer keyMCQ පිළිතුරු

  1. D – White box.සුදු.
  2. A – Black box.කළු.
  3. D – Unit.ඒකක.
  4. E – Acceptance.පිළිගැනීම.
  5. E – Above limit.සීමාවට ඉහළ.
  6. D – Below/on/above.සීමා.
  7. B – 70 ≥ 65.B.
  8. D – One per branch.ශාඛාවකට එකක්.
  9. C – Program development – Writing code for each module.ක්‍රමලේඛ සංවර්ධනය – මොඩියුල කේත කිරීම.
  10. B – Database development – Creating tables, keys and rules.දත්ත සමුදාය සංවර්ධනය – වගු, යතුරු සෑදීම.
  11. C – Test case – Input with expected output for a test.පරීක්ෂණ අවස්ථාව – අපේක්ෂිත ප්‍රතිදානය සහිත ආදානය.
  12. A – White box testing – Testing with knowledge of internal code.සුදු පෙට්ටි පරීක්ෂණය – අභ්‍යන්තර කේතය දැන පරීක්ෂාව.
  13. B – Black box testing – Testing inputs and outputs without seeing code.කළු පෙට්ටි පරීක්ෂණය – කේතය නොදැක පරීක්ෂාව.
  14. A – Unit testing – Testing one module alone.ඒකක පරීක්ෂණය – එක් මොඩියුලයක් පරීක්ෂාව.
  15. C – Integration testing – Testing modules working together.ඒකාබද්ධ පරීක්ෂණය – මොඩියුල එකට පරීක්ෂාව.
  16. E – System testing – Testing the complete system against the specification.පද්ධති පරීක්ෂණය – සම්පූර්ණ පද්ධතිය පරීක්ෂාව.
  17. C – Acceptance testing – Users confirm the system meets their needs.පිළිගැනීමේ පරීක්ෂණය – පරිශීලකයින් අනුමත කිරීම.
  18. B – Boundary value – Value on or next to a valid limit.සීමා අගය – සීමාවේ හෝ ආසන්න අගය.
  19. A – Erroneous data – Invalid data that should be rejected.වැරදි දත්ත – ප්‍රතික්ෂේප විය යුතු දත්ත.
  20. E – Expected output – Result the system should produce.අපේක්ෂිත ප්‍රතිදානය – පද්ධතිය දිය යුතු ප්‍රතිඵලය.

Structured Questionsව්‍යුහගත ප්‍රශ්න

1Distinguish program and database development.ක්‍රමලේඛ/දත්ත සමුදාය. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Program: coding modules; database: tables, keys, indexes, validation.කේත; වගු.

2Explain white and black box testing.සුදු/කළු පෙට්ටි. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
White: internal paths; black: input/output vs specification.අභ්‍යන්තර; ආදාන/ප්‍රතිදාන.

3Describe the four testing levels in order.මට්ටම් හතර. (4 marksලකුණු 4)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Unit; integration; system; acceptance by users.ඒකක; ඒකාබද්ධ; පද්ධති; පිළිගැනීම.

4Design boundary test data for marks 0–100.සීමා දත්ත. (3 marksලකුණු 3)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
−1, 0, 1, 99, 100, 101; valid 4; invalid −1, 101.−1, 0, 1, 99, 100, 101.

5Write a test case table entry for grade(55).grade(55) පරීක්ෂණය. (4 marksලකුණු 4)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Input 55; normal data; expected C; record actual result.55; C.

🎮 Game🎮 ක්‍රීඩා

Pick a game. Each one uses words from this lesson.ක්‍රීඩාවක් තෝරන්න. හැම එකක්ම මේ පාඩමේ වචන පාවිච්චි කරනවා.

Summary & Downloadsසාරාංශය සහ බාගත කිරීම්

Key pointsප්‍රධාන කරුණු

  • Develop programs and database from the design.සැලසුමෙන් සංවර්ධනය.
  • Test cases give input and expected output.ආදානය සහ අපේක්ෂිත ප්‍රතිදානය.
  • White box = code; black box = behaviour.සුදු = කේතය; කළු = හැසිරීම.
  • Unit → integration → system → acceptance.ඒකක → ඒකාබද්ධ → පද්ධති → පිළිගැනීම.
  • Use normal, boundary and erroneous data.සාමාන්‍ය, සීමා, වැරදි දත්ත.

Downloadsබාගත කිරීම්

Full Lesson 7 PDFසම්පූර්ණ පාඩම 7 PDF: English · සිංහල

Next noteඊළඟ සටහන 7.9 →

© 2026 schoolict.net (Ruwan Mangala Suraweera). All rights reserved.සියලු හිමිකම් ඇවිරිණි.