Skip to main content

Python Testing

Test your Python web applications with AI-powered remote browsers. No code installation required.

How It Works​

DebuggAI connects to your running Python development server and tests it using remote browsers. Our AI agents understand Flask routes, FastAPI endpoints, Django functionality, and Python web frameworks.

Quick Setup​

1. Start Your Python App​

python app.py              # Flask application
uvicorn main:app --reload # FastAPI application
python manage.py runserver # Django application

2. Create a Test​

  • Press Cmd+Alt+C in VS Code
  • Describe what to test: "Test user signup form with email validation"
  • DebuggAI runs the test using remote browsers

3. Get Results​

  • Screenshots and recordings in VS Code Test Results panel
  • Pass/fail status with detailed analysis
  • AI insights about Python-specific functionality

Common Test Examples​

Flask Applications​

"Test Flask form submission creates new user record"
"Check login route authenticates and redirects correctly"
"Verify file upload endpoint processes images properly"

FastAPI Applications​

"Test FastAPI registration form with validation errors"
"Check OAuth login flow redirects to dashboard"
"Verify WebSocket chat functionality sends messages"

Streamlit & Dash​

"Test Streamlit dashboard loads data visualization"
"Check Dash interactive charts respond to user input"
"Verify data filtering updates charts in real-time"

Python Features Supported​

DebuggAI automatically handles:

  • Flask - Tests routes, forms, and template rendering through web interface
  • FastAPI - Tests API endpoints and interactive docs through frontend
  • Django - Full Django support including admin, forms, and authentication
  • Streamlit - Tests data visualization and interactive components
  • Dash - Tests interactive dashboards and data analysis apps
  • Tornado - Tests asynchronous web applications and WebSocket connections

Frameworks Supported​

  • Flask - Lightweight web framework with template support
  • FastAPI - Modern API framework with automatic documentation
  • Django - Full-featured web framework (see Django Testing)
  • Streamlit - Data science web app framework
  • Dash - Analytical web application framework
  • Tornado - Asynchronous networking library

Troubleshooting​

Common Issues​

  • Port mismatch: Ensure extension is configured for your Python server port
  • Virtual environment: Make sure your Python app is running in the correct environment
  • Dependencies: Verify all required packages are installed

Getting Help​

  • Check Troubleshooting Guide for common solutions
  • Review test results and screenshots for debugging hints
  • Contact support through debugg.ai if needed

CI with Debugg CLI​

Add PR automation with the Debugg CLI for Python stacks:

  • Use Django or generic templates in Debugg CLI Workflows
  • Start your server (Flask/FastAPI/Django) and set TEST_URL
  • Store DEBUGGAI_API_KEY as a secret in your repository

Next: Learn about VS Code Extension installation.