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
  • 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
  • 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
  • Mattermost
  • Jenkins
  • GitHub
  • Azure DevOps
  • GitLab
  • TeamCity
  • CircleCI
  • TravisCI
  • Bitbucket
  • Heroku
  • Bamboo Server
  • Test Case Management
  • SSO
  • BrowserStack
  • Sauce Labs

How to stop a test

Introduction

There are scenarios where you might need to stop a test execution.

There are 3 ways to do that.

1. From the Results page

The easiest option is to click on the Stop Test button from the Results page.

Deleting a test execution which is in progress will also stop it.

2. From inside the test

You can add a Stop Test step directly in your test.

The Stop Test option is inside the Miscellaneous action.

A good practice is to add that step inside an If Statement.

For example, if you want to automatically stop a test at a certain point if you have more than 3 failed assertions, you can use a Variable Condition in your If Statement and check if the system variable $systemFailedCounter is greater than 3.

You can find more details about system variables in the Variables chapter.

3. With the Endtest API

You can stop a test execution with the Endtest API by using the stopTest action.

The unique hash for that test execution must also be provided.

More details are available in the Endtest API chapter.

← Multiple environmentsUtilities →
  • Introduction
    • 1. From the Results page
    • 2. From inside the test
    • 3. With the Endtest API
© Endtest Inc.