Serenity BDD Report
Home > Requirements > Security > Cross-origin resource sharing
Report generated 21-08-2025 23:49

Feature: Cross-origin resource sharing

This feature file is created in order to test Spring Security and CORS configuration

Scenarios

Given user johndoe@mail.com is trying to access /account/ endpoint from the origin, API is configured for

When browser sends OPTIONS request with GET HTTP method for ACPM header

Then API responds with 200 HTTP code

Given user johndoe@mail.com is trying to access /account/ endpoint from the wrong origin

When browser sends OPTIONS request with GET HTTP method for ACPM header

Then API responds with 403 HTTP code

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 2 Total Duration 13ms
Total Number of Test Cases 2 Fastest Test 5ms
Number of Manual Test Cases 0 Slowest Test 6ms
Tests Started Aug 21, 2025 23:49:45 Average Execution Time 5ms
Tests Finished Aug 21, 2025 23:49:45 Total Execution Time 11ms

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Cross-origin resource sharing CORS positive scenario: OPTIONS request is sent to check if API endpoint accepts requests from the origin it is configured for 3 23:49:45 006ms SUCCESS
Cross-origin resource sharing CORS negative scenario: OPTIONS request is sent to check if API endpoint accepts requests from the wrong origin 3 23:49:45 005ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.2.34