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

2 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What considerations should be made when testing the printer class?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

How can we determine whether to create a class object for each test or once for the entire test case?

Evaluate responses using AI:

OFF