Skip to content

Example of robotframework test-suite for the simple ESP32 project

Notifications You must be signed in to change notification settings

skig/robot_examples_for_embedded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example of embedded project testing using RobotFramework

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

Environment configuration

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

Run tests

pi@raspberrypi:~/Documents/robot_examples_for_embedded $ robot robot_files/esp32_tests.robot

Tests result

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

About

Example of robotframework test-suite for the simple ESP32 project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published