Test Plan for E2E Automation
Objective
The objective of this Test Plan is to validate the functionality, reliability, and performance of the tax document ingestion and processing platform through a comprehensive backend-focused E2E automation framework. The framework will integrate with and test backend APIs, Azure Service Bus (SB) flows, BLOB Storage operations, and SQL DB persistence across a phased rollout of supported AI extraction tools.
The focus on backend automation - excluding the Document AI UI- stems from practical priorities:
- Increased Test Stability in complex microservices environment
- Faster feedback in CI/CD
- Reduced flakiness due to browser or UI changes
- Reliability and repeatability in headless environments (e.g., AKS)
Scope
In Scope
- Fluxx Platform, Document AI, SaaS deployment
- Upload, Scanning, and processing of various document types via Blob and/or API
- Service Bus message flow validations and schema conformity
- Extraction result comparison with Golden Samples (GS) for:
- JSON Structure/Schema
- Key-value data
- Confidence score (on JSON) validation with threshold checks
- SQL DB and blob storage persistence and metadata validation
- TBD: Post-processing flows (External Blobs, Data Lake) integration with schema (JSON data) compliance
- Performance and throughput analysis (files per minute, extraction latency)
- E-mail file intake - TBD
Out of Scope
- Classifier Service
- File splitting
- File conversion
- Post-Processing
- Document AI UI interactions
- Model accuracy tuning or training validations (owned by Data Science team)
- UI-triggered-only flows (unless backend alternatives are available)
Product Scope & Use Case Coverage
End-to-End Test Flow
Steps in Flow
- Registration Service
- Create Registration Endpoint POST
- Creates records in SQL DB
- Upload file to blob (email, direct)
- Triggers Blob Created Event - Submitted-File
- Status Check service: created
- File Validation
- Scan, file type, quarantine if bad
- Status Check service: validated OR
- Status Check service: failed validation
- Save to Internal file storage - AZ blob
- Verify file present in internal storage bucket
- Status Check service: copied OR
- Status Check service: failed copying
- File Intake file service
- Publishes new file related data event to SB - accepted-file topic
- Classify - OOS for MVP
- Convert
- Splitter
- Process
- Document Extractor(s)
- External processing, polling for isReady: True
- Raw Extract Data Storage - Az Blob
- Status Check service: extracted
- Post-Processing - OOS
- Postal Service
- To-Send topic created, sends http POST or SB message
- Completion
- Status Check Service: completed
- UI support for current status - GET /status/files/<id>
Functional Requirement Verifications
Non-Functional Requirement Verifications (TBD)
- Performance: Time to extract per file batch (10, 50, 100). Files from the primary test dataset used for functional testing
- Throughput: Parallel upload handling, Blob lag
- Reliability: Retry logic, SB message persistence and reprocessing validation
- Observability: Timestamps for SB/Blob checkpoints
- Scalability: Simulate high file count across doc types (TBD)
Additional Information
Integration with Azure Service Bus
- Each processing module emits completion events via Azure Service Bus.
- Test Framework subscribes to relevant SB topics/queues to:
- Detect when file processing is complete
- Trigger result verification against GS
- Capture delays and issues
Test Data
- 5 PDF documents from APAI team will be uploaded and extracted
- ClientId 66 in DocsAI is used
- Client created during runtime with DocsAI Extractor details