Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions backend/ai/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
"""
TestAble AI Engine

The intelligence layer that powers all AI-driven test automation.
This is where the magic happens - the brain that understands, acts, and verifies.

Components:
- engine.py: Core AI engine with Stagehand integration
- action_parser.py: Natural language action parsing
- assertions.py: AI-powered test assertions
- api_tester.py: Backend API testing capabilities
- test_runner.py: Comprehensive test orchestration
"""

from .engine import (
TestAbleAIEngine,
AIAction,
AIActionResult,
AIEngineConfig,
ActionType as AIActionType,
ActionStatus,
get_ai_engine,
create_ai_engine,
)
from .action_parser import (
ActionParser,
ParsedAction,
ActionType,
ElementType,
)
from .assertions import (
AIAssertionEngine,
Assertion,
AssertionResult,
AssertionType,
AssertionSeverity,
)
from .api_tester import (
APITester,
APITestResult,
APIEndpoint,
APITestSuite,
HTTPMethod,
)
from .test_runner import (
IntelligentTestRunner,
TestCase,
TestStep,
TestSuiteResult,
TestCaseResult,
TestType,
TestPriority,
TestStatus,
create_test,
run_test,
run_tests,
)

__all__ = [
# Engine
"TestAbleAIEngine",
"AIAction",
"AIActionResult",
"AIEngineConfig",
"AIActionType",
"ActionStatus",
"get_ai_engine",
"create_ai_engine",
# Parser
"ActionParser",
"ParsedAction",
"ActionType",
"ElementType",
# Assertions
"AIAssertionEngine",
"Assertion",
"AssertionResult",
"AssertionType",
"AssertionSeverity",
# API Testing
"APITester",
"APITestResult",
"APIEndpoint",
"APITestSuite",
"HTTPMethod",
# Test Runner
"IntelligentTestRunner",
"TestCase",
"TestStep",
"TestSuiteResult",
"TestCaseResult",
"TestType",
"TestPriority",
"TestStatus",
"create_test",
"run_test",
"run_tests",
]
Loading