robotframework-sqless is a SQL abstraction library for Robot Framework
Project description
Robot Framework - SQLess
robotframework-sqless
is a SQL abstraction library for Robot Framework
Usage
pip install robotframework-sqless
Example testcase
*** Settings *** | ||||
Library | SQLess | schema.yml | db_config.yml | |
*** Test Cases *** | ||||
Get Users By Filter | ||||
${users} | Get By Filter | Users | username=TestUser | |
Length Should Be | ${users} | 1 |
The example presumes there is a database with a user table and at least a column username
.
Schema definition
The database schema and the database configuration must be defined in separate .yml files. For the above example, the following files should apply:
db_config.yml
dbms: sqlite
db: sqless.db
schema.yml
users:
tablename: user
fields:
id: integer
username: char
Project details
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
File details
Details for the file robotframework-sqless-0.1.0.tar.gz
.
File metadata
- Download URL: robotframework-sqless-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0133dba75665a9f5f0347a04483ce8103d1c18f6c784d4635d13809885c178b |
|
MD5 | fd5318abcf1f98abfc2c1644dcb974a9 |
|
BLAKE2b-256 | ed38811c6bf25800dcd28612a481e4e07a444251ac5ae1689eaac175b87a71cd |
File details
Details for the file robotframework_sqless-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: robotframework_sqless-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e11893391dac82b4b665c09ab95de101ef7ab93dcc800fa3a511c272d814a3ac |
|
MD5 | 58364a023b03caa5041f88bc131bd894 |
|
BLAKE2b-256 | 6fd7b7e2216c760281a7fa60eeaa41fd6609c8d00fa6cba26dd46565553b2eb9 |