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 must be defined in an .yml file. For the above example, the following file should apply:

database_config:
  dbms: sqlite
  db: sqless.db

schema:
  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

robotframework-sqless-0.0.4.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

robotframework_sqless-0.0.4-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page