You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.8 KiB

  1. # Testplan
  2. This is the test plan that I follow for every release.
  3. I use it to ensure that no regression has been introduced.
  4. ## Step 1: Preparation - build and flash the firmware
  5. * Use the latest stable release for ESPHome (to make sure that my code
  6. builds and works with that release). In my clone I make sure that I
  7. checked out the master branch and that it's up-to-date with the origin.
  8. * Remove the cached framework package:
  9. `/bin/rm -fR ~/.platformio/packages/framework-arduinoespressif32`
  10. * Copy `doc/example.yaml` to a clean build directory, and update the
  11. first two sections for the local setup (substitutions, wifi, api, ota).
  12. * Use `esphome example.yaml compile` to build the code.
  13. * Upload this code to the lamp.
  14. ## Step 2: Perform the tests
  15. * Touch the power button --> the light must turn on.
  16. * Touch the power button again --> the light must turn off.
  17. * Touch the slider at any level --> the light must turn on, using the
  18. level at which the slider was touched as the brightness. The front panel
  19. illumination is turned on and shows the brightness level.
  20. * Touch the slider at various points and touch the slider while moving your
  21. finger up and down --> the brightness of the light and the brightness
  22. level on the front panel must follow the touches.
  23. * Touch and hold the power button --> the light must go into "night light"
  24. mode. This means that it will become very dim. The front panel
  25. illumination must be turned off.
  26. * Touch the slider at a random level --> the light must go back to its
  27. normal brightness levels and the front panel illumination must be turned
  28. on again.
  29. * Touch the color button a few times in a row --> the light must loop through
  30. the various preset light colors.
  31. * Touch and hold the color button --> the light must switch to a different
  32. preset group. There are two groups: one with rgb colors and one with white
  33. light colors, and holding the color button will switch between these two.
  34. * Touch the color button to select a light color, long touch it to switch to
  35. the other preset group, then long touch again to switch the preset group
  36. again -> the lamp must remember what light colors were active within the
  37. preset groups. If the red preset was selected, you switch to the white
  38. light group, select a different white preset and then go back to the rgb
  39. presets, then the light must become red again.
  40. * Go to Home Assistant and check:
  41. * if you can turn on/off the lamp
  42. * if you can select colors from the RGB color model
  43. * if you can select colors from the white light color temperature model
  44. * if you can set the brightness of the lamp
  45. * if selecting the lowest possible brightness results in the lamp
  46. switching to "night light" mode
  47. ## Step 3: Release the new version
  48. Only after performing these tests successfully, the new version can be
  49. released.