Skip to main content

Changelog

All notable changes to TestFly are documented here.


[Unreleased]​

Security​

  • API request URLs are masked in logs and reports. ApiClient masked headers but not the URL, so a key sent with ApiAuth.apiKeyQuery(...) (or userinfo, access_token, a signature) appeared in the [API] step log, the Exchange step, the cURL line (api.logCurl), ApiException / ApiAssertionError messages, testfly-report-data.json and testfly-report.html. Userinfo is now ***@host and the value of api_key, apikey, api-key, key, token, access_token, refresh_token, id_token, client_secret, secret, password, passwd, pwd, sig, signature, auth, authorization, session, sessionid, code, every name in the new api.maskedQueryParams list and the parameter name passed to apiKeyQuery is ***. The request still carries the real value. Behaviour change: ApiException.getUrl() and ApiAssertionError.getUrl() now return the masked URL (signatures unchanged), so code that read the secret from them no longer gets it; ApiResponse.requestUrl() still returns the real one. A URL that cannot be parsed is rejected with Invalid request URL: <masked URL> and no cause.
  • Custom API-key and HMAC header names are masked. Only Authorization, Cookie, X-Api-Key and api.maskedHeaders were masked, so a key sent as X-Auth-Token, Ocp-Apim-Subscription-Key or X-RapidAPI-Key appeared in the Headers: step line and the cURL line. A header is now masked when a word of its name (split on -, _, ., camelCase and digits) is key, token, auth, secret, signature, session, cookie, password or credential, or a compound such as apikey, csrf or xsrf (so X-Auth-Token and api_key are masked, author and keyword are not), and the header names given to ApiAuth.apiKey(...) and the HMAC keyHeader / signatureHeader are always masked.
  • Failing-assertion messages no longer embed secrets from the response body. ApiException / ApiAssertionError messages (which reach JUnit XML, Allure, the HTML report and AI analysis) carried up to 500 characters of the raw body, so a login response leaked its access_token and refresh_token. The message now shows the body masked and capped at 300 characters: values of sensitive JSON keys become "***" recursively, and in other text sensitive key=value pairs and JWT-like or long base64 runs are masked. Actual values read from a sensitive path or header are masked too. Behaviour change: the Body: part of these messages is shorter and masked; getBody() is unchanged.
  • OAuth2 token errors no longer include the response body (ApiAuth.oauth2*). The message is the masked token URL, the HTTP status and, only when it matches the RFC 6749 charset, the error code, as ADR 0008 already requires for load tests.
  • Credentials are not forwarded on a cross-origin redirect. The JDK client forwarded custom credential headers (for example X-Auth-Token) to the redirect target; Authorization and Cookie were already dropped by the JDK. ApiTransport now follows 301/302/303/307/308 itself (same rules and limit of five requests as before) and, when the origin changes, drops Authorization, Cookie, every header with a sensitive name and sensitive query parameters of the target (Proxy-Authorization is kept, as the JDK does, because it is meant for the proxy). Checked against Redirect.NORMAL on a local server for GET, HEAD, POST, PUT and DELETE with 301, 302, 303, 307 and 308, the five-request limit (the last redirect is returned) and a Location with a fragment: identical. Deliberate differences: a cross-origin 307/308 is sent as a body-less GET instead of replaying the body, and the request timeout is a deadline for the whole chain instead of per hop. Cookies of the final response are stored under the URI that set them, not the original one. Same-origin redirects are unchanged. The JDK load engine (JdkLoadEngine) had the same custom-header leak and now uses the same code.
  • Stored XSS in the HTML report. The Build Metadata block wrote CI values (branch, commit, repository, actor, job, agent, base URL, grid URL, browser, profile) into the page unescaped, and GITHUB_HEAD_REF and the other branch variables are controlled by a fork pull request. All values are now HTML-escaped, and the build URL becomes a link only for http(s):// (otherwise it is shown as text).
  • CI repository and build URLs are redacted. GIT_URL, CIRCLE_REPOSITORY_URL, CI_REPOSITORY_URL (GitLab: https://gitlab-ci-token:<token>@host/...) and the build URL are passed through the URL redactor, so testfly-metrics.json, testfly-report-data.json, testfly-report.html and the JUnit XML properties hold https://***@host/....
  • The HTML report loads Chart.js 4.6.1 with Subresource Integrity (integrity="sha384-...", crossorigin="anonymous") instead of the unpinned latest build.
  • Notification webhooks and Xray tokens are not printed. A malformed Slack/Teams webhook URL is parsed through the URL redactor and the failure line prints only the exception class; an Xray Cloud token that cannot be parsed prints the HTTP status and body length instead of the body. A malformed webhook URL is reported as IllegalArgumentException: invalid webhook URL without the URL, because the secret of a Slack or Teams webhook is in its path, which the URL redactor does not mask.
  • More complete body masking. Authorization: Bearer <token>, Basic <base64>, Digest and Token credentials are masked in text, string values inside JSON bodies get the same text masking (api_key=..., JWTs in free text), and an actual value shown in an assertion message is masked for JWT-like and long base64 runs. A non-JSON 200 OAuth2 token response is reported as response is not JSON with no cause (Jackson quotes its input). The Base URL and Grid URL in the HTML report and its data JSON have their userinfo masked.
  • act() NAVIGATE steps can no longer be steered to another site (prompt injection). A NAVIGATE target came from the model, which reads untrusted page text, and http(s) and file:// URLs were opened as given; a cached plan was replayed without the model. Now only http and https are allowed (file:, javascript:, data:, chrome:, about: and others are rejected, as are control characters, spaces, backslashes, userinfo and a missing host), a relative path resolves against execution.baseUrl, and an absolute or // target must have the scheme, host and effective port of execution.baseUrl or a host of the new ai.allowedNavigationHosts list (host for any port, host:port for one; default empty). The whole plan is checked before its first step runs, a cached or Auto-POM plan is checked again on every replay (an unsafe one is invalidated and the model is asked again), and an unsafe plan is never cached (ActionCache.put refuses it too). Hosts are read as written, so web_app:8080 (a compose service name) works. Scope: only NAVIGATE steps are checked; a click or form submission that leaves the site, and a server-side or open redirect after a step, are not, and the origin after an action is not enforced. Behaviour change: act("Navigate to https://other-site/...") now fails with IllegalArgumentException unless the host is on the origin of execution.baseUrl or in ai.allowedNavigationHosts; ActionExecutor.resolveTargetUrl throws for such targets. New TestFlyConfig.Ai.getAllowedNavigationHosts() / setAllowedNavigationHosts(...) (@TestFlyApi(since = "1.2.0"); an allowlist entry with a scheme, wildcard, path or unbracketed IPv6 never matches and is logged once as a WARNING).
  • Less data goes to third-party AI providers. The failure-analysis and patch prompts sent the raw page URL, error message, stack trace and step names, and the healing and act() prompts sent the raw URL; DomPruner kept every value attribute. URLs now lose userinfo, query and fragment; error messages, stack lines and step names have URLs reduced the same way and Bearer/Basic credentials, key=value pairs with a sensitive name, JWTs and long hex or base64 runs masked; DomPruner drops value on <input> elements of type password or hidden and on inputs whose name, id or autocomplete contains token, secret, key, otp, code, pass, pwd, csrf or xsrf (and on a <button> or <option> whose own name or id looks like that), removes <textarea> contents and <meta> content named csrf, xsrf or token, and strips the query and fragment of href, src and action values; it works in one linear pass and returns an empty DOM instead of the raw page on a pathological input. The aiAssert / assertWithAi prompts get the same URL and title treatment. The act() goal is still sent as written, because the model plans from it. The new docs-site section "Data sent to AI providers" lists what is sent.
  • The action cache keeps secrets off disk, and goals are masked in logs. A plan with a TYPE step into a secret-looking field (password, secret, token, OTP, PIN, CSRF, key) or with a JWT-shaped value (LocalIntentResolver copies quoted goal values, including passwords, into TYPE steps) stays in the in-memory cache and is not written to .testfly/action-cache.json; so does a plan whose goal contains a secret (it changes under the redactor) or whose NAVIGATE value has a query or fragment, and entries that older versions wrote to the file are dropped on the next save. The file is written owner-only (0600) on POSIX through a private temporary file and a move, so an older world-readable file is replaced; elsewhere a plain file is written. The format and reading are unchanged. ActionCompiler and ActionExecutor log the goal masked, on one line and cut at 80 characters.
  • Failure messages no longer print mail bodies, secret column values or grid credentials. Email.assertBodyContains shows the subject, the expected text and an excerpt of at most 120 characters with URLs as <url>, digit runs of four or more and letter-digit runs of six or more as *** (the subject gets the same treatment), instead of the whole body. DbClient.assertRowExists / assertNoRow and DbQuery.assertValue print *** for columns with a credential word (password, token, secret, key, ...) or hash, salt, ssn, card in the name. RemoteDriverProvider reports a malformed execution.gridUrl with userinfo masked (also without a scheme, as in user:KEY@host:4444/wd/hub) and without the JDK cause that echoes it; the exception types are unchanged. New DbClient.assertRowCount(String, Map<String,Object>, int) (@TestFlyApi(since = "1.2.0")) binds its values and validates identifiers; the raw-SQL assertRowCount(table, where, n) now documents that where must never contain untrusted input Behaviour change (source compatibility): a literal null as the second argument of assertRowCount(...) no longer compiles, because it is ambiguous between the two overloads; cast it. Binary compatibility is unchanged.
  • DownloadManager.clearDownloads() refuses to delete outside target/ or build/. A browser.downloadDir such as ~ or / would have been emptied. It now logs a WARNING and deletes nothing unless the directory is strictly inside the working directory's target/ or build/ (symbolic links are resolved, and a target that links outside the project does not count; a refused directory is not created); the default ./target/downloads works as before. Behaviour change for projects that keep downloads elsewhere: clean that directory yourself.
  • Test data and quarantine YAML use the safe constructor. TestDataLoader and QuarantineLoader read YAML with SafeConstructor, so a global tag such as !!java.lang.ProcessBuilder in a data file is rejected instead of instantiating a class.
  • OpenTelemetry 1.67.0 (GHSA-ccrj-gw8r-854m). selenium-java brings OpenTelemetry 1.66.0; the build now imports opentelemetry-bom:1.67.0, so the SDK's own tests run on the fixed version. A consumer's version comes from its own dependency management, not from this pom: add the same BOM import to pick up the fix. The Mobile Inspector VS Code extension's dev tooling (tools/vscode-mobile-inspector) overrides glob and minimatch to patched versions (three moderate npm advisories); the packaged extension has no runtime dependencies.

[1.1.0] — 2026-11-04​

Added​

  • Mobile Inspector (tools/, outside the Maven artifact): a VS Code extension (0.5.0) and an IntelliJ IDEA plugin (0.4.0) for mobilecli devices. They show the screen, the view tree and TestFly selectors ranked by match count, and generate @MobileFind fields. Record mode turns taps, typing, swipes and buttons into a MobilePage class.
  • Browser Inspector (VS Code extension 0.5.0, tools/): opens a page in Chrome, Edge or Chromium and shows it with its DOM tree; the selected element gets ranked TestFly locators (getByTestId, getByRole, getByLabel, getByPlaceholder, findById, getByText, find) with match counts computed by TestFly's own rules, and a Locator field for a BasePage. The tree has a Chrome-like find box (string, CSS selector or XPath); the browser runs without a window unless asked and closes from the toolbar. The Mobile Inspector's tree gets an Appium-style finder (strategy + selector, matched with TestFly's SelectorParser rules), and its role table now equals MobileRole, so it no longer suggests role= selectors that TestFly does not resolve. The extension's activity-bar view switches between Mobile and Browser.
  • Inspector 0.4.0 (tools/): while an inspector is open, Java files show above each @MobileFind field and each TestFly locator how many elements it matches on the inspected screen or page; clicking the line shows the matches. The Mobile Inspector gets Live (the screen is read again every few seconds, off by default) and hold-to-long-press and drag-to-swipe on the screenshot, recorded too. The Browser Inspector gets Record mode (a BasePage with Locator fields and open / click / fill steps), Console and Network tabs, and shadow roots and same-origin iframes in the tree, with ShadowDom.pierce and withinFrame suggestions. The IntelliJ plugin (0.3.0) gets the finder, Live, the gestures and the Server button.
  • Inspector device list (VS Code 0.5.0, IntelliJ 0.4.0, tools/): the VS Code sidebar and the IntelliJ tool window list every emulator, simulator and device, online or not, with Inspect, Boot and Shut down (mobilecli device.boot / device.shutdown); Android phones waiting for USB debugging approval show as unauthorized, and Android phones connect over Wi‑Fi (adb pair / adb connect). The IntelliJ plugin shows the @MobileFind match counts as code vision.
  • Mobile launcher activity: mobile.app.activity (Android) picks the launcher activity for apps that have several, such as debug builds with LeakCanary. The mobile.ios and mobile.android blocks can override it.
  • Android login example: the JUnit 5 example also checks the account summary and the popup confirmation after sign-in (AndroidLoginJUnit5ExampleTest).
  • Native mobile (incubating, io.testfly.mobile): drives Android and iOS apps through a user-installed mobilecli server, without Appium (ADR 0002). screen().getByRole/Text/Label/TestId/Placeholder/Type locators with auto-waiting actions (tap, fill, swipe, …), strict mode and expect(...) assertions; device() for apps, deep links and screenshots. Mobile tests run on TestNG (BaseMobileTest, @MobileTest), JUnit 5 (BaseJUnit5MobileTest) and Cucumber (@mobile); the browser is skipped and the device is opened per test. Configured with the new mobile: block. Not @TestFlyApi yet; may change in a minor release.
  • Mobile platform per test: @MobileTest(platform = MobilePlatform.IOS) (next to @Test) runs a test on that platform, overriding mobile.platform; new mobile.ios: / mobile.android: blocks hold each platform's device and app, so one config serves both. New Mobile.connect(MobilePlatform) and TestFlyConfig.Mobile.forPlatform(...).
  • Mobile Appium parity: mobile.alerts also answers Android runtime permission dialogs (like autoGrantPermissions). MobileLocator.pinchIn(), pinchOut() and dragTo(target); MobileDevice clipboard (clipboard, setClipboard, clearClipboard), files (pushFile, pullFile, up to 1 MB), crash reports (crashReports, crashReport; new crashes are saved to target/reports/crashes/ when a test fails), apps (isAppInstalled, foregroundApp, uninstallApp, backgroundApp), keyboard (isKeyboardShown, hideKeyboard), settings (setAnimations, setAppearance, and mobile.animations / mobile.appearance) and webviews (webViews(), webView(), new MobileWebView). New optional MobileDriver default methods and MobileCrashReport.
  • Mobile Mobilewright parity: MobileLocator.check() / uncheck() / setChecked(), waitForEnabled() / waitForDisabled(), all(), bounds() and screenshot() (just the element); screen().tap(x, y), doubleTap(x, y), longPress(x, y); MobileDevice.installedApps(), setFoldState(...), launchApp(id, locales) and viewTreeText(). Assertions toBeEmpty(), toHaveText(text, ignoreCase), MobileAssertions.expectPoll(supplier) and soft assertions (MobileAssertions.softly(), new MobileSoftAssertions). mobile.viewTreeOnFailure (default true) saves the screen's view tree as text next to the failure screenshot. Webview DOM locators: MobileWebView.locator(css), getByTestId, getByText, getByRole (new MobileWebViewLocator with click, fill, getText, getValue, getAttribute, count, isVisible, waitFor) and evaluate(body, args...). New optional MobileDriver default methods screenshot(clip, …), setFoldState, launchApp(…, locales, …) and viewTreeText.
  • Mobile system alerts: mobile.alerts: none | accept | dismiss accepts or dismisses iOS system alerts (tracking, permissions) that cover the app before each read of the screen, like Appium's autoAcceptAlerts / autoDismissAlerts. mobile.app.reset: clearData no longer fails on an iOS simulator app that was never launched.
  • Mobile XPath, iOS class chain and predicate selectors: xpath=, chain=, predicate=, id= and accessibility= selector strings, evaluated by TestFly on mobilecli's view tree (common subsets; full-path Appium XPaths may not match mobilecli's pruned tree). Typed @MobileFind attributes iosAccessibility, iosId, iosXpath, iosClassChain, iosPredicate, iosClassName, androidAccessibility, androidId, androidXpath, androidClassName. MobileLocator static factories (id, accessibilityId, xpath, iosClassChain, iosPredicate, className, byText, …, of) bind to the current test's device when used, so they can be static final. New reads isPresent, isHidden, isEnabled, isDisabled, isSelected, isChecked, isFocused, allTexts, getAttribute, and scrollIntoView().
  • Mobile page objects: MobilePage base class with @MobileFind(ios = …, android = …, value = …) fields (one element, both platforms), @WaitFor (the constructor waits for these elements), onLoad() and tapIfShown(...), so tests read as new HomePage().openLogin().signIn(u, p). Selector strings (testid=, text=, label=, placeholder=, type=, role=button;name=…) also work with screen().locate(...); plain classes use page(Type.class) or MobilePages.init(...).
  • Mobile-only profiles: a config with a mobile: block no longer needs browser, execution or timeouts; missing web values get inert defaults.
  • Mobile preconditions: @PreCondition works on TestNG and JUnit 5 mobile tests. Providers extend the new MobileConditions (page objects, @ConditionProvider) and are registered through META-INF/services/io.testfly.mobile.MobileConditions or MobileConditions.register. A condition runs once per device when mobile.app.reset: none keeps the app state, otherwise before every test; a retry reruns it. New MobileDevice.keepsAppState().
  • Mobile device settings and screen recording: MobileDevice.setOrientation(MobileOrientation) / orientation(), setLocation(lat, lon) / clearLocation() (both undone when the device closes), and startRecording(path) / stopRecording(). mobile.recordVideo: off | failures | always records every mobile test and keeps the video of failed tests (or all) in target/reports/videos/. New optional MobileDriver default methods; other drivers report them as unsupported.
  • Mobile YAML locator files: MobileLocators.load("mobile-locators/login.yml").get("login.username") reads iOS/Android selectors from YAML (ios:, android:, mobile: blocks or a plain value for both platforms, nested groups with dot keys), checks every selector at load time and returns the running platform's locator.
  • Mobile device pool: mobile.devices: [ids] or mobile.pool: true hand each parallel test its own device; tests wait up to mobile.timeouts.reserveMs for a free one.
  • mobilecli server auto-start: mobile.autoStartServer (default true) runs <mobile.mobilecliPath> server start when a loopback mobile.serverUrl does not answer, once per JVM, logs to target/mobilecli-autostart.log and stops the server at JVM exit.
  • Mobile Emulator Smoke workflow: runs the mobile examples on Android emulators (API 30, 34) and an iOS simulator on GitHub Actions; examples for the iOS and Android Settings apps and an iOS login flow with page objects (TestNG and Cucumber).
  • Test-writer subagents and skills: mobile-locator-finder, iOS/Android, Cucumber, TestNG, JUnit 5, TDD, API and k6 writers under .claude/agents/, with the testfly-mobile-write and testfly-k6-write skills.
  • browser.bidi (default false): starts a locally launched Chrome, Edge or Firefox with a WebDriver BiDi connection. With browser.captureConsoleErrors on, console errors are then read from BiDi log events (console.error calls and uncaught exceptions) from the moment a test gets its browser, so errors raised while a page loads and on pages reached by a link are caught on Firefox, where the JS shim could not see them. No shim is needed, and errors from earlier tests are forgotten when a test starts, including on a reused browser. ConsoleErrorCollector.isBiDiActive() shows which capture is in use. Safari and remote drivers have no BiDi connection in TestFly: one warning is logged and the usual capture is used. Checked against real Chrome; Firefox is covered by the experimental CI job.
  • Browser support page and one-time degradation warnings: a new Browser Support guide lists which features work on which browsers, and states that the DevTools-based features (network mocking, device emulation, geolocation, the screencast, mock clock persistence) are limited to a locally started Chrome or Edge, not remote drivers. New BrowserFeatures (supports, warnOnce) makes each degraded feature log one warning per browser session naming the fallback, including the video recording fallback, which used to be silent.
  • Browser integration CI job: runs the real-browser integration tests on Chrome and, as an experimental job, on Firefox.
  • Per-step snapshots in the trace (tracing.snapshots, default aria when tracing.enabled is on): every step records the accessibility tree (or, with dom / both, the pruned page HTML) as it was when the step started, and a failed test also records the page after its last step. The trace HTML shows them per step with a before/after diff. New keys tracing.snapshots, tracing.snapshotMaxKb (default 256) and tracing.snapshotOnFailureAfter; new StepRecord constructor and getters; new TraceRecorder.saveIfEnabled. Cucumber scenarios now save traces, and the HTML report links to the trace from each test. Nothing is captured when tracing is off or no browser is running, and a snapshot never fails a test. See the new Step Traces guide.
  • Deterministic accessibility assertions: LocatorAssert.hasRole(Role | String), hasAccessibleName(String | Pattern), hasAccessibleDescription(String | Pattern) and matchesAriaSnapshot(yaml). As in Playwright, a String must match exactly (whitespace collapsed); use a Pattern such as (?i)save for a partial or case-insensitive match. Failures report the role, name or description that was found. They use one bundled probe script, with the same accessible-name order as Locator.withName(...), and no LLM or axe injection. matchesAriaSnapshot compares the accessibility tree under an element with a Playwright-style YAML template (partial, ordered, regex names, [level=2] / [checked] attributes); a malformed template fails immediately. New AriaSnapshot (capture, toYaml, parseTemplate, match), Locator.ariaSnapshot() and BasePage.ariaSnapshot() print the current tree so templates can be pasted in. Only the 36 Role values and text are reported; hidden content and decorative images are skipped; Shadow DOM is not entered.
  • Actionability (actionability.*, enabled by default): click, hover, type, clear and append now wait until the element is visible, enabled where relevant, stable (bounding box unchanged between two polls) and not covered by another element, scrolling it into view when needed. A failure throws NotActionableException naming the element and the blocker. The locator chain is resolved again when the element goes stale or a click is intercepted. New WaitEngine.waitForActionable(...) overloads, ActionKind, and Locator.force() to skip the stable and not-covered checks. Set actionability.enabled: false to restore the previous waits. BasePage.doubleClick, rightClick, selectBy* and BaseConditions.click/type use the same checks. The checks fail open when JavaScript is unavailable. Each action waits about one extra polling interval (100 ms by default).
  • Locator.withinEach(By): evaluates the locator chain once inside every matched container and returns the combined matches, so nth(), first(), last(), filter() and withText() apply per container. getByRole(Role.CELL).nth(2).withinEach(getByRole(Role.ROW)) selects a whole table column without td:nth-child(3) or a loop over the rows. Containers with too few matches, such as a header row, are skipped. The result usually holds several elements, so under locators.strict an action on it is a strict mode violation. within(By) is unchanged and still searches only the first container.
  • Strict mode (locators.strict, default false): when enabled, an action on a locator that matches more than one visible element and is not narrowed with first(), nth() or last() fails with a strict mode violation that lists the candidates, instead of silently using the first match. isVisible() and isEnabled() surface the violation too. count(), elements() and assertThat(...) are unaffected.
  • Verified fill and clear assertThat(...).fill(text) / assertThat(...).clear(): resolve the element like Locator.fill(), wait until it is editable, type, and assert that the value then equals the text and stays that way. Password values are never logged, only their length.
  • Verified click assertThat(...).click(): resolves the element like Locator.click() (including self-healing), waits until it is visible and enabled, scrolls it to the centre and hovers it, waits until nothing covers it, clicks, and asserts that the click event reached the element. Logs a passed Clicked: ... step; supports as(...), within(...) and soft mode. Locator.click() is unchanged.
  • Form and input assertions on LocatorAssert: hasValue() (any non-empty value), hasEmptyValue(), containsValue, valueMatches, isPasswordHidden() / isPasswordVisible(), hasType, hasPlaceholder, hasMaxLength, isEditable, isReadOnly, isRequired, and HTML5 validation through isValid(), isInvalid() and hasValidationMessage.
  • Playwright-style not() on LocatorAssert: assertThat(x).not().hasText("Error") negates the next assertion. As in Playwright, most negated assertions also pass when no element matches. A negated failure ends with (condition still met, timeout: ...). Cannot be combined with click(), fill() or clear().
  • Playwright for Java parity on LocatorAssert: isAttached, isEmpty, isIndeterminate, isInViewport(ratio), hasCount, hasText(Pattern | String[] | Pattern[]), containsText(Pattern | String[]), hasValue(Pattern), hasValues, hasAttribute(name, Pattern), hasClass(Pattern), containsClass, hasCSS, hasId(Pattern), hasJSProperty, hasAccessibleErrorMessage. Pattern arguments match anywhere in the value, as in Playwright.
  • More LocatorAssert matchers: hasTextMatching, hasTextIgnoringCase, hasTexts, containsTexts, isSelected, hasSelectedOption, hasOptions, countAtLeast, countAtMost, exists, isInViewport, hasId.
  • Locator actions and getters: getValue() (reads an input's value; getText() is empty for inputs), fill, check / uncheck / setChecked, selectByText / selectByValue / selectByIndex, getSelectedOption, doubleClick, rightClick, press, dragTo, upload (works with hidden file inputs), focus, blur, waitFor(Locator.State), getCssValue, innerHTML, outerHTML, allTexts, and the non-waiting checks isChecked, isSelected, isDisabled, isEditable, isFocused, isPresent.
  • PageAssert matchers: hasAlert, hasAlertText, hasNoAlert, hasCookie, doesNotHaveCookie, hasLocalStorageItem, hasWindowCount, and not() to negate the next page assertion (assertThatPage().not().urlContains("/login")).
  • API binary bodies and response accessors: responses are read as bytes and decoded lazily with the Content-Type charset. New ApiResponse.asBytes(), saveTo(Path), headers(), headerValues(name), contentType(), charset(), isSuccessful(), prettyBody(); request side ApiClient.body(byte[]) and ApiResponse.Builder.body(byte[]).
  • JSONPath wildcards and quoted keys: $.items[*].id, $.map.* and $['key.with.dots'] without a new dependency. Filter expressions, slices and .. are rejected with a clear IllegalArgumentException.
  • API assertions: assertStatusIn(int...), assertStatusRange(from, to), assertSuccessful(), semantic assertJsonEquals(json) / assertJsonEquals(path, json) (key order and 1 vs 1.0 ignored, optional array-order-insensitive mode, first-difference message) and assertJsonArrayContains(path, value).
  • API requests: ApiClient.head(..) / options(..) (plus apiHead / apiOptions in ApiSupport), repeated query keys with addQueryParam / addQueryParams, per-request retry retry(n), retry(n, backoff), retryOn(statuses...), retryOnException(boolean), noRetry(), and request bodies in the step log when api.logBody is on (binary bodies as a size summary).
  • API proxy: api.proxy.host, api.proxy.port, api.proxy.nonProxyHosts and per-request ApiClient.proxy(host, port) / noProxy().
  • Test-scoped request spec: ApiClient.setTestSpec(spec) / clearTestSpec() apply a spec to the current test thread only and are cleared after each test.
  • Polling options ApiPolling: ApiClient.pollUntil(condition, ApiPolling.within(timeout).interval(..).failFastOn(..).maxAttempts(..).rethrowPredicateErrors(..)). The timeout error now carries the last error as its cause.
  • Partial batch results: ApiBatchRunner.executeAll() returns ApiBatchResult with a response or an error for every request in submission order; execute() is unchanged.
  • Real Digest authentication (RFC 7616: MD5, SHA-256, SHA-512-256, -sess, qop=auth/auth-int) through ApiAuth.digest(username, password), with per-test challenge caching and stale-nonce handling.
  • HMAC request signing ApiAuth.hmacSigner() / ApiHmacSigner: signs method, path with query, timestamp and body hash; configurable headers, algorithm, encoding and canonical string.
  • ApiAuth.Intercepting: auth strategies that need the final request or the response run as the innermost interceptor.
  • OAuth2 refresh tokens: ApiAuth.oauth2Refresh(...), automatic refresh-token grant for expired client-credentials and password tokens, and ApiAuth.clearTokenCache().
  • New @UseAuth types: digest, hmac-signed, oauth2-refresh, with the YAML fields refreshToken, keyHeader, signatureHeader, timestampHeader, encoding.
  • ApiFailure and ApiAssertionError: one interface for status, URL, method and body on every API failure. Schema and OpenAPI failures now report the request.
  • WireMock helpers: ApiMockServer.stubFor(MappingBuilder), stubJson(method, urlPattern, status, json) and resetOwnStubs() for parallel tests.
  • Load-test workload models (Gatling only): LoadScenario.workload(Workload.open(...)) with the open steps atOnce, ramp, constantRate, rampRate, stressPeak and nothingFor, or Workload.closed(...) with constantConcurrent and rampConcurrent; a ramp-down is rampConcurrent(n, 0, d). Each virtual user runs the steps once. A workload cannot be combined with users/rampUp/hold/cooldown, and on the JDK engine run() fails with IllegalArgumentException before any request. loadtest.maxUsers caps a closed workload's peak concurrency and an open workload's peak arrival rate and user-count steps (ADR 0003, ADR 0004).
  • Load-test simulations (Gatling only): loadSimulation(name).scenario(..).scenario(..).run() runs several scenarios, each with its own workload, as one Gatling run and returns LoadSimulationResult (global(), scenario(name), scenarioNames(), globalMetrics(), scenarioMetrics(name), slaResults()). With more than one scenario, request names are "<scenario> :: <step>"; a scenario's throughput uses the whole run's duration; maxUsers caps the combined peaks. Scenario names must be unique, must not contain " :: " and must not end with " ::".
  • Load-test SLAs: sla().p95Below(..).errorRateBelow(..).step("x").p99Below(..) attached to a scenario or a simulation (LoadSla, StepSla, SlaRule, SlaResult). TestFly evaluates the rules on both engines with strict comparisons; a rule fails as "metrics are partial", "step not found" or "not measured" when it cannot be checked. run() records the run first, then throws one AssertionError listing every failed rule. On Gatling the rules also appear as native assertions in Gatling's HTML report. In a simulation, a step is named "<scenario> :: <step>" or by a unique bare name; an ambiguous name fails validation. New LoadTestAssert.slaResults() and assertSlaPassed().
  • Load-test baselines: LoadBaseline.of(metrics).save(path) and LoadBaseline.load(path) (versioned JSON, schemaVersion 1), LoadTestAssert.assertNoRegression(baseline, Tolerance.percent(p).errorRateDelta(d)) and regressionResults(..) compare p95, p99, mean, error rate and throughput against exact limits with strict comparisons. A metric that is not measured is "not compared", never a pass, and the assertion fails if nothing could be compared. Partial metrics never become a baseline.
  • Load-test run result file: every run writes testfly-loadtest-result.json (the baseline format) into its run directory; a simulation with several scenarios also writes testfly-loadtest-result-<scenario>.json per scenario. JDK runs now get a run directory under loadtest.resultsDir too. By default TestFly does not delete run directories, so each run adds one small directory; see loadtest.retention below.
  • Load-test HEAD and OPTIONS steps and headerPresent: LoadStep.head(path) / options(path) and the single-step shortcuts LoadScenario.head(path) / options(path), on both engines. New check LoadStep.headerPresent(name): the response has the header (name matched in any case), on every method and both engines. A HEAD step may only have status checks, header checks (headerPresent(..) and responseHeader(..)) and responseHeader(..) extractions: a body check (jsonPath(..), regex(..), xpath(..), jmesPath(..) or a body matches(..)), any other extract(..), a body(..) or form parameters on a HEAD step fail with IllegalArgumentException before any request is sent, with a message that names the source. OPTIONS steps accept every check.
  • Load-test regression and previous run in reports: after regressionResults(..) or assertNoRegression(..), the comparison is recorded for that run (the latest one wins). The HTML report card shows a Regression table (Metric, Baseline, Actual, Limit, Result REGRESSED / OK / NOT COMPARED, Reason) under a baseline line; a regressed metric makes the card FAILED after assertNoRegression and WARN after regressionResults, and FAILED and WARN badges list their reasons (for example WARN (1 regressed)). The Allure and ReportPortal summaries get a Regression section, and the suite testfly-metrics.json entry gets a regression block with asserted. Every exported load-test entry now carries a runId (one per JVM). Without a baseline, each HTML scenario card also shows a "vs previous run" line comparing p95, throughput and error rate (+ increase, − decrease) with the most recent earlier run of the same scenario in metrics-history/; entries of the same run are skipped, so several exports in one build or merge mode never compare a run with itself. The line does not change the card status.
  • Load-test flow control: LoadScenario.repeat(times, body) and repeat(times, counter, body) (0-based ${counter}, removed after the loop; a null counter means none), doIf(condition, then), doIfOrElse(condition, then, orElse), randomSwitch(LoadBranch.percent(p, body), ...) (the remainder up to 100 runs no branch), group(name, body), tryMax(times, body) and pace(interval) / pace(min, max), on both engines with the same semantics and metrics. New LoadCondition (exists, missing, equalTo, notEqualTo; a missing or null variable is missing, and values are compared as text), LoadBranch, and LoadScenario.flow(), the read-only execution tree of LoadFlow nodes. A block body receives a block builder: scenario settings on it, adding to the enclosing scenario while the body runs, and adding to it after the body returned throw IllegalStateException. A step inside a group is reported under the key "Group / Step" ("<scenario> :: Group / Step" in the global metrics of a simulation with several scenarios). Every tryMax try sends real requests and counts them; a failed request ends the try, and when the tries run out the next node runs. A pace follows Gatling's semantics on both engines: its state is the next start time per virtual user; on the first pass, or when that time has passed, it does not wait and sets the next start to now + interval (a late user re-anchors and never catches up), otherwise it waits and sets the next start to the wake-up time + interval; with a workload it must be inside a repeat. Each tryMax block starts with a clean status. A step that never ran (an untaken branch, a step skipped in a tryMax) is reported with 0 requests and NaN p95/p99 (n/a in the reports). Checked before any request: repeat 1 to 100 000, tryMax 1 to 100 and not nested in another tryMax, at most 8 levels of blocks, at most 100 000 requests per iteration in the worst case, a step in every body, randomSwitch percentages in (0, 100] adding up to at most 100, pace bounds (max 1 ms to Integer.MAX_VALUE ms, a non-zero min at least 1 ms; pace does not count towards the request bound), group, counter and variable names (a counter may not reuse an enclosing repeat's counter), and a unique name for every step inside a block. Gatling's maxDuration for a scenario with blocks uses the worst-case duration of one iteration. See Fluent API, Flow control.
  • Load-test feeder strategies: LoadTestFeeder.queue() (each record once per scenario run, in file order), circular() (the default round-robin), shuffle() (shuffled once per run, then each record once) and randomOrder() (uniform, with replacement) on csv, json and records feeders, with strategy() and the LoadTestFeeder.Strategy enum. Each method returns a new feeder; on generated or custom feeders they throw IllegalStateException. Both engines use TestFly's own per-run cursor, not Gatling's feed(..).
  • Several load-test feeders: LoadScenario.addFeeder(feeder) appends a feeder and feeders() lists them. Every feeder is polled once at the start of each iteration (once per user with a workload), in declaration order. A variable supplied by two built-in feeders is rejected before any request. feed(..), feedCsv and feedJson still replace every feeder.
  • Load-test feeder sources: LoadTestFeeder.records(list) (in-memory records, copied; an empty list is rejected before any request, like an empty CSV or JSON file) and LoadTestFeeder.csv(path, separator). Records of csv, json and records feeders are read-only and shared between cursors. On Gatling, a csv or json feeder above 100,000 records is re-read by the child JVM, which fails fast when the file's size or modification time changed; a custom feeder that overrides describe() keeps its descriptor, and one sampled to 5000 records now logs a WARN when it has more.
  • Load-test feeder exhaustion: when a queue or shuffle feeder runs out, users stop starting iterations; the run completes, is not partial and is not failed. LoadTestMetrics.feederExhausted() is set (the OR of its scenarios in a simulation's global metrics) and one WARN is logged per scenario. LoadTestAssert.assertFeederNotExhausted() fails the test on it. Gatling's native queue would crash the run instead. The flag is exported as feederExhausted in the suite testfly-metrics.json; the HTML card shows a FEEDER EXHAUSTED badge (a PASSED card becomes WARN (feeder exhausted), a WARN card lists it among its reasons, a FAILED card is unchanged); the Allure and ReportPortal summaries get a Feeder exhausted: yes|no line next to Partial. LoadBaseline.of(..) accepts an exhausted run with a WARN that it stopped early; the per-run testfly-loadtest-result.json is still written, in the same format. Known behaviour: with a closed workload (constantConcurrent, rampConcurrent) on Gatling, Gatling keeps replacing users after the queue runs out until that injection step ends (Gatling 3.16 cannot stop one population alone); each replacement waits 100 ms and exits without a request, so the run lasts its full injection time. Use an open workload, enough records or a circular feeder when the run time matters.
  • Load-test correlation: new check and extraction sources on LoadStep: responseHeader(name) (the first value, name in any case), regex(pattern) (group 1 of the first match, or the whole match without a group; a group that did not take part is not found), xpath(expression) / xpath(expression, namespaces) (XPath 1.0, the string value of the first node or an attribute's value; prefixes only from the map) and jmesPath(expression) (JSON null is not found, unlike jsonPath). They build checks with exists(), is(String) / is(int) and, for headers, matches(regex); the new CheckCondition.Builder.is(String) also works on jsonPath(..), and a terminal that does not apply to its source throws IllegalStateException. LoadStep.extract(variable, source) and extract(variable, source, defaultValue) store the first match as ${variable}: a missing value makes the request KO, or with a default stores the default and keeps the request OK; extracting a variable again replaces the earlier extraction. A body that is not JSON is not found for jsonPath and jmesPath, so a default applies on both engines (except a jsonPath outside the JDK subset on Gatling, which keeps Gatling's withDefault and is KO). A JSON null at a jsonPath is found: the request is OK, the default does not apply and the variable stays unresolved; use jmesPath or doIf(exists(var)) for a fallback. JMESPath numbers render the same on both engines (1.10 gives 1.1), and quoted JMESPath keys are decoded as JSON strings. XML parse errors are never printed. New LoadExtraction and LoadStep.extractors() list every extraction (the extractions() map entries first, then the others in declaration order); extractions() is unchanged. New CheckCondition.namespaces(). The same semantics on both engines: on Gatling, headers and JMESPath use Gatling's own checks, while regex and XPath run TestFly's extractors in the child JVM. XML is parsed with secure processing and DOCTYPE declarations rejected (XXE), so a body with a DOCTYPE is not found. The JDK engine supports the JMESPath subset a.b, a[0].b, "key" and a root [n]; anything else fails before any request, while Gatling runs full JMESPath. Checked before any request on both engines: header names are RFC 7230 tokens (for headerPresent(name) too), regexes compile, an XPath compiles as XPath 1.0 with only the declared prefixes and selects nodes (count(..), string(..) and boolean(..) are rejected), namespace prefixes are NCNames other than xml / xmlns with non-blank URIs, and a JMESPath is valid for the engine. A HEAD step accepts responseHeader(..) checks and extractions and rejects regex, XPath and JMESPath checks and every other extraction. See Fluent API, Correlation.
  • Load-test run retention (loadtest.retention.runs, loadtest.retention.maxAgeDays, both default 0 = keep everything): after every run, on both engines (every JDK run, including cancelled, timed-out and validation-failed ones; every Gatling run that got a run directory, so not a run cancelled while queued or rejected by the JVM option check), TestFly deletes the run directories in resultsDir beyond the newest runs of the scenario (or simulation) that just ran and every TestFly run directory older than maxAgeDays by the millis in its name; the newest runs of that scenario are exempt from the age rule. Only a direct child named <slug>-<13-digit millis> that is a real directory and contains the .testfly-run marker (or, for a run directory written before 1.1.0, testfly-metrics.json, testfly-loadtest-result*.json or gatling-subprocess.log) can be deleted. Never deleted: other folders and files, symbolic links and their targets, the current run, a run in progress (its marker is locked), and a directory less than 60 s old. A cleanup failure only logs a WARN. When the file system cannot create or lock the marker (NFS without a lock daemon, some VM shared folders, any other I/O error), the run is not failed: one WARN per JVM, and the run goes on protected only within its own JVM and by the 60 s guard. The run lock is advisory and unreliable on NFS: with a resultsDir shared by several hosts or JVMs, use one per host or runs: 0 (ADR 0007). Where files cannot be locked at all, retention never deletes a run directory with a marker; marker-less (pre-1.1.0) directories can still be deleted through the legacy-file rule, so use a per-host resultsDir and clean up old runs yourself there. New TestFlyConfig.LoadTest.Retention, LoadTest.getRetention() / setRetention(..), and LoadTestConfig.getRetentionRuns() / getRetentionMaxAgeDays().
  • Gatling child JVM heap and options (loadtest.gatling.maxHeap, loadtest.gatling.jvmArgs): maxHeap <n>k|m|g (at least 64m) gives -Xmx, <n>% gives -XX:MaxRAMPercentage; unset adds no flag (the JVM default, 25% of RAM, as before). jvmArgs takes one option per element, checked against an allowlist (-Xms/-Xmx/-Xss/-Xmn, -XX:, -D with a non-reserved key, assertions, -verbose:gc, -Xlog:, --add-opens=, --add-exports=, --enable-native-access=, --enable-preview); agents, class and module paths, argument files, -XX:OnError / OnOutOfMemoryError / Flags / VMOptionsFile, testfly.* and TestFly's pinned gatling.* properties are rejected, and so are zero sizes (-Xmx0, -Xss0k, …) and, while maxHeap is set, a heap option in jvmArgs (-Xmx, -XX:MaxHeapSize, MaxRAM, MaxRAMPercentage, MaxRAMFraction, MinRAMPercentage, InitialRAMPercentage). ${VAR} placeholders work in both keys. The values are checked when a Gatling run starts, before any request; a bad one fails the run with IllegalArgumentException, never configuration loading. JAVA_TOOL_OPTIONS and JDK_JAVA_OPTIONS are still inherited unchecked and applied first, so these settings win on conflicts. The child writes [TestFly] Gatling child JVM: maxMemory=<bytes> availableProcessors=<n> to gatling-subprocess.log. The child still gets the full parent class path (a minimal class path is a non-goal for 1.1.0, ADR 0007). New TestFlyConfig.LoadTest.Gatling, LoadTest.getGatling() / setGatling(..), LoadTestConfig.getGatlingMaxHeap() / getGatlingJvmArgs().
  • Parallel Gatling runs (loadtest.gatling.maxParallelRuns, default 1, range 1 to 16, clamped with a WARN): up to that many Gatling runs execute at once in one JVM, each in its own child JVM and run directory; further runs wait for a slot and are cancelled by an interrupt without creating a run directory or a child. The limit does not coordinate separate JVMs. Parallel runs share the host's CPU, so they shorten a suite but skew latency; set maxHeap when more than one run executes at once. When the limit is above 2 without maxHeap, a WARN once per JVM gives the total (N parallel runs x the JVM default of 25% of RAM = X% of RAM) and suggests about 75/N percent, rounded down, at least 5%. New LoadTestConfig.getGatlingMaxParallelRuns(). The retention and gatling keys are YAML only, with no @LoadTest or LoadScenario setting.
  • Load-test authentication (LoadAuth, both engines): LoadScenario.auth(..) sets the default of every step and LoadStep.auth(..) overrides it; shortcuts LoadScenario.basicAuth(..), LoadScenario.oauth2ClientCredentials(tokenUrl, clientId, clientSecret, scope), LoadStep.basicAuth(..) and LoadStep.noAuth(). Kinds: basic, bearer, oauth2ClientCredentials (with .scope(..) and .clientSecretBasic()), fromConfig(name) (reuses the api.auth.<name> entry; types basic, bearer, oauth2) and none(). A step's auth(..) or noAuth() overrides the scenario's; a step Authorization header also replaces the scenario's auth, and a step with both its own auth and that header is rejected. TestFly builds the Basic header itself in UTF-8 on both engines. ${var} in a Basic or Bearer credential is resolved per request (per-user credentials from a feeder); one that is still unresolved makes the request KO with status -1 without sending it. OAuth2 client credentials gets one token per run, shared by every virtual user, fetched before the load starts (a failure fails the run before any load request, with the HTTP status and OAuth2 error code only) and refreshed in the background; the run aborts if no valid token is left after a failed refresh. The token is not exposed as a variable and token requests are not counted in the metrics (one INFO line gives their count). Credentials are never sent to another origin on a redirect; on Gatling a same-origin redirect hop is also sent without them, while the JDK engine keeps them there. See Authentication, Proxy and TLS in the load-testing docs and docs/adr/0008-load-test-auth-proxy-tls.md.
  • Load-test proxy and TLS (loadtest.proxy, loadtest.tls, YAML only, both engines; LoadTestConfig.getProxy() / getTls()): proxy.host, port, username, password and nonProxyHosts (* wildcards) for load and OAuth2 token requests. A configured proxy ignores the JVM proxy properties, and proxy credentials are sent only to the proxy; unset, the JDK engine still uses the JVM proxy properties and Gatling gets no proxy. Proxy credentials are sent preemptively, also on the CONNECT for HTTPS; on the JDK engine Basic proxy auth for HTTPS needs jdk.http.auth.tunneling.disabledSchemes (TestFly logs a WARN and does not change it). tls.trustStore and tls.keyStore (PKCS12 by default, or JKS) give a trust store that replaces the default trust and an mTLS client certificate; with either set, both engines verify the chain and the hostname. A keyStore without a trustStore uses the JVM default trust; the key password must equal the store password, because Gatling takes one password. tls.insecureTrustAll trusts any server certificate but still checks the hostname, logs a WARN and conflicts with trustStore. Stores, ports and credentials are checked before any request, and messages never contain a value. There is no fallback to api.proxy or api.ssl. Security note: without loadtest.tls, Gatling 3.16 keeps its own default of trusting every certificate with no hostname check (TestFly logs an INFO per run for an https target); set loadtest.tls.trustStore to verify. Changing that default is deferred to 2.0. Also deferred: digest, HMAC and apiKey from api.auth, the OAuth2 password and refresh grants, per-user tokens and client certificates, SOCKS proxies, per-scenario proxy or TLS, TLS protocol and cipher settings, a Windows ACL on the temporary file, and token requests in the metrics.

Changed​

  • ReportPortal JUnit 5 agent is upgraded from 5.3.1 to 5.5.8.
  • execution.baseUrl is now required: configuration loading fails at startup with execution.baseUrl must be specified when the key is missing or blank, matching the documented minimum testfly.yml. Previously a missing value only failed later, in open() or when an agent action used a relative URL. Configs without execution.baseUrl must add it.
  • Assertion failure diagnostics: LocatorAssert failures now end with (actual: [...], timeout: ...) showing the last observed text, value, attribute, CSS value, class list, element count or element state. This covers the matchers added in this release too; those that only test a condition report the element checked, for example condition not met on <input#email>. A within(By) container that never appears now fails as an AssertionError instead of leaking a LocatorException. Tools that match the exact old message suffix (timeout: Ns) should be updated; the prefix is unchanged.
  • Schema and OpenAPI failures throw ApiAssertionError, a subclass of AssertionError, so existing catch (AssertionError) code keeps working.
  • ApiAuth.digest(...) now performs RFC 7616 challenge/response. It previously sent Digest base64(user:password), which no server accepted.
  • Cookie jar (withCookies()): cookies are sent only to their host or Domain, honour Path, Secure, Max-Age and Expires, and foreign Domain cookies are rejected. A cookie without Path still applies to /. Previously every cookie went to every host.
  • OAuth2 token cache is cleared at suite end, so tokens are no longer reused across suites in the same JVM.
  • ApiAuth.basicAuth always encodes credentials as UTF-8.
  • A byte[] passed to body(Object) is sent raw instead of as a Base64 JSON string.
  • Default @UseAuth resolution is shared by the TestNG listener and the JUnit 5 extension (no behaviour change for existing types).
  • Load tests: default status check (behaviour change). A step without status().is(..) / status().in(..) now fails a response that is not 2xx or 304, on both engines. The JDK engine used to count 4xx/5xx responses as successful, so error rates can rise after upgrading. Add check(status().in(...)) to accept other codes.
  • Load tests: JSONPath, JSON null and cancellation parity. A JSONPath without a leading $ is read as $.path on both engines (it used to work only on the JDK engine). A JSON null value now counts as present on the JDK engine, as it does on Gatling (exists() passes, extract(...) stores null). A JDK run that is interrupted or passes its safety timeout now fails with IllegalStateException instead of returning partial metrics. Gatling runs disable the HTTP warm-up request and usage analytics, so a run only connects to the system under test.
  • Load tests: checks and fail-fast validation (behaviour change). jsonPath(p).is(n) / in(n...) now compare the JSON value at p (they used to build status checks). matches(regex) is a whole-body regex search on both engines. status().exists() throws IllegalStateException. An extract(...) path that is not found fails the request on the JDK engine as it already did on Gatling. Before any request is sent, the scenario is validated for the resolved engine: a step with both body(...) and formParam(...), a blank JSONPath, an invalid regex or (JDK engine) a JSONPath outside $.a.b, $.a[0].b, $[0] fails with IllegalArgumentException. A programming error inside a JDK run (for example a malformed URI) aborts the run with IllegalStateException instead of being counted as a failed request.
  • Load tests: engine and workload logging. The step name shows the resolved engine (for example engine=jdk (auto: Gatling not on classpath)), and an auto fallback to the JDK engine logs one WARN per JVM. cooldown is accepted but not applied by either engine; a value above zero logs one WARN per JVM. users is documented as the number of virtual users started over rampUp, each looping for hold, not as concurrent users (ADR 0003, docs/adr/0003-load-test-workload-model.md). The load shape itself is unchanged.
  • Load tests: Gatling runs are bounded. Each request has the requestTimeoutSeconds timeout, the simulation has a maxDuration of the injection time (rampUp + hold, or the workload's duration) plus, per step, requestTimeoutSeconds and the longest think time, plus 30s, and the child JVM (with its descendants) is terminated when the wait budget runs out, the test thread is interrupted or the parent JVM exits. A non-zero Gatling exit code fails the run (except exit code 2 for registered SLA assertions and a run that could send no request) with the root error lines and the last 20 lines of gatling-subprocess.log, credentials masked; raw log lines are no longer printed to System.err.
  • Load tests: TestFly owns the Gatling metrics. The forked simulation records attempts, OK/KO counts, status codes and a millisecond latency histogram per request name, and writes them to the sidecar testfly-metrics.json in the run directory; LoadTestMetrics is built from it only, and Gatling's js/stats.js is no longer read. Percentiles are exact (linear interpolation over the histogram, as on the JDK engine) and can differ from Gatling's HTML report, which estimates them. Requests that fail to build count as KO with status -1, so totals can exceed Gatling's report. A run is flagged partial (new LoadTestMetrics.partial()) when outcomes were lost or maxDuration stopped it; latency, status and error assertions then fail. The users/rampUp/hold loop now finishes the iteration in progress, so a run can last up to one iteration longer than rampUp + hold (ADR 0004).
  • Load tests: Gatling runs are no longer serialised by a hard lock. The JVM-wide lock is replaced by run slots sized by loadtest.gatling.maxParallelRuns. The default is still 1, so runs still execute one at a time unless the key is raised, but a run waiting for a slot can now be cancelled by interrupting its thread. The JVM options are checked before the wait, and a queued run creates no run directory.
  • Load tests: one shutdown hook for all Gatling children. The per-child shutdown hooks are replaced by one JVM-wide hook that terminates every live Gatling child JVM, and its descendants, in parallel, within 20 s in total.
  • Load tests: run directories get a .testfly-run marker. Every run directory created from 1.1.0 contains this empty file, which run retention uses to recognise TestFly's directories; a run in progress holds a file lock on it, or, where the file system cannot lock it, goes on without one after a WARN.
  • Load tests: Gatling console lines are prefixed with the run directory. Starting Gatling engine, Gatling execution complete and Gatling native assertions failed now read [LoadTest] [<run-dir>] … (logger lines are unchanged), so the output of parallel runs can be told apart. Tools that match these lines should allow the prefix.
  • Gatling upgraded from 3.13.5 to 3.16.0. It is still an optional dependency.
  • LoadTestMetrics and LoadTestMetrics.StepMetrics gained trailing record components: partial, slaResults and feederExhausted on LoadTestMetrics, p99LatencyMs on StepMetrics. The earlier constructors are kept, so existing callers compile and link. Record deconstruction patterns over these records (case LoadTestMetrics(var a, ...)) list every component and must be updated.
  • Load tests: missing or empty CSV/JSON feeders fail fast (behaviour change). A csv or json feeder whose file is not found, or which has no data rows (for example a header only or an empty JSON array), is rejected before any request is sent, on both engines and in simulations, with an IllegalArgumentException that names the scenario and the path. Such a scenario used to run with every ${var} unresolved. LoadTestFeeder.csv(..) and json(..) still do not throw; they log a WARN. Files are looked up on the classpath, then as a filesystem path, then under src/test/resources/.
  • Load tests: a Gatling run that sends no request returns metrics. When every step is unbuildable (for example an unresolved ${var}), the run no longer fails with "exit code 1". It returns metrics in which every request is KO with status -1, and logs a WARN that Gatling wrote no HTML report.
  • Load tests: SLA and partial results in reports. The HTML report (and loadtest-report.html) shows a PARTIAL badge (card status WARN), an "Aggregate" label on a simulation's (global) entry, an SLA table per card (scope, metric, comparison, threshold, actual or n/a, PASS/FAIL, reason) and a P99 column in the step table; a card with a failed SLA rule is FAILED, and the summary counts scenarios with a failed SLA, excluding aggregate entries. The Allure and ReportPortal Markdown summaries add a "Partial" line and an SLA table. Baseline regression results are shown too (see Added).
  • Load tests: the Allure and ReportPortal "Concurrent Users" label is renamed to "Virtual Users", matching what users means (ADR 0003). Tools that match the old label should be updated.
  • Load tests: request Content-Type is inferred from the body (behaviour change). When a step has a body(..) and no Content-Type header (matched in any case), both engines judge the body as declared, before any ${var} or #{var} is resolved: a non-String body, a String whose first non-whitespace character is { or [, a String that starts with a template (${ or #{, whose resolved value is unknown) and an empty or blank String are sent as application/json; a String starting with < as application/xml; any other literal text, including JSON scalars such as "42", $5, # heading and text such as id=${id}, as text/plain; charset=UTF-8. Every body used to be sent as application/json; set the header on the step to keep that. formParam steps still send application/x-www-form-urlencoded, and a step without a body or form parameters sends no Content-Type.
  • Load tests: rampUp/hold/cooldown durations round up to whole seconds on every path. LoadScenario.rampUp/hold/cooldown(Duration), @LoadTest strings and loadtest.* in YAML: a positive fraction rounds up (800ms → 1s, 1500ms → 2s, 1.5s → 2s, 0.5m → 30s, 2.5 → 3s); whole values and zero are unchanged. Strings accept decimals with ms, s, m, h (any case) or a plain number of seconds. A missing or blank value uses the default (10s / 30s / 5s); an invalid or negative value such as fast or -5s logs a WARN naming the key and the value, then uses the default. A negative Duration passed to LoadScenario.rampUp/hold/cooldown now throws IllegalArgumentException (it was silently accepted). New TestFlyConfig.LoadTest.parseDurationSeconds(key, value, defaultSeconds).
  • Load tests: LoadScenario.steps() lists the steps inside flow-control blocks (behaviour change). It returns every leaf step in declaration (pre-order) order, including the steps inside repeat, doIf, randomSwitch, group and tryMax blocks, and no longer describes the execution: iterating it does not give the order, repetitions or branches of a run. Use flow() for the execution. For a scenario without blocks the result is unchanged.
  • Load tests: on the JDK engine a step with no sample reports NaN percentiles (behaviour change). A step with 0 requests (for example an untaken doIf branch) now has p95 and p99 NaN instead of 0, as on Gatling. assertStepP95Below and step p95Below / p99Below SLA rules on it fail as "not measured", and the reports show n/a. Steps with requests are unchanged.
  • Load tests: the testfly. variable prefix is reserved (behaviour change). extract(..) target names and the variables of built-in feeders (CSV/JSON columns and generated variables) that start with testfly. are rejected with IllegalArgumentException before any request, in every scenario, with or without flow-control blocks. The prefix is also reserved for repeat counters. Rename such variables.
  • Load tests: the JDK safety timeout includes the iteration budget. It is now the larger of rampUp + hold + cooldown + 60s (the previous limit) and rampUp + hold plus the worst-case duration of one iteration plus 60s, where each step costs the request timeout plus the longest think time and repeat, tryMax and pace add their worst case. It never gets shorter.
  • Load tests: CSV feeders follow RFC 4180 (behaviour change). csv(..) files are parsed as UTF-8 by one parser on both engines: quoted fields may contain the separator, "" and line breaks and are no longer trimmed or cut at commas; spaces and tabs around a quoted field are ignored (1, "Alice" gives Alice); a leading BOM is removed from the first header; CRLF, LF and a lone CR end a record; decoding is lenient: invalid UTF-8 bytes become U+FFFD with one WARN naming the file, and the file still loads. An unterminated quote, a duplicate header or a blank header now makes the file malformed (a WARN with the line, then the run is rejected before any request, as for a missing file); a duplicate header used to overwrite the earlier column silently. Rows with too few or too many fields behave as before and now log one WARN each.
  • Load tests: JDK feeders are polled at the start of each iteration, with a fresh cursor per run (behaviour change). The JDK engine used to take the next record at the end of an iteration, consuming one more when the hold had ended, and kept a feeder's position from one run to the next. Each run now starts at the first record, as on Gatling. Custom feeders are still polled live and are not reset.
  • CheckCondition.Type gained appended constants: HEADER_EQUALS, HEADER_MATCHES, REGEX_EXISTS, REGEX_EQUALS, XPATH_EXISTS, XPATH_EQUALS, JMESPATH_EXISTS and JMESPATH_EQUALS, after the existing ones, so ordinals do not move. A switch over CheckCondition.Type needs a default branch: a switch statement without one silently skips the new types, and a switch expression that listed every earlier constant no longer compiles. LoadExtraction.Source may gain constants in the same way.
  • Load tests: a sequence(..) feeder restarts on every run on the JDK engine (behaviour change). It now starts at start in every run, as on Gatling; it used to continue across runs in the same JVM. If you relied on unique values across two runs, use a different start value or uuid(..).
  • Load tests: the Gatling child JVM starts through io.testfly.loadtest.internal.GatlingChildMain. It reads the run's 0600 temporary configuration file, deletes it at start-up, sets the loadtest.tls system properties in-process and then runs io.gatling.app.Gatling, so secrets reach the child only through that file, never the command line or the environment. Tools that look for io.gatling.app.Gatling on the child's command line should match the new class too. -Dgatling.ssl.* and -Dgatling.http.enableHostnameVerification are now reserved in loadtest.gatling.jvmArgs.
  • Load tests: gatling-subprocess.log is redacted. The child's output is written line by line through the credential filter, which now also masks bare Basic <base64> values and every password, client secret and token TestFly knows for the run. It used to be written raw, so a logging configuration that dumped HTTP headers could write credentials into the run directory.

Deprecated​

  • ApiAuth.hmac(apiKey, secret, algorithm): signs only the API key. Use ApiAuth.hmacSigner(). Its headers are unchanged.

Fixed​

  • @TestFlyApi(since) values: 105 declarations named versions that were never released (1.2.0 to 3.0.0). Each now names the release that first contained the API (1.0.0 to 1.0.7), taken from the git history; the matching Javadoc @since tags and two doc pages were corrected too.
  • BaseApiTest without WireMock: MockSupport.resetMocks() (an @AfterMethod of every BaseApiTest) no longer loads WireMock unless a mock server was started, so API tests no longer fail with NoClassDefFoundError: com/github/tomakehurst/wiremock/core/Options when the optional org.wiremock:wiremock-standalone is not on the classpath. mockServer() and stubGet() without WireMock now throw an IllegalStateException that names the dependency.
  • Load-test status codes on Gatling were fabricated: every OK request was reported as 200 and every KO as 500, taken from Gatling's OK/KO totals or simulation.log. Real per-response codes are now counted while the run executes and written to TestFly's metrics sidecar testfly-metrics.json in the run directory; requests with no response are reported under -1, as on the JDK engine. simulation.log is no longer parsed. When an engine records no status codes, statusCodes() is empty, the new LoadTestMetrics.statusCodesMeasured() returns false, and assertStatus, assertStatusCodeCount, assertNoStatus and LoadScenario.assertStatus fail with "HTTP status codes were not measured" instead of passing.
  • Load-test percentiles on Gatling: p90LatencyMs() used to be interpolated from p50 and p95. It is now measured, like p50, p75, p95 and p99, from TestFly's own latency histogram (see Changed), and values that were not measured are NaN instead of 0. New LoadTestMetrics.p75LatencyMs() (JDK and Gatling), LoadTestMetrics.isMeasured(double) and LoadTestAssert.assertP75Below(ms); the pre-1.1.0 LoadTestMetrics constructor is kept. A latency assertion on an unmeasured value fails with "latency was not measured". JSON results write unmeasured values as null; the HTML report and the Allure summary show n/a.
  • Load-test formParam was ignored by both engines. It is now sent as application/x-www-form-urlencoded. Query-parameter values are URL-encoded on the JDK engine, and a body gets a default Content-Type on Gatling only when no Content-Type header is set (see the Content-Type inference entry).
  • Load-test sub-second hold sent no request: hold(Duration.ofMillis(800)) or hold: 800ms was truncated to a 0 s hold, so the virtual users stopped before their first request. It now holds for 1 s (see Changed).
  • Load-test decimal durations fell back silently: a value such as 1.5s in testfly.yml or @LoadTest was not understood and silently replaced by the default. It is now parsed (2s), and an invalid value logs a WARN.
  • Metrics history files written in the same second overwrote each other: metrics-history/ copies are now named testfly-metrics-yyyyMMdd-HHmmss-SSS.json, with a -N suffix when the name is taken. Older seconds-only names are still read. Rotation, the flakiness analysis and the report's previous-run lookup all order the files by the timestamp in the name instead of the file modification time.
  • Mobile iOS first view-tree read: on a freshly started simulator the first read could time out while DeviceKit was still starting. The driver now calls device.apps.foreground first, so DeviceKit is ready before the app launches.
  • Mobile server auto-start wait: under load, a server.info probe started with only a few milliseconds left could time out and end the wait with a timeout error instead of the documented "did not answer within N ms". While waiting for an auto-started mobilecli server, a probe that times out now counts as "not answering yet", no probe starts with less than 50 ms left, and when mobile.timeouts.serverStartMs runs out the error is "did not answer within N ms".
  • JUnit 5 ReportPortal test items: the test item was not started through the agent's lifecycle before the test ran, so results were not reported correctly. TestFlyExtension now calls ReportPortalJUnit5Bridge.startTestItem, which invokes the agent's interceptTestMethod, before the test body runs.
  • DeviceEmulator on Chrome and Edge: it closed the driver's shared DevTools connection after every call. The emulated viewport and user agent were dropped, and the next network mock or recording on the same driver failed with "Session with given id not found". It now keeps the connection open. The user-agent override used on other browsers also read undefined because the getter used its own arguments; it now returns the profile's user agent.
  • Network mock listeners with a reused driver: with browser.lifecycle: per-suite, every test added another Fetch.requestPaused listener, so every network event ran through all earlier tests' listeners. One listener per browser connection now forwards to the current test.
  • JUnit 5 recording: the JUnit 5 extension ignored recording.mode: off and recording.cdp; it now follows the same rules as the TestNG listener.
  • GeoLocation auto-reset: the Javadoc promised an automatic reset after each test but nothing did it, so a mocked location could leak into the next test on a reused browser. The framework now resets it after every test.
  • Trace HTML escaping: step names and page content embedded in the trace are now escaped for an inline script block, so a page containing a closing script tag or an HTML comment can no longer break the trace or run code in it.
  • ApiResponseSpec content-type failures named the request as null null; they now include the method and URL.
  • JSON paths with keys containing / or ~ resolved incorrectly through JSON Pointer; they now work with bracket notation.
  • A lower-case content-type header could be duplicated by a request spec's content type.
  • Docs: README suggested ApiClient.setGlobalAuth in @BeforeSuite, which cannot work because global auth is per test thread and cleared after each test. docs/public-api.md described a non-existent api() client. The configuration page mentioned a non-existent apiClient().withAuth(name).

Security​

  • Static-analysis findings (SonarCloud quality gate and CodeQL): an OAuth2 scope of any length is validated without a regular expression, the HTML report's local-path check no longer backtracks exponentially, report links to the Gatling report are resolved through URL and limited to http, https and file, an interrupted JDK-engine run re-interrupts its thread in the catch, and the child-process start no longer dereferences a nullable variable. StoreSpec (internal) masks passwords in toString.
  • Patched transitive dependencies: Guava 33.7.2-jre (including GHSA-xxph-c9ww-hj94), Log4j API 2.25.5 and Rhino 1.7.15.1 are pinned in dependencyManagement, and Logback 1.5.34 is used for tests. They only reach optional features (Guice, POI, JSON-schema validation) and tests, and are not propagated to consumers. No direct dependency has a known advisory.
  • Documentation tooling: the npm dependencies of docs-site and of the VS Code inspector were updated with npm audit fix. This removes every critical advisory (docs-site: 43 to 30 advisories, 4 high; inspector: 5 to 3, none high). The rest are dev-server and build-time packages that need a Docusaurus upgrade; its current release introduces a critical tinypool advisory, so it is deferred. None of this is part of the Maven artifact.

Documentation​

  • network.interceptEnabled is documented as reserved: nothing reads it, and interception starts with the first route, stub or network.blockUrls entry. The setup guide no longer implies every listed browser supports every feature.

[1.0.7] — 2026-10-09​

Added​

  • Canonical Locator.cssSelector(String): Introduced Locator.cssSelector(String) as the primary, memorable factory method matching Selenium's By.cssSelector naming conventions.
  • Assertion Boundary Architecture: Formalized the separation between TestFly's auto-retrying, DOM-polling Web UI assertions (LocatorAssert, PageAssert) and general-purpose primitive assertions (delegated to AssertJ / TestNG).
  • execution.sessionWaitSeconds (default 300, 0 = do not wait, validated >= 0): controls how long a test waits for a free browser slot when execution.maxActiveSessions is exhausted. It replaces the previously hard-coded 30-second wait.
  • ExecutionValidator.crossCheckWarnings: prints a warning when parallel execution uses execution.threadCount greater than execution.maxActiveSessions, because the surplus threads queue for a browser slot.
  • LoadTestDetector (internal): single place that decides whether a test is a load test (see Changed).
  • testfly-test-authoring agent skill with per-area references (WebUI, API, TestNG, JUnit 5, Cucumber, load testing).

Changed​

  • Load-test detection is explicit (behavior change). The four name-based contains("loadtest") heuristics (DriverManager, TestExecutionListener, TestFlyExtension, CucumberHooks) were replaced by a single LoadTestDetector. A test is now treated as a load test (no WebDriver) only when it extends BaseLoadTest, implements LoadTestSupport, is annotated with @LoadTest / @NoBrowser, or carries the exact Cucumber tag @loadtest. Classes such as FileUploadTest, DownloadTest or anything in a package like com.acme.uploadtests are no longer silently denied a WebDriver. A one-time WARN is logged for classes/tags that matched the old name heuristic but not the new rules.
  • Locator actions (click, fill, text, ...) now auto-wait up to timeouts.explicit, re-resolving the element on each poll (also recovers from stale references) and self-healing after the timeout. isVisible(), isEnabled() and count() stay non-waiting.
  • DriverManager.getDriver() now explains why no driver exists (outside @Test / @PreCondition / @ConditionProvider, e.g. in @BeforeMethod) and where to move the setup.
  • The session-slot timeout error now names both execution.maxActiveSessions and execution.sessionWaitSeconds.
  • Jackson modules are pinned through jackson-bom 2.21.7 (previously only jackson-databind was pinned, at 2.21.6), so transitive and optional Jackson modules stay on one version.
  • The JaCoCo agent is now attached to the Surefire JVM (argLine is @{argLine} ...), so target/jacoco.exec and the coverage report are produced by mvn verify.
  • GPG signing moved from the default build into the release Maven profile: mvn verify / mvn install need no key; releases use -Prelease.

Deprecated​

  • Locator.css(String): Deprecated in favor of Locator.cssSelector(String). It continues to delegate seamlessly to prevent breaking existing code.

Fixed​

  • getByText() returned the outermost ancestor (html/body/wrapper div) instead of the element holding the text; it now returns only the innermost match. exact() uses the same logic.
  • Load tests: HTTP status codes are now recorded in statusCodes (transport failures use the synthetic code -1), LoadScenario.assertStatus(n) now fails when any other status occurs (it previously asserted against assertNoStatus of a different code), and extract() works for scenarios without a feeder.
  • HTML report: the report data embedded in the page is escaped for a <script> context (<, U+2028, U+2029), so failure messages and test data can no longer inject markup or close the script block; template placeholders are now substituted in a single pass, so substituted values are never re-scanned.
  • DriverManager session permits: a permit is now returned exactly once per driver, including when driver.quit() throws and on every failure path of driver creation (a permit leak that could exhaust maxActiveSessions).
  • DriverManager.recreateDriver() now also replaces a dead per-suite driver (it was kept in the suite registry), and quitAllSuiteDrivers() releases only the permits that were actually held.
  • OpenApiValidator passes the URI path (not the full URL) and the response Content-Type header to the validator, which fixes "No API path found" failures and response body validation.

Security​

  • .github/workflows/release.yml hardened: the release version is validated as a whole string (no newline or script injection) and read only through the environment, never interpolated into scripts; the release commit must be reachable from main; publishing is gated on the release GitHub environment; the pom version must equal the release version (tag pushes are no longer rewritten); tests run once, GPG signing is enabled only through -Prelease, and the tag/GitHub Release is created at the verified commit.

Documentation & Specifications​

  • Engineering Specs Modernization: Modernized root docs/ specifications (internals.md, public-api.md, architecture.md, testng-listeners.md) to reflect the Java 21 LTS baseline, SmartTriageEngine, FuzzyHealingEngine, and assertion boundaries.
  • Documentation Site Sync: Updated guides for semantic locators, assertions, and self-healing across both English and Turkish documentation locales.
  • Agent Knowledge Graph Sync: Registered [[wiki/assertion-system]], updated architecture and WebUI wikis, and synchronized MAP.md.
  • Documentation audit (EN + TR): corrected the Maven coordinate to io.github.hakanngul throughout, rewrote examples that did not compile against the real API, aligned the load-testing docs with the real DSL (load(path).users().rampUp().hold(), LoadTestFeeder, @LoadTest attributes), and corrected claims about WaitEngine, Kubernetes/distributed load tests, Allure and CI setup. Install guides now state which version is on Maven Central and which version this checkout is.
  • Agent guidance consolidated: AGENTS.md is the single entry point (GEMINI.md, PRODUCT.md and features/features-report.md removed), ROADMAP.md and CONTRIBUTING.md updated, and obsolete planning documents under docs/ retired.

Tests​

  • Unit suite grew from 1362 to 1444 tests, adding regression coverage for HTML report escaping, DriverManager (permit accounting, per-suite recreate, slot wait), LoadTestDetector, JdkLoadEngine, OpenApiValidator, ExecutionValidator, Locator auto-wait and test-id configuration isolation.

[1.0.6] — 2026-09-29​

Added​

  • Smart Flakiness Triage (SmartTriageEngine): Local heuristic analyzer integrated into TestExecutionListener that inspects exception hierarchies to categorize failures (SYSTEM_FLAKY, APPLICATION_BUG, NEEDS_INVESTIGATION) without LLM token cost.
  • Fuzzy Self-Healing (FuzzyHealingEngine): Local, zero-token heuristic fallback healing using Levenshtein distance against DOM candidates and attribute tokens before escalating to external LLMs; no fixed latency is guaranteed.
  • Auto-POM Page Knowledge System: Autonomous page element discovery and local semantic intent resolution with continuous learning cache (PageKnowledge).
  • Sequenced Collections on Locators: Added first() and last() navigation methods to Locator leveraging Java 21 sequenced collections.
  • BaseJUnit5ApiTest: Native REST API testing base class with full api() client support for JUnit 5 Jupiter suites.
  • NavigationSupport Helpers: Added comprehensive window management, multi-tab switching, and browser navigation helpers.
  • HTML Report Log Filters: Interactive INFO and DEBUG log level visibility toggles in the report timeline.

Changed​

  • Java 21 LTS Modernization: Framework baseline and compiler upgraded to Java 21 LTS (--release 21), adopting Pattern Matching for instanceof, exhaustive switch expressions, and stream .toList() across the repository.
  • Native Selenium By Interoperability (Locator extends By): Locator now directly extends Selenium's org.openqa.selenium.By, enabling 100% transparent interoperability with native Selenium APIs (driver.findElement(locator)).
  • Clean API Refactor: Refactored Locator to remove redundant prefix methods (ofCss, inputValue, getValue) to embrace a unified, zero-boilerplate API.
  • Support Interface Completeness: Ensured 100% method delegation parity for all Support interfaces (ApiSupport, BrowserSupport, LocatorSupport), fully wrapping the internal engines.
  • Null-Safe Actions: Locator.type() and Locator.append() are completely null-safe; passing null or "" gracefully clears the element without throwing exceptions.

Performance​

  • Virtual Threads in Load Testing: Leveraged Project Loom Executors.newVirtualThreadPerTaskExecutor() in JdkLoadEngine for ultra-scalable, lightweight load testing.
  • Video Recording Memory Optimization: Video recorder stores raw byte frames and performs lazy decoding upon test failure, significantly reducing heap overhead during long runs.

Fixed & Hardened​

  • Guaranteed Driver Cleanup: Added JVM shutdown hooks and @AfterAll listener execution to guarantee browser process termination even on abnormal exits.
  • Thread-Safe Bootstrap: Hardened framework bootstrap initialization against race conditions during concurrent suite startup.

[1.0.5] — 2026-09-12​

Added — Interactive Web Recorder & Web Studio (testfly record)​

  • Chrome Companion & Injected Extension-less Recording:
    • Launch isolated Google Chrome with automated Chrome DevTools Protocol (CDP) script injection (testfly record <url>).
    • Real-time Server-Sent Events (SSE) streaming of clicks, coalesced keystrokes, and assertions directly to local web studio (:8765).
    • Interactive toolbar for one-click visual assertions (isVisible, isEnabled, hasText with exact and contains matching).
  • 4-in-1 Multi-Framework Java Codegen:
    • Live code compilation for Page Object Model (BasePage), standalone TestNG (BaseTest), JUnit 5 (BaseJUnit5Test), and Cucumber BDD (.feature).
    • Compiler safeguards preventing syntax errors from Java reserved keywords (e.g. continueElement).
    • 1-click "Save to Project" writes production-ready classes directly into src/test/java/.
  • Architectural Decision Record (ADR-001):
    • Documented design decisions, protocol boundaries, and security model for the companion studio and MCP integration.

Added — Model Context Protocol Server (testfly mcp)​

  • Protocol-Native AI Browser Automation:
    • Built-in MCP server exposing 88 live browser automation tools to AI coding assistants (Claude Code, Cursor, GitHub Copilot, JetBrains AI).
    • Enables LLMs to inspect live DOM trees, query the accessibility tree, verify layouts, and author robust TestFly tests without hallucinated selectors.

Added — Smart Test Sharder (SmartTestSharder)​

  • LPT Bin-Packing Test Distribution:
    • Implements the Longest Processing Time (LPT) bin-packing algorithm to balance test suite execution across distributed CI worker nodes.
    • Minimizes pipeline idle time and achieves optimal parallelization based on historical test duration metrics.

Added — Load & Performance Testing Module​

  • Dual-Engine Load Testing Architecture:
    • Gatling Engine: High-concurrency subprocess execution, automatic simulation generation, stdout/log parsing, and full interactive Gatling HTML report generation linked directly in TestFly reports.
    • Lightweight Virtual Thread Engine: Zero-dependency JDK virtual thread engine for developer machines and fast CI/CD feedback loops.
  • Fluent Load Testing DSL:
    • Declarative scenario builder via load(path).users(n).rampUp(duration).hold(duration).run() or loadScenario("name").step(...).run().
    • Available in BaseLoadTest (the load-test base class; it starts no browser).
  • Annotation-Driven Execution (@LoadTest):
    • Configure load test parameters (users, rampUp, hold, cooldown, engine, baseUrl) directly at test class or method level.
  • Data Feeders (LoadTestFeeder):
    • LoadTestFeeder factories csv, json, random, uuid, sequence, and constant, plus feedCsv/feedJson shortcuts on the scenario.
  • SLA & Latency Assertions (LoadTestAssert):
    • Fluent assertions for percentiles (P50, P90, P95, P99), max response time, min throughput (RPS), error rate thresholds, and HTTP status distributions.
  • Unified Multi-Channel Reporting:
    • TestFly HTML Report: Dedicated "Load Testing" tab with interactive KPI cards (Users, RPS, Total Requests, P95, Error Rate), response time percentiles breakdown, status code distribution, and clickable link to Gatling interactive HTML reports.
    • Allure Report Adapter: Adds load test parameters (Users, Engine, RPS, P95, Error Rate), interactive link to Gatling report, summary markdown attachment, and full subprocess execution log attachment.
    • ReportPortal Adapter: Sends load test Markdown summary log entries and attaches subprocess execution logs to the test step.

Added — Feature Switchboard​

  • features: master on/off panel — master switchboard in testfly.yml to effortlessly enable/disable optional subsystems (ai, recording, tracing, network, healing, visual, performance, flakiness, quarantine, testManagement, notifications, consoleErrors).
  • FeatureGate (io.testfly.config.FeatureGate) — unified programmatic gate for feature status.
  • ai.enabled master AI switch (default true) — single switch to gate all AI capabilities.

Changed — HTML Report & Security Hardening​

  • HTML Report Cupertino Lab Redesign — Modernized report layout with Cupertino Lab aesthetic, improved table density, responsive failure triage cards, and dark mode optimization.
  • Flakiness Radar — Visual stability scoring across consecutive test runs.
  • Security Sanitization — Added safe DOM rendering and XSS prevention helpers (escapeHtml, sanitizeUrl, safeText) in HTML report generation.
  • Repository Security Attributes — Added .gitattributes to mark vendored libraries and generated files, preventing false positive scanner alerts.
  • Tolerant testfly.yml parsing — Unrecognized configuration keys are logged as warnings rather than crashing startup.
  • Fail-fast on disabled features — Direct programmatic invocations of disabled features fail clearly rather than silently skipping.
  • Homepage Modularization — Separated static data and snippets into homeData.js to ensure low code entropy and clean React architecture.

[1.0.4] — 2026-09-07​

Added — Agentic Testing & Autonomous AI​

  • AI-Driven Advanced Self-Healing — DomPruner compresses complex web DOM trees to under 8K tokens by stripping non-semantic and decorative nodes. AiHealingEngine synthesizes replacement locators with LLM reasoning when static fallbacks are exhausted and caches healed locators in .testfly/healed-locators.json; cache hits avoid another AI request but do not guarantee zero execution time.
  • AI-Powered Self-Remediation & Auto-PR Patches — SourceCodeLocator maps runtime failures back to consumer test and page object sources. RemediationPatchGenerator generates clean, unified git diff .patch files into target/remediations/ for single-command git apply resolution.
  • Semantic Natural Language Assertions — satisfiesAi(condition) and violatesAi(condition) on PageAssert and LocatorAssert, plus assertWithAi(condition) convenience method in AssertionSupport. Features single-evaluation anti-throttle guard and soft-assertion compatibility.
  • Goal-Oriented Dynamic Steps (act) & Compile & Freeze Caching — High-level natural language goal execution via act(String goal) in ActionSupport (BaseTest, BasePage, BaseJUnit5Test, BaseCucumberSteps) and byIntent(String intent) in LocatorSupport. Compiles user intents into deterministic Selenium action plans and freezes them into .testfly/action-cache.json for instant replay.
  • Dropdown & Navigation Action Primitives — ActionType.SELECT picks a <select> option by visible text through Selenium's Select; ActionType.NAVIGATE calls driver.get(), passing absolute URLs through and resolving relative paths against execution.baseUrl. NAVIGATE bypasses locator parsing, so agent plans can move between pages without a target element. Both are advertised to the LLM by ActionCompiler.buildPrompt.

Added — Video Recording​

  • Playwright-style retain-on-failure recording — Web UI tests are recorded to MP4 and kept only when a test fails; passing tests discard the video automatically
  • Real MP4 encoding — videos encoded as H.264 MP4 and embedded as HTML5 <video> players in both TestFly HTML report and Allure report
  • Headless viewport auto-config — 1920×1080 viewport automatically applied for headless Chrome/Edge when startMaximized is set

Added — Network Mocking Framework​

  • Comprehensive network mocking and assertions — CDP-based request interception with pattern matching, response stubbing, and assertion API for verifying captured requests

Changed​

  • SessionCache rename — browser.SessionCache → BrowserSessionCache, precondition.SessionCache → PreconditionSessionCache to eliminate naming ambiguity
  • .env resolution priority — DotEnvLoader now resolves ${VAR} placeholders with explicit priority: .env file > shell environment > system property (-D). Added DotEnvLoader.fromDotEnv(key) to query .env values directly. Removed dotenv-java dependency; .env parsing is handled internally.

Added — API Testing Improvements​

  • HTTP-level retry (api.retry.*) — config-driven retry for transient failures and status codes (502/503/504); exponential backoff; step-logged with WARN
  • Per-request timeout override — apiClient().get("/report").timeout(120).send()
  • Query parameter builder — .queryParam("page", 1).queryParam("limit", 10) with URL encoding
  • Request/Response interceptors — ApiClient.addRequestInterceptor() and addResponseInterceptor(); global, thread-safe
  • Cookie jar — .withCookies() captures and auto-sends cookies across requests; thread-local
  • Response time assertion — res.assertDurationLessThan(500) and assertDurationLessThan(2, TimeUnit.SECONDS)
  • Header assertions — assertHeader("Content-Type", "application/json"), assertHeaderPresent("X-Request-Id")
  • Body regex assertion — assertBodyMatches("\\d{4}-\\d{2}-\\d{2}") with dotall mode
  • JSON structure assertions — assertJsonExists("$.path"), assertJsonNull("$.field"), assertJsonArraySize("$.items", 3)
  • Configurable truncation limit — api.truncationLimit: 1000 (default 300)
  • Self-healing locator cache — healed locators persisted across runs for faster recovery
api:
retry:
enabled: true
maxAttempts: 3
backoffMs: 500
retryOnStatus: [502, 503, 504]
retryOnException: true

Added — Report Portal Enhancements​

  • Auto run type detection — suite test classes scanned; BaseApiTest → "API", otherwise → "Web"; reporting.reportportal.type: api|web|auto
  • Enriched launch name — <name> — <API|Web> | <env> | <timestamp>
  • Enriched description — run type, context-aware base URL (Web→execution.baseUrl, API→api.baseUrl), environment, user@hostname, CI platform + build info
  • CI platform detection — GitHub Actions, Jenkins, GitLab CI, CircleCI, Travis CI, Bitbucket Pipelines, Azure Pipelines
  • JUnit 5 → Report Portal — agent-java-junit5 dependency + ReportPortalJUnit5Bridge reflection bridge; JUnit 5 tests push results to RP automatically
reporting:
reportPortal:
enabled: true
launch: "Demo Web - Dev"
type: auto

Fixed​

  • OAuth2 token cache race condition — double-checked locking prevents thundering herd on expired tokens
  • RP launch naming — context-aware base URL selection based on run type (Web vs API)
  • Dark theme text visibility — CSS safety nets for all Prism token types; fixed invisible code block text; dark mode overrides for search dropdown, tabs, collapsible, badges, footer
  • AI model defaults and validation — ai.model is optional and defaults per provider (claude-haiku-4-5-20251001 for Claude, gemini-2.5-flash for Gemini); sanitized Gemini model names against injection
  • Session cache isolation & script safety — BrowserSessionCache and PreconditionSessionCache clear localStorage before restore and pass items safely via WebDriver script arguments
  • PreCondition retry vs DataProvider isolation — fixed premature session cache invalidation during multi-row @DataProvider runs; cache is now only invalidated on true retries (result.wasRetried())
  • LocatorAssert failure propagation — restrict caught wait exceptions to TimeoutException so unexpected browser/WebDriver faults are not masked
  • Locator withText matching — Locator.withText defaults to case-insensitive substring matching and respects the exact-match parameter
  • ReportPortal credential guard — skip RP registration when credentials are missing instead of failing the suite
  • Headless viewport — automatically configure 1920×1080 viewport for headless Chrome/Edge when startMaximized is set

[1.0.0] — 2026-08-20​

Changed​

  • Project rebrand to TestFly — complete identity migration:
    • Maven coordinates: io.testfly:testfly:1.0.0 (historical entry: legacy group ID; the current coordinate is io.github.hakanngul:testfly)
    • Java namespace: io.testfly
    • Config file: testfly.yml
    • Public API annotation: @TestFlyApi
    • Report artifacts: testfly-report.html and testfly-metrics.json

Security​

  • API credentials moved to ${ENV_VAR} placeholders sourced from environment or .env file.

Build​

  • Integration tests split into src/test/java/io/testfly/integration/ with maven-failsafe-plugin
  • quality Maven profile: JaCoCo, SpotBugs, Checkstyle, PMD

[0.24.0] — 2026-08-15​

Fixed​

  • execution.parallel validation — now delegates to TestNG's XmlSuite.ParallelMode; tests and instances modes accepted

[0.23.0] — 2026-07-18​

Added​

  • waitForAttribute(By, attribute, value) — exact attribute match
  • waitForUrlMatches(String regex) — URL regex match
  • waitForTextMatches(By, String regex) — element text regex match

[0.22.0] — 2026-06-26​

Fixed​

  • Report overwrite with multiple test engines — testfly.reports.dir system property honored by all report outputs

[0.21.0] — 2026-06-25​

Added​

  • Accessibility-first locators — getByRole, getByText, getByLabel, getByPlaceholder, getByTestId, getByAltText, getByTitle
  • getByRole(Role) — 36 WAI-ARIA roles with implicit + explicit matching; .withName(), .withLevel() (corrected from the original count of 38)
  • toBy() escape hatch — returns synthesized Selenium By
getByRole(Role.BUTTON).withName("Submit").click();
getByText("Welcome").isVisible();
getByTestId("checkout-btn").click();

[0.20.0] — 2026-06-21​

Added​

  • TestRail — @TestRailCase("C1234") auto-pushes results; multiple IDs; auto-creates runs
  • Xray — @XrayTest("PROJ-123") for Cloud (OAuth2) and Server/DC (Basic auth)
  • Zero extra dependencies — both use java.net.http.HttpClient

[0.19.0] — 2026-06-20​

Added​

  • Gradle build support — testImplementation 'io.testfly:testfly' + test { useTestNG() } (historical entry: legacy group ID; the current coordinate is io.github.hakanngul:testfly)
  • JUnit XML auto-detects Maven vs Gradle directory layout
  • FrameworkVersion.get() reads MANIFEST.MF (works with both build tools)

[0.18.0] — 2026-06-20​

Added​

  • Accessibility assertions (axe-core) — accessibility().withTags("wcag2a","wcag21aa").withLevel(Impact.SERIOUS).run()
  • axe-core 4.10.2 bundled in JAR — no CDN dependency

[0.17.0] — 2026-05-19​

Added​

  • Performance assertions (Core Web Vitals) — assertPerformance().lcp().isBelow(2500).cls().isBelow(0.1)
  • performance.captureOnEveryTest: true — ⚡ metrics strip in HTML report

[0.16.0] — 2026-05-17​

Added​

  • Test quarantine — testfly-quarantine.yml for permanent test skipping; TestNG, JUnit 5, Cucumber support

[0.15.0] — 2026-05-12​

Added​

  • External @TestData sources — csv:, excel: (Apache POI), db: (JDBC) prefixes
  • TestClock — clock().set("2030-01-01T00:00:00Z") freezes browser time; clock().advance() fast-forwards

[0.14.0] — 2026-05-04​

Added​

  • BrowserStack — execution.mode: browserstack; W3C capabilities; mobile devices; session URL in report
  • Sauce Labs — execution.mode: saucelabs; three regions

[0.13.0] — 2026-05-04​

Added​

  • Email verification — mailbox().waitForEmail(to("[email protected]")); Mailhog, Mailtrap, Outlook, IMAP
  • email.assertSubject(), email.assertBodyContains(), email.extractLink()

[0.12.0] — 2026-05-03​

Added​

  • @NoBrowser — skip WebDriver creation; ideal for DB/API-only tests

[0.11.0] — 2026-05-03​

Added​

  • Multi-session testing — withSession("alice", () -> { ... }); named browser sessions
  • Database assertions — db().assertRowExists(), db().query(), db().scalar(); plain JDBC

[0.10.0] — 2026-05-03​

Added​

  • @Retryable for JUnit 5 — InvocationInterceptor with driver recreation
  • @Retryable for Cucumber — full scenario rerun from step 1

[0.9.0] — 2026-05-02​

Added​

  • JUnit 5 support — TestFlyExtension (@ExtendWith); full lifecycle management
  • WebDriver injectable as test method parameter
  • BaseJUnit5Test base class; TestFlyLauncherListener via ServiceLoader

[0.8.0] — 2026-05-02​

Added​

  • Cucumber integration — BaseCucumberTest + BaseCucumberSteps; auto driver lifecycle per scenario
  • CucumberStepLogger pipes Gherkin steps into HTML report

[0.7.0] — 2026-04-16​

Added​

  • Self-healing locators — fallback through id, name, text, class, data-testid; ⚠ healed badge
  • AI failure analysis — root-cause + fix suggestion in HTML report via AI model
  • Flakiness prediction — STABLE/WATCH/HIGH classification; Flakiness Radar card

[0.6.0] — 2026-04-16​

Added​

  • Trace viewer — self-contained HTML trace per failed test; step timeline with screenshots
  • Visual regression — VisualAssert.assertScreenshot() pixel comparison; auto-baseline
  • Device emulation — DeviceEmulator.emulate("iPhone 14"); 6 built-in profiles
  • Network interception — NetworkMock.stub(pattern) via CDP
  • Fluent Locator API — find(css) chainable; filter(), withText(), nth()
  • Web-first assertions — assertThat(By) with isVisible, hasText, count

[0.5.0] — 2026-04-07​

Added​

  • Shadow DOM helpers — shadowFind, shadowClick, shadowPierce
  • Angular/React waits — waitForAngular(), waitForReactHydration()
  • Enhanced HTML report — pass rate gauge, donut chart, dark mode, search
  • Allure adapter — opt-in Allure 2 JSON results
  • Slack / Teams notifications — webhook-based post-suite summary
  • @DependsOnApi — skip test if endpoint unreachable

[0.4.0] — 2026-03-28​

Added​

  • Schema validation — res.assertSchema("schemas/user.json")
  • @UseAuth annotation — apply named auth strategy from config
  • OAuth2 client credentials — ApiAuth.oauth2() with token caching

[0.3.0] — 2026-03-25​

Added​

  • BaseApiTest — pure API testing without browser
  • ApiClient — fluent HTTP client (JDK HttpClient)
  • ApiResponse — JSONPath extraction, fluent assertions
  • ApiAuth — Bearer token and Basic auth strategies
  • ScenarioContext / SuiteContext — thread-local and global state stores

[0.2.0] — 2026-03-22​

Added​

  • @TestData — annotation-driven test data from JSON/YAML; env overrides
  • Browser matrix — run every test on every browser in one mvn test
  • SessionCache — cross-thread session reuse
  • Soft assertions — collect failures, flush at test end

[0.1.0] — 2026-03-16​

Added​

  • BaseTest — test base class with framework lifecycle
  • BasePage — page object base: click, type, getText, withinFrame
  • WaitEngine — centralized explicit waits
  • Locator — fluent auto-waiting locator chain
  • StepLogger — named steps with timestamps and screenshots
  • DriverManager — thread-local WebDriver lifecycle
  • testfly.yml — convention-over-configuration YAML
  • HTML report — tabbed dashboard, pass rate gauge, retry badges
  • JUnit XML + CI auto-detection (GitHub Actions, Jenkins, CircleCI, GitLab CI)
  • Build quality gates — pass-rate and flaky-test thresholds
  • Plugin system — SPI-based TestFlyPlugin, custom driver providers, report adapters
  • @PreCondition — session-aware pre-conditions with cookie caching
  • @Retryable — per-method retry with config
  • Chrome + Firefox providers with auto download directory
  • Console error collector, download manager, iFrame helpers, alert handling