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 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 create Mobile Tests

Introduction

You can create Mobile Tests for Android and iOS applications, both native and hybrid.

There are 2 ways to create Mobile Tests:

  1. With the Endtest Mobile Recorder.
  2. Manually adding test suites, test cases and steps.

1. With the Endtest Mobile Recorder.

The Endtest Mobile Recorder allows you to record Mobile Tests directly in your browser.

In order to record Mobile Tests, you must connect to an external grid which offers real mobile devices.

There are 3 options available:

  • BrowserStack
  • Sauce Labs
  • Kobiton

1. How to use the Mobile Recorder with BrowserStack

You need an account on BrowserStack that has access to App Automate.

If you do not have an account on BrowserStack, you can sign up for a free trial.

That will give you 100 minutes of App Automate.

Even if your tests will be executed on BrowserStack, you will get the results and logs in your Endtest account.

Steps

Connect your Endtest account with your BrowserStack account:

  1. Go to your BrowserStack account.
  2. If you don't have a BrowserStack account, you can just sign up for a Free Trial.
  3. Go to the Products section from BrowserStack and click on App Automate.
  4. Click on the Show button from the Username and Access Keys section from the left side of the page.
  5. Go to the Integrations tab from the Settings page from Endtest.
  6. Add the Username and Access Key in the BrowserStack App Automate modal.
  7. Click on the Save button.


Your Endtest account and your BrowserStack account are now connected.

You won't have to repeat steps 1-7 unless you move to another BrowserStack account.

  1. Upload your APK or IPA file in the Drive section.
  2. Copy the File Download URL for your uploaded app.

Your app is now stored on the Endtest Drive.

Steps 8-9 will be repeated only when you want to test a new version of your app.

  1. Go to the Mobile Tests section from Endtest.
  2. Click on the Record Mobile Test button and select BrowserStack from the Grid dropdown.
  3. Select the desired configuration.
  4. Paste the File Download URL in the APK Download URL / IPA Download URL input.
  5. Click on the Start Recording button.
  6. Once your app has loaded in the Mobile Recorder, you will be able to record steps and execute them.
  7. After you're done recording, you can save the steps into a Mobile Test.


You can also upload your APK or IPA file in the Drive by using our Endtest API.

More details are available in the Endtest API chapter.

You can also upload your APK or IPA file on a server or an AWS S3 bucket.

The URL must have the file name and the file extension at the end and the file (app) must be downloaded automatically, without any prompts or confirmations.

Take our APK Download URL for the WIkipedia Android App as an example:

https://endtest-files.s3.us-west-2.amazonaws.com/WikipediaSample.apk

If you want to start the Mobile Recorder from a certain point, you can add a Miscellaneous -> Start Mobile Recorder step in your Mobile Test.

2. How to use the Mobile Recorder with Sauce Labs

You need an account on Sauce Labs that has access to the Real Device Cloud component.

If you do not have an account on Sauce Labs, you can sign up for a free trial.

That will give you access to a list of devices.

Even if your tests will be executed on Sauce Labs, you will get the results and logs in your Endtest account.

Steps

Connect your Endtest account with your Sauce Labs account:

  1. Go to your Sauce Labs account.
  2. If you don't have a Sauce Labs account, you can just sign up for a Free Trial.
  3. Go to the User Settings section from Sauce Labs.
  4. Copy the Username and Access Key.
  5. Go to the Integrations tab from the Settings page from Endtest.
  6. Add the Username and Access Key in the Sauce Labs modal.
  7. Click on the Save button.

Your Endtest account and your Sauce Labs account are now connected.

You won't have to repeat steps 1-7 unless you move to another Sauce Labs account.

  1. Upload your APK or IPA file in the Drive section.
  2. Copy the File Download URL for your uploaded app.

Your app is now stored on the Endtest Drive.

Steps 8-9 will be repeated only when you want to test a new version of your app.

  1. Go to the Mobile Tests section from Endtest.
  2. Click on the Record Mobile Test button and select Sauce Labs from the Grid dropdown.
  3. Select the desired configuration.
  4. Paste the File Download URL in the APK Download URL / IPA Download URL input.
  5. Click on the Start Recording button.
  6. Once your app has loaded in the Mobile Recorder, you will be able to record steps and execute them.
  7. After you're done recording, you can save the steps into a Mobile Test.

You can also upload your APK or IPA file in the Drive by using our Endtest API.

More details are available in the Endtest API chapter.

You can also upload your APK or IPA file on a serve or an AWS S3 bucket.

The URL must have the file name and the file extension at the end and the file (app) must be downloaded automatically, without any prompts or confirmations.

Take our APK Download URL for the WIkipedia Android App as an example:

https://endtest-files.s3.us-west-2.amazonaws.com/WikipediaSample.apk

If you want to start the Mobile Recorder from a certain point, you can add a Miscellaneous -> Start Mobile Recorder step in your Mobile Test.

3. How to use the Mobile Recorder with Kobiton

You need an account on Kobiton that has access to mobile devices.

If you do not have an account on Kobiton, you can sign up for a free trial.

Even if your tests will be executed on Kobiton, you will get the results and logs in your Endtest account.

Steps

Connect your Endtest account with your Kobiton account:

  1. Go to your Kobiton account.
  2. If you don't have a Kobiton account, you can just sign up for a Free Trial.
  3. Go to the Profile section from Kobiton and get your Username.
  4. Go to the Settings section from Kobiton and get your API Key.
  5. Go to the Settings page from Endtest.
  6. Go to the Integrations tab.
  7. Add the Username and API Key from Kobiton.
  8. Click on the Save button.

Your Endtest account and your Kobiton account are now connected.

You won't have to repeat steps 1-8 unless you want to use a different Kobiton Access Key.

  1. Upload your APK or IPA file in the Drive section.
  2. Copy the File Download URL for your uploaded app.

Your app is now stored on the Endtest Drive.

Steps 9-10 will be repeated only when you want to test a new version of your app.

  1. Go to the Mobile Tests section from Endtest.
  2. Click on the Record Mobile Test button and select Kobiton from the Grid dropdown.
  3. Select the desired configuration.
  4. Paste the File Download URL in the APK Download URL / IPA Download URL input.
  5. Click on the Start Recording button.
  6. Once your app has loaded in the Mobile Recorder, you will be able to record steps and execute them.
  7. After you're done recording, you can save the steps into a Mobile Test.

You can also upload your APK or IPA file in the Drive by using our Endtest API.

More details are available in the Endtest API chapter.

You can also upload your APK or IPA file on a server or an AWS S3 bucket.

The URL must have the file name and the file extension at the end and the file (app) must be downloaded automatically, without any prompts or confirmations.

Take our APK Download URL for the WIkipedia Android App as an example:

https://endtest-files.s3.us-west-2.amazonaws.com/WikipediaSample.apk

If you want to start the Mobile Recorder from a certain point, you can add a Miscellaneous -> Start Mobile Recorder step in your Mobile Test.

4. Manually adding test suites, test cases and steps.

Add a test suite

  1. Go to the Mobile Tests section.
  2. Click on the Add Test Suite button.
  3. Enter the name for the test suite.
  4. Click on the Save Test Suite button.

Add a test case

Test cases can be added only after you have created the test suite.

  1. Click on the Add Test Case button.
  2. Enter the name for the test case.

Add steps inside the test case

A test case is made up of steps.

To add a new step, just click on the Add Step button.

Every step is defined by its Action.

Some actions are tied to the entire page (actions such as Lock, Hide Keyboard, Take Screenshot, etc).

While other actions must be tied to a specific element (actions such as Single Tap, Flick, Write Text, etc).

To tie an Action to a specific Element, you must use a Locator.

A Locator is basically an attribute which identifies the element (Accessibility ID, Class Name, XPath, Text Inside, etc).

For Touch actions, you can also use Coordinates as a Locator.

The easiest way to find a Locator is to use the Get Element Inspector option from the Miscellaneous action.

You can read more about that in the Finding elements in Mobile Applications chapter.

← Migrating from SeleniumFinding elements in Mobile Applications →
  • Introduction
  • 1. With the Endtest Mobile Recorder.
    • 1. How to use the Mobile Recorder with BrowserStack
    • 2. How to use the Mobile Recorder with Sauce Labs
    • 3. How to use the Mobile Recorder with Kobiton
  • 4. Manually adding test suites, test cases and steps.
    • Add a test suite
    • Add a test case
    • Add steps inside the test case
© Endtest Inc.