Skip to content

Commit 085a209

Browse files
committed
src/test/robotframework: speed up tests by not opening pages before each test.
Open page that will be tested once in the beginning. This means that subsequent tests will see a state from the previous tests but in other hand it reduces number of times when we open page from 11 to 4 and saves about 15 seconds on my laptop. Related to #530 No functional changes.
1 parent 50b7b9c commit 085a209

File tree

4 files changed

+8
-24
lines changed

4 files changed

+8
-24
lines changed

src/test/robotframework/category/creation/misc.robot

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Documentation Verify miscellaneous aspects of category creation
33
Library Selenium2Library
44
Suite Setup Before Test Suite
55
Suite Teardown After Test Suite
6-
Test Setup Before Test
76
Force Tags category misc
87

98
*** Test Cases ***
@@ -25,14 +24,11 @@ Category name should be modified by replacing multiple spaces by one
2524

2625
*** Keywords ***
2726
Before Test Suite
28-
[Documentation] Open browsers, register fail hook and login as admin
27+
[Documentation] Login as admin and go to create category page
2928
Open Browser ${SITE_URL} ${BROWSER}
3029
Register Keyword To Run On Failure Log Source
3130
Log In As login=admin password=test
32-
33-
Before Test
34-
[Documentation] Open create category page
35-
Go To ${SITE_URL}/category/add
31+
Go To ${SITE_URL}/category/add
3632

3733
After Test Suite
3834
[Documentation] Log out and close browser

src/test/robotframework/category/creation/validation.robot

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Documentation Verify category creation validation scenarios
33
Library Selenium2Library
44
Suite Setup Before Test Suite
55
Suite Teardown After Test Suite
6-
Test Setup Before Test
76
Force Tags category validation
87

98
*** Test Cases ***
@@ -67,14 +66,11 @@ Create category with existing name
6766

6867
*** Keywords ***
6968
Before Test Suite
70-
[Documentation] Open browsers, register fail hook and login as admin
69+
[Documentation] Login as admin and go to create category page
7170
Open Browser ${SITE_URL} ${BROWSER}
7271
Register Keyword To Run On Failure Log Source
7372
Log In As login=admin password=test
74-
75-
Before Test
76-
[Documentation] Open create category page
77-
Go To ${SITE_URL}/category/add
73+
Go To ${SITE_URL}/category/add
7874

7975
After Test Suite
8076
[Documentation] Log out and close browser

src/test/robotframework/country/creation/misc.robot

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Documentation Verify miscellaneous aspects of country creation
33
Library Selenium2Library
44
Suite Setup Before Test Suite
55
Suite Teardown After Test Suite
6-
Test Setup Before Test
76
Force Tags country misc
87

98
*** Test Cases ***
@@ -25,14 +24,11 @@ Country name should be modified by replacing multiple spaces by one
2524

2625
*** Keywords ***
2726
Before Test Suite
28-
[Documentation] Open browsers, register fail hook and login as admin
27+
[Documentation] Login as admin and go to create country page
2928
Open Browser ${SITE_URL} ${BROWSER}
3029
Register Keyword To Run On Failure Log Source
3130
Log In As login=admin password=test
32-
33-
Before Test
34-
[Documentation] Open create country page
35-
Go To ${SITE_URL}/country/add
31+
Go To ${SITE_URL}/country/add
3632

3733
After Test Suite
3834
[Documentation] Log out and close browser

src/test/robotframework/country/creation/validation.robot

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Documentation Verify country creation validation scenarios
33
Library Selenium2Library
44
Suite Setup Before Test Suite
55
Suite Teardown After Test Suite
6-
Test Setup Before Test
76
Force Tags country validation
87

98
*** Test Cases ***
@@ -67,14 +66,11 @@ Create country with existing name
6766

6867
*** Keywords ***
6968
Before Test Suite
70-
[Documentation] Open browsers, register fail hook and login as admin
69+
[Documentation] Login as admin and go to create country page
7170
Open Browser ${SITE_URL} ${BROWSER}
7271
Register Keyword To Run On Failure Log Source
7372
Log In As login=admin password=test
74-
75-
Before Test
76-
[Documentation] Open create country page
77-
Go To ${SITE_URL}/country/add
73+
Go To ${SITE_URL}/country/add
7874

7975
After Test Suite
8076
[Documentation] Log out and close browser

0 commit comments

Comments
 (0)