Endtest

Endtest

›Web 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 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
  • BrowserStack
  • Sauce Labs

Export Web Tests

Introduction

You have the option to export your Web Tests in different formats.

1. Executable file

This format allows you to execute the exported test on your own computer, without having to install anything.

The only prerequisite is to have the corresponding webdriver in the same directory as the exported test.

Generating the executable file can take up to 60 seconds.

Steps

  1. Export the test.
  2. Place it in same directory with the corresponding webdriver.
  3. Open the executable.
  4. The test will open the browser and execute the steps.
  5. A new directory is generated which contains the logs and the screenshots.
BrowserWebDriver
ChromeChromeDriver
FirefoxGeckoDriver
EdgeMicrosoft WebDriver
Internet ExplorerInternetExplorerDriver
SafariSafariDriver

Make sure that the downloaded webdriver matches your operating system and your browser version.

If you're using Safari, please follow the additional instructions from the SafariDriver page.


2. Python file

In order to execute the exported test on your own computer, you have to install Python 2.7 and a list of dependencies.

These dependencies can be installed by using pip.

Operating systemDependencies
Windowsrequirements.txt
macOSrequirements.txt

Download the corresponding requirements.txt file and run the following command:

pip install -r requirements.txt

You also need to have the corresponding webdriverin the same directory as the exported test.

Steps

  1. Export the test.
  2. Place it in same directory with the corresponding webdriver.
  3. Execute the Python file.
  4. The test will open the browser and execute the steps.
  5. A new directory is generated which contains the logs and the screenshots.
BrowserWebDriver
ChromeChromeDriver
FirefoxGeckoDriver
EdgeMicrosoft WebDriver
Internet ExplorerInternetExplorerDriver
SafariSafariDriver

Make sure that the downloaded webdriver matches your operating system and your browser version.

If you're using Safari, please follow the additional instructions from the SafariDriver page.

3. JSON file

This option allows you to export your test as a JSON file which can be used to import it into other systems or to store it in a repository.

Tests exported in JSON format cannot be executed.

← Web CrawlerMigrating from Selenium →
  • Introduction
  • 1. Executable file
    • Steps
  • 2. Python file
    • Steps
  • 3. JSON file
Copyright © 2022 Endtest