A2-Debugging Questions Answers PDF

Title A2-Debugging Questions Answers
Author Janesha Sharma
Course Software Testing and Quality
Institution Centennial College
Pages 6
File Size 411.7 KB
File Type PDF
Total Downloads 15
Total Views 159

Summary

Assignment 2 debugging...


Description

COMP311 Assignment 2 - Debugging

Questions for Debugging Assignment Student Name: _Delan Wang _ _ Student ID: _ 301094890_ _ Student Name: _ _ Janesha Sharma _ _ _ _ Student ID: _ _ 301093302 _ _ _

Instructions Work in teams of at most two. Do the class work. Discuss and answer the following questions together.

Marks This assignment is marked out of 10.

Team The team (group) can be created of at most two students. Only one is required to post the answers using the associated A2_Debugging_Questions_Answers.docx document as a template.

Questions

1. What class is the driver for this slice of the application? (0.5) Answer: Manifest Class

2. What major part of the application is replaced by a stub? Name the class(es) that make up this stub. (0.5) Answer: Reservation; Class name: SeatingPlan Class 3. List three defects that you located in the original code, and describe then as you would in a tester’s defect report. Describe where user is in using the system and what the user input. Then state how the system response deviated from expected output. (6). a. Where: UserPrompter.java User input: null System response: The system keeps repeating the same message even after the user gives null answer and doesn’t come out of the loop.

b. Where: PassengerName.java User input: user inputs a numeric value in the name option which should be a string System response: system does not recognize the numeric character and takes a numeric value to be the name of a person

c. Where: Seat.java User input: User booked a ticket against a seat number (2A, 4C in the given screenshot) System response: The system again displays the seat number (2A, 4C) in available seats that is already booked for a user.

4.

Briefly define the term Step in, Step out, Step over and Breakpoint: (2) Answer: Step in: Go into the next function execute, and break. Step out: Finish the current function, then break it. Step over: Execute the next function then break it (afterwards) Breakpoint: Set up one specific place to start debugging

5. Give the Screenshots for the import of jar file into the java IDE , Debug mode and fix of no error. (1)

Page 1 of 2

COMP311 Assignment 2 - Debugging Glossary: Driver => https://glossary.istqb.org/en/search/driver

Page 2 of 2 Stub => https://glossary.istqb.org/en/search/stub...


Similar Free PDFs