Endtest

Endtest

›Advanced

Web Tests

  • How to create Web Tests
  • Finding elements in Web Applications
  • How to execute Web Tests
  • Assertions for Web Tests
  • IF Statements for Web Tests
  • Web Applications with restricted access
  • How to test in iframes
  • How to test in multiple tabs
  • How to test File Uploads
  • How to test File Downloads
  • How to test Emails
  • How to test PDF files
  • How to test Chrome Extensions
  • Dealing with reCAPTCHA
  • Dealing with Dynamic Locators
  • Dealing with Canvas Elements
  • Performing a Drag and Drop
  • Execute JavaScript
  • Modify HTTP Headers
  • Testing WebRTC Applications
  • How to scroll in Web Tests
  • How to test Checkboxes
  • How to test Dropdowns
  • Dealing with Sessions
  • Web Crawler
  • Export Web Tests
  • Migrating from Selenium

Mobile Tests

  • How to create Mobile Tests
  • Finding elements in Mobile Applications
  • How to execute Mobile Tests
  • Assertions for Mobile Tests
  • IF Statements for Mobile Tests
  • How to scroll in Mobile Tests
  • Performing Complex Gestures

Advanced

  • Variables
  • Waits
  • Endtest API
  • Scheduler
  • Drive
  • Adding Collaborators
  • AI Assertions
  • AI Variables
  • Computer Vision
  • Importing Test Cases
  • Using Loops
  • Data-driven Testing
  • Send API Requests
  • Read SMS
  • Execute SQL queries
  • Self-Healing Tests
  • Email Notifications
  • Slack Notifications
  • PagerDuty Notifications
  • Webhook Notifications
  • Automatic Backup
  • Advanced Settings
  • Multiple environments
  • How to stop a test
  • Utilities
  • Utilities API
  • Team
  • On-Premises

Integrations

  • Atlassian Jira
  • Slack
  • PagerDuty
  • Microsoft Teams
  • Discord
  • Mattermost
  • Jenkins
  • GitHub
  • Azure DevOps
  • GitLab
  • TeamCity
  • CircleCI
  • TravisCI
  • Bitbucket
  • Heroku
  • Bamboo Server
  • Test Case Management
  • SSO
  • BrowserStack
  • Sauce Labs

AI Assertions

Overview

AI Assertion is an option available within the Add Assertion action.

It allows you to validate test conditions using natural language instead of classic assertions based on locators or fixed values.

Instead of asserting a single element, the AI evaluates the context provided by the selected Assertion Scope and determines whether the condition is met.

endtest ai assertion web page


Assertion Scope Options

The Assertion Scope defines what information the AI can analyze. Only one scope can be selected per AI Assertion.


Web Tests

1. Web Page

When Web Page is selected, the AI processes:

  • The current URL
  • The full page source (HTML)
  • A screenshot of the page

Example prompts:

  • Confirm that the page is in French
  • Verify that the visible page content is free of grammar mistakes
  • Check that the background includes a sports car

2. Cookies

Allows the AI to read and reason about browser cookies.

Example prompts:

  • Check that the cookies indicate an authenticated user session
  • Verify the presence of a third-party tracking cookie from HubSpot

3. Variables

Allows the AI to inspect previously defined test variables.

Example prompts:

  • Check that the $products variable is an array with at least 50 items
  • Verify that the total cost correctly includes VAT based on the listed product prices

4. Test Execution Logs

Allows the AI to analyze the execution logs generated so far.

Example prompts:

  • Verify that there are no warnings so far
  • Check that the test execution accessed at least 5 Wikipedia pages related to cars
  • Verify that there was no Wait Until step that waited for more than 30 seconds

Mobile Tests

For Mobile Tests, web-specific scopes are replaced with App Screen.

1. App Screen

When App Screen is selected, the AI processes:

  • The app screen source
  • A screenshot of the current screen

Example prompts:

  • Verify that the screen shows only pictures of dogs
  • Confirm that this section is showing only books related to chemistry
  • Verify that the map has loaded

Assertion Strictness Levels

Each AI Assertion allows you to control how strictly the condition is evaluated.

  1. Strict The condition must be clearly and unambiguously true. Best for critical validations.

  2. Standard Balanced interpretation with minor flexibility. Recommended for most tests.

  3. Lenient Allows partial matches and ambiguity. Useful for unstable environments or early testing stages.


← Adding CollaboratorsAI Variables →
  • Overview
  • Assertion Scope Options
    • Web Tests
    • Mobile Tests
  • Assertion Strictness Levels
© Endtest Inc.