GenAI For Tester
  • Introduction
  • Session 1: Introduction to Generative AI in Testing
    • 1. Overview of Generative AI
    • 2. Popular AI Models and Their Usage
    • 3. Setting Up AI Tools for Testing
    • 4. Prompt Engineering for Software Testing
      • Prompt Managerment
  • Session 2: AI-Assisted Test Case Generation
    • Exam #1: eCommerce Domain - Checkout Flow
    • Exam #2: Mobile App - User Login and Authentication
    • Exam #3: API Testing - User Registration Endpoint
  • Session 3: Advanced AI in Test Automation
    • 🐍 Python 3.12 Setup Guide
    • Chrome AI Asistant
    • Setup Github Copilot in VS Code
    • Playwright MCP Server
    • SQLite MCP to interact with your DB
    • Browser-use Browser AI Agent
    • Postman PostBot AI for API Testing
    • Self Healing Elements with AgentQL and Playwright
  • n8n flexible AI workflow automation for technical teams
    • Setup n8n with docker
  • Build small thing with LLM
    • Create chatbot with gemini model
    • Create R.A.G with germini
    • Create AI Agent tool for query DB
  • Get selenium locator with llm and java
  • Group 1
    • Setup Local DB
Powered by GitBook
On this page
  • https://github.com/modelcontextprotocol/servers/blob/main/src/sqlite/README.md
  • Query SQL with natural language
  1. Session 3: Advanced AI in Test Automation

SQLite MCP to interact with your DB

https://github.com/modelcontextprotocol/servers/blob/main/src/sqlite/README.md

Query SQL with natural language

SQLite MCP server

  1. Setup Demo DB with sqlite

  • install VSCode/Cursosr extension SQLite Viewer

  • generate data

    • create file name mcp_demo.db

    • using python code to setup data

        import sqlite3
    
        # Connect to SQLite database (or create it if it doesn't exist)
        conn = sqlite3.connect('mcp_demo.db')
    
        # Create a cursor object
        cursor = conn.cursor()
    
        # Create a table
        cursor.execute('''
        CREATE TABLE IF NOT EXISTS mcp_data (
            id INTEGER PRIMARY KEY AUTOINCREMENT,
            sensor_name TEXT NOT NULL,
            sensor_value REAL NOT NULL,
            timestamp DATETIME DEFAULT CURRENT_TIMESTAMP
        )
        ''')
    
        # Insert sample data
        cursor.execute("INSERT INTO mcp_data (sensor_name, sensor_value) VALUES ('Temperature', 25.5)")
        cursor.execute("INSERT INTO mcp_data (sensor_name, sensor_value) VALUES ('Humidity', 60.0)")
    
        # Commit changes and close the connection
        conn.commit()
        conn.close()
    
        print("Database created and sample data inserted.")
    • setup MCP server with Cursor like:

     "sqlite": {
      "command": "uv",
      "args": [
        "run",
        "mcp-server-sqlite",
        "--db-path",
        "/path/automation-test-ai/mcp_demo.db"
      ]
    

MCP-Database-server

  • Code: https://github.com/executeautomation/mcp-database-server

PreviousPlaywright MCP ServerNextBrowser-use Browser AI Agent

Last updated 2 months ago