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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd44b2b4a30d20a934c85f25840d78c7fb67e22b32db21a1a2f8bd1d31cbccd7 |
|
MD5 | 59725c66608344908e23c9acdac522ed |
|
BLAKE2b-256 | 7934f7341a3df346a598ce756eae94f62cf20d7f0c3cdc6282674576e6870d48 |
Close
Hashes for robotframework_seriallibrary-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ff9e62acb9af01e854bd18b16f15a502e1679c588b3e015170aec06eec14b6d |
|
MD5 | bfa0b14e7caba58e8cb0e74344fc326e |
|
BLAKE2b-256 | 5711d42dc45f0f6a2ac3e451fc936d11a1c43b47468cdf6ac0387f682bacceea |