Serenity BDD Report
Home > Requirements > Mathjs-api > Expressions
Report generated 19-11-2024 21:06

Feature: Expressions

math.js is available as a RESTful API at api.mathjs.org.

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.

Scenarios

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.

Before

When Sandra requests evaluation of:

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

Then she should get following results:

expected_result
5
-1
6
6

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 2 Total Duration 1s
Total Number of Test Cases 5 Fastest Test 124ms
Number of Manual Test Cases 0 Slowest Test 589ms
Tests Started Nov 19, 2024 21:06:14 Average Execution Time 225ms
Tests Finished Nov 19, 2024 21:06:15 Total Execution Time 1s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Expressions Basic expressions
4 passing test cases
2 21:06:14 1s 014ms SUCCESS
Expressions Multiple expressions 3 21:06:15 124ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.1.20