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.

67 lines
2.8 KiB

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