Login & Reuse
The Login & Reuse card (on the Settings tab) tells msg.ZenTestAI how the application's authentication works. For background, see Login Flow.
| Field | Description |
|---|---|
| XPath: Detect if authentication was successful | Optional XPath that, when present on the page, confirms the user is logged in. By default msg.ZenTestAI uses heuristics; provide an XPath when those heuristics fail. |
| Reuse authentication | When on, msg.ZenTestAI shares cookies between subsequent test runs in an execution plan, so the login step doesn't repeat every time. |
| Logout Script | Optional reference to a saved script that logs the user out — useful when the application has no clear logout UI or needs several steps. |
Additional Header Fields
A collapsible table where you can inject custom HTTP headers for specific hosts. Each row defines:
- Host Name — the host the header should be attached to.
- Header Name — auto-completes the most common HTTP headers (
Authorization,X-CSRF-Token, …). - Header Value — the value to send. For
Authorization: Basic …headers a helper button base64-encodes a username / password for you.
Use cases: passing API keys for tests against APIs that sit alongside the UI, attaching tenant or environment headers required by your gateway, or injecting a Basic Auth header for protected internal sites.