Curtain Switch

Last Updated on : 2022-03-02 06:44:18download

Application scope

This topic describes tests on the mass production of curtain switches. It will help to apply for the Tuya IoT Cloud certification.

Test scope

Function Scope
Package Packaging materials, accessories, graphics, and texts.
Appearance and structure Overall appearance and button structure.
Hardware function Reset button, power button, and indicator.
Software function Network management, status synchronization, indicator display, curtain switch status, timing, travel time, travel calibration, and percentage control.
Special test Stability test.

Test environment

The following figure shows the networking architecture for testing the curtain switch.

Curtain Switch

Test guide

Package

  • Test purpose: Ensure the integrity of the packaging materials and accessories, and the accuracy of the graphics and texts.
  • Scenario: The user unpacks the package for the first time.
  • Test method: Take a visual inspection when unpacking.
  • Pass standard: The box is intact, the accessories are complete, and the graphics and texts are clear and explicit.
  • Possible problems: The box is deformed or damaged, the accessories are incomplete, and the graphics and texts are inconsistent with the actual device.

Appearance and structure

  • Test purpose: Ensure the functionality and the appearance completeness of the buttons.
  • Scenario: The user experiences the device in daily use.
  • Test method: Use the manual operation and visual inspection.
  • Pass standard: The button control is functional without any appearance defects.
  • Possible problems: The appearance has obvious scratches, and the button is sunken and irresponsive.

Hardware function

  • Test purpose: Ensure the functionality and the appearance completeness of the buttons.
  • Scenario: The user experiences the device in daily use.
  • Test method: Use the manual operation and visual inspection.
  • Pass standard: The indicator, the buttons, and other parts are functional.
  • Possible problems: The buttons are abnormal.

Network management

  • Test purpose: Ensure that the curtain switch is paired.
  • Scenario: The curtain switch is paired for the first time after purchasing.
  • Test method: Trigger the curtain switch to enter the pairing mode and pair it with the app.
  • Pass standard: The curtain switch is successfully paired and controllable online.
  • Possible problems: The pairing fails because network problems occur, the app unbinding fails, or the mobile phone is not connected to the 2.4G network.

Status interaction

  • Test purpose: Ensure that the curtain switch can be locally controlled in real time and the device status is reported.
  • Scenario: The user checks the status of the curtain switch after the curtain switch is paired, restarted, or reconnected after offline.
  • Test method: Check the status of the curtain switch on the app after the curtain switch is paired, restarted, or reconnected after offline.
  • Pass standard: The status is properly updated after the curtain switch is paired, restarted, or reconnected after it is offline.
  • Possible problems: The status is displayed anomaly because network problems occur or the status is not reported by the device.

Indicator

  • Test purpose: Ensure that the indicator functions properly.
  • Scenario: Check the indicator status after the switch or the socket is paired, powered off, powered on, controlled, or reconnected after the device gets offline.
  • Test method: Check the indicator status after the switch or the socket is paired, powered off, powered on, controlled, or reconnected after the device gets offline.
  • Pass standard: The device can be paired, restarted, reconnected after it gets offline, and controlled in compliance with the IoT configuration rules.
  • Possible problems: The indicator does not change or flicker.

Status of curtain switch

  • Test purpose: Ensure that the curtain switch is turned on, off, and paused as expected.
  • Scenario: Check the control of the curtain switch after it is turned on, off, and paused.
  • Test method: Set the curtain switch on the app and check the execution status.
  • Pass standard: The curtain switch is turned on, off, and paused as expected.
  • Possible problems: The curtain switch cannot be paused after the user double-taps the app.

Timing

  • Test purpose: Ensure that the timing task is enabled and disabled as expected.
  • Scenario: The user powers on or powers off the device remotely.
  • Test method: Set the timing task on the app and check the execution status.
  • Pass standard: The timing task is executed as expected.
  • Possible problems: The timing function does not work after the device is disconnected.

Travel time

  • Test purpose: Ensure that the curtain switch travel is effectively enabled or disabled as expected.
  • Scenario: Control the curtain to open and close.
  • Test method: Set the travel time on the app and check the execution status.
  • Pass standard: The preset travel time is executed as expected.
  • Possible problems: The random travel time cannot be set.

Travel calibration

  • Test purpose: Ensure that the opening and closing time of the curtain switch is consistent.
  • Scenario: The curtain switch performs travel calibration.
  • Test method: Tap Calibrate on the app to check the calibration result of the curtain switch.
  • Pass standard: The opening and closing time of the curtain switch is consistent.
  • Possible problems: The travel calibration failed.

Percentage control

  • Test purpose: Ensure that the opening and closing of the curtain switch are correct and effective.
  • Scenario: The curtain switch is controlled remotely.
  • Test method: Perform percentage control on the app and check the curtain switch control status.
  • Pass standard: The percentage control works as expected.
  • Possible problems: The percentage control failed.

Stability

  • Test purpose: Ensure the proper functions of the device.
  • Scenario: The user uses the device for a long time.
  • Test method: Simulate daily usage scenarios with 3 to 10 switches or sockets for seven days. This allows you to monitor the reliability of the device.
  • Pass standard: The device is online and controllable for seven days, without exceptional offline, restart, crash, or other problems.
  • Possible problems: The device cannot be controlled on the app because the device is offline.