Test Automation: Some tests do not work on Windows when using AWT Robot Adapter
See original GitHub issueBy default, TestFX uses the “awt” robot adapter. At least on Windows, this results in the SHIFT key not properly handled when selecting text. RichTextFX test cases such as those in the ShiftDown test suite are then failing.
When setting the property testfx.robot
to glass
, text selection with the pressed shift key works and those test cases succeed.
The solution for the gradle build is to add integrationTest.systemProperty "testfx.robot", "glass"
to the build file. (Will submitt a pull request after checking the same on Linux).
See also https://github.com/TomasMikula/RichTextFX/wiki/Test-Automation
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
GUI automation using a Robot - Undocumented Matlab
This article explains how Java's Robot class can be used to programmatically control mouse and keyboard actions.
Read more >Robot Framework User Guide
Robot Framework is a Python-based, extensible keyword-driven automation framework for acceptance testing, acceptance test driven development (ATDD), behavior ...
Read more >Robot Class in Selenium WebDriver Using Java - Edureka
This Robot class in Selenium blog helps you understand how to handle the mouse and keyboard functions while testing an application.
Read more >Does KARATE ROBOT require an active remote desktop ...
Yes, you are on the right track. Here are the best resources I've found so far on this aspect:.
Read more >Test your apps with the ATF - ServiceNow Docs
The Automated Test Framework (ATF) enables you to create and run automated tests to ... There is no specific version for this documentation....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@afester Can you list which tests failed on Windows when the
awt
robot adapter was used? I’d like to have this build on both adapters on Windows in the CI build if possible. I’m not sure if the tests are flaky or not.The tests in question are currently skipped when using the AWT robot adapter (see #596), so that one can still build the project without needing to specify this directly. Still, it’ll be better to learn more about the issue in the mentioned TestFX issue.