test/doc/source/framework/index.rst
Andrew Vaillancourt 0839bbf183 Add logging framework docs
- Document structured test step logging and logging best practices
- Explain log source tagging (AUT, TST, SSH, EXC, etc.)
- Add section on LogExceptionFilter and LogNonExceptionFilter
- Update framework/index.rst to include logging in toctree

Change-Id: Iadc88c706760e1f5d38707827410eac893853a47
Signed-off-by: Andrew Vaillancourt <andrew.vaillancourt@windriver.com>
2025-04-03 22:19:52 -04:00

2.1 KiB

framework/ Documentation

The framework/ directory contains core infrastructure for the StarlingX Test Automation Framework, including logging, SSH, threading, database operations, REST clients, runner logic, and other essential utilities that power keyword execution and test orchestration.

Design Principles

The framework layer is built for reliability, extensibility, and separation of concerns:

  • Reusable building blocks: Shared services such as SSH, threading, and logging are centralized here.
  • Test-agnostic logic: This layer should not depend on specific testcases or keyword domains.
  • Isolation from test logic: Business logic and automation commands live in keywords/ or testcases/, while framework components focus on supporting infrastructure.
  • Consistent logging and error handling: All modules use the same logger and exception patterns.

Contents

ssh/index logging/index

Directory Structure

An overview of the key subdirectories in framework/:

framework/
├── database/           # Handles test result storage and querying
├── exceptions/         # Custom framework exception classes
├── logging/            # Logging setup, formatting, and filtering
├── pytest_plugins/     # Plugins for customizing test discovery and result capture
├── resources/          # Static resources and backup files
├── rest/               # REST client interfaces and response helpers
├── runner/             # Scripts and objects for test execution
├── scanning/           # Handles scan and upload of test artifacts
├── ssh/                # SSH connections, prompts, and secure transfers
├── threading/          # Multi-threading infrastructure
├── validation/         # Generic input validation utilities
└── web/                # Web automation helpers (actions, conditions, locators)