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 *** settings *** Library SerialLibrary loop:// *** test cases *** Hello serial test Write Data 01 23 45 67 89 AB CD EF Re Read Data Should Be Hello World
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
Close
Hashes for robotframework-seriallibrary-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db801271ad2b59f93014e5c76bae868be5c37451182741257cb04aac861cae7a |
|
MD5 | 5ff997c9c625df1a87687eb6902a3833 |
|
BLAKE2b-256 | ede32545b8f8dc79d6176d5a7c191e0787a1ee027b1df1f86ab37af8adcffe9a |