This is an automated email from the ASF dual-hosted git repository. thiagohp pushed a commit to branch feature/coffeescript-to-typescript in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
The following commit(s) were added to refs/heads/feature/coffeescript-to-typescript by this push: new c84c17cbb More test logging (attempt 3) c84c17cbb is described below commit c84c17cbbab208fe56190ca7ae78c4710800c293 Author: Thiago H. de Paula Figueiredo <thi...@arsmachina.com.br> AuthorDate: Sat Jun 7 11:14:55 2025 -0300 More test logging (attempt 3) --- .../integration/TapestryBeanValidationIntegrationTests.java | 8 ++++---- .../src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java | 7 +++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/tapestry-beanvalidator/src/test/java/org/apache/tapestry5/beanvalidator/integration/TapestryBeanValidationIntegrationTests.java b/tapestry-beanvalidator/src/test/java/org/apache/tapestry5/beanvalidator/integration/TapestryBeanValidationIntegrationTests.java index 195061e09..3b53a433a 100644 --- a/tapestry-beanvalidator/src/test/java/org/apache/tapestry5/beanvalidator/integration/TapestryBeanValidationIntegrationTests.java +++ b/tapestry-beanvalidator/src/test/java/org/apache/tapestry5/beanvalidator/integration/TapestryBeanValidationIntegrationTests.java @@ -110,11 +110,11 @@ public class TapestryBeanValidationIntegrationTests extends SeleniumTestCase @Test public void beaneditform_validation() throws Exception { - System.out.println("TTTTTTTTTTTTTTTTTTTTTTTt"); - System.err.println("RRRRRRRRRRRRRRR"); - LoggerFactory.getLogger(SeleniumTestCase.class) - .warn("LOGLOGLOGLOGLOGLOGLOGLOGLOGLOGLOGLOG"); + .warn("LOGLOGLOGLOGLOGLOGLOGLOGLOGLOGLOGLOG SeleniumTestCase"); + + LoggerFactory.getLogger(this.getClass()) + .warn("LOGLOGLOGLOGLOGLOGLOGLOGLOGLOGLOGLOG " + this.getClass().getSimpleName()); openLinks("BeanEditForm Validation Demo"); openLinks("BeanEditForm Validation Demo");// TODO: remove this diff --git a/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java b/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java index cdc4763ac..350978c9d 100644 --- a/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java +++ b/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java @@ -1448,6 +1448,13 @@ public abstract class SeleniumTestCase extends Assert implements Selenium e.printStackTrace(); System.out.println("Continuing execution after exception above."); } + catch (RuntimeException e) { + LOGGER.error("selenium.browserbot: " + getEval("selenium.browserbot")); + LOGGER.error("selenium.browserbot.getCurrentWindow(): " + getEval("selenium.browserbot.getCurrentWindow()")); + LOGGER.error("selenium.browserbot.getCurrentWindow().document.querySelector(\"body\").attributes : " + getEval("selenium.browserbot.getCurrentWindow().document.querySelector(\"body\").attributes")); + LOGGER.error("selenium.browserbot.getCurrentWindow().document.querySelector(\"body\").dataset : " + getEval("selenium.browserbot.getCurrentWindow().document.querySelector(\"body\").dataset")); + throw e; + } }