devtime group of the flowx-ai Helm chart, and the chart deploys it with test runs off.
Before you start
You need:- The
flowx-aiHelm chart, with thedevtimegroup turned on:groups.devtime.enabled: true - MongoDB, reachable from the cluster
- The
flowx-ui-driver-saclient in Keycloak. See ui-driver service account - Recommended: a Kubernetes network plugin that enforces NetworkPolicy
Turn on test runs
1
Create the MongoDB user and database
Create a MongoDB user named
ui-driver with the readWrite role on a database named ui-driver. Store its password in a Kubernetes secret named mongodb-ui-driver-ui-driver, under the key password.ui-driver keeps queued test runs in this database, in the ui_driver_test_jobs collection.2
Check the service account
ui-driver signs in with the
flowx-ui-driver-sa client, a confidential client with service accounts on and the SA_FLOWX realm role. Authorization System creates it when it has Keycloak admin access and the service-accounts realm exists. Otherwise, create it yourself. See ui-driver service account.Its secret is the KEYCLOAK_UI_DRIVER_CLIENT_SECRET key of the keycloak-flowx-realm-clients secret.The chart reads
KEYCLOAK_UI_DRIVER_CLIENT_SECRET in the authorization-system pod even when the devtime group is off, so add the key on upgrade either way. See New secret key: ui-driver service account.3
Select the service account and the database
ai_render alias: ui-driver reads its database connection under that name. The flowx server and the uiDriver credentials and client are defined in the chart. See How does a service connect to a dependency?Set both together. With the database and no service account, ui-driver stops at startup.4
Point ui-driver at your platform
Set the two URLs a test run loads the UI flow from. Both must be reachable from the ui-driver pod.Use the same values as the Designer’s
BASE_API_URL and STATIC_ASSETS_PATH. See Designer setup. The chart has no default for AI_RENDER_STATIC_ASSETS_PATH, and without it ui-driver refuses every test run.5
Restrict who can reach ui-driver
Recommended: apply the network policy in Restrict who can reach ui-driver in the same release.
ui-driver configuration
The chart sets the service account and database variables (
KEYCLOAK_SA_*, AI_RENDER_MONGODB_*) from the values in step 3. Don’t set them by hand.
Caller check
ui-driver checks the token of each caller that submits or cancels a test run. The token must be signed with RS256, come from the expected issuer and audience, and carry theSA_FLOWX role in realm_access.roles. A caller without a valid token gets 401, and one without the role gets 403.
With Keycloak, ui-driver checks tokens against your service accounts realm and needs no extra setting. With another identity provider, set all three variables, and check that its tokens meet the requirements above before you turn on test runs:
If you override
FLOWX_LIB_CASCLIENT_IMPERSONATION_IMPERSONATINGCLIENTS on Application Manager, keep flowx-ui-driver-sa in the list, so test runs read Media Library files with the maker’s project permissions.
Integration Designer configuration
Integration Designer sends each test case to ui-driver over the cluster network.
Change it, and
AI_RENDER_CALLBACK_BASE_URL on ui-driver, only if the two services don’t reach each other under their default service names.
Restrict who can reach ui-driver
As defense in depth, let only Integration Designer, and the harness if you use it, connect to ui-driver. Render a NetworkPolicy for ui-driver that admits only pods labeledui-driver-client: "true", and add that label to the services that call it:
ClusterIP, as the chart deploys it. For the other NetworkPolicy settings, see How do I restrict network traffic to a service?
Harness renders
The Developer Agentic Harness renders the screens it builds through ui-driver and uses the same platform URLs. Set them on the harness to the values you gave ui-driver:
Without these, the harness still starts, but saves its edits without rendering them first.
Verify your setup
kubectl port-forward svc/ui-driver 8080:80, then curl localhost:8080/health, returns 200 with "jobs": {"enabled": true, "mongo": true, ...}. With test runs off, jobs is {"enabled": false}.kubectl get networkpolicy ui-driver lists the policy, and the integration-designer pods carry the ui-driver-client=true label.In the Designer, a UI flow test case runs to a result with screenshots. See Run UI flow test cases.
Troubleshooting
ui-driver stops at startup
ui-driver stops at startup
Symptoms: The pod restarts and the log says test jobs need the service account or test runs on.Solutions:
- Check that
idpClients: ["uiDriver"]is set together with theuiDriverdatabase - Check that
AI_RENDER_TEST_CONCURRENCYis greater than0
Every test run is refused
Every test run is refused
Symptoms: Test runs fail at once with an error that a run with the service account needs a setting.Solutions:
- Set
AI_RENDER_STATIC_ASSETS_PATHandAI_RENDER_API_URLon ui-driver - Check that both URLs are reachable from the ui-driver pod
Test runs never finish
Test runs never finish
Symptoms: UI flow test cases stay in progress until they time out.Solutions:
- Check that the
integration-designerpods carry theui-driver-client: "true"label, so the network policy lets them reach ui-driver - Check that ui-driver reaches Integration Designer at
AI_RENDER_CALLBACK_BASE_URL - Check that
GET /healthon ui-driver shows"mongo": true
Related resources
UI flow test cases
Create and run UI flow test cases in the Designer
ui-driver service account
Create the
flowx-ui-driver-sa clientConfigure the FlowX Helm chart
Service groups, dependencies and network policies
Integration Designer setup
Integration Designer configuration

