Robot Framework test library for serial connection
Project description
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
Project details
Release history Release notifications | RSS feed
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-seriallibrary-0.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 022838c15601c76c29e3251feeebfc7bcd257f99a1729d962ff36967b4ad0936 |
|
MD5 | c8017c4f3341a865fea5ef9aa7b4dc51 |
|
BLAKE2b-256 | 3568746c19e4a60d3179c4728e35356a18c01960f691de9d2f22351a9e8da2db |
Close
Hashes for robotframework_seriallibrary-0.4.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5079b87c98da15c6adebf6370a5e8e3e6533995ece27532b780ff6022b6c0c8 |
|
MD5 | ff3a14af7318bdea5270770cc685a981 |
|
BLAKE2b-256 | 53187ec3cc716af267ce7491ee97828fffcb60d43696c099ecf0c429ec0f9dd3 |