Skip to main content

robotframework-sqless is a SQL abstraction library for Robot Framework

Project description

Robot Tests

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.

Files for robotframework-sqless, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size robotframework_sqless-0.1.0-py3-none-any.whl (11.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size robotframework-sqless-0.1.0.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page