Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

robotframework-seriallibrary

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

robotframework-seriallibrary

Robot Framework test library for serial connection

  • 0.4.3
  • PyPI
  • Socket score

Maintainers
1

==================================== SerialLibrary for Robot Framework

This is a serial port test library for Robot Framework.

Example::

*** settings ***
Library    SerialLibrary    loop://    encoding=ascii

*** test cases ***
Hello serial test
     Write Data    Hello World
     Read Data Should Be    Hello World

Another Example::

*** settings ***
Library    SerialLibrary

*** test cases ***
Read Until should read until terminator or size
    [Setup]    Add Port    loop://    timeout=0.1
    ${bytes} =    Set Variable    
    Write Data    01 23 45 0A 67 89 AB CD EF
    ${read} =    Read Until
    Should Be Equal As Strings    ${read}    01 23 45 0A
    ${read} =    Read Until   size=2
    Should Be Equal As Strings    ${read}    67 89
    ${read} =    Read Until   terminator=CD
    Should Be Equal As Strings    ${read}    AB CD
    ${read} =    Read Until
    Should Be Equal As Strings    ${read}    EF
    ${read} =    Read Until
    Should Be Equal As Strings    ${read}    ${EMPTY}
    [Teardown]    Delete All Ports

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc