Skip to content

Commit 8281072

Browse files
committed
Import the library dynamically
Each test suite calls Import JavaFXLibrary keyword which imports the local jar library on Jython and the Remote library with Docker containers address on Python.
1 parent 515b547 commit 8281072

20 files changed

+33
-8
lines changed

src/main/java/JavaFXLibrary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public Object runKeyword(String keywordName, Object[] args) {
8282

8383
try {
8484
// timeout + 100 ms so that underlying timeout has a chance to expire first
85-
WaitForAsyncUtils.waitFor(getWaitUntilTimeout(TimeUnit.MILLISECONDS) + 100, TimeUnit.MILLISECONDS, () -> {
85+
WaitForAsyncUtils.waitFor(getWaitUntilTimeout(TimeUnit.MILLISECONDS) + 500, TimeUnit.MILLISECONDS, () -> {
8686

8787
try {
8888
retval.set(super.runKeyword(keywordName, finalArgs));

src/test/robotframework/acceptance/0_ClickRobotTest.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ Click On Unsupported Type
256256
257257
*** Keywords ***
258258
Setup all tests
259+
Import JavaFXLibrary
259260
Launch Javafx Application ${TEST_APPLICATION}
260261
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
261262
Set Scene Values

src/test/robotframework/acceptance/BoundsLocationTest.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Get Bounds Of Id That Does Not Exist
8383
8484
*** Keywords ***
8585
Setup all tests
86+
Import JavaFXLibrary
8687
Set Timeout 1
8788
Launch Javafx Application ${TEST_APPLICATION}
8889
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images

src/test/robotframework/acceptance/DatePickerTest.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Select JavaFX Release Date
3232

3333
*** Keywords ***
3434
Setup all tests
35+
Import JavaFXLibrary
3536
Set Timeout 0
3637
Launch Javafx Application ${TEST_APPLICATION}
3738
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images

src/test/robotframework/acceptance/DragRobotTest.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ Drag From + Drop To Using XPath Query
242242
243243
*** Keywords ***
244244
Setup all tests
245+
Import JavaFXLibrary
245246
Set Timeout 0
246247
Launch Javafx Application ${TEST_APPLICATION}
247248
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images

src/test/robotframework/acceptance/FindTest.robot

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
*** Settings ***
22
Documentation Tests to test javafxlibrary.keywords.AdditionalKeywords.Find related keywords
3-
Resource ../resource.robot
3+
Resource ../resource.robot
4+
Suite Setup Setup All Tests
45
Suite Teardown Teardown all tests
5-
Suite Setup Set Timeout 0
66
Force Tags set-find
77

88
*** Variables ***
@@ -280,6 +280,10 @@ Change Current Application
280280
Launch Javafx Application ${APPLICATION}
281281
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
282282

283+
Setup All Tests
284+
Import JavaFXLibrary
285+
Set Timeout 0
286+
283287
Teardown all tests
284288
Close Javafx Application
285289

src/test/robotframework/acceptance/KeyboardRobotTest.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Write special characters
8080
8181
*** Keywords ***
8282
Setup all tests
83+
Import JavaFXLibrary
8384
Set Timeout 0
8485
Launch Javafx Application ${TEST_APPLICATION}
8586
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images

src/test/robotframework/acceptance/MenuAppTest.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Combined
8282
8383
*** Keywords ***
8484
Setup all tests
85+
Import JavaFXLibrary
8586
Launch Javafx Application ${TEST_APPLICATION}
8687
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
8788

src/test/robotframework/acceptance/MiscTests.robot

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Documentation Tests for AdditionalKeywords
33
Resource ../resource.robot
44
Library Collections
55
Library String
6-
Suite Setup Set Timeout 0
6+
Suite Setup Setup All Tests
77
Suite Teardown Close Javafx Application
88

99
*** Variables ***
@@ -298,6 +298,10 @@ Set Test Application
298298
[Arguments] ${APPLICATION}
299299
Run Keyword Unless '${CURRENT_APPLICATION}' == '${APPLICATION}' Change Current Application ${APPLICATION}
300300

301+
Setup All Tests
302+
Import JavaFXLibrary
303+
Set Timeout 0
304+
301305
Change Current Application
302306
[Arguments] ${APPLICATION}
303307
Run Keyword Unless '${CURRENT_APPLICATION}' == 'NOT SET' Close Javafx Application

src/test/robotframework/acceptance/MoveRobotTest.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Move To Window
8686
8787
*** Keywords ***
8888
Setup all tests
89+
Import JavaFXLibrary
8990
Set Timeout 0
9091
Launch Javafx Application ${TEST_APPLICATION}
9192
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images

0 commit comments

Comments
 (0)