Nnoemis / Test1

0 stars 0 forks source link

7. Testing an Electric Water Kettle #7

Open Nnoemis opened 1 year ago

Nnoemis commented 1 year ago

You are assigned to test a simple electrical water kettle. The water kettle consists of two parts:

Electric water kettle with 1.0-liter capacity (1500 watts of power) Power base, used to plug-in the kettle cordlessly

image

The kettle has two buttons:

Mechanical button to open the lid. The lid is closed by hand, without any buttons. Switch on/off button to start boiling the water. When the kettle is plugged-in to the power base, and the power base is plugged-in the electrical network, and the kettle holds enough water (at least 0.2 liters), the kettle starts heating the water.

It takes 2-3 minutes for the water to get hot. When the water starts to boil, the kettle automatically stops (its start button gets into “off” state). When the water is hot and the boiler is switched on, it automatically switches off after 0.5-2 seconds. When the kettle is empty or almost empty (holding less than 0.2 liters) and the kettle is switched on, it automatically switches off after 0.5-2 seconds. Your task is to think about the test scenarios and test cases to test the electrical water kettle. Describe the test scenarios and each test case in the following format:

Nnoemis commented 1 year ago

Test Scenario: Boil Water

Test case | Boil 1 liter of water  success -- | -- Description | Pour 1 liter of water, start the kettle, and wait until it gets hot. Steps | Fill 1 liter of cold water in the kettle and close the boiler lid.Plug the power base in the electrical network.Plug the boiler into the power base.Switch on the kettle.Wait until the water gets hot and the kettle automatically switches off (2-3 minutes). Expected results | The boiling process should complete in less than 4 minutes.The water should get hot.The kettle should automatically power off when the water gets too hot.The kettle lid should stay closed. Test case | Boil an empty kettle  fail -- | -- Description | Try to boil an empty kettle (no water inside) and make sure the boiling stops (automatically switches off) almost immediately after starting. Steps | Empty the water from the kettle and close the boiler lid.Plug the power base in the electrical network.Plug the boiler into the power base.Switch on the kettle.Wait until the kettle automatically switches off (2-3 seconds). Expected results | The kettle has to switches off in 2-3 seconds.

Test Scenario: Lid Test

Test case | Open the lid -- | --