In general, we should consider the following aspects:
Tests on functionality, performance, ease of use, operability, and stability
Functional Tests mainly consider whether the water cup can hold water, how much water can hold, whether it can hold hot water, and how much hot water can hold.
In terms of performance, how many water cups can withstand cold water and hot water respectively?
In terms of usability, water cups are easy to use and hand-held
Operability can also be said to be similar to ease of use. When ice water is filled, it cannot feel frozen, hot water cannot feel very hot, or it can be attributed to functional testing.
Stability Test: The water cup is always filled with water. Is it leaking after a long time?
Test-driven development-
Water cup: parent class (cup)
Attributes, such as material, shape, and capacity
Methods, such as shengshui
Water cups can be used to hold soil as flowerpots. Interfaces of flowerpots should be provided.
Sub-classes of water cups: for example, disposable cups
Override or add attributes and Methods
Fault Tolerance: Judgment of loaded objects (Object categories and attributes)
Prerequisite for method execution (some attributes have already been retained. If there is a tray, the method is executed. If there is a handle, the method is executed based on the temperature)
Note that a static field is out of the value range.
Try cup
Test Item: cup
Requirement test: view the cup instruction manual
Interface Test: view the appearance of the cup
Functionality: use water cups for water leakage.
Safety: whether the cup contains viruses or bacteria
Availability: The damage degree of the Cup falling from different heights
Portability: whether the cups can be used normally in different places, temperatures, and other environments
Compatibility: whether the Cup can accommodate juice, white water, alcohol, gasoline, etc.
Ease of use: whether the cup is hot, whether there are anti-skid measures, whether it is convenient to drink
User Manual: whether the user manual describes the usage, restrictions, and conditions of a cup.
Fatigue Test: Put the cup in water (Case 1) for 24 hours to check the leak time and situation; store the gasoline (Case 2) for 24 hours to check the leak time and situation.
Stress Testing: Use a root needle and add weight to the needle. when the pressure is high, the needle will penetrate.
Drop test: the cup is packed (with filler), and the height of the cup cannot be damaged.
Vibration test: cup and packing (with filler), six-sided vibration, check whether the product can cope with bad railway/road/Air Transportation
Test data: the test data is written here (I hate writing test data ). It is applied to scenarios, equivalence class division, factor division, error prediction, and boundary value methods.
Expected output:
The expected output must meet the requirements of the national standard, industry standard, and users.
1. Gui testing:
1. Check whether the shape and size design are suitable for people to pick up;
2. Whether the appearance is attractive (advertisement;
3. Whether the logo with advertisements fade or blur after being stained with water.
Ii. Function and stress testing:
A considers its loading capability:
Add a few, half, and full cups to the cup:
1 hot water;
2 cold water;
3 ice water;
4. Coffee;
Check whether the loading capacity and loading time of the paper cup meet the design standard.
B. Check whether the paper cup smells bad after hot water is loaded.
3. 24x7 testing:
After loading the liquid, record how long it will leak.
From 51 testing, I think it's interesting to add it to my favorites.