Framework Execution Workflow

Overview

This section explains the end-to-end execution workflow of the MSS Automation Framework, from test invocation to report generation.

This workflow helps new users understand what happens internally without exposing framework implementation details.

High-Level Execution Flow

+----------------------+
|  run_scenario.py     |
+----------+-----------+
           |
           v
+----------------------+
| Load Configuration   |
| (execution_config)   |
+----------+-----------+
           |
           v
+----------------------+
| Read Scenarios       |
| (scenario.json)      |
+----------+-----------+
           |
           v
+----------------------+
| Execute Keywords     |
| (test_steps.json)    |
+----------+-----------+
           |
           v
+----------------------+
| Generate Reports     |
| & Dashboard          |
+----------------------+

Step-by-Step Execution Flow

1. Test Execution Trigger

Execution starts when the user runs:

python run_scenario.py

This script acts as the single entry point for all executions.

2. Configuration Loading

The framework loads execution-level configuration: - Execution mode (sequential / parallel) - Browser strategy - Timeouts - Reporting preferences

Configuration defines how tests run, not what tests run.

3. Scenario Discovery

The framework reads scenario definitions and: - Filters enabled scenarios - Applies execution filters (module, category, priority) - Resolves test data and step files

Each scenario becomes an execution unit.

4. Keyword Execution

For each scenario: - Test steps are read from test_steps.json - Keywords are mapped to framework actions - Parameters are resolved using test data

Execution may run sequentially or in parallel.

5. Reporting & Dashboard Generation

After execution: - Step-level results are captured - Scenario reports are generated - Optional management dashboards are created

Reports provide: - Pass/Fail status - Execution trends - Failure analysis

Execution Summary

Phase

Purpose

Configuration Load

Define execution behavior

Scenario Reading

Identify what to execute

Keyword Execution

Perform test actions

Reporting

Present execution results

Conclusion

This structured execution workflow ensures: - Predictable execution - Clear separation of concerns - Easy scalability - Minimal learning curve for new users