vaadin / portlet

Portlet support for Vaadin Flow
https://vaadin.com
Other
2 stars 3 forks source link

IPCNotVaadinEventIT::sendEventFromNonVaadinToVaadin is flaky #187

Open mshabarov opened 3 years ago

mshabarov commented 3 years ago

Portlet 1.0 IPCNotVaadinEventIT::sendEventFromNonVaadinToVaadin test fails time to time without any reasonable cause within validation with Flow 2.5:

java.lang.RuntimeException: sendEventFromNonVaadinToVaadin[ANY_Chrome_](com.vaadin.flow.portal.events.IPCNotVaadinEventIT): run failed 2 times
    at com.vaadin.testbench.RetryRule$1.evaluate(RetryRule.java:69)
    at org.junit.rules.RunRules.evaluate(RunRules.java:20)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:393)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate element with text: IT-1917931210
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'ip-172-16-1-59.eu-west-1.compute.internal', ip: '172.16.1.59', os.name: 'Linux', os.arch: 'amd64', os.version: '4.14.123-111.109.amzn2.x86_64', java.version: '1.8.0_201'
Driver info: driver.version: unknown
    at org.openqa.selenium.support.ui.Select.selectByVisibleText(Select.java:147)
    at com.vaadin.flow.component.html.testbench.SelectElement.selectByText(SelectElement.java:39)
    at com.vaadin.flow.portal.AbstractPlutoPortalTest.addPortlet(AbstractPlutoPortalTest.java:168)
    at com.vaadin.flow.portal.AbstractPlutoPortalTest.addVaadinPortlet(AbstractPlutoPortalTest.java:128)
    at com.vaadin.flow.portal.AbstractPlutoPortalTest.setup(AbstractPlutoPortalTest.java:96)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
    at com.vaadin.testbench.parallel.ParallelRunner$1.evaluate(ParallelRunner.java:468)
    at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
    at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
    at com.vaadin.testbench.RetryRule$1.evaluate(RetryRule.java:59)
    ... 11 more
------- Stderr: -------
Mar 31, 2021 9:39:40 AM com.vaadin.testbench.parallel.SauceLabsIntegration setDesiredCapabilities
WARNING: Null or empty sauce.options given. Ignoring.
Mar 31, 2021 9:39:41 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Mar 31, 2021 9:39:44 AM com.vaadin.testbench.parallel.SauceLabsIntegration setDesiredCapabilities
WARNING: Null or empty sauce.options given. Ignoring.
Mar 31, 2021 9:39:46 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C

image

https://bender.vaadin.com/viewLog.html?buildId=221802&buildTypeId=Flow_Flow25_AddOns_FlowPortlet10