# QA360 Example: Web Crawler
# Automatically discover and generate tests for a web application

version: 2
name: web-crawler-tests
description: Auto-generated tests from web crawling

# The crawler will analyze the target site and generate test packs
# Run with: qa360 crawl https://example.com --output my-pack.yml
# Or use this pack as a starting point

gates:
  ui-crawl:
    adapter: playwright-ui
    enabled: true
    config:
      baseUrl: "https://example.com"

      # Crawler will discover pages and elements automatically
      pages:
        - url: "/"
          # Crawler discovers:
          # - Links and navigation
          # - Forms and inputs
          # - Buttons and actions
          # - Dynamic content

      # Playwright++ features for crawled pages
      artifacts:
        screenshots: "only-on-failure"
        video: "never"
        trace: "on-first-failure"

execution:
  default_timeout: 60000
  default_retries: 1
  on_failure: continue
  parallel: false
