Skip to main content

Android TV Automation

Tutorial To Run Your First Test On LambdaTest


As smart TVs continue to grow in popularity, relying solely on manual testing is no longer sufficient. Automating Android TV testing provides broader device coverage, enhances user experience by validating remote-based navigation and voice commands, and eliminates repetitive manual tasks. It also helps uncover issues earlier in the development cycle, ensuring a smooth and consistent experience across different Android TV models. In this guide, you will learn how to set up and run your Android TV automation testing scripts with Appium on the LambdaTest Real Device Cloud platform.

To enable it for your organization, please contact us via 24×7 chat support or you can also drop a mail to support@lambdatest.com.

Objective


By the end of this topic, you will be able to:

  1. Set up an environment for testing your Apps using Android TV with Appium.
  2. Understand and configure the core capabilities required for your Appium test suite.
  3. Explore the advanced features of LambdaTest.

Prerequisites


Before you can start performing App automation testing with Appium, you would need to follow these steps:

  • You have access to LambdaTest username and accessKey. If you have not registered yet, you can do the same by visiting our website. You will be able to access the credentials in the LambdaTest Profile
  • Install the latest Python build from the official website. We recommend using the latest version.
  • Make sure pip is installed in your system. You can install pip from pip documentation.

Supported Models

Device ModelPlatform Version
Nvidia Shield TVAndroid 11

Run Your First Test


1. Upload your application

Upload your Android TV application (.ipa file) to the LambdaTest servers using our REST API. You need to provide your Username and AccessKey in the format Username:AccessKey in the cURL command for authentication. Make sure to add the path of the appFile in the cURL request. Here is an example cURL request to upload your app using our REST API:

Using App File from System:

curl -u "undefined:undefined" -X POST "https://manual-api.lambdatest.com/app/upload/realDevice" -F "appFile=@"/Users/macuser/Downloads/android-tv-sample-app.apk"" -F "name="androidtv_app" -F "type="androidtv""

2. Set Up Authentication

Make sure you have your LambdaTest credentials with you to run test automation scripts on LambdaTest. To obtain your access credentials, purchase a plan or access the Automation Dashboard. Then, set LambdaTest Username and Access Key in environment variables with following commands.

export LT_USERNAME=undefined \
export LT_ACCESS_KEY=undefined

3. Configure Desired Capabilities

In your automation script, set up the platform capability to specify that you are testing on an Android TV device.

   desired_caps = {
"deviceName" : "Nvidia Shield TV",
"platformVersion" : "11",
"platform" : "androidtv",
"isRealMobile":True,
"build": "Android TV Testing",
"app":"APP_URL", # Enter app url here
"network": False,
"geoLocation": "FR",
"devicelog": True,
"privateCloud": True, # For private cloud testing
"visual" : True,
"autoGrantPermissions": True

}

Test across 3000+ combinations of browsers, real devices & OS.

Book Demo

Help and Support

Related Articles