TestMace
0.0.1-beta.24
0.0.1-beta.24
  • Getting Started
  • Cloud Synchronization
  • Interface
    • The Menu
    • Interface Overview
    • Scratches
    • Node Types
    • Keyboard Shortcuts
  • Node Types
    • Project
    • Folder
    • RequestStep
    • Assertion
      • Compare
      • In range
      • One of set
      • Contains
      • XPath
      • JSONPath
      • Script
      • Link
    • Link
    • API description
      • ApiRootFolder
      • ApiFolder
      • ApiRoute
      • API Description Import
    • Broken
    • Script
  • Variables
    • User-Defined Variables
      • Static Variables
      • Dynamic Variables
    • Default Variables
    • Environment Variables
  • Working with the project
    • Cookie
    • Authorization
  • Settings
    • Proxy
  • Other features
    • Bulk Edit
    • Import & Export
      • Shared
      • cURL
      • Swagger
      • Postman
    • Default HTTP headers
  • CLI
    • Command line tool
Powered by GitBook
On this page

Was this helpful?

  1. Node Types
  2. Assertion

JSONPath

PreviousXPathNextScript

Last updated 5 years ago

Was this helpful?

The feature is available for only.

A JSONPath assertion allows to check a value using a JSONPath selector.

This assertion interface is as follows:

The following JSONPath assertion fields are shown in the screenshot:

  • Text - the text to search the value in

  • Path - a JSONPath selector

  • Expected value - an expected value for this selector. The value should be represented as an array of expected elements.

  • The Use negative statement flag means using the opposite assertion result, i.e. there should be no values for the specified selector in the text.

Error Fixing

To get rid of an error, the XPath selector value is assigned to the expected value.

paid TestMace subscribers