Skip to main content

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

pypi workflow

pip install robotframework-pyserial

Documentation

docs workflow

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

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

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

robotframework_pyserial-1.3.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

robotframework_pyserial-1.3.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file robotframework_pyserial-1.3.0.tar.gz.

File metadata

File hashes

Hashes for robotframework_pyserial-1.3.0.tar.gz
Algorithm Hash digest
SHA256 0036bdf821d9c6c966a01e014a514b5da5d15aaf3ced86c7a35c0c5100303e10
MD5 0406470023fa40765eb217e6321fedf0
BLAKE2b-256 5acec1f3b068ce2441116693ae40360e8054be70674529241fa2806a83871c24

See more details on using hashes here.

File details

Details for the file robotframework_pyserial-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_pyserial-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f574ccea89a27694ae72b286797f9172ad68a9aa0bf6fad0117bc9edc027f67c
MD5 a8f5011b77fd314a20c2a564cfd7ce9f
BLAKE2b-256 a27158f52d5e50be909ae408295b44f3298000b2387b05063cf3cc6c02fdc291

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page