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.4.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotframework_pyserial-1.4.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robotframework_pyserial-1.4.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for robotframework_pyserial-1.4.0.tar.gz
Algorithm Hash digest
SHA256 b7cd72a4f1374246e9038e4771b0f47978b3c075627ed4385643d097f1546260
MD5 deacbc996655e5b39888f24a3d72b9e4
BLAKE2b-256 582c0c8b5623bc5dbbf8a218819fe896e27bbe1a597c1e9a4625a047e2a1f695

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robotframework_pyserial-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe6b4f47c0ab47f9ba5abf7f712c72bb0084e6c173e44555a10997caadbd396c
MD5 5a08673c326fa52fb361646fa86d5964
BLAKE2b-256 77a63f0a6d2a5702b6e5127a6da9b6d6af41ab18071b0f0a0189a2ddf6e526d4

See more details on using hashes here.

Supported by

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