Skip to content

Commit a0677d9

Browse files
committed
Remove documentation from most of the RobotFramework tests and keywords.
Also reword some test case names. No functional changes.
1 parent a1ba49b commit a0677d9

27 files changed

+35
-199
lines changed

src/test/robotframework/account/activation/logic.robot

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ Test Setup Before Test
77
Force Tags account activation logic
88

99
*** Test Cases ***
10-
Activate account with full info
11-
[Documentation] Verify account activation by filling all fields
10+
Activate account with full info (fill all fields)
1211
Input Text id=login 1st-test-login
1312
Input Text id=name Test Suite
1413
Input Text id=password test-password
@@ -18,8 +17,7 @@ Activate account with full info
1817
Location Should Be ${SITE_URL}/account/auth
1918
Element Text Should Be id=msg-success Account successfully activated! Now you can pass authentication.
2019

21-
Activate account with only required info
22-
[Documentation] Verify account activation by filling only mandatory fields
20+
Activate account with only required info (fill only mandatory fields)
2321
Input Text id=login 2nd-test-login
2422
Input Text id=name ${EMPTY}
2523
Input Text id=password test-password
@@ -31,14 +29,11 @@ Activate account with only required info
3129

3230
*** Keywords ***
3331
Before Test Suite
34-
[Documentation] Open browser and register fail hook
3532
Open Browser ${SITE_URL} ${BROWSER}
3633
Register Keyword To Run On Failure Log Source
3734

3835
Before Test
39-
[Documentation] Open activate account page
40-
Go To ${SITE_URL}/account/activate
36+
Go To ${SITE_URL}/account/activate
4137

4238
After Test Suite
43-
[Documentation] Close browser
4439
Close Browser

src/test/robotframework/category/access.robot

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,19 @@ Force Tags category access
77

88
*** Test Cases ***
99
Anonymous user cannot create category
10-
[Documentation] Verify that anonymous user gets 403 error
1110
Go To ${SITE_URL}/category/add
1211
Element Text Should Be id=error-code 403
1312
Element Text Should Be id=error-msg Forbidden
1413

1514
Opening a page of non-existing category show an error
16-
[Documentation] Verify that access to non-existing category returns 404 error
1715
Go To ${SITE_URL}/category/category-404-error-test
1816
Element Text Should Be id=error-code 404
1917
Element Text Should Be id=error-msg Requested page${\n}not found
2018

2119
*** Keywords ***
2220
Before Test Suite
23-
[Documentation] Open browser and register fail hook
2421
Open Browser ${SITE_URL} ${BROWSER}
2522
Register Keyword To Run On Failure Log Source
2623

2724
After Test Suite
28-
[Documentation] Close browser
2925
Close Browser

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ Test Setup Before Test
99
Force Tags category logic
1010

1111
*** Test Cases ***
12-
Create category with name in English
13-
[Documentation] Verify creation of category by filling only mandatory fields
12+
Create category with name in English (fill only mandatory fields)
1413
Input Text id=name Cars
1514
Submit Form id=add-category-form
1615
Location Should Be ${SITE_URL}/category/cars
@@ -22,7 +21,6 @@ Create category with name in English
2221
# TODO: verify that after changing language, header will be in English
2322

2423
Create category with name in English and Russian
25-
[Documentation] Verify creation of category by specifying names in 2 languages
2624
Input Text id=name Space
2725
Input Text id=nameRu Космос
2826
Submit Form id=add-category-form
@@ -33,16 +31,13 @@ Create category with name in English and Russian
3331

3432
*** Keywords ***
3533
Before Test Suite
36-
[Documentation] Open browser, register fail hook and login as admin
3734
Open Browser ${SITE_URL} ${BROWSER}
3835
Register Keyword To Run On Failure Log Source
3936
Log In As login=admin password=test
4037

4138
Before Test
42-
[Documentation] Open create category page
43-
Go To ${SITE_URL}/category/add
39+
Go To ${SITE_URL}/category/add
4440

4541
After Test Suite
46-
[Documentation] Log out and close browser
4742
Log Out
4843
Close Browser

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,27 @@ Force Tags category misc
88

