Skip to main content

A python package to test AWS services in Robot Framework

Project description

robotframework-aws

AWSLibrary is a testing library for Robot Framework that gives you the ability to use many of the AWS services in your tests. This library directly interacts with Boto 3.
Boto is the Amazon Web Services (AWS) SDK for Python. It enables Python developers to create, configure, and manage AWS services.

If there is functionality that should be included in this library please create an issue or feel free to contribute.

PyPI Last Commit License Downloads Total downloads

Keyword Documentation


This library covers the AWS services listed in the keywords:

Documentation of keywords

Pypi


Installation and use

Install the package

pip install robotframework-aws

Update the package

pip install robotframework-aws --updagrade

Creating a Test Case

When creating a test case, start by creating an AWS session for your test and end by deleting it.

*** Settings ***
Library  AWSLibrary


*** Variables ***
${REGION}    eu-west-1
${BUCKET}    some-bucket-name


*** Test Cases ***
Test Case
    [Setup]    Create Session With Keys    ${REGION}    %{AWS_USER_NAME}    %{AWS_USER_PASS}
    S3 Upload File    ${BUCKET}    new_file.json    ${CURDIR}/local_file.json
    S3 Key Should Exist    ${BUCKET}    new_file.json
    S3 Key Should Not Exist    ${BUCKET}    local_file.json
    ${file_inside_folder}    S3 List Objects    ${BUCKET}    folder_name
    Log List   ${file_inside_folder}
    S3 Download File    ${BUCKET}    new_file.json    ${CURDIR}/new_local_file.json
    S3 Delete File    ${BUCKET}    new_file.json
    [Teardown]    Delete All Sessions

Attention Contributors

The project development contribution session and local testing with "localstack" is under construction and needs to be reviewed, contributions are welcome.

Contribution guidelines for this project

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-aws-0.1.0.tar.gz (10.8 kB view details)

Uploaded Source

File details

Details for the file robotframework-aws-0.1.0.tar.gz.

File metadata

  • Download URL: robotframework-aws-0.1.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.13

File hashes

Hashes for robotframework-aws-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e55c587be699b1be741da1c3c56677e2522d6112e3813eee58e0a05e0dd075b9
MD5 68042686383126ddc33e4b4463e01716
BLAKE2b-256 f9fe4b9654abe7159f31231e7c5d37ac354ad5dcfddc03044d6d8eec1b1aed2c

See more details on using hashes here.

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