There are 5 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-b7024619-4e5a-41ab-83ae-ab2a263347d9 XWIKI-12558 Closed

Give a Warning in the build for functional tests that take more time than they should

 
View issue   ยท   Add comment
 

5 updates

 
cid:jira-generated-image-avatar-b0fffe8b-1da7-4f08-8945-d1696d463283 Changes by Vincent Massol on 09/Jul/26 20:52
 
Documentation in Release Notes: N/A
Documentation: https://dev.xwiki.org/xwiki/bin/view/Community/Testing/DockerTesting/#HDon27tpaythetimeout
Resolution: Fixed
Tests: Unit
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-b0fffe8b-1da7-4f08-8945-d1696d463283 Vincent Massol on 09/Jul/26 20:52
 

Example:

20:42:06.736 [main] WARN  org.xwiki.test.ui.XWikiWebDriver - The currently running test wasted [30026] ms waiting for element [By.className: xwiki-livetable] which was not found. Tests should look for elements that are expected to be present; to check for the absence of an element or to avoid waiting, use findElementWithoutWaiting(), hasElementWithoutWaiting() or waitUntilElementDisappears() instead.
java.lang.Exception: Stack trace to help locate the wasteful findElement()/findElements() call
        at org.xwiki.test.ui.XWikiWebDriver.warnIfWastefulWait(XWikiWebDriver.java:760)
        at org.xwiki.test.ui.XWikiWebDriver.findElements(XWikiWebDriver.java:680)
        at org.xwiki.appwithinminutes.test.po.ApplicationHomePage.hasEntriesLiveTable(ApplicationHomePage.java:110)
        at org.xwiki.appwithinminutes.test.ui.WithoutScriptRightIT.createApplicationWithoutScriptRight(WithoutScriptRightIT.java:88)