Skip to content

qahive/robotframework-CSVLibrary

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robot Framework CSVLibrary

Introduction

CSVLibrary is a Robot Framework library for handling csv files.

More information about this library can be found in the Keyword Documentation.

Installation

Using pip

      pip install git+git://github.com/qahive/robotframework-CSVLibrary.git --upgrade

Manual installation

  1. Make sure you have Robot Framework installed.
  2. Download source distributions (*.tar.gz) for the library and its dependencies:
  3. Extract each source distribution to a temporary location.
  4. Go each created directory from the command line and install each project using:
      python setup.py install

Example: Save test result to csv file

If your team prefer to summary test data into csv file. Please follow this example to write test report based on test script name and test status into csv file.

Example:

*** Settings ***
Library                     Collections
Library                     CSVLibrary

Result CSV data:

Testcase Name Testcase Status
Login with email Pass
Login with username Fail

Example: Load test data from csv file

Example

Basic example:

*** Settings ***
Library                     Collections
Library                     CSVLibrary
    
*** Test Cases ***
Read csv file to a list example test
  @{list}=  read csv file to list  data.csv
  Log  ${list[0]}
  Log  ${list[1]}

Read csv file to a dict example test
  @{dict}=    read csv file to associative  data.csv
  Log  &{dict[0]}[first_name]  &{dict[0]}[last_name]

About

Robot Framework keyword library for CSV files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%