Example of RobotFramework test-suite for the simple ESP32 project. It contains example of test-suite for controlling ESP32 LED using serial port command, and checking LED status using RPi GPIO pin reading and dedicated BLE characteristic value reading. Also this repository contains a short article in Russian about using RobotFramework for embedded testing
Hardware requirements:
- Raspberry Pi 4B
- ESP32S Devkit V1 board
Software requirements:
- robotframework
- robotframework-seriallibrary
- wiringpi
The following packages should be installed on Raspberry PI:
pi@raspberrypi: pip3 install robotframework robotframework-seriallibrary pygatt
pi@raspberrypi: sudo apt install wiringpi
RPi4 should be connected to ESP32 board as it is shown on the picture
Two nets should be connected using wires:
- Ground
- ESP32 D2 pin should be connected to RPi GPIO.0 pin
pi@raspberrypi:~/Documents/robot_examples_for_embedded $ robot robot_files/esp32_tests.robot
pi@raspberrypi:~/Documents/robot_examples_for_embedded $ robot robot_files/esp32_tests.robot
==============================================================================
Esp32 Tests
==============================================================================
Test LED Switch Off | PASS |
------------------------------------------------------------------------------
Test LED Switch On | PASS |
------------------------------------------------------------------------------
Esp32 Tests | PASS |
2 tests, 2 passed, 0 failed
==============================================================================
Output: /home/pi/Documents/robot_examples_for_embedded/output.xml
Log: /home/pi/Documents/robot_examples_for_embedded/log.html
Report: /home/pi/Documents/robot_examples_for_embedded/report.html