Serenity BDD Report
Home > Mathjs-api > Expressions > Basic expressions
Report generated 22-11-2024 22:14

Expressions

  Mathjs-Api (capability)   Under 1 Second (Duration)

Basic expressions

Single expression requests can be evaluated using the GET endpoint.
 

Cast

 

Sandra can:
  • PerformActivities
  • AnswerQuestions
  • RaiseErrors
  • ScheduleWork { scheduler: { clock: { timeAdjustment: { milliseconds: 0 } }, interactionTimeout: { milliseconds: 5000 } } }
  • CallAnApi { baseURL: "http://api.mathjs.org/v4/", headers: { common: { Accept: "application/json, text/plain, */*" } }, timeout: 10000 }

Scenario Outline

When Sandra requests evaluation of <expression>
Then she should get <expected_result>

Examples: Basic operators

# Expression Expected Result
1 2 + 3 5
2 2 - 3 -1

Examples: Order of operations

# Expression Expected Result
3 2 * 2 + 2 6
4 2 + 2 * 2 6
Steps Outcome
SUCCESS 314ms
SUCCESS 091ms
SUCCESS 095ms
SUCCESS 086ms
SUCCESS 0.59s
Serenity BDD version 4.1.20