Skip to content

Commit 5f379c1

Browse files
committed
WhenAnonymousUserOpenNotExistingCountryPage: port to Robot Framework.
Addressed to #530 No functional changes.
1 parent 1c880a4 commit 5f379c1

File tree

3 files changed

+7
-57
lines changed

3 files changed

+7
-57
lines changed

src/test/config/testng.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@
3737
</classes>
3838
</test>
3939

40-
<test name="When anonymous user open not existing country page">
41-
<classes>
42-
<class name="ru.mystamps.web.tests.cases.WhenAnonymousUserOpenNotExistingCountryPage" />
43-
</classes>
44-
</test>
45-
4640
<test name="When anonymous user add series">
4741
<classes>
4842
<class name="ru.mystamps.web.tests.cases.WhenAnonymousUserAddSeries" />

src/test/java/ru/mystamps/web/tests/cases/WhenAnonymousUserOpenNotExistingCountryPage.java

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/test/robotframework/country/access.robot

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*** Settings ***
2-
Documentation Verify access to country related pages
2+
Documentation Verify access to country related pages (including non-existing)
33
Library Selenium2Library
44
Suite Setup Before Test Suite
55
Suite Teardown After Test Suite
@@ -12,6 +12,12 @@ Anonymous user cannot create country
1212
Element Text Should Be id=error-code 403
1313
Element Text Should Be id=error-msg Forbidden
1414

15+
Opening a page of non-existing country show an error
16+
[Documentation] Verify that access to non-existing country returns 404 error
17+
Go To ${SITE_URL}/country/country-404-error-test
18+
Element Text Should Be id=error-code 404
19+
Element Text Should Be id=error-msg Requested page${\n}not found
20+
1521
*** Keywords ***
1622
Before Test Suite
1723
[Documentation] Open browser and register fail hook

0 commit comments

Comments
 (0)