Robot Framework library with keywords for SnapLogic API testing and automation
Project description
SnapLogic Common Robot Library Guide
Table of Contents
- Overview
- Embedded Documentation
- Library Distribution
- Library Structure
- Installation
- Exploring Keywords
- Usage in Test Framework
- Summary
Overview
snaplogic_common_robot is a custom Robot Framework library that provides reusable keywords and utilities specifically designed for SnapLogic automation testing. This library encapsulates common SnapLogic operations, API interactions, and testing patterns into convenient Robot Framework keywords.
Key Features
- SnapLogic API Integration - Keywords for SnapLogic REST API operations
- Pipeline Management - Keywords for pipeline import, export, and execution
- Account Management - Keywords for creating and managing SnapLogic accounts
- Project Operations - Keywords for project space and project management
- Groundplex Operations - Keywords for Groundplex creation and management
- Embedded Documentation - Complete keyword documentation included in the package
- Reusable Components - Common testing patterns abstracted into keywords
Library Benefits
- Consistency - Standardized approach to SnapLogic testing across projects
- Productivity - Pre-built keywords reduce test development time
- Maintainability - Centralized library simplifies updates and bug fixes
- Documentation - Built-in keyword documentation and examples
- Version Control - Semantic versioning for stable releases
- Rich Dependencies - Includes comprehensive set of testing libraries automatically
Embedded Documentation
The library includes comprehensive documentation that is packaged with the installation:
1. Keyword Documentation (LibDoc)
# Generated Robot Framework keyword documentation
snaplogic-common-robot/src/snaplogic_common_robot/libdocs/index.html
snaplogic-common-robot/src/snaplogic_common_robot/libdocs/snaplogic_keywords.html
snaplogic-common-robot/src/snaplogic_common_robot/libdocs/snaplogic_apis.html
snaplogic-common-robot/src/snaplogic_common_robot/libdocs/common_utilities.html
๐ Quick Access: To browse the complete keyword documentation with an interactive interface, simply open the index.html file in your web browser. This provides a comprehensive overview with navigation links to all available keyword libraries and their detailed documentation.
2. Resource Files Documentation
# All keywords include detailed documentation in resource files
# snaplogic_keywords.resource - Main keyword resource file
# snaplogic_apis.resource - SnapLogic API resource file
# common_utilities.resource - Common utility keywords
# Example keyword documentation structure:
# Create Account From Template
# [Documentation] Creates a SnapLogic account from a JSON template file.
# [Arguments] ${template_path}
# ...
Library Distribution
PyPI Publication
The snaplogic_common_robot library is published to a PyPI server, making it easily installable and distributable:
# Library is available on PyPI server
Package Name: snaplogic-common-robot
Distribution: Python Package Index (PyPI)
Format: Python Wheel (.whl) and Source Distribution (.tar.gz)
Bundled Dependencies
When you install snaplogic-common-robot via pip install, the following libraries are automatically installed (defined in pyproject.toml):
Core Robot Framework Libraries
- robotframework>=3.2
- robotframework-requests
- robotframework-docker
- robotframework-databaselibrary
- robotframework-jsonlibrary
- robotframework-csvlibrary
- robotframework-robocop
- robotframework-tidy[generate_config]
- robotframework-dependencylibrary
- robotframework-pabot==2.18.0
Data Processing Libraries
- requests>=2.25.0
- envyaml
- deepdiff
- pyyaml
- jinja2>=2.11.0
- tabulate
- python-dotenv
Development and Build Tools
- cookiecutter
Optional Development Dependencies (pip install snaplogic-common-robot[dev])
- pytest, pytest-cov
- black, flake8, mypy
- pre-commit
Note: The following libraries are used in the Docker-based test environment (via
requirements.txt) but are not bundled with the pip install:awscli,boto3,stomp-py,twine,build.
Library Structure
Package Structure
snaplogic-common-robot/
โโโ .env
โโโ .env.example
โโโ .gitignore
โโโ .pre-commit-config.yaml
โโโ .travis.yml
โโโ ENV_SETUP.md
โโโ README.md
โโโ Makefile
โโโ pyproject.toml
โโโ snaplogic_common_robot.Dockerfile
โโโ entrypoint.sh
โโโ scripts/
โ โโโ delete_old_package_versions.sh
โ โโโ generate_calver.py
โ โโโ generate_libdoc.sh
โ โโโ upload_lib_docs_to_s3.py
โโโ meta-data/
โโโ dist/
โโโ src/
โโโ requirements.txt
โโโ snaplogic_common_robot/
โ โโโ __init__.py
โ โโโ libdocs/
โ โ โโโ index.html
โ โ โโโ common_utilities.html
โ โ โโโ raw_common_utilities.html
โ โ โโโ raw_snaplogic_apis.html
โ โ โโโ raw_snaplogic_keywords.html
โ โ โโโ robot-doc-styles.css
โ โ โโโ snaplogic_apis.html
โ โ โโโ snaplogic_keywords.html
โ โโโ libraries/
โ โ โโโ __init__.py
โ โ โโโ auth_manager.py
โ โ โโโ utils.py
โ โโโ snaplogic_apis_keywords/
โ โ โโโ __init__.py
โ โ โโโ common_utilities.resource # Common utility keywords
โ โ โโโ snaplogic_apis.resource # SnapLogic API resource file
โ โ โโโ snaplogic_keywords.resource # Main keyword resource file
โ โโโ test_data/
โ โโโ __init__.py
โ โโโ slim_groundplex.json
โ โโโ triggered_task.json
โ โโโ ultra_task.json
โโโ snaplogic_common_robot.egg-info/
โโโ PKG-INFO
โโโ SOURCES.txt
โโโ dependency_links.txt
โโโ requires.txt
โโโ top_level.txt
Installation
# Install from PyPI (automatically installs all dependencies)
pip install snaplogic-common-robot
# Verify installation
pip show snaplogic-common-robot
# Check Robot Framework installation
robot --version
Exploring Keywords
# List all keywords in the library
python -m robot.libdoc snaplogic_common_robot list
# Get specific keyword information
python -m robot.libdoc snaplogic_common_robot show "Create Snaplex"
Usage in Test Framework
Add the keywords path as resource
*** Settings ***
Resource snaplogic_common_robot/snaplogic_apis_keywords/snaplogic_keywords.resource
Resource snaplogic_common_robot/snaplogic_apis_keywords/snaplogic_apis.resource
Resource snaplogic_common_robot/snaplogic_apis_keywords/common_utilities.resource
Example Keyword Usage
*** Test Cases ***
Create And Configure Account
[Documentation] Example of using snaplogic-common-robot keywords
# Use keywords from the library
Create Account From Template ${account_payload_path}/acc_oracle.json
Import Pipelines From Template ${unique_id} ${pipeline_file_path} ${pipeline_name} ${pipeline_name_slp}
Create Triggered Task From Template
... ${unique_id}
... ${project_path}
... ${pipeline_name}
... ${task_name}
... ${task_params}
... ${task_notifications}
Available Keyword Categories
-
Authentication Keywords
- Set Up SnapLogic Connection
- Authenticate User
- Get Auth Token
-
Project Management Keywords
- Create Project Space
- Delete Project Space
- Create Project
- Get Project Details
-
Account Management Keywords
- Create Account From Template
- Update Account Settings
- Delete Account
- Validate Account
-
Pipeline Keywords
- Import Pipelines From Template
- Export Pipeline
- Validate Pipeline
- Execute Pipeline
-
Groundplex Keywords
- Create Snaplex
- Download Config File
- Check Snaplex Status
- Delete Snaplex
-
Task Management Keywords
- Create Triggered Task From Template
- Run Triggered Task
- Get Task Status
- Update Task Parameters
-
Utility Functions
- File and JSON handling utilities
- Template processing functions
- Data validation helpers
Troubleshooting
# Check library installation
pip show snaplogic-common-robot
# Verify keyword availability
python -m robot.libdoc snaplogic_common_robot.snaplogic_apis_keywords.snaplogic_keywords list
python -m robot.libdoc snaplogic_common_robot.snaplogic_apis_keywords.snaplogic_apis list
Summary
The snaplogic_common_robot library provides a comprehensive set of Robot Framework keywords specifically designed for SnapLogic automation testing. Key points:
- Distributed via PyPI for easy installation and version management
- Comprehensive Dependencies โ Single
pip installbrings 20+ testing libraries automatically - Includes embedded documentation with keywords, examples, and API references
- Complete Testing Ecosystem โ Includes Robot Framework extensions, data processing libraries, and development utilities
๐ Related Resources
- SnapLogic Robot Framework Examples โ End-to-end test framework that uses this library
- Robot Framework โ Official Robot Framework documentation
The snaplogic_common_robot library is the foundation for consistent, maintainable SnapLogic automation testing across all projects and environments.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snaplogic_common_robot-2026.4.16.2.tar.gz.
File metadata
- Download URL: snaplogic_common_robot-2026.4.16.2.tar.gz
- Upload date:
- Size: 259.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa207cfd1b4c0ae1bc9e5ce26cfe648fd5045609c604400e263c077cf63556fd
|
|
| MD5 |
56e49c58195bbc3e7f652755b32b8709
|
|
| BLAKE2b-256 |
e511f4162af0c69a3564b3e431831bf89065f038db8d4b881fca6d346ab798ee
|
File details
Details for the file snaplogic_common_robot-2026.4.16.2-py3-none-any.whl.
File metadata
- Download URL: snaplogic_common_robot-2026.4.16.2-py3-none-any.whl
- Upload date:
- Size: 262.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f08ac57758da50d6cf08031bdbcd6fbe508b4babb49d592b724b712b10928d16
|
|
| MD5 |
db74eaccf3000b890fc6f79433888979
|
|
| BLAKE2b-256 |
c274908f376791554588318c1b4081d10648011d989822eb22681d2c352891a5
|