Skip to content

Commit 602f987

Browse files
author
Hoisko Sakari.M 10802213
committed
Merge branch 'DockerizedEnv' of github.com:eficode/JavaFXLibrary into DockerizedEnv
2 parents a06268d + 4a3e27c commit 602f987

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

src/test/robotframework/acceptance/SwingApplicationWrapperTest.robot

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,39 @@ Documentation Tests for handling Swing embedded JavaFX nodes
33
Resource ../resource.robot
44
Force Tags set-embedded
55
Suite Setup Import JavaFXLibrary
6+
Test Teardown Close Test Application
67

78
*** Testcases ***
89
Swing Embedded JavaFX Click Test
9-
[Tags] smoke demo-set
10-
Launch Swing Application javafxlibrary.testapps.SwingApplication
11-
Wait Until Keyword Succeeds 15 sec 250ms Find css=.button failIfNotFound=True
12-
${colors} Create List 0xdc143cff 0x00fa9aff 0xee82eeff 0xffff00ff 0x00ffffff
13-
Text Value Should Be Swing Embedded JavaFX
14-
:FOR ${I} IN RANGE 0 5
15-
\ Click On css=.button
16-
\ Text Value Should Be @{colors}[${i}]
17-
Close Swing Application
10+
[Tags] smoke demo-set
11+
Launch Swing Application javafxlibrary.testapps.SwingApplication
12+
Wait Until Keyword Succeeds 15 sec 250ms Find css=.button failIfNotFound=True
13+
${colors} Create List 0xdc143cff 0x00fa9aff 0xee82eeff 0xffff00ff 0x00ffffff
14+
Text Value Should Be Swing Embedded JavaFX
15+
:FOR ${I} IN RANGE 0 5
16+
\ Click On css=.button
17+
\ Wait Until Keyword Succeeds 3 sec 250ms Text Value Should Be @{colors}[${i}]
1818

1919
Swing Embedded JavaFX Type Test
2020
[Tags] smoke
2121
Launch Swing Application javafxlibrary.testapps.SwingApplication
2222
Wait Until Keyword Succeeds 15 sec 250ms Find id=textField failIfNotFound=True
2323
Write To id=textField JavaFXLibrary
24-
Text Value Should Be JavaFXLibrary
25-
Close Swing Application
24+
Wait Until Keyword Succeeds 3 sec 250ms Text Value Should Be JavaFXLibrary
2625

2726
Launch Swing Application Using External Wrapper Class
2827
[Tags] smoke
2928
Launch Javafx Application javafxlibrary.testapps.SwingApplicationWrapper
30-
Wait Until Keyword Succeeds 15 sec 250ms Find id=textField failIfNotFound=True
29+
Wait Until Keyword Succeeds 15 sec 250ms Find id=textField failIfNotFound=True
3130
Write To id=textField JavaFXLibrary
32-
Text Value Should Be JavaFXLibrary
33-
Close Javafx Application
31+
Wait Until Keyword Succeeds 3 sec 250ms Text Value Should Be JavaFXLibrary
3432

3533
*** Keywords ***
3634
Text Value Should Be
3735
[Arguments] ${value}
3836
${text} Get Node Text id=textValue
3937
Should Be Equal ${text} ${value}
38+
39+
Close Test Application
40+
Run Keyword If '${TEST NAME}' == 'Launch Swing Application Using External Wrapper Class' Close Javafx Application
41+
... ELSE Close Swing Application

0 commit comments

Comments
 (0)