Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Datafile library that provides more convenient way to save some of your test data than robotframework variables tables

Project Description

Quintagroup robotframework utils

Data file parser

Datafile library provides more convenient way to save some of your test data than robotframework variables tables do.

For example you have a file ‘users.rst’ where you save users accounts information:

**Accounts on site**

=========  ====  ========  =================
users      id    password  email
=========  ====  ========  =================
admin      Eric  passwr    eric@example.com
manager    Jonh  passwr    jonh@example.com
publisher  Olga  passwr    olga@example.com
reader     Jane  passwr    _table_:
\                          work; jane@work.com|
\                          pesonal; jane@pesonal.com
=========  ====  ========  =================

and in test case you can parse this file and access its data in the following manner:

*** Settings ***
Library         quintagroup.robotframework.datafile.rst

*** Test Cases ***
Attribute alike access
    ${users}=  Read tables from file  ${CURDIR}/users.rst
    Should Be Equal  ${users.admin.id}  Eric
    Should Be Equal  ${users.manager.email}  jonh@example.com
    Should Be Equal  ${users.reader.id}  Jane
    Should Be Equal As String  ${users.reader.email}  [['work', 'jane@work.com'], ['pesonal', 'jane@pesonal.com']]
    Should Be Equal As String  ${users.reader.email}[0]  ['work', 'jane@work.com']

Changelog

1.0 (2013-12-16)

  • Initial release
Release History

Release History

This version
History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
quintagroup.robotframework.utils-1.0.zip (23.5 kB) Copy SHA256 Checksum SHA256 Source Dec 17, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting