Design test cases to verify a computer program : Writing a Printer Class for Testing

Design test cases to verify a computer program : Writing a Printer Class for Testing

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

This video tutorial covers the creation and testing of a simple printer class in Python. It begins with setting up a new Python file and defining a printer class with an init method that includes pages per second and capacity attributes. The class also features a print method that handles printing tasks and raises a custom printer error if the capacity is exceeded. The tutorial then moves on to creating a test file to write tests for the printer class, discussing considerations for creating class objects during testing. The next video will continue with writing tests for the printer.

Read more

1 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What new insight or understanding did you gain from this video?

Evaluate responses using AI:

OFF