Skip to content

Latest commit

 

History

History
140 lines (89 loc) · 2.42 KB

File metadata and controls

140 lines (89 loc) · 2.42 KB

Testing Strategy

Objective

Testing is performed to verify the BPM calculation, threshold logic, display, LED, buzzer, analog input, and overall system behavior.

Test Cases

Test ID Test Condition Expected Result
T01 No valid pulse/input WAITING or no valid BPM
T02 Normal simulated BPM NORMAL status
T03 Low simulated BPM LOW alert
T04 High simulated BPM HIGH alert
T05 Input variation/noise Stable or reasonably filtered output
T06 Repeated signal peaks No obvious double counting
T07 Sensor/input disconnected No valid BPM
T08 Normal BPM Green LED ON
T09 Low BPM Red LED + buzzer ON
T10 High BPM Red LED + buzzer ON
T11 OLED connected BPM and status displayed
T12 System startup Initialization message displayed

Test 1 - Normal BPM

Input:

Approximately 80 BPM.

Expected:

  • BPM approximately 80
  • Status NORMAL
  • Green LED ON
  • Red LED OFF
  • Buzzer OFF
  • OLED displays NORMAL

Test 2 - Low BPM

Input:

Approximately 40-50 BPM.

Expected:

  • BPM below 60
  • Status LOW
  • Green LED OFF
  • Red LED ON
  • Buzzer ON
  • OLED displays LOW

Test 3 - High BPM

Input:

Approximately 110-140 BPM.

Expected:

  • BPM above 100
  • Status HIGH
  • Green LED OFF
  • Red LED ON
  • Buzzer ON
  • OLED displays HIGH

Test 4 - Serial Monitor

Verify that the Serial Monitor displays:

  • Analog input value
  • Calculated BPM
  • Current status

Example:

Analog: 512 | BPM: 90 | STATUS: NORMAL

Test 5 - OLED

Verify that the OLED displays:

HEARTBEAT MONITOR

BPM: XX

STATUS: NORMAL / LOW / HIGH

Test 6 - LED

Verify:

NORMAL -> Green LED ON

LOW -> Red LED ON

HIGH -> Red LED ON

Test 7 - Buzzer

Verify:

NORMAL -> Buzzer OFF

LOW -> Buzzer ON

HIGH -> Buzzer ON

Pass/Fail Criteria

A test is considered PASS when the actual output matches the expected output.

A test is considered FAIL when:

  • Incorrect BPM status is displayed.
  • Incorrect LED is activated.
  • Buzzer operates during NORMAL condition.
  • OLED fails to display the result.
  • Serial Monitor does not provide the expected output.
  • The system produces clearly incorrect behavior for the tested input.

Testing Evidence

Store screenshots and test results in:

screenshots/

and:

outputs/

Educational Limitation

The testing validates the embedded prototype and its software logic.

It does not establish medical accuracy, clinical reliability, or diagnostic capability.