99
*** Test Cases ***
1010
Category name should be stripped from leading and trailing spaces
11-
[Documentation] Verify removing of leading and trailing spaces from name
1211
Input Text id=name ${SPACE * 2}t3st${SPACE * 2}
1312
Input Text id=nameRu ${SPACE * 2}т3ст${SPACE * 2}
1413
Submit Form id=add-category-form
1514
Textfield Value Should Be id=name t3st
1615
Textfield Value Should Be id=nameRu т3ст
1716

1817
Category name should be modified by replacing multiple spaces by one
19-
[Documentation] Verify replacing of repeating spaces from name
2018
Input Text id=name t3${SPACE * 2}st
2119
Input Text id=nameRu т3${SPACE * 2}ст
2220
Submit Form id=add-category-form
2321
Textfield Value Should Be id=name t3 st
2422
Textfield Value Should Be id=nameRu т3 ст
2523

2624
Category name in English should accept all allowed characters
27-
[Documentation] Verify that various characters in name are allowed
2825
Input Text id=name Valid-Name Category
2926
# we also type invalid name in Russian to stay on this page
3027
Input Text id=nameRu 1
3128
Submit Form id=add-category-form
3229
Page Should Not Contain Element id=name.errors
3330

3431
Category name in Russian should accept all allowed characters
35-
[Documentation] Verify that various characters in name are allowed
3632
Input Text id=nameRu Категория Ёё
3733
# we also type invalid name in English to stay on this page
3834
Input Text id=name 1
@@ -41,13 +37,11 @@ Category name in Russian should accept all allowed characters
4137

4238
*** Keywords ***
4339
Before Test Suite
44-
[Documentation] Login as admin and go to create category page
4540
Open Browser ${SITE_URL} ${BROWSER}
4641
Register Keyword To Run On Failure Log Source
4742
Log In As login=admin password=test
4843
Go To ${SITE_URL}/category/add
4944

5045
After Test Suite
51-
[Documentation] Log out and close browser
5246
Log Out
5347
Close Browser

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ Force Tags category validation
88

99
*** Test Cases ***
1010
Create category with too short name
11-
[Documentation] Verify validation of too short name
1211
Input Text id=name jj
1312
Input Text id=nameRu яя
1413
Submit Form id=add-category-form
1514
Element Text Should Be id=name.errors Value is less than allowable minimum of 3 characters
1615
Element Text Should Be id=nameRu.errors Value is less than allowable minimum of 3 characters
1716

1817
Create category with too long name
19-
[Documentation] Verify validation of too long name
2018
${englishLetter}= Set Variable j
2119
${russianLetter}= Set Variable я
2220
Input Text id=name ${englishLetter * 51}
@@ -26,39 +24,34 @@ Create category with too long name
2624
Element Text Should Be id=nameRu.errors Value is greater than allowable maximum of 50 characters
2725

2826
Create category with forbidden characters in name
29-
[Documentation] Verify validation of invalid name
3027
Input Text id=name S0m3+CategoryN_ame
3128
Input Text id=nameRu Категория_1+23
3229
Submit Form id=add-category-form
3330
Element Text Should Be id=name.errors Value must consist only latin letters, hyphen or spaces
3431
Element Text Should Be id=nameRu.errors Value must consist only Russian letters, hyphen or spaces
3532

3633
Create category with repeating hyphens in name
37-
[Documentation] Verify validation of name with repeating hyphens
3834
Input Text id=name te--st
3935
Input Text id=nameRu те--ст
4036
Submit Form id=add-category-form
4137
Element Text Should Be id=name.errors Value must not contain repetition of hyphen
4238
Element Text Should Be id=nameRu.errors Value must not contain repetition of hyphen
4339

4440
Create category with name that starts with hyphen
45-
[Documentation] Verify validation of name with leading hyphen
4641
Input Text id=name -test
4742
Input Text id=nameRu -тест
4843
Submit Form id=add-category-form
4944
Element Text Should Be id=name.errors Value must not start or end with hyphen
5045
Element Text Should Be id=nameRu.errors Value must not start or end with hyphen
5146

