Robotframework implementation of beloved pyserial module
Project description
PySerial - Robot Framework Library
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
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 Serial
*** Test Cases ***
Example Test
Connect to Serial COM1 9600
Set Timeout 5
Write Hello, world!
${data}= Read
Should Be Equal ${data} Hello, world!
Disconnect from Serial
Keywords
- Connect to Serial: Connects to a serial device.
- Disconnect from Serial: 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.
- Save buffer to file: Saves the data buffer into a file.
Documentation
For detailed documentation of each keyword and usage examples, refer to the documentation in the source code.
License
APACHE 2.0 - 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
Close
Hashes for robotframework_pyserial-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad4862872c19c6e936fef50e6c5db7ab6025513c81459d2fbc0bcbbd181a2c79 |
|
MD5 | a5126a06288814501680f371b433291b |
|
BLAKE2b-256 | d3b10b87dc3fc4d5f8cebad53436728070e0e121ed72b0ff09e63bac5dd30813 |
Close
Hashes for robotframework_pyserial-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21cf3845f5a0c633da7d20792c40a81a75ee760356803ba03846f82f8274f633 |
|
MD5 | e67c6b8c57c6895768c17dd49d96d392 |
|
BLAKE2b-256 | f50f80356ea4977a7afc6eea7b63ac7e4cd6e839819604e2526ec8f78116ffa8 |