Serenity/JS with Mocha
Home > Math-js API > GET /v4/?expr supports calculating a single expression
Report generated 21-11-2024 00:51

Math-Js API

  Math-Js API (feature)   Under 1 Second (Duration)

GET /v4/?expr supports calculating a single expression
 

Cast

 

Apisitt 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 }
  • TakeNotes { notepad: {} }
Steps Outcome
Apisitt sends a request to calculate 2 + 2

Response

URL: http://api.mathjs.org/v4?expr=2%20%2B%202

Status code: 200

Request Headers

Accept: application/json, text/plain, */*
User-Agent: axios/1.7.7
Accept-Encoding: gzip, compress, deflate, br

Response Headers

server: Cowboy
report-to: {"group":"heroku-nel","max_age":3600,"endpoints":[{"url":"https://nel.heroku.com/reports?ts=1732150306&sid=c46efe9b-d3d2-4a0c-8c76-bfafa16c5add&s=xTFPoYP39xQF2llqEyfJ7HXOVEVJxDYPR4sC0jSLC5Y%3D"}]}
reporting-endpoints: heroku-nel=https://nel.heroku.com/reports?ts=1732150306&sid=c46efe9b-d3d2-4a0c-8c76-bfafa16c5add&s=xTFPoYP39xQF2llqEyfJ7HXOVEVJxDYPR4sC0jSLC5Y%3D
nel: {"report_to":"heroku-nel","max_age":3600,"success_fraction":0.005,"failure_fraction":0.05,"response_headers":["Via"]}
connection: close
x-powered-by: Express
x-ratelimit-limit: 100000
x-ratelimit-remaining: 96513
date: Thu, 21 Nov 2024 00:51:46 GMT
x-ratelimit-reset: 1732201716
access-control-allow-origin: *
access-control-allow-headers: Content-Type, X-Requested-With
access-control-allow-methods: GET, POST, OPTIONS
content-type: text/html; charset=utf-8
content-length: 1
etag: W/"1-G2RTiSRzpGfQc3LUXrBavCAxZHo"
vary: Accept-Encoding
via: 1.1 vegur

Response Body

4
SUCCESS 344ms
Apisitt ensures that the body of the last response does equal 4
SUCCESS 002ms
SUCCESS 0.41s
Serenity BDD version 4.1.20