Skip to content

Commit f4846d2

Browse files
committed
Set timeout in suite setup for test files with negative cases
1 parent 2d794dd commit f4846d2

10 files changed

+23
-17
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,10 @@ Setup all tests
260260
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
261261
Set Scene Values
262262
Set Window Values
263-
Set Timeout ${1}
263+
Set Timeout 1
264264
265265
Teardown all tests
266266
Close Javafx Application
267-
Set Timeout ${5}
268267
269268
Set Scene Values
270269
${SCENE} Get Scene id=button

src/test/robotframework/acceptance/BoundsLocationTest.robot

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,14 @@ Get Bounds Using XPath Query
7878
7979
Get Bounds Of Id That Does Not Exist
8080
[Tags] smoke negative
81-
Set Timeout ${1}
8281
${MSG} Run Keyword And Expect Error * Get Bounds id=idThatDoesNotExist
8382
Should Be Equal ${MSG} Given element "id=idThatDoesNotExist" was not found within given timeout of 1 SECONDS
84-
Set Timeout ${5}
8583
8684
*** Keywords ***
8785
Setup all tests
88-
Launch Javafx Application ${TEST_APPLICATION}
89-
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
86+
Set Timeout 1
87+
Launch Javafx Application ${TEST_APPLICATION}
88+
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
9089
Set Offsets
9190
9291
Teardown all tests

src/test/robotframework/acceptance/DatePickerTest.robot

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ Select JavaFX Release Date
3232

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

3839
Teardown all tests
3940
Close Javafx Application

src/test/robotframework/acceptance/DragRobotTest.robot

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,12 @@ Drag From + Drop To Using XPath Query
242242
243243
*** Keywords ***
244244
Setup all tests
245-
Launch Javafx Application ${TEST_APPLICATION}
246-
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
247-
${SCENE} Get Scene css=.button
248-
${BOUNDS} Get Bounds ${SCENE}
249-
Set Suite Variable ${SCENE_BOUNDS} ${BOUNDS}
245+
Set Timeout 0
246+
Launch Javafx Application ${TEST_APPLICATION}
247+
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
248+
${SCENE} Get Scene css=.button
249+
${BOUNDS} Get Bounds ${SCENE}
250+
Set Suite Variable ${SCENE_BOUNDS} ${BOUNDS}
250251
251252
Teardown all tests
252253
Close Javafx Application

src/test/robotframework/acceptance/FindTest.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Documentation Tests to test javafxlibrary.keywords.AdditionalKeywords.Find related keywords
33
Library JavaFXLibrary
44
Suite Teardown Teardown all tests
5+
Suite Setup Set Timeout 0
56
Force Tags set-find
67

78
*** Variables ***

src/test/robotframework/acceptance/KeyboardRobotTest.robot

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ Write special characters
8080
8181
*** Keywords ***
8282
Setup all tests
83-
Launch Javafx Application ${TEST_APPLICATION}
84-
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
83+
Set Timeout 0
84+
Launch Javafx Application ${TEST_APPLICATION}
85+
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
8586
8687
Teardown all tests
8788
Close Javafx Application

src/test/robotframework/acceptance/MiscTests.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Documentation Tests for AdditionalKeywords
33
Library JavaFXLibrary
44
Library Collections
55
Library String
6+
Suite Setup Set Timeout 0
67
Suite Teardown Close Javafx Application
78

89
*** Variables ***

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+
Set Timeout 0
8990
Launch Javafx Application ${TEST_APPLICATION}
9091
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
9192
Set Scene Bounds Values

src/test/robotframework/acceptance/PointLocationTest.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ Set New Target Position
170170
171171
*** Keywords ***
172172
Setup all tests
173+
Set Timeout 0
173174
Launch Javafx Application ${TEST_APPLICATION}
174175
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
175176
Set Decoration Values

src/test/robotframework/acceptance/ScreenCapturingTest.robot

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ Try To Compare Different Size Images
9696
9797
*** Keywords ***
9898
Setup all tests
99-
Launch Javafx Application ${TEST_APPLICATION}
100-
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
99+
Set Timeout 0
100+
Launch Javafx Application ${TEST_APPLICATION}
101+
Set Screenshot Directory ${OUTPUT_DIR}${/}report-images
101102
102103
Teardown all tests
103104
Close Javafx Application

0 commit comments

Comments
 (0)