v0.1.6 — New Features Added
Playwright for Java users: please upgrade. Auto-capture did not work in 0.1.5 — see the first item.
Fixed
- Playwright auto-capture was silently doing nothing.
RlPlaywright.attach(page)is normally called from@BeforeMethod/@BeforeEach, but both TestNG and JUnit run those hooks before the "test started" callback the bindings used, so there was no current test to attach to — no API rows, no trace, no failure screenshot. The test slot now opens before setup hooks run (TestNGIConfigurationListener.beforeConfiguration, JUnitBeforeEachCallback). Rl.attach()/Rl.log()called from@AfterMethod/@AfterEachnow land on the test that just finished. Previously the slot was already cleared, so Selenium teardown screenshots were dropped.- Multi-tab flows: with
RlPlaywright.attach(BrowserContext)the trace for a test that opened a popup was never attached. Every page of a test is now tracked; the trace is attached once and the failure screenshot comes from the most recent page still open. - A skipped test no longer receives a screenshot or trace under any policy (
alwaysandonly-on-passincluded). - JUnit 5 assumption failures (
Assumptions.assumeTrue) are reported as skipped, not failed. reporting-labs.propertiesis read as UTF-8; non-ASCII titles rendered as mojibake before.- Header masking ignores
-and_, soX-Api-Key,x_auth_tokenetc. are masked likeapiKey/authToken.
Added
Rl.shouldCaptureScreenshot()/shouldCaptureTrace()/shouldCaptureVideo()— no-arg helpers that combine the capture policy with the outcome of the current or just-finished test. A Selenium / AppiumBaseTestneeds neitherITestResultnor aTestWatcher:@AfterMethod(alwaysRun = true) public void tearDown() { if (Rl.shouldCaptureScreenshot()) { Rl.attach("screen.png", "image/png", ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES)); } driver.quit(); }