5247
Create category with name that ends with hyphen
53-
[Documentation] Verify validation of name with trailing hyphen
5448
Input Text id=name test-
5549
Input Text id=nameRu тест-
5650
Submit Form id=add-category-form
5751
Element Text Should Be id=name.errors Value must not start or end with hyphen
5852
Element Text Should Be id=nameRu.errors Value must not start or end with hyphen
5953

6054
Create category with forbidden names
61-
[Documentation] Verify validation of forbidden names
6255
# Open a page again to have a clean state (nameRu field has an invalid value)
6356
Go To ${SITE_URL}/category/add
6457
# 'add' is a forbidden value
@@ -70,24 +63,21 @@ Create category with forbidden names
7063
Submit Form id=add-category-form
7164
Element Text Should Be id=name.errors Invalid value
7265

73-
Create category with existing name
74-
[Documentation] Verify validation of non-unique name
66+
Create category with existing (non-unique) name
7567
Input Text id=name Sport
7668
Input Text id=nameRu Спорт
7769
Submit Form id=add-category-form
7870
Element Text Should Be id=name.errors Category already exists
7971
Element Text Should Be id=nameRu.errors Category already exists
8072

8173
Create category with existing name but in a different case
82-
[Documentation] Verify that validation of non-unique name is case insensitive
8374
Input Text id=name sport
8475
Input Text id=nameRu спорт
8576
Submit Form id=add-category-form
8677
Element Text Should Be id=name.errors Category already exists
8778
Element Text Should Be id=nameRu.errors Category already exists
8879

89-
Create category with non-existing name but existing slug
90-
[Documentation] Verify validation of non-unique slug
80+
Create category with non-existing name but existing (non-unique) slug
9181
Input Text id=name Prehistoric - animals
9282
# clear a value after a previous test to prevent its validation and looking up in database
9383
Clear Element Text id=nameRu
@@ -96,13 +86,11 @@ Create category with non-existing name but existing slug
9686

9787
*** Keywords ***
9888
Before Test Suite
99-
[Documentation] Login as admin and go to create category page
10089
Open Browser ${SITE_URL} ${BROWSER}
10190
Register Keyword To Run On Failure Log Source
10291
Log In As login=admin password=test
10392
Go To ${SITE_URL}/category/add
10493

10594
After Test Suite
106-
[Documentation] Log out and close browser
10795
Log Out
10896
Close Browser

src/test/robotframework/collection/add-series/validation.robot

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,23 @@ Force Tags collection validation
88

99
*** Test Cases ***
1010
Add a series without required field
11-
[Documentation] Verify validation of required fields
1211
Input Text id=number-of-stamps ${EMPTY}
1312
Submit Form id=add-series-form
1413
Element Text Should Be id=number-of-stamps.errors Value must not be empty
1514

1615
Add a series with too few number of stamps
17-
[Documentation] Verify validation of the minimal number of stamps
1816
Input Text id=number-of-stamps 0
1917
Submit Form id=add-series-form
2018
Element Text Should Be id=number-of-stamps.errors Value must be greater than or equal to 1
2119

2220
Add a series with too many number of stamps
23-
[Documentation] Verify validation of the maximum number of stamps
2421
Input Text id=number-of-stamps 5
2522
Submit Form id=add-series-form
2623
${msg}= Set Variable Number of stamps must be less than or equal to a stamps quantity in the series
2724
Element Text Should Be id=number-of-stamps.errors ${msg}
2825

2926
*** Keywords ***
3027
Before Test Suite
31-
[Documentation] Login as user and open series info page
3228
Open Browser ${SITE_URL} ${BROWSER}
3329
Register Keyword To Run On Failure Log Source
3430
Log In As login=coder password=test
@@ -37,6 +33,5 @@ Before Test Suite
3733
Go To ${SITE_URL}/series/2
3834

3935
After Test Suite
40-
[Documentation] Log out and close browser
4136
Log Out
4237
Close Browser

src/test/robotframework/country/access.robot

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,19 @@ Force Tags country access
77

88
*** Test Cases ***
99
Anonymous user cannot create country
10-
[Documentation] Verify that anonymous user gets 403 error
1110
Go To ${SITE_URL}/country/add
1211
Element Text Should Be id=error-code 403
1312
Element Text Should Be id=error-msg Forbidden
1413

1514
Opening a page of non-existing country show an error
16-
[Documentation] Verify that access to non-existing country returns 404 error
1715
Go To ${SITE_URL}/country/country-404-error-test
1816
Element Text Should Be id=error-code 404
1917
Element Text Should Be id=error-msg Requested page${\n}not found
2018

2119
*** Keywords ***
2220
Before Test Suite
23-
[Documentation] Open browser and register fail hook
2421
Open Browser ${SITE_URL} ${BROWSER}
2522
Register Keyword To Run On Failure Log Source
2623

2724
After Test Suite
28-
[Documentation] Close browser
2925
Close Browser

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ Test Setup Before Test
88
Force Tags country logic
99

1010
*** Test Cases ***
11-
Create country with name in English
12-
[Documentation] Verify creation of country by filling only mandatory fields
11+
Create country with name in English (fill only mandatory fields)
1312
[Tags] unstable
1413
Input Text id=name Germany
1514
Submit Form id=add-country-form
@@ -20,7 +19,6 @@ Create country with name in English
2019
Country Field Should Have Option Germany
2120

2221
Create country with name in English and Russian
23-
[Documentation] Verify creation of country by specifying names in 2 languages
2422
Input Text id=name Czechia
2523
Input Text id=nameRu Чехия
2624
Submit Form id=add-country-form
@@ -31,17 +29,14 @@ Create country with name in English and Russian
3129

3230
*** Keywords ***
3331
Before Test Suite
34-
[Documentation] Open browser, register fail hook and login as admin
3532
Open Browser ${SITE_URL} ${BROWSER}
3633
Register Keyword To Run On Failure Log Source
3734
Log In As login=admin password=test
3835

3936
Before Test
40-
[Documentation] Open create country page
41-
Go To ${SITE_URL}/country/add
37+
Go To ${SITE_URL}/country/add
4238

4339
After Test Suite
44-
[Documentation] Log out and close browser
4540
Log Out
4641
Close Browser
4742

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,27 @@ Force Tags country misc
88

99
*** Test Cases ***
1010
Country name should be stripped from leading and trailing spaces
11-
[Documentation] Verify removing of leading and trailing spaces from name
1211
Input Text id=name ${SPACE * 2}t3st${SPACE * 2}
1312
Input Text id=nameRu ${SPACE * 2}т3ст${SPACE * 2}
1413
Submit Form id=add-country-form
1514
Textfield Value Should Be id=name t3st
1615
Textfield Value Should Be id=nameRu т3ст
1716

1817
Country name should be modified by replacing multiple spaces by one
19-
[Documentation] Verify replacing of repeating spaces from name
2018
Input Text id=name t3${SPACE * 2}st
2119
Input Text id=nameRu т3${SPACE * 2}ст
2220
Submit Form id=add-country-form
2321
Textfield Value Should Be id=name t3 st
2422
Textfield Value Should Be id=nameRu т3 ст
2523

2624
Country name in English should accept all allowed characters
27-
[Documentation] Verify that various characters in name are allowed
2825
Input Text id=name Valid-Name Country
2926
# we also type invalid name in Russian to stay on this page
3027
Input Text id=nameRu 1
3128
Submit Form id=add-country-form
3229
Page Should Not Contain Element id=name.errors
3330

3431
Country name in Russian should accept all allowed characters
35-
[Documentation] Verify that various characters in name are allowed
3632
Input Text id=nameRu Ёё Нормальное-название страны
3733
# we also type invalid name in English to stay on this page
3834
Input Text id=name 1
@@ -41,13 +37,11 @@ Country name in Russian should accept all allowed characters
4137

4238
*** Keywords ***
4339
Before Test Suite
44-
[Documentation] Login as admin and go to create country page
4540
Open Browser ${SITE_URL} ${BROWSER}
4641
Register Keyword To Run On Failure Log Source
4742
Log In As login=admin password=test
4843
Go To ${SITE_URL}/country/add
4944

5045
After Test Suite
51-
[Documentation] Log out and close browser
5246
Log Out
5347
Close Browser

0 commit comments

Comments
 (0)