# How to Execute Mobile Tests

Run Endtest Mobile Tests on real iOS and Android devices in the cloud, on a schedule, or from your CI pipeline, sequentially or in parallel.

Part of the Endtest documentation (Mobile Tests). Canonical URL: https://endtest.io/docs/mobile-tests/how-to-execute-mobile-tests

---
## Introduction
    
In order to execute Mobile Tests, you must connect to an external grid which offers real mobile devices.
    
You can execute Mobile Tests on **[BrowserStack](https://browserstack.com)**.
    
    
## How to execute Mobile Tests on 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](https://browserstack.com) 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 on the left side of the page.
5. Go to the [Settings](https://app.endtest.io/settings) page in Endtest.
6. Add the `Username` and `Access Key` from BrowserStack App Automate in the `BrowserStack User` and `BrowserStack Key` inputs from the Endtest Settings page.
7. Click on the `Save` button.
    

[Video](https://endtest-videos.s3-us-west-2.amazonaws.com/documentation/endtest_browserstack.mp4)

    
 
    

> **Check:** **Your Endtest account and your BrowserStack account are now connected.**

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

    
8. Upload your APK or IPA file in the [Drive](https://app.endtest.io/drive) section.
9. Copy the `File Download URL` for your uploaded app.
    

> **Check:** **Your app is now stored on the Endtest Drive.**

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

    
10. Go to the [Mobile Tests](https://app.endtest.io/mobile-tests) section in Endtest.
11. Click on the `Run` button and select `BrowserStack` from the `Grid` dropdown.
12. Select the desired configuration.
13. Paste the `File Download URL` in the `APK Download URL` / `IPA Download URL` input.
14. Start the test execution.
    

[Video](https://endtest-videos.s3-us-west-2.amazonaws.com/documentation/endtest_execute_mobile_test_on_browserstack.mp4)

    
 
    
> You can also upload your APK or IPA file in the [Drive](https://app.endtest.io/drive) by using our [Endtest API](https://endtest.io/docs/advanced/how-to-use-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](https://endtest-files.s3.us-west-2.amazonaws.com/WikipediaSample.apk)
