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.2.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.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robotframework_mongodb-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4a0b9d94fdee4710c4030558d9a81144185c7dbbe57b758c7cf8479c0ca502c1
MD5 30d596f1e799054b25716c580d708ca2
BLAKE2b-256 60458f29bb0c8acee42927051e456b93d0a50bc6c0edcf4cf13315613356a1ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robotframework_mongodb-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d990c1327c75a4aaf615d80ce5d5965c3bbf5534ee45e244cd7de0460bd45578
MD5 1305248587809b2f217941a51e72d5b8
BLAKE2b-256 304ce19d114056f335eab5c529e8ac04a7639930351a6bc498fd8af387ccf3e2

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