Test Cases: Rectangle comparison Program

Assignment 4: Test Cases: Rectangle comparison Program

CIS 525 – Software testing and Quality Assurance

Requirement for Area of Rectangle: –

Hand solving problem.

  • User input length of rectangle 1.
  • User input Width of rectangle 1.
  • User input length of rectangle 2.
  • User input Width of rectangle 2.
  • Calculating area1 length and width of rectangle 1.
  • Calculating area2 length and width of rectangle 2.
  • Software verifies area 1 is greater than area 2.
  • Software verifies area 2 is greater than area 1.
  • Software verifies area 1=area 2.
  • Software display rectangle 1 larger than rectangle 2.
  • Software display rectangle 2 larger than rectangle 1.
  • Software display rectangle 1 = rectangle 2.

Python Unit Testing program: –

Test caseRect1L1Rect 1W1Rect 2L2Rect 2W2A1>A2A1A1=A2Output/result invalid
110452Yesnonono
2521520NoyesnoNo
354210NonoyesNo
48242Yesnonono
Test caseRect1L1Rect 1W1Rect 2L2Rect 2W2A1>A2A1A1=A2Output/result invalid
5-2484nononoYes
6546-1nononoyes
Test caseRect1L1Rect 1W1Rect 2L2Rect 2W2A1>A2A1A1=A2Output/result invalid
7A484nononoYes
854$-1nononoyes
rectangle 2.User input Width of rectangle 2.Calculating area1 length and width of rectangle 1.Calculating area2 length and width of rectangle 2.Software verifies area 1 is greater than area 2.Software verifies area 2 is greater than area 1.Software verifies area 1=area 2.Software display rectangle 1 larger than rectangle 2.Software display rectangle 2 larger than rectangle 1.Software display rectangle 1 = rectangle 2.Python Unit Testing program: -Test caseRect1L1Rect 1W1Rect 2L2Rect 2W2A1>A2A1A2A1A2A1
File Type:docx

---More Text Follows---

Buy to view complete answer, price $45
Money Back guarantee







Place an Order

Plagiarism Free!