question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test Automation: Some tests do not work on Windows when using AWT Robot Adapter

See original GitHub issue

By 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:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JordanMartinezcommented, Oct 1, 2017

@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.

0reactions
JordanMartinezcommented, Oct 3, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found