Skip to main content

MongoDB test library for Robot Framework.

Project description

Robot Framework MongoDBLibrary

MongoDBLibrary is a test library for Robot Framework that provides keywords for interacting with MongoDB databases.

Features

  • Connect to MongoDB instances
  • Perform CRUD operations
  • Support for authentication and connection pooling
  • Designed for use in Robot Framework test suites

Installation

pip install robotframework-mongodb

Or with Poetry:

poetry add robotframework-mongodb

Usage Example

*** Settings ***
Library    MongoDBLibrary

*** Test Cases ***
Connect To MongoDB
    Connect To Database    mongodb://localhost:27017    mydb
    # ... your test steps ...

Using with AWS (DocumentDB/IAM Authentication)

To connect to AWS DocumentDB or use AWS IAM authentication, install the library with the aws extra:

pip install "robotframework-mongodb[aws]"

Or with Poetry:

poetry add robotframework-mongodb --extras aws

This will install the required dependency pymongo-auth-aws.

When connecting, use the appropriate MongoDB URI and ensure your environment is configured with AWS credentials (e.g., via environment variables, AWS CLI, or EC2 instance roles).

Example:

*** Settings ***
Library    MongoDBLibrary

*** Test Cases ***
Connect To AWS DocumentDB
    Connect To Database    mongodb://<cluster-endpoint>:27017    mydb
    # ... your test steps ...

License

MIT

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_mongodb-0.2.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotframework_mongodb-0.2.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file robotframework_mongodb-0.2.1.tar.gz.

File metadata

  • Download URL: robotframework_mongodb-0.2.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.14.0-37-generic

File hashes

Hashes for robotframework_mongodb-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c87f673ac7638c208f8a65bc3c27296bef25d1d4335907133602491dfbd19be6
MD5 750258b71ea5445b96fcb320552aaab0
BLAKE2b-256 e84bf93a14b6945dc8fb5d3d5805c4872d64f99de6ed91bba190ccbac8e24617

See more details on using hashes here.

File details

Details for the file robotframework_mongodb-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_mongodb-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f9efd9ae899e024c65a482a783a5f671046919420dc78727641ff80ebaa5d6a7
MD5 f5466d0bd12cd6b45d3982ed182021eb
BLAKE2b-256 b55d27382543dce422979a518794c82d95d67dabfaf846b7dbef5d0159170e9c

See more details on using hashes here.

Supported by

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