Skip to content

deepakmethre07/Python-Test-Automation-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avi Automation Framework

A Python-based automation framework for managing VMware Avi Load Balancer resources via REST API. This tool supports parallel execution of test cases and includes a 4-stage validation workflow.

Structure

  • main.py: Core logic and entry point.
  • config.yaml: Configuration for API credentials and test cases.
  • requirements.txt: Python dependency list.

Setup

  1. Install Python 3.8+
  2. Create a Virtual Environment:
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install Dependencies:
    pip install -r requirements.txt

Configuration

Edit config.yaml to set your Controller URL and credentials:

api_config:
  base_url: "https://your-avi-controller"
  username: "admin"
  password: "..."

Execution

Run the main script:

python main.py

Features

  • Parallel Execution: Runs test cases in separate threads.
  • Workflow:
    1. Pre-Fetcher (Data Gathering)
    2. Pre-Validation (State Check)
    3. Task (Action/PUT request)
    4. Post-Validation (Verification)
  • Mock Stubs: Includes placeholders for SSH and RDP connectivity checks.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published