Endtest

Endtest

›Mobile Tests

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 File Uploads
  • 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
  • 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

Advanced

  • Variables
  • 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
  • Webhook Notifications
  • Automatic Backup
  • Advanced Settings
  • Multiple environments
  • How to stop a test
  • Utilities
  • Team
  • On-Premises

Integrations

  • Atlassian Jira
  • Slack
  • Microsoft Teams
  • Mattermost
  • Jenkins
  • GitHub
  • Azure DevOps
  • GitLab
  • TeamCity
  • CircleCI
  • TravisCI
  • Bitbucket
  • Heroku
  • Bamboo Server
  • BrowserStack
  • Kobiton
  • Sauce Labs
  • Experitest

IF Statements for Mobile Tests

Introduction

IF Statements are similar to assertions.

There are certain scenarios where we need to execute some steps only if a certain condition is met.

IF Statements can be nested in other IF Statements.

An IF Statement can cross the boundary of a test case and continue into the next test case.

Solution

IF Statements can be added by using the Start If Statement action.

In order to close an IF Statement, we need to use the End If Statement action.

You can choose from the following types of IF Statements:

  • Element Is Present
  • Element Is Not Present
  • Element Matches Value
  • Element Does Not Match Value
  • Element Contains Value
  • Element Does Not Contain Value
  • Element Contains Attribute
  • Element Does Not Contain Attribute
  • Variable Assertion
  • Page Source Contains Value
  • Page Source Does Not Contain Value
  • Page Matches Screenshot
  • Element Matches Screenshot
← Assertions for Mobile TestsHow to scroll in Mobile Tests →
  • Introduction
  • Solution
Copyright © 2020 Endtest