Skip to content

[Win][Edge]Test_org_eclipse_swt_browser_Browser.test_setUrl_local fails for Edge #1670

@fedejeanne

Description

@fedejeanne

Describe the bug
The test Test_org_eclipse_swt_browser_Browser.test_setUrl_local fails for the Edge browser in the I-BUILDs and for both IE and Edge when run locally.

Stack trace (I-BUILD)

Multiple Failures (2 failures) org.junit.ComparisonFailure: Test log: PLUGIN_PATH: C:\Users\genie.releng\workspace\AutomatedTests\ep435I-unit-win32-x86_64-java21/workarea/I20241216-1800/eclipse-testing/test-eclipse/eclipse/plugins/org.eclipse.swt.tests_3.107.700.v20241216-1631 URL: C:\Users\genie.releng\workspace\AutomatedTests\ep435I-unit-win32-x86_64-java21/workarea/I20241216-1800/eclipse-testing/test-eclipse/eclipse/plugins/org.eclipse.swt.tests_3.107.700.v20241216-1631/data/testWebsiteWithTitle.html TitleListener fired expected:<[Website Title]> but was:<[c]> java.lang.RuntimeException: AwtScreenshot VM finished with exit code 1: Exception in thread "main" java.awt.AWTError: no screen devices at java.desktop/sun.awt.Win32GraphicsEnvironment.getDefaultScreenDevice(Win32GraphicsEnvironment.java:101) at java.desktop/java.awt.Robot.<init>(Robot.java:135) at org.eclipse.test.AwtScreenshot.main(AwtScreenshot.java:43)

org.opentest4j.MultipleFailuresError: Multiple Failures (2 failures)
org.junit.ComparisonFailure:
Test log:
PLUGIN_PATH: C:\Users\genie.releng\workspace\AutomatedTests\ep435I-unit-win32-x86_64-java21/workarea/I20241216-1800/eclipse-testing/test-eclipse/eclipse/plugins/org.eclipse.swt.tests_3.107.700.v20241216-1631
URL: C:\Users\genie.releng\workspace\AutomatedTests\ep435I-unit-win32-x86_64-java21/workarea/I20241216-1800/eclipse-testing/test-eclipse/eclipse/plugins/org.eclipse.swt.tests_3.107.700.v20241216-1631/data/testWebsiteWithTitle.html
TitleListener fired expected:<[Website Title]> but was:<[c]>
java.lang.RuntimeException: AwtScreenshot VM finished with exit code 1:
Exception in thread "main" java.awt.AWTError: no screen devices
at java.desktop/sun.awt.Win32GraphicsEnvironment.getDefaultScreenDevice(Win32GraphicsEnvironment.java:101)
at java.desktop/java.awt.Robot.<init>(Robot.java:135)
at org.eclipse.test.AwtScreenshot.main(AwtScreenshot.java:43)

at org.eclipse.test.TracingSuite$TracingRunNotifier.fireTestFinished(TracingSuite.java:176)
at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
Suppressed: org.junit.ComparisonFailure:
Test log:
PLUGIN_PATH: C:\Users\genie.releng\workspace\AutomatedTests\ep435I-unit-win32-x86_64-java21/workarea/I20241216-1800/eclipse-testing/test-eclipse/eclipse/plugins/org.eclipse.swt.tests_3.107.700.v20241216-1631
URL: C:\Users\genie.releng\workspace\AutomatedTests\ep435I-unit-win32-x86_64-java21/workarea/I20241216-1800/eclipse-testing/test-eclipse/eclipse/plugins/org.eclipse.swt.tests_3.107.700.v20241216-1631/data/testWebsiteWithTitle.html
TitleListener fired expected:<[Website Title]> but was:<[c]>
at org.junit.Assert.assertEquals(Assert.java:117)
at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser.validateTitleChanged(Test_org_eclipse_swt_browser_Browser.java:1262)
at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser.test_setUrl_local(Test_org_eclipse_swt_browser_Browser.java:1188)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
... 1 more
Suppressed: java.lang.RuntimeException: AwtScreenshot VM finished with exit code 1:
Exception in thread "main" java.awt.AWTError: no screen devices
at java.desktop/sun.awt.Win32GraphicsEnvironment.getDefaultScreenDevice(Win32GraphicsEnvironment.java:101)
at java.desktop/java.awt.Robot.<init>(Robot.java:135)
at org.eclipse.test.AwtScreenshot.main(AwtScreenshot.java:43)

at org.eclipse.test.AwtScreenshot.dumpAwtScreenshot(AwtScreenshot.java:113)
at org.eclipse.test.Screenshots.takeScreenshot(Screenshots.java:102)
at org.eclipse.test.Screenshots$ScreenshotOnFailure.failed(Screenshots.java:40)
... 1 more 

To Reproduce

  • Let it run in the nightly I-BUILD or
  • Run the test locally

Expected behavior
The test shouldn't fail

Environment:

    • All OS
    • Windows
    • Linux
    • macOS

Version since
I-BUILD I20241216-1800, since the tests for Edge were activated (#672)

Metadata

Metadata

Assignees

No one assigned

    Labels

    WindowsHappens on Windows OSedgeEdge BrowserjunitJUnit test failureregressionSomething that used to work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions