Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbb9236

Browse files
committed
- Tagging monocle failing tests with "monocle-issue" if headless mode is enabled
- Checking in scrolling tests that app is in right stage at the beginning of test case - Initializing library as headless mode false
1 parent a480220 commit bbb9236

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

src/test/robotframework/acceptance/ScrollRobotTest.robot

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Scroll Right
6969
*** Keywords ***
7070
Setup all tests
7171
Import JavaFXLibrary
72+
Run Keyword If ${headless} Set Tags monocle-issue
7273
Launch Javafx Application ${TEST_APPLICATION}
7374
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
7475
Set Variables

src/test/robotframework/acceptance/ScrollRobotTest2.robot

+8
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,27 @@ ${TEST_APPLICATION} javafxlibrary.testapps.TestScrollRobot2
1313
*** Test Cases ***
1414
Scroll down
1515
[Tags] smoke demo-set
16+
Verify String Should Not Match id=verticalScrollLocation max
1617
Scroll Vertically DOWN 50
1718
Verify String id=verticalScrollLocation max
1819
1920
Scroll up
2021
[Tags] smoke demo-set
22+
Verify String Should Not Match id=verticalScrollLocation min
2123
Scroll Vertically UP 50
2224
Verify String id=verticalScrollLocation min
2325
2426
Scroll right
2527
[Tags] smoke demo-set
2628
Skip Test On Linux
29+
Verify String Should Not Match id=horizontalScrollLocation max
2730
Scroll Horizontally RIGHT 50
2831
Verify String id=horizontalScrollLocation max
2932
3033
Scroll left
3134
[Tags] smoke demo-set
3235
Skip Test On Linux
36+
Verify String Should Not Match id=horizontalScrollLocation min
3337
Scroll Horizontally LEFT 50
3438
Verify String id=horizontalScrollLocation min
3539
@@ -41,24 +45,28 @@ Scroll down once
4145
4246
Scroll up once
4347
[Tags] smoke
48+
Verify String Should Not Match id=verticalScrollLocation min
4449
Scroll Vertically UP 1
4550
Verify String id=verticalScrollLocation min
4651
4752
Scroll Right Once
4853
[Tags] smoke
4954
Skip Test On Linux
55+
Verify String id=horizontalScrollLocation min
5056
Scroll Horizontally RIGHT 1
5157
Verify String Should Not Match id=horizontalScrollLocation min
5258
5359
Scroll Left Once
5460
[Tags] smoke
5561
Skip Test On Linux
62+
Verify String Should Not Match id=horizontalScrollLocation min
5663
Scroll Horizontally LEFT 1
5764
Verify String id=horizontalScrollLocation min
5865
5966
*** Keywords ***
6067
Setup all tests
6168
Import JavaFXLibrary
69+
Run Keyword If ${headless} Set Tags monocle-issue
6270
Launch Javafx Application ${TEST_APPLICATION}
6371
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
6472
Move To id=scrollPane

src/test/robotframework/acceptance/SwingApplicationWrapperTest.robot

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Test Teardown Teardown Test Case
99
*** Testcases ***
1010
Swing Embedded JavaFX Click Test
1111
[Tags] smoke demo-set
12+
Run Keyword If ${headless} Set Tags monocle-issue
1213
Launch Swing Application javafxlibrary.testapps.SwingApplication
1314
Wait Until Keyword Succeeds 15 sec 250ms Find css=.button failIfNotFound=True
1415
${colors} Create List 0xdc143cff 0x00fa9aff 0xee82eeff 0xffff00ff 0x00ffffff
@@ -19,13 +20,15 @@ Swing Embedded JavaFX Click Test
1920

2021
Swing Embedded JavaFX Type Test
2122
[Tags] smoke
23+
Run Keyword If ${headless} Set Tags monocle-issue
2224
Launch Swing Application javafxlibrary.testapps.SwingApplication
2325
Wait Until Keyword Succeeds 15 sec 250ms Find id=textField failIfNotFound=True
2426
Write To id=textField JavaFXLibrary
2527
Wait Until Keyword Succeeds 3 sec 250ms Text Value Should Be JavaFXLibrary
2628

2729
Launch Swing Application Using External Wrapper Class
2830
[Tags] smoke
31+
Run Keyword If ${headless} Set Tags monocle-issue
2932
Launch Javafx Application javafxlibrary.testapps.SwingApplicationWrapper
3033
Wait Until Keyword Succeeds 15 sec 250ms Find id=textField failIfNotFound=True
3134
Write To id=textField JavaFXLibrary

src/test/robotframework/acceptance/WindowLookupTest.robot

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ Bring Stage To Front
9191
# Keyword is located in TypeRobot
9292
Close Current Window
9393
[Tags] smoke set-todo
94+
Run Keyword If ${headless} Set Tags monocle-issue
9495
${START} List Windows
9596
Activate window @{START}[0]
9697
Close Current Window

src/test/robotframework/resource.robot

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
*** Variables ***
22
${appJar} javafxlibrary-*-tests.jar
3+
${headless} ${False}
34
45
*** Keywords ***
56
Import JavaFXLibrary
6-
Run Keyword If sys.platform.startswith('java') Import Library JavaFXLibrary
7-
... ELSE Import Library Remote http://javafxcompile:8270 WITH NAME RemoteJavaFXLibrary
7+
Run Keyword If sys.platform.startswith('java') Import Library JavaFXLibrary ${headless}
8+
... ELSE Import Library Remote http://javafxcompile:8270 ${headless} WITH NAME RemoteJavaFXLibrary
89
Set To Classpath ${appJar}
910
1011
Disable Embedded Image Logging For Negative Tests

0 commit comments

Comments
 (0)