-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrollingthroughentrylisttest #1361
Scrollingthroughentrylisttest #1361
Conversation
226ccc6
to
77bcd18
Compare
|
||
//reduce the delay to speed up loading the test resource | ||
robot().settings().delayBetweenEvents(10); | ||
openFileChooser.fileNameTextBox().enterText(getTestFilePath(TEST_FILE_NAME)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I see right, you just want the file path as a string. So I don't think you need getTestFilePath method if you're using java.nio.path.
See here for an example.
Current coverage is 28.41%@@ master #1361 diff @@
==========================================
Files 695 695
Lines 46266 46266
Methods 0 0
Messages 0 0
Branches 7646 7646
==========================================
Hits 13144 13144
Misses 31992 31992
Partials 1130 1130
|
c52d448
to
ec50739
Compare
I created an |
69c3ce1
to
d0ff0ba
Compare
should work now on windows 👍 |
d0ff0ba
to
f08f9d8
Compare
a5b07da
to
b72501e
Compare
b72501e
to
d1ee816
Compare
Is there any feedback on this Pull-Request? |
* The backlashes are replaced with forwardslashes b/c assertJ can't type the former one on windows | ||
*/ | ||
protected String getAbsolutePath(String relativePath) { | ||
return new File(this.getClass().getClassLoader().getResource(relativePath).getFile()).getAbsolutePath().replace("\\", "/"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try to use Path instead of File
import static org.assertj.swing.finder.WindowFinder.findFrame; | ||
import static org.assertj.swing.launcher.ApplicationLauncher.application; | ||
|
||
public abstract class AbstractUITest extends AssertJSwingJUnitTestCase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for extracting this
bb77b52
to
5b75ee0
Compare
I wrote a ui-test for the following use case:
I import a bib-file into a new database.
Then I double-click on the first entry in the database to open up the entry editor.
Then I click back into the table and start scrolling through the entries.
When I do that, the table should always keep the focus.
This test case tests the following pull-requests enhancement: #988
It also referes to the discussion about ui-testing: #507