robotframework-redislibrary is a Robot Framework test library for manipulating in-memory data which store in Redis
Project description
RedisLibrary
RedisLibrary
is a Robot Framework test library which provides keywords for manipulating in-memory data stores in Redis
Redis is an open-source software project that implements data structure servers. It is networked, in-memory, and stores keys with optional durability.
You can add, get, update and delete your data from Redis. The keywords are implemented using redis-py
Usage
Install robotframework-redislibrary
via pip
command
pip install -U robotframework-redislibrary
Example Test Case
*** Settings *** | ||||
---|---|---|---|---|
Library | RedisLibrary | |||
*** Test Cases *** | ||||
TestRedisSample | ||||
${redis_conn}= | Connect To Redis | myredis-dev.com | port=6379 | |
${data}= | Get From Redis | ${redis_conn} | BARCODE|1234567 | |
Should Be Equal As Strings | ${data} | TestExpectedData | ||
${obj_to_add}= | Create Dictionary | name=testFullName | ||
Append To Redis | ${redis_conn} | BARCOE|1234567 | ${object_to_add} | |
@{key_list}= | Get All Match Keys | ${redis_conn} | BARCODE* | 1000 |
Documentation
For the detail keyword documentation. Go to this following link:
https://robotframework-thailand.github.io/robotframework-redislibrary/RedisLibrary.html
Help & Issues
Mention me on Twitter @nottyo
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
Hashes for robotframework-redislibrary-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26bf7413f8f8bc6920c8b2eb4eceaa1d3b6336c464b0dffc801b74ebfa846cce |
|
MD5 | 94103593961ffd7d4f2ff0c566085c2c |
|
BLAKE2b-256 | 46f43b8db610eb0f84c9106e582752356e1089e63eab92f8c5c6c932128ce250 |