Hi Krystof and everyone

First I would like to point out that in 'option 3', you're looking for different element as in `option 1` (missing /li suffix).

Both option seems problematic for me even when running locally. They often fail after cold start. But not in subsequent runs.
By coldstart I mean both WF server and james server (docker compose up --remove-orphans --force-recreate and docker-compose down --volumes).

option 1:
```
[ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 18.18 s <<< FAILURE! -- in org.jboss.as.quickstarts.mail.MailTestCaseIT
[ERROR] org.jboss.as.quickstarts.mail.MailTestCaseIT.b_retrievePOP3 -- Time elapsed: 15.20 s <<< ERROR!
org.openqa.selenium.TimeoutException:
Expected condition failed: waiting for org.jboss.as.quickstarts.mail.MailTestCaseIT$$Lambda$265/0x00007faf10555f58@4d6f623d (tried for 15 second(s) with 500 milliseconds interval)
Build info: version: '4.19.1', revision: 'abe0ee07dc'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.12.8-200.fc41.x86_64', java.version: '17.0.13'
Driver info: org.jboss.arquillian.drone.webdriver.htmlunit.DroneHtmlUnitDriver_ByGraphene
         ...
        at org.jboss.as.quickstarts.mail.MailTestCaseIT.b_retrievePOP3(MailTestCaseIT.java:93)
```

option 3:
```
[ERROR] org.jboss.as.quickstarts.mail.MailTestCaseIT.b_retrievePOP3 -- Time elapsed: 0.452 s <<< FAILURE!
java.lang.AssertionError: Expected From not found:
        at org.junit.Assert.fail(Assert.java:89)
```
This could be related to missing /li

On Tue, Jan 28, 2025 at 2:25 PM Krystof Stekovic <kstekovi@redhat.com> wrote:
Hi Harald

My use case are quickstarts and try to implement option 1 and 3. Here are my updates to QS

option 1: https://github.com/kstekovi/quickstart/commit/3d784824b5c19f42472575e4d1fc81fd77691e70
option 3: https://github.com/kstekovi/quickstart/commit/66da0ddf7a27e29f50b086ad0f14316560da751c

I was able to use both variants locally on my laptop when it start the QS test manually. In the CI automation work only option 3.

For the option 1 in the CI I get the following errors:

13:28:16 [ERROR] Errors:
13:28:16 [ERROR]   MailTestCaseIT.a_testSMTP:71 » NoSuchElement Unable to locate a node using //ul[@id='smtp_messages']/li
13:28:16 For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
13:28:16 Build info: version: '4.19.1', revision: 'abe0ee07dc'
13:28:16 System info: os.name: 'Linux', os.arch: 'amd64', os.version: '4.18.0-553.27.1.el8_10.x86_64', java.version: '17.0.12'
13:28:16 Driver info: driver.version: HtmlUnitDriver
13:28:16 [ERROR]   MailTestCaseIT.b_retrievePOP3:93 » Timeout Expected condition failed: waiting for org.jboss.as.quickstarts.mail.MailTestCaseIT$$Lambda$447/0x00007fd58c5cadf0@6345e7b9 (tried for 15 second(s) with 500 milliseconds interval)
13:28:16 Build info: version: '4.19.1', revision: 'abe0ee07dc'
13:28:16 System info: os.name: 'Linux', os.arch: 'amd64', os.version: '4.18.0-553.27.1.el8_10.x86_64', java.version: '17.0.12'
13:28:16 Driver info: org.jboss.arquillian.drone.webdriver.htmlunit.DroneHtmlUnitDriver_ByGraphene
13:28:16 [INFO]
13:28:16 [ERROR] Tests run: 4, Failures: 0, Errors: 2, Skipped: 0

It looks the browser is ready and few test passed. Unfortunately not all. It didn't found some required HTML elements and i don't know way. This didn't happens when i use only HtmlUnit.

So i am voting for Option 3 - because the the setup of the browser is much easier and i didn't had any issue with it locale or in CI
_______________________________________________
wildfly-dev mailing list -- wildfly-dev@lists.jboss.org
To unsubscribe send an email to wildfly-dev-leave@lists.jboss.org
Privacy Statement: https://www.redhat.com/en/about/privacy-policy
List Archives: https://lists.jboss.org/archives/list/wildfly-dev@lists.jboss.org/message/ZDULDGSLKBQ5MNZRYCW7MPNB3P7HGRZQ/