Serenity BDD Report
Home > Requirements > Profile > Profile
Report generated 21-08-2025 23:49

Feature: Profile

Profile Controller contains all the endpoints which are responsible for CRUD operations on users profile.

Scenarios

Background: Saved to the DB user

Given following roles:

IdRole
1ADMIN
2MODERATOR
3PROFESSOR
4STUDENT

And STUDENT users with following:

Family NameFirst NamePhone NumberEmailPassword
DoeJohn+40555555555john.doe@mail.comjohn.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

Examples:

photoFileresponseCoderesponseMessage
1mb.jpeg200Profile photo uploaded successfully
4mb.jpeg400Please upload a jpeg, png or gif photo less than 2MB!
textFile.txt400Please upload a jpeg, png or gif photo less than 2MB!

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

Examples:

photoFileresponseCoderesponseMessage
1mb.jpeg200Profile photo successfully deleted.

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:

userFirstNameuserFamilyNameuserPhoneNumberupdatedPasswordupdatedPasswordCheckupdateResponseCodeupdateResponseMessageloginResponseCode
DanCooper+40746287940{null}{null}200Profile updated successfully. Updated: first name, family name, phone number, password200
{null}{null}{null}111111111111200Profile updated successfully. Updated: first name, family name, phone number, password200
LanaDel Rey+40746287940111111111111200Profile updated successfully. Updated: first name, family name, phone number, password200

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

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

Automated Tests

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 SUCCESS
Profile User logs in and submits POST request trying to upload a profile picture.
3 passing test cases
2 23:49:45 430ms SUCCESS
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 SUCCESS
Profile User logs in and submits POST request trying to update a profile info.
3 passing test cases
5 23:49:46 780ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.2.34