© 2026 schoolict.net (Ruwan Mangala Suraweera)
7.8 Developing and Testing the Systemපද්ධතිය සංවර්ධනය සහ පරීක්ෂා කිරීම
Grade 12 A/L ICT · Lesson 712 ශ්රේණිය A/L ICT · පාඩම 7
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.සාමාන්ය, සීමා, වැරදි දත්ත.
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−1 | Invalidඅවලංගු | InvalidInvalid |
| 22 | 00 | Validවලංගු | WW |
| 33 | 11 | Validවලංගු | WW |
| 44 | 9999 | Validවලංගු | AA |
| 55 | 100100 | Validවලංගු | AA |
| 66 | 101101 | Invalidඅවලංගු | InvalidInvalid |
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. පරීක්ෂණ ක්රම සහ මට්ටම්
Key Wordsප්රධාන පද
Sample Q&Aආදර්ශ ප්රශ්න සහ පිළිතුරු
1What is a test case?පරීක්ෂණ අවස්ථාව?
2White box vs black box?සුදු සහ කළු පෙට්ටි?
3List the four test levels.මට්ටම් හතර.
4Boundary tests for 0–100?0–100 සීමා?
5Who does acceptance testing?පිළිගැනීම කවුද?
6Why integration testing?ඒකාබද්ධ ඇයි?
MCQබහුවරණ ප්රශ්න
Choose the correct answer for each question.සෑම ප්රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.
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 පිළිතුරු
- D – White box.සුදු.
- A – Black box.කළු.
- D – Unit.ඒකක.
- E – Acceptance.පිළිගැනීම.
- E – Above limit.සීමාවට ඉහළ.
- D – Below/on/above.සීමා.
- B – 70 ≥ 65.B.
- D – One per branch.ශාඛාවකට එකක්.
- C – Program development – Writing code for each module.ක්රමලේඛ සංවර්ධනය – මොඩියුල කේත කිරීම.
- B – Database development – Creating tables, keys and rules.දත්ත සමුදාය සංවර්ධනය – වගු, යතුරු සෑදීම.
- C – Test case – Input with expected output for a test.පරීක්ෂණ අවස්ථාව – අපේක්ෂිත ප්රතිදානය සහිත ආදානය.
- A – White box testing – Testing with knowledge of internal code.සුදු පෙට්ටි පරීක්ෂණය – අභ්යන්තර කේතය දැන පරීක්ෂාව.
- B – Black box testing – Testing inputs and outputs without seeing code.කළු පෙට්ටි පරීක්ෂණය – කේතය නොදැක පරීක්ෂාව.
- A – Unit testing – Testing one module alone.ඒකක පරීක්ෂණය – එක් මොඩියුලයක් පරීක්ෂාව.
- C – Integration testing – Testing modules working together.ඒකාබද්ධ පරීක්ෂණය – මොඩියුල එකට පරීක්ෂාව.
- E – System testing – Testing the complete system against the specification.පද්ධති පරීක්ෂණය – සම්පූර්ණ පද්ධතිය පරීක්ෂාව.
- C – Acceptance testing – Users confirm the system meets their needs.පිළිගැනීමේ පරීක්ෂණය – පරිශීලකයින් අනුමත කිරීම.
- B – Boundary value – Value on or next to a valid limit.සීමා අගය – සීමාවේ හෝ ආසන්න අගය.
- A – Erroneous data – Invalid data that should be rejected.වැරදි දත්ත – ප්රතික්ෂේප විය යුතු දත්ත.
- E – Expected output – Result the system should produce.අපේක්ෂිත ප්රතිදානය – පද්ධතිය දිය යුතු ප්රතිඵලය.
Structured Questionsව්යුහගත ප්රශ්න
1Distinguish program and database development.ක්රමලේඛ/දත්ත සමුදාය. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
2Explain white and black box testing.සුදු/කළු පෙට්ටි. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
3Describe the four testing levels in order.මට්ටම් හතර. (4 marksලකුණු 4)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
4Design boundary test data for marks 0–100.සීමා දත්ත. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
5Write a test case table entry for grade(55).grade(55) පරීක්ෂණය. (4 marksලකුණු 4)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
🎮 Game🎮 ක්රීඩා
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.සාමාන්ය, සීමා, වැරදි දත්ත.
