Serenity BDD Report
Home > Requirements > Mathjs-api > Expressions
Report generated 19-07-2024 15:28

Feature: Expressions

math.js is available as a RESTful API at

Evaluations can be done via GET or POST requests.
The duration per evaluation of this free service is limited to 10 seconds,
with a maximum of 10,000 requests per day.


Rule: One expression - one result

Single expression requests can be evaluated using the GET endpoint.

When Sandra requests evaluation of {expression}

Then she should get {expected_result}

Rule: Multiple expressions - multiple results

Requests to evaluate multiple expression should be sent to the POST endpoint.


When Sandra requests evaluation of:

2 + 3
2 - 3
2 * 2 + 2
2 + 2 * 2

Then she should get following results:


Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 2 Total Duration 636ms
Total Number of Test Cases 5 Fastest Test 95ms
Number of Manual Test Cases 0 Slowest Test 333ms
Tests Started Jul 19, 2024 15:28:00 Average Execution Time 145ms
Tests Finished Jul 19, 2024 15:28:01 Total Execution Time 739ms

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Expressions Basic expressions
4 passing test cases
2 15:28:00 636ms SUCCESS
Expressions Multiple expressions 3 15:28:01 103ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.1.6