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

Feature: Authentication

This feature file is created in order to test authentication security configuration

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

When user john.doe@mail.com sends POST authentication request with john.doe or alternative john.doe password

And user john.doe@mail.com sends GET profile request with saved token

Then API responds with 200 HTTP code

When user john.doe@mail.com sends POST authentication request with john.doe or alternative john.doe password

And user john.doe@mail.com sends GET groups management request with saved token

Then API responds with 403 HTTP code

When user john.doe@mail.com sends POST authentication request with john or alternative john password

Then API responds with 403 HTTP code

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 3 Total Duration 449ms
Total Number of Test Cases 3 Fastest Test 138ms
Number of Manual Test Cases 0 Slowest Test 151ms
Tests Started Aug 21, 2025 23:49:44 Average Execution Time 146ms
Tests Finished Aug 21, 2025 23:49:45 Total Execution Time 439ms

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Authentication Authentication positive scenario: User is trying to log in using correct password and access the endpoint he is allowed to 3 23:49:44 150ms SUCCESS
Authentication Authentication negative scenario: User is trying to log in using correct password and access the endpoint he is not allowed to 3 23:49:44 151ms SUCCESS
Authentication Authentication negative scenario: User is trying to log in using incorrect password 2 23:49:45 138ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.2.34