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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00b55552862e1246031cb42cc2585e5c824708b1ea0349a1bc39a20dbdbf51e9 |
|
MD5 | 6420548eed6ed0f66ff65b5dcd2e08d5 |
|
BLAKE2b-256 | a9626e8d5dd1735f4247b417477671de9406a2e16c622e7e3ec7e33aa0ec39fa |
Close
Hashes for robotframework_seriallibrary-0.4.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc0e896681ad5c7851c4e2b32be814318873c0193cbc22706998c778e75e6a3a |
|
MD5 | 5e7ca27772f7943dfbead7475707f6a9 |
|
BLAKE2b-256 | 32c2ae380168702708ed385cc69f62b6f128877fb3b6b0077c72db0f7b33a728 |