Robotframework implementation of beloved pyserial module
Project description
Robot Framework - SerialLibrary
Overview
PySerial Robot Framework Library is a Python library for interacting with serial devices using Robot Framework. This library provides keywords for connecting to serial devices, reading and writing data, setting timeouts, and more.
Installation
pip install robotframework-pyserial
Documentation
For detailed documentation of each keyword and usage examples, refer to the documentation in the below link,
https://reharish.github.io/robotframework-pyserial
Project Inspiration
-
zilogic-systems/parrot - Embedded Test Automation Framework, based on Robot Framework.
-
pySerial - Python serial port access library
Usage
To use the PySerial Robot Framework Library in your Robot Framework test suites, you need to import it at the beginning of your test suite file:
*** Settings ***
Library SerialLibrary
*** Test Cases ***
Example Test
Connect COM1 9600
Set Timeout 5
Write Hello, world!
${data}= Read
Should Be Equal ${data} Hello, world!
Disconnect from Serial
Keywords
Keyword | Description |
---|---|
Connect | Connects to a serial device. |
Disconnect | Disconnects from the serial device. |
Set Timeout | Sets the read timeout for the serial device. |
Set Write Timeout | Sets the write timeout for the serial device. |
Set Unicode | Sets the Unicode encoding for data communication. |
Read | Reads data from the serial device. |
Write | Writes data to the serial device. |
Read until | Reads data from the serial device until a specified string is encountered. |
Read All | Reads all the data from the input buffer. |
Reset Input Buffer | Clear the input buffer for the serial device. |
Reset Output Buffer | Clear the output buffer for the serial device. |
Save buffer to file | Saves the data buffer into a file. |
Contributors
- Harishbabu Rengaraj(@reharish)
- Abisheak Kumarasamy (@abi-sheak)
- Karl Palsson (@karlp)
License
- See the
LICENSE
file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file robotframework_pyserial-1.3.0.tar.gz
.
File metadata
- Download URL: robotframework_pyserial-1.3.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0036bdf821d9c6c966a01e014a514b5da5d15aaf3ced86c7a35c0c5100303e10 |
|
MD5 | 0406470023fa40765eb217e6321fedf0 |
|
BLAKE2b-256 | 5acec1f3b068ce2441116693ae40360e8054be70674529241fa2806a83871c24 |
File details
Details for the file robotframework_pyserial-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: robotframework_pyserial-1.3.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f574ccea89a27694ae72b286797f9172ad68a9aa0bf6fad0117bc9edc027f67c |
|
MD5 | a8f5011b77fd314a20c2a564cfd7ce9f |
|
BLAKE2b-256 | a27158f52d5e50be909ae408295b44f3298000b2387b05063cf3cc6c02fdc291 |