TestMace
0.0.1-beta.7
0.0.1-beta.7
  • Getting Started
  • Interface
    • The Menu
    • Interface Overview
    • Scratches
    • Node Types
    • Keyboard Shortcuts
  • Node Types
    • Project
    • Folder
    • RequestStep
    • Assertion
      • Compare
      • Contains
      • Script
      • XPath
    • 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
Powered by GitBook
On this page
  • Fixing Errors
  • File Representation

Was this helpful?

  1. Node Types
  2. Assertion

XPath

PreviousScriptNextLink

Last updated 5 years ago

Was this helpful?

XPath assertion allows to verify the response message with an XPath expression match.

This assertion interface is as follows:

This assertion interface is as follows:

  • Text - the text to find the value in;

  • Path - an XPath selector;

  • Expected value - the value that should be matched.

Fixing Errors

To fix an error, the XPath selector value is assigned to the expected value.

File Representation

The assertion has the xpath type in the file. The type description can be found in Assertion file representation documentation in the #/definitions/ScriptAssertion definition.

Assertion file representation