Openframe Test Service Core
OpenFrame Documentation
Get the most out of OpenFrame · Book 30 minutes with Conrad, 25 years in IT. He'll show you what Mingo and Fae can take off your list.
OpenFrame Documentation
Openframe Test Service Core is the shared integration and end-to-end testing library used by the OpenFrame test service. It provides reusable authentication flows, API-response DTOs, database lookup helpers, UI page objects, retry filters, test execution infrastructure, reporting integrations, and domain-focused test suites.
The module is supplied by the upstream dependency com.openframe.oss:openframe-test-service-core at version 7.0.11. In this repository, the test-service artifact is published as com.openframe:openframe-test.
Openframe Test Service Core standardizes how automated tests interact with a deployed OpenFrame tenant:
flowchart TD
Runner["Test Runner Core"] --> Suites["Functional Test Suites"]
Runner --> Reporting["Slack Listener"]
Suites --> Auth["Authentication Flows"]
Suites --> ApiDtos["API and GraphQL DTOs"]
Suites --> Database["Database Collection Helpers"]
Suites --> UiPages["UI Page Objects"]
Suites --> Retry["Test Retry Filters"]
Auth --> Tenant["OpenFrame Tenant"]
ApiDtos --> Tenant
Database --> Mongo["MongoDB"]
UiPages --> Frontend["OpenFrame Frontend"]
Frontend --> Tenant
Retry --> Gateway["OpenFrame Gateway"]
Gateway --> Tenant
Reporting --> Slack["Slack Transport"]
The module is a test-facing integration layer. It does not implement the production API, authorization server, frontend, database, or managed-device runtime. Instead, it provides the contracts and orchestration needed to verify those systems through their deployed interfaces.
sequenceDiagram
participant Runner as Test Runner
participant Suite as Test Suite
participant Tenant as OpenFrame Tenant
participant Verify as Test Verification
participant Report as Slack Listener
Runner->>Suite: Discover and execute selected tests
Suite->>Tenant: Authenticate and invoke API or UI workflow
Tenant-->>Suite: Return response or rendered state
Suite->>Verify: Assert typed DTO, database state, or UI result
Verify-->>Suite: Test outcome
Suite->>Report: Publish lifecycle result
Report-->>Runner: Aggregate run summary
| Area | Responsibilities | Core documentation |
|---|---|---|
| Authentication | Drives deployment-specific login redirect flows and extracts test authentication cookies. | Auth Flow |
| Test infrastructure | Discovers, filters, lists, and executes JUnit Platform test plans. | Test Runner Core |
| Reliability helpers | Applies narrow retries for gateway rate limits and safe transient gateway failures. | Test Helpers |
| Reporting | Aggregates JUnit outcomes and sends reports through Slack or logs. | Slack Listener |
| Database access | Provides typed MongoDB lookup helpers for organizations and tenants. | Db Collections |
| UI automation | Encapsulates Playwright interactions for authentication, devices, remote access, monitoring, and scripts. | Ui Pages and Ui Login Flow |
| API contracts | Defines test-side DTOs for device, ticket, script, schedule, software, knowledge-base, notification, and External API responses. | DTO component documentation |
| Core tenant coverage | Tests tenant administration, devices, logs, scripts, policies, remote access, tickets, time tracking, software, and onboarding. | Core Tests |
| AI coverage | Validates Fae client-assistant and Mingo administrator-assistant behavior through independent assertions. | Ai Tests |
| External API coverage | Verifies API-key authentication and public API contracts for customers, devices, logs, tools, knowledge base, tickets, and pagination. | External Api Tests |
| Fixture lifecycle | Creates and removes a shared administrator fixture for dependent test phases. | Admin Tests |
IAuthFlow defines the shared login workflow contract.AuthFlowOSS and AuthFlowSAAS implement OSS and SaaS redirect behavior.TestRunner manages JUnit discovery and execution.TestRunnerConfig configures the target package and execution listeners.Test exposes discovered leaf-test metadata.OrganizationsCollection and TenantsCollection provide MongoDB test-data lookups.RateLimitRetryFilter handles gateway 429 responses with paced retry behavior.TransientGatewayRetryFilter retries safe requests after transient 502 or 504 gateway failures.SlackListener aggregates JUnit outcomes.SlackClient sends reports through a Slack bot, webhook, or application logs.The page-object layer includes:
AuthMethodPage and SsoLoginPage for browser authentication.DevicesPage, DeviceDetailsPage, and NewDevicePage for device lifecycle workflows.RemoteDesktopPage, RemoteShellPage, and FileManagerPage for remote access.MonitoringPage for monitoring policies and queries.ScriptsPage and RunScriptPage for script management and execution.UILoginFlow for the end-to-end browser login workflow.The suite classes are organized by test concern:
Use the following component documentation for focused implementation details:
The module source is maintained in the OpenFrame OSS Library under:
openframe-oss-lib/openframe-test-service-core/src/main/java/com/openframe/test
Its main packages separate concerns by role:
api.auth for authentication-flow helpers.data.db.collections for MongoDB test lookups.data.dto for typed API and GraphQL response contracts.helpers for Rest Assured retry filters.listener for JUnit result reporting.pages for Playwright page objects.runner for JUnit Platform execution support.tests for functional, AI, and External API suites.