Given following roles:
| Id | Role |
|---|---|
| 1 | ADMIN |
| 2 | MODERATOR |
| 3 | PROFESSOR |
| 4 | STUDENT |
And STUDENT users with following:
| Family Name | First Name | Phone Number | Password | |
|---|---|---|---|---|
| Doe | John | +40555555555 | john.doe@mail.com | john.doe |
And user john.doe@mail.com sends POST authentication request with john.doe or alternative john.doe password
When user submits GET profile request with john.doe@mail.com
Then profile is pulled
When user submits POST profile picture request with john.doe@mail.com and {photoFile}
Then user receives response with code {responseCode} and {responseMessage} message
When user submits POST profile picture request with john.doe@mail.com and {photoFile}
And user submits DELETE profile picture request with john.doe@mail.com
Then user receives response with code {responseCode} and {responseMessage} message
When user submits POST profile info request with john.doe@mail.com, {userFirstName}, {userFamilyName}, {userPhoneNumber}, {updatedPassword}, {updatedPasswordCheck}
Then user receives response with code {updateResponseCode} and {updateResponseMessage} message
When user john.doe@mail.com sends POST authentication request with {updatedPassword} or alternative john.doe password
Then user receives response with code {loginResponseCode} and null message
And user profile info is {userFirstName}, {userFamilyName}, {userPhoneNumber}
Examples:
| userFirstName | userFamilyName | userPhoneNumber | updatedPassword | updatedPasswordCheck | updateResponseCode | updateResponseMessage | loginResponseCode | |
|---|---|---|---|---|---|---|---|---|
| Dan | Cooper | +40746287940 | {null} | {null} | 200 | Profile updated successfully. Updated: first name, family name, phone number, password | 200 | |
| {null} | {null} | {null} | 111111 | 111111 | 200 | Profile updated successfully. Updated: first name, family name, phone number, password | 200 | |
| Lana | Del Rey | +40746287940 | 111111 | 111111 | 200 | Profile updated successfully. Updated: first name, family name, phone number, password | 200 |
| Number of Scenarios | 4 | Total Duration | 1s |
| Total Number of Test Cases | 8 | Fastest Test | 133ms |
| Number of Manual Test Cases | 0 | Slowest Test | 262ms |
| Tests Started | Aug 21, 2025 23:49:45 | Average Execution Time | 185ms |
| Tests Finished | Aug 21, 2025 23:49:47 | Total Execution Time | 1s |
| feature | Scenario | Context | Steps | Started | Total Duration | Result |
|---|---|---|---|---|---|---|
| Profile | User tries to pull his profile data based on the username. | 2 | 23:49:45 | 143ms | ||
| Profile |
User logs in and submits POST request trying to upload a profile picture.
3 passing test cases |
2 | 23:49:45 | 430ms | ||
| Profile |
User logs in and submits POST request trying to upload a profile picture followed by DELETE request for profile picture deletion.
1 passing test case |
3 | 23:49:46 | 137ms | ||
| Profile |
User logs in and submits POST request trying to update a profile info.
3 passing test cases |
5 | 23:49:46 | 780ms |