CPR 10

docx

School

Seneca College *

*We aren’t endorsed by this school

Course

144

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

4

Uploaded by CorporalComputerNightingale26

Report
Computer Principles for Programmers SDLC – Testing Click or tap here to enter text. Click or tap here to enter text. Click or tap here to enter text. @mySeneca.ca Click or tap here to enter text. See the topic's slides, the activity instructions, and the Programming Test Cases.docx The number of rows in the tables below are for convenience; they do not indicate the number of cases expected. Test Cases for the Black box program Description + / − Purpose Data Input Expected Output Actual output if unexpected Success? Comments String: This is viralika To verify the minimum edge Position: 1 T i Failed To verify the in between patterns Position: 7 s v Failed To verify the maximum edge Position: 4 s i Failed Logic termination Position: zero Program terminates Success Test for unexpected output Position: 1 Error i Failed String: How are you? To verify the maximum edge Position:18 ‘ ‘ Success To verify the minimum edge Position:1 Displays an error ‘w’ Failed CPR101 Summer 2023 Week 10 Page 1 of 4
Computer Principles for Programmers SDLC – Testing Description + / − Purpose Data Input Expected Output Actual output if unexpected Success? Comments To verify the in between patterns Position:7 ‘e’ ‘y’ Failed To verify the outer limit Position:20 Blank Success Position: String: I am a student To verify outer limits Position:44 Space Success To verify the in between patterns Position:5 ‘ ‘ Success Tests for unexpected input Position: Hey Displays an error ‘ ‘ Failed Position: Position: CPR101 Summer 2023 Week 10 Page 2 of 4
Computer Principles for Programmers SDLC – Testing Test Cases for the White box program. Description + / − Purpose Data Inputs for X and O Expected Output Actual output if unexpected Success? Comments Start program Record initial condition n/a 1 2 3 4 5 6 7 8 9 To copy a grid from terminal, hold [ Alt ] while click & drag to select. Nominal test + check recording of alternating moves to open grid positions X > 1 O > 2 X 2 3 4 5 6 7 8 9 X O 3 4 5 6 7 8 9 Same Input -To check if the same input is being accepted by the Logic X > 2 O > 2 X23 456 789 Error displayed No The logic takes input from the user Win Check Test (Diagonal) + Player A takes Position 1,5, and 9. X > O > 1,5,9 OXX XO6 7OO O23 456 789 Win Check Proves the logic can detect the Win scenario happening in Diagonal line Win Check Test (Line) + Player B takes position 1,2, and 3. X > 1,2,3 O > XXX O59 7O9 X present at 1,2,3 Player B WIN!! Yes Win Check Proves the logic can detect the Win scenario happening in Straight Line X > O > X > O > CPR101 Summer 2023 Week 10 Page 3 of 4
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Computer Principles for Programmers SDLC – Testing Description + / − Purpose Data Inputs for X and O Expected Output Actual output if unexpected Success? Comments X > O > X > O > X > O > X > O > CPR101 Summer 2023 Week 10 Page 4 of 4