Given following roles:
| Id | Role |
|---|---|
| 1 | ADMIN |
| 2 | MODERATOR |
| 3 | PROFESSOR |
| 4 | STUDENT |
And ADMIN users with following:
| Family Name | First Name | Phone Number | Password | |
|---|---|---|---|---|
| Hopkins | Amanda | +40111111111 | amanda.hopkins@mail.com | amanda.hopkins |
And user amanda.hopkins@mail.com sends POST authentication request with amanda.hopkins or alternative amanda.hopkins password
Given user registration request with following: {userFamilyName}, {userFirstName}, {phoneNumber}, {email} and {password}
When user {email} sends POST registration request
And user {email} sends POST validation request
And user amanda.hopkins@mail.com sends POST enable request with STUDENT role
Then API responds with {responseCode} HTTP code
And user's data is saved to db and user's account is enabled
Given user registration request with following: {userFamilyName}, {userFirstName}, {phoneNumber}, {email} and {password}
When user {email} sends POST registration request
And user amanda.hopkins@mail.com sends POST reject request
Then API responds with {responseCode} HTTP code
And user's data is erased from DB
Given user registration request with following: {userFamilyName}, {userFirstName}, {phoneNumber}, {email} and {password}
When user {email} sends POST registration request
And user amanda.hopkins@mail.com sends POST enable request with STUDENT role
Then API responds with {responseCode} HTTP code
Given user registration request with following: {userFamilyName}, {userFirstName}, {phoneNumber}, {email} and {password}
When user {email} sends POST registration request
Then API responds with {responseCode} HTTP code
| Number of Scenarios | 4 | Total Duration | 4s |
| Total Number of Test Cases | 4 | Fastest Test | 144ms |
| Number of Manual Test Cases | 0 | Slowest Test | 3s |
| Tests Started | Aug 21, 2025 23:49:40 | Average Execution Time | 1s |
| Tests Finished | Aug 21, 2025 23:49:44 | Total Execution Time | 4s |
| feature | Scenario | Context | Steps | Started | Total Duration | Result |
|---|---|---|---|---|---|---|
| Registration |
Positive Scenario: User submits POST request with registration body, data is saved to DB. User validates email. Admin approves registration request.
1 passing test case |
6 | 23:49:40 | 3s 943ms | ||
| Registration |
Positive Scenario: User submits POST request with registration body, data is saved to DB. Admin rejects registration request.
1 passing test case |
5 | 23:49:44 | 211ms | ||
| Registration |
Negative Scenario: User submits POST request with registration body, data is saved to DB. Admin is trying to approve registration request for not enabled account.
1 passing test case |
4 | 23:49:44 | 204ms | ||
| Registration |
Negative Scenario: User submits POST request without email, error message is returned.
1 passing test case |
3 | 23:49:44 | 144ms |