thomaspoignant / api-scenario

API-scenario is a command-line tool that allows you to execute easily a scenario to test your APIs.
https://github.com/thomaspoignant/api-scenario#api-scenario
The Unlicense
16 stars 3 forks source link

#17 support variable in value of assertion #60

Closed thomaspoignant closed 4 years ago

thomaspoignant commented 4 years ago

Description

It was not possible to have an assertion with variables in value.

With this PR you can have this kind of assertion:

{
  "comparison": "equal",
  "property": "name.familyName",
   "value": "{{randomFamilyName}}",
   "source": "response_json"
}

Changes include

Closes issue(s)

Resolve #17

Checklist

sonarcloud[bot] commented 4 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication