Hex Testes — Hit Status docs
Hex Testes creates automated tests from a conversation. You describe what needs to work ("sign in with the test user, search for sneakers and see the item…
Hex Testes
Hex Testes creates automated tests from a conversation. You describe what needs to work ("sign in with the test user, search for sneakers and see the item in the cart") and Hex explores the system, writes the steps, runs them until they pass and validates three times before publishing. After that, the tests run on schedule and on every deploy.
The module's principle: AI creates the test; routine execution is a script, with no AI. That is why runs are fast, cheap and always give the same result for the same situation.
The Hex Tester
The Hex Tester is the conversation where tests are born. It opens the site in a live browser and shows each screen, calls the API, reads Postman collections, OpenAPI or HAR files you attach, asks for whatever is missing (credentials go straight to the vault, never into the conversation) and only saves the test after it passes three times. The order it follows, from cheapest to most expensive:
- Site X-ray: availability, speed (Core Web Vitals), accessibility (axe-core), JavaScript errors, broken links, security (certificate, headers, cookies, mixed content), mobile and SEO.
- Hit Status monitors for the 24/7 basics (up, certificate, keyword), with your confirmation.
- Smoke tests of the main pages, with ready-made checks.
- Critical journeys (login, search, cart, sign-up) and APIs.
Three kinds of test
- API: HTTP requests in sequence, with values passed from one step to the next (for example, the login token) and checks on status, JSON fields, headers, text and response time. Hex reads the OpenAPI documentation or Postman collection you paste and also looks on its own at
/openapi.json, /swagger.json and /v3/api-docs. - Web journey: a real browser (Chromium) opens the site, clicks, fills in and checks what appears, on desktop or mobile. Each run keeps a video, the Playwright trace and the final or failure screen.
- Code: for rules that steps don't express well (calculations, loops, data cross-checked across several routes, cases from a table), Hex writes the test in Python (pytest and requests) or JavaScript. Each test function becomes a line in the result. The code runs isolated: it only talks to public addresses, with no access to the server's files, processes or variables, and with time and memory limits.
Tests that prove the rule
Hex tests what you asked for, not today's snapshot. Instead of pinning position, price or number of items, it uses checks that stay valid when the data changes:
- All items in an API list (
items[*].status eq ativo), no duplicates ([*].id unique) and in order ([*].preco sorted_asc). - For each item: keeps a list (for example, the order ids) and repeats the next request for each one, saying which item failed.
- On screen: count elements, check that a list is sorted (prices, dates), store a value and compare it later (the price of the cheapest product is the same in the cart) and check text inside a specific element.
- Code on the page (JavaScript) and code checks on the API response, for rules specific to your business.
Hex never works around the behavior under test: it doesn't inject scripts, doesn't call internal functions instead of clicking and doesn't change the page to "make it pass". If the site is flaky, it explains what it found (for example, a page script that didn't load) and asks how you would like to proceed.
Test data and environments
- Test data: upload a CSV (Settings → Test data) or ask the Hex Tester to build the table. In the test, choose the data set and the mode: each row (proves every case, up to 20 rows per run on the web and 100 on the API), random (a different case on each run, good for cyclic tests) or first. In the steps, use
{{data.column}}. In code tests, the rows arrive in hitstatus.DATA (Python) and vars.data_rows (JavaScript). Exported files carry the CSV and the Python runs once per row. - Environments: a test can have staging, production and others, each with its own address and variables (different credentials in the vault). The first is the default; you choose the environment in "Run now", and a deploy to an environment runs in the environment with the same name (prod, produção and production count as the same; homolog, homologação and staging too).
- Failures outside the cycle: when a test without a monitor fails on a deploy, a run by tag or a scenario, the organization's alert channels get the notice.
Files in several languages
Each saved version generates the test files to run in your CI, always from the validated version:
Type · Files
Web journey · Playwright in TypeScript, Python (pytest + playwright)
API · Python (pytest + requests, executed and checked on save), Postman collection (Newman), k6 script
Code · the Python or JavaScript file itself
Credentials become environment variables (variables.example.env lists which); no vault value is written into the files. If you need another language (Java with RestAssured, C#, Robot Framework, Cypress), ask Hex: it writes the file and marks it as not executed by Hit Status.
Ready-made checks and special steps
- Dismiss cookie banner (chooses the strictly necessary option), accessibility, speed, links and no JavaScript errors: they become test steps and run on every execution.
- Visual comparison: the first run stores the reference image; the next ones flag when the screen changes beyond the threshold and keep the image with the differences highlighted.
- Test inbox: each run has its own address,
{{inbox.address}}. Use it for sign-up or password recovery; the Wait for e-mail step picks up the link ({{email.link}}) and the code ({{email.code}}). - Light load on APIs: up to 20 concurrent users for up to 60 seconds, with p95 and error rate limits. Verified domains only.
- Alternative targets: important clicks and fields keep other ways of finding the same element. If the site changes a button, the test uses the alternative, keeps passing and proposes pinning the new target for you to approve.
How Hex creates a suite
- Explores: reads the API or opens the site in a browser and reads the screen.
- Plans: writes the plan in plain language and the executable steps.
- Runs and fixes: runs the steps; when something fails, it gets the actual response or screen and fixes it, up to three times.
- Validates: only offers to publish after passing three times in a row.
- Publishes: on publishing, the suite becomes a "Test suite" monitor, with alerts, incidents, on-call, status pages and SLA like any other monitor.
When a suite fails
The run fails and is retried once before becoming an alert, so a blip isn't treated as a failure. If it keeps failing, Hex reads the result and the screen and decides:
- The system broke: 5xx error, error page, timeout, wrong data. The monitor goes down and the incident is opened.
- The test is outdated: renamed button, field that moved. The monitor is degraded and Hex prepares a fix for you to approve, already tested once.
You can also ask for adjustments on the suite screen ("also check the cart total"): Hex writes the new version and it waits for your approval.
Credentials and 2FA
Keep the passwords and tokens of the test accounts in the Vault (there is a setup wizard for login, token, 2FA and other values). In tests, use {{secret.NAME}}. For accounts with two-factor authentication, store the TOTP seed (base32) and use {{totp.NAME}}: the 6-digit code is generated on the spot. Values are encrypted, never appear in results and are not sent to the AI. If you type a password in the conversation with the Hex Tester, it stores it in the vault and the test uses only the name; saving rejects tests with a written password.
Active tests and domains
Reads work on any public site. Tests that fill in forms or write data only run on domains you prove are yours, so nobody uses Hit Status against someone else's system. The verification wizard accepts three proofs: a TXT record in DNS (_hitstatus.yourdomain.com), a file at /.well-known/hitstatus-verify.txt or a meta tag on the home page. A domain already verified for company SSO counts automatically. Practice sites (such as saucedemo.com, httpbin.org and jsonplaceholder.typicode.com) are open for experimenting.
Like monitors, tests only reach public addresses. Captchas and anti-bot protections are not bypassed: allow Hit Status in your WAF (see Allowing Hit Status in the firewall and WAF) or turn off the captcha for the test account.
Tests on every deploy
Check Also run on every deploy on the suite (optionally with the service tags) and notify Hit Status at the end of your pipeline:
curl -X POST https://hitstatus.pro/api/hooks/deploy/YOUR_TOKEN \
-H "Content-Type: application/json" \
-d '{"service":"checkout-api","version":"v2.31","commit":"abc1234","author":"ana"}'
The response includes a status_url to follow the triggered suites. The settings screen shows a ready-made GitHub Action step that waits for the tests and fails the job if any break, blocking the deploy. You can also use the GitHub webhook (deployments, releases, workflows and pushes) without touching the pipeline, and the Deploys screen has a ready-made prompt for your coding agent to set everything up in the repository.
With a token saved in the Vault as GITHUB_TOKEN, when a deploy's tests finish the commit gets the hitstatus/testes status (which can block the merge) and the pull request gets a comment with the result.
Scenarios, tags and runs
- Scenarios chain tests in a sequence (drag to build), with a schedule, stop on first failure and trigger on every deploy.
- Tags: run all active tests with a tag at once, from the screen, through the API (
POST /api/testes/run-tag) or by asking the Assistant. - Priority queue: deploy runs go ahead of scheduled ones and survive restarts. Browser runs can run on executors separate from the main server.
- On the collector: API tests can run on the collector, from inside your network, for internal systems.
Allowances
· Essential · Pro
Suites · 5 · 25
API runs per month · 20 thousand · 100 thousand
Browser runs per month · 2 thousand · 10 thousand
Creations and adjustments with Hex per month · 10 · 40
Hex analyses of test failures per month · 30 · 100
Videos and traces kept · 14 days · 30 days
Minimum interval (API / browser) · 5 / 15 min · 1 / 5 min
How a creation is counted. Each conversation with the Hex Tester uses one creation, which covers the full work of a typical request: exploring, writing, running, reviewing, validating three times, generating the files and publishing. Several tests saved in the same conversation cost nothing extra. Very long conversations use another creation each time they go past that size, and the count appears next to each conversation. Asking for an adjustment on the suite screen also counts as one creation. Routine runs, scheduled or on demand, never use creations: they count toward the run allowance. Code tests count as API runs.
After publishing. The executor runs it, with no AI. When a scheduled test fails, it retries once and, if it keeps failing, opens an incident and notifies the chosen channels. When publishing (or on the monitor screen) you decide whether the monitoring Hex steps in: follow the organization's setting, always analyze and escalate, or alerts only. With AI in your monitoring plan (Starter or higher), Hex's analysis uses the plan's analyses. Without AI in the plan, it uses the Hex Testes allowance of Hex analyses of failures: each analyzed incident counts as one, with the follow-up and closing report for that incident included. Failures with a ready-made diagnosis or grouped with another alert don't count. If the allowance runs out, the incident continues with the alerts and the Hex Testes diagnosis, and extras (50 analyses for US$ 8 (R$ 39 in reais)) apply as soon as they are bought.
When the month's allowance runs out, prepaid extras (a thousand browser runs for US$ 4, creations with Hex at US$ 2.40 each; R$ 19 and R$ 12 for accounts billed in reais) are used before stopping; without extras, scheduled runs stop until the next month and the monitor tells you. The month's browser minutes appear on the Tests screen.