Analysis

Evaluate an AI assertion

(deprecated - use /agent/assertion?workspaceId={workspace_id}) Evaluate an AI assertion

post/analysis/{workspace_id}/assertion/evaluate

Request

  • Base URL: https://api.mabl.com
  • URL: https://api.mabl.com/analysis/{workspace_id}/assertion/evaluate
  • Auth: one of:
    • HTTP basic
    • API key in header Authorization

Path parameters

workspace_idstring required

The workspace associated with this assertion

Request body

test_run_idstring required

The test run ID for which this assertion is being evaluated

assertion_promptstring required

The assertion prompt text to use in evaluating the assertion

assertion_criteriastring[]

The assertion criteria to use in evaluating the assertion

regenerate_criteriaboolean

Whether to regenerate the assertion criteria for the assertion (if no criteria are specified, they will always be generated regardless of this setting)

screenshotstring required

Base64-encoded screenshot of the element to use in evaluating the assertion

screenshot_mime_typestring

The MIME type of the Base64-encoded screenshot data (optional; defaults to image/png if not provided)

session_idstring

The ID of the current editing session for the assertion, if applicable

test_invariant_idstring

The ID of the test in which this assertion is being evaluated

test_type'api' | 'browser' | 'performance' | 'mobile'

Type of test

training_session_idstring

The ID of the current training session for the assertion, if applicable

urlstring

The URL on which this assertion is being evaluated

Response

Unknown error

idstring
codeinteger
messagestring

Changes

No recorded changes to this operation across all 37 revisions of this API.