Collection of test utilities for the Solution Application Framework.
Project description
Overview
SAF SDK Testing provides a suite of reusable testing utilities, fixtures, and helper methods designed to standardize and streamline testing across the SAF landscape.
This package serves two primary objectives:
Centralizing testing utilities for SAF development: Provides a unified testing infrastructure shared across all SAF-SDK repositories, ensuring consistency and reducing duplication in the development of SAF platform components such as the Desktop Orchestrator, Web Portal, Data Management services, and other core modules.
Empowering solution developers: Delivers ready-to-use testing tools for solution developers—consumers of the SAF platform—enabling them to efficiently test their custom solutions built on SAF. This includes utilities for end-to-end solution testing, UI automation, service integration testing, and more.
Core Capabilities
The package is organized into modular components, each addressing specific testing needs:
Common Utilities: Shared helper functions for general-purpose testing tasks, including network utilities, directory management, and gRPC certificate handling.
Database Testing: Fixtures and methods for testing against PostgreSQL and SQLite databases, including container-managed database instances.
Docker Integration: Tools for managing Docker containers and orchestrating containerized test environments.
Frontend/Selenium: Selenium WebDriver utilities for end-to-end UI testing, including element waiting strategies and browser interaction helpers.
HPS Integration: Testing support for High Performance Computing Services, including deployment processes and stack management.
PIM Integration: Utilities for testing Product Instance Management service interactions.
Pytest Enhancements: Custom pytest fixtures, markers for platform-specific tests, mocking utilities, and test case documentation helpers.
Solution Testing: End-to-end testing infrastructure for SAF solutions, including GLOW engine integration, execution configurations, and project context management.
Process Management: Tools for launching and managing external processes during test execution.
Design Principles
This package adheres to strict design principles to ensure reliability and ease of use across the SAF ecosystem:
Explicit over implicit: No autouse=True fixtures. Developers must explicitly enable fixtures to maintain clarity about test execution.
Simplicity and transparency: Utilities are designed to be easy to understand, allowing developers to predict behavior when calling them.
Version-agnostic generality: Utilities are generic and adaptable, avoiding dependencies on specific versions of SAF components.
Flat architecture: No nested function or fixture calls, maintaining transparency and predictability in test execution.
Backward compatibility: All changes must be backward compatible. Fixes for one repository should never break others.
Installation
Ensure you have all the necessary prerequisites. Then, refer to the installation guidelines for detailed instructions on how to install the project in your system.
Documentation
The official documentation of SAF SDK Testing contains the following chapters:
Getting started. This section provides a brief overview and instructions on how to get started with the project. It typically includes information on how to install the project, set up any necessary dependencies, and run a basic example or test to ensure everything is functioning correctly.
User guide. The user guide section offers detailed documentation and instructions on how to use the project. It provides comprehensive explanations of the project’s features, functionalities, and configuration options. The user guide aims to help users understand the project’s concepts, best practices, and recommended workflows.
Contribute. This section provides guidelines and instructions on how to contribute to the project. It includes information on how to set up the development environment, run tests, submit pull requests, and follow contribution guidelines.
Troubleshooting
For troubleshooting or reporting issues, open an issue in the project repository.
Follow these steps to report an issue:
Go to the project repository.
Click on the Issues tab.
Click on the New Issue button.
Provide a clear and detailed description of the issue you are facing.
Include any relevant error messages, code snippets, or screenshots.
Additionally, you can refer to the official documentation for additional resources and troubleshooting guides.
License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
Changelog
The changelog section provides a summary of notable changes for each version of SAF SDK Testing for Python. It helps you keep track of updates, bug fixes, new features, and improvements made to the project over time.
To view the complete changelog, visit the project repository and navigate to the CHANGELOG file. It provides a comprehensive list of changes categorized by version, along with brief descriptions of each change.
Getting Started
Add to your package’s pyproject.toml:
[tool.poetry.group.tests]
optional = true
[tool.poetry.group.tests.dependencies]
ansys-saf-testing = { version = "^0.1.dev7", source = "solutions-private-pypi", allow-prereleases = true }
...
For methods, just import them when needed. Example:
from ansys.saf.testing.selenium import wait_for_element_to_be_clickable, wait_for_partial_text
Extra groups
selenium: if you want to use Selenium-related fixtures and methods.
process: if you want to use Process class for launching external processes.
solution: if you want to use fixtures and methods to launch a Solution.
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 ansys_saf_testing-0.11.dev0.tar.gz.
File metadata
- Download URL: ansys_saf_testing-0.11.dev0.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1aae8c2af7b191359af57825feb6405887325510c2e57357a92e636e66d4c919
|
|
| MD5 |
be30a2f4d2fc5df4cd230bb6f24dabd6
|
|
| BLAKE2b-256 |
cf93a40874cdc09787bf5733e6045b6bdc0bf3c9dddfac4bbf1521b3e8565a8e
|
Provenance
The following attestation bundles were made for ansys_saf_testing-0.11.dev0.tar.gz:
Publisher:
ci_cd_release.yml on ansys/saf-sdk-testing
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_saf_testing-0.11.dev0.tar.gz -
Subject digest:
1aae8c2af7b191359af57825feb6405887325510c2e57357a92e636e66d4c919 - Sigstore transparency entry: 1869604204
- Sigstore integration time:
-
Permalink:
ansys/saf-sdk-testing@34f111d19f9c988b8b7eefca97e2c4a52f334119 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ansys
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci_cd_release.yml@34f111d19f9c988b8b7eefca97e2c4a52f334119 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ansys_saf_testing-0.11.dev0-py3-none-any.whl.
File metadata
- Download URL: ansys_saf_testing-0.11.dev0-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e573d86f4ed56ee3d2cb30c709213e48e0e946b8ada5bc348d3d590f433f9881
|
|
| MD5 |
a1709f05def12fa893044140e0d209d5
|
|
| BLAKE2b-256 |
351b3a6f178c9f2be1252daa309bfb380094bf67098e404e8f37fb3042d5137e
|
Provenance
The following attestation bundles were made for ansys_saf_testing-0.11.dev0-py3-none-any.whl:
Publisher:
ci_cd_release.yml on ansys/saf-sdk-testing
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_saf_testing-0.11.dev0-py3-none-any.whl -
Subject digest:
e573d86f4ed56ee3d2cb30c709213e48e0e946b8ada5bc348d3d590f433f9881 - Sigstore transparency entry: 1869604269
- Sigstore integration time:
-
Permalink:
ansys/saf-sdk-testing@34f111d19f9c988b8b7eefca97e2c4a52f334119 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ansys
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci_cd_release.yml@34f111d19f9c988b8b7eefca97e2c4a52f334119 -
Trigger Event:
workflow_dispatch
-
Statement type: