TestMace
Search…
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
Broken
Script
Variables
User-Defined Variables
Default Variables
Environment Variables
Working with the project
Cookie
Authorization
Settings
Proxy
Other features
Bulk Edit
Import & Export
Default HTTP headers
CLI
Command line tool
Powered By
GitBook
JSONPath
The feature is available for
paid TestMace subscribers
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.
Previous
XPath
Next
Script
Last modified
2yr ago
Copy link
Contents
Error Fixing