-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Feature: Tests for download user import result | ||
|
||
Background: | ||
Given the user "manager" exists | ||
And the user "manager" is member of the group "cesManager" | ||
And the user "manager" with password "newuserpassword1234A$" is logged in | ||
|
||
@clean_before | ||
@clear_downloadDir | ||
@add_user | ||
Scenario Outline: a user uploads a file | ||
When the user opens the user import page | ||
And the user uploads the file "userimport6.csv" | ||
Then the user import page shows an import with the message "<message>" and the details "<details>" | ||
|
||
Examples: | ||
| message | details | | ||
| Import completed with errors! | Created accounts (2) | | ||
| Import completed with errors! | Updated accounts (1) | | ||
| Import completed with errors! | Skipped data rows (1) | | ||
|
||
Scenario: after uploading a file a user inspects the user import summaries page | ||
When the user opens the user import summaries page | ||
Then a table with the import information "New: 2, Updated: 1, Skipped: 1" regarding the file "userimport6.csv" is shown | ||
|
||
@clean_user_import | ||
Scenario: after uploading a file a user downloads the import overview | ||
When the user opens the user import details page | ||
And the user downloads the import overview | ||
Then the import result is downloaded and contains information regarding "2" created, "1" updated and "1" skipped accounts in the file "userimport6.csv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,13 @@ | |
"surname": "test", | ||
"displayName": "Tester", | ||
"mail": "[email protected]" | ||
}, | ||
{ | ||
"username": "mmustermann", | ||
"password": "testuserpassword1234A$", | ||
"givenname": "Max", | ||
"surname": "Mustermann", | ||
"displayName": "Max Mustermann", | ||
"mail": "[email protected]" | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
displayname,external,mail,pwdreset,surname,username,givenname | ||
Max Test,TRUE,[email protected],TRUE,Mustermann,maxtest,Max | ||
Maria Test,TRUE,[email protected],TRUE,Musterfrau,mariatest,Maria | ||
Claus,TRUE,[email protected],TRUE,Claus,Claus,Carl | ||
Mark Test,TRUE,[email protected],TRUE,Muster,mmustermann,Mark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters