Join the webinar on 'Open source GenAI tools for Test Automation' on May 28th or May 30th.
Samsung Tizen UI Automation Testing using Appium: A Comprehensive Guide

Samsung Tizen UI Automation Testing using Appium: A Comprehensive Guide

October 30, 2023
Rohan SinghRohan Singh
Rohan Singh


Ensuring a flawless user experience across various devices and platforms is paramount in automated testing. This becomes especially critical when testing applications for smart TVs like those running on Samsung's Tizen operating system. To streamline the testing process and guarantee a seamless experience for your TV app users, we explore how to harness the power of the latest Tizen Appium driver for Tizen UI automation testing offered by HeadSpin.

HeadSpin empowers the support of automated and manual testing for common AV (audio-visual) devices and smart TVs, including WebOS, TizenOS, AndroidTV, and Apple TV. In this blog, we'll delve into leveraging the test automation tool for Tizen— the Appium driver by HeadSpin— to test AV-enabled Tizen TVs.

Find more at:

Automation Testing of Samsung Tizen TV: Why Is It Necessary?

The surge in TV app development and the increasing variety of smart TV platforms necessitate robust testing methodologies. Tizen UI automation testing offers several advantages, including:

  1. Efficiency: Automation expedites the testing procedure, decreasing the time and energy needed for manual testing.
  2. Consistency: Automated tests provide consistent and repeatable results, eliminating human errors.
  3. Coverage: Automation allows for testing a wide range of scenarios, ensuring comprehensive coverage.
  4. Quick Feedback: Automated tests can quickly identify and report issues, facilitating timely bug fixes.

The Tizen Appium Driver: A Game Changer

The Tizen Appium driver by HeadSpin was meticulously crafted to eliminate the need to automate a mobile remote control, simplify the setup, and conduct TV tests. This driver seamlessly interacts with the device SDB (Samsung Debug Bridge) bridge, abstracting away the complexities and making it easier for testers to focus on what matters most - ensuring the quality of their TV applications.

Read more: Mastering Automation of Android TV Apps With Appium

Getting Started with Appium Capabilities

Appium is a widely used open-source automation testing framework that provides cross-platform support, making it ideal for Tizen, WebOS, Android, and Apple TV. It enables both automated and manual testing of common AV devices and TVs.

To kickstart your testing journey with the Appium for Tizen UI automation testing, you must first acquire the Appium capabilities.

appium tizen tv

Step 1: Obtain Appium Capabilities

  1. Go to the Automation Configuration section after clicking on the ellipsis next to the TV under test.
  2. If required, create an API key from the provided hyperlink.
  3. Copy the Web driver URL and capabilities to a new Python script with the Appium library imported.

Step 2: Create a Python Script

Here's a Python script snippet that demonstrates how to set up your Appium capabilities:

device configuration tizen tv

from appium import webdriver

caps = {
"platformName": "tizentv",
"appium:automationName": "tizentv",
"appium:deviceName": "087K3CTN7004332",
"appium:udid": "087K3CTN7004332",
"appium:appPackage": "biF5E2SN9M.AppiumHelper"

driver = webdriver.Remote("{api_token}/wd/hub", caps)

driver.execute_script('tizen: pressKey', {'key': 'KEY_HOME'})
driver.execute_script('tizen: pressKey', {'key': 'KEY_UP'})
driver.execute_script('tizen: pressKey', {'key': 'KEY_RETURN'})

Step 3: Automate Key Presses

With HeadSpin's installation of the Appium for Tizen TV apps, you can easily automate key presses using the execute_script capability of the Appium client. This allows you to interact with the TV as if you were using a remote control.

For instance, to simulate pressing the 'HOME' button on the remote, you can use the following code:

driver.execute_script('tizen: pressKey', {'key': 'KEY_HOME'})

The beauty of this approach is that it grants you the ability to control various aspects of the TV using key presses, just as a user would.

Refer to this: appium-tizen-tv-driver/packages/tizen-remote/lib/keys.js

at main · headspinio/appium-tizen-tv-driver (

List of Supported Remote Control Keys

Here is a comprehensive list of supported remote control keys that you can use to control various functionalities during Samsung Tizen smart TV testing:

  0: 'KEY_0',

  1: 'KEY_1',

  2: 'KEY_2',

  3: 'KEY_3',

  4: 'KEY_4',

  5: 'KEY_5',

  6: 'KEY_6',

  7: 'KEY_7',

  8: 'KEY_8',

  9: 'KEY_9',

  11: 'KEY_11',

  12: 'KEY_12',

  '16_9': 'KEY_16_9',

  '4_3': 'KEY_4_3',


  AD: 'KEY_AD',






































  AV1: 'KEY_AV1',

  AV2: 'KEY_AV2',

  AV3: 'KEY_AV3',






















  DNIe: 'KEY_DNIe',

  DNSe: 'KEY_DNSe',
















  EXT1: 'KEY_EXT1',

  EXT10: 'KEY_EXT10',

  EXT11: 'KEY_EXT11',

  EXT12: 'KEY_EXT12',

  EXT13: 'KEY_EXT13',

  EXT14: 'KEY_EXT14',

  EXT15: 'KEY_EXT15',

  EXT16: 'KEY_EXT16',

  EXT17: 'KEY_EXT17',

  EXT18: 'KEY_EXT18',

  EXT19: 'KEY_EXT19',

  EXT2: 'KEY_EXT2',

  EXT20: 'KEY_EXT20',

  EXT21: 'KEY_EXT21',

  EXT22: 'KEY_EXT22',

  EXT23: 'KEY_EXT23',

  EXT24: 'KEY_EXT24',

  EXT25: 'KEY_EXT25',

  EXT26: 'KEY_EXT26',

  EXT27: 'KEY_EXT27',

  EXT28: 'KEY_EXT28',

  EXT29: 'KEY_EXT29',

  EXT3: 'KEY_EXT3',

  EXT30: 'KEY_EXT30',

  EXT31: 'KEY_EXT31',

  EXT32: 'KEY_EXT32',

  EXT33: 'KEY_EXT33',

  EXT34: 'KEY_EXT34',

  EXT35: 'KEY_EXT35',

  EXT36: 'KEY_EXT36',

  EXT37: 'KEY_EXT37',

  EXT38: 'KEY_EXT38',

  EXT39: 'KEY_EXT39',

  EXT4: 'KEY_EXT4',

  EXT40: 'KEY_EXT40',

  EXT41: 'KEY_EXT41',

  EXT5: 'KEY_EXT5',

  EXT6: 'KEY_EXT6',

  EXT7: 'KEY_EXT7',

  EXT8: 'KEY_EXT8',

  EXT9: 'KEY_EXT9',



  FF: 'KEY_FF',

  FF_: 'KEY_FF_',


























  MS: 'KEY_MS',

























  PLUS100: 'KEY_PLUS100',






































  TV: 'KEY_TV',


  UP: 'KEY_UP',














These keys offer precise control over the TV's functionalities, allowing for thorough testing.

Also read: Using Appium for Automated Testing of Roku TV Apps


With Appium for Tizen UI automation testing and leveraging the capabilities of the HeadSpin AV box, numerous global video streaming companies have managed to ensure a perfect and flawless experience for their TV app users.

Are you ready to enhance your Tizen Smart TV test automation? Discover how the Tizen Appium driver by HeadSpin can elevate your automation testing process and guarantee an impeccable user experience for your Tizen TV applications.

Connect now


Q1. Can I interact with my apps using JavaScript when conducting tests with Appium?

Ans: When performing tests with Appium, you can interact with your apps using JavaScript. As you execute commands through Appium, the server will transmit the script to the app, encapsulating it within an anonymous function to be completed. This flexibility enables you to seamlessly interact with and test your applications using JavaScript during testing

Q2. What is TV automation software?

Ans: TV automation software is an essential tool for efficiently overseeing a television station's scheduling and video stream. This specialized software, integrated with acquisition and playback cards, facilitates the reception and transmission of signals, ensuring seamless and automated control of television operations.

Samsung Tizen UI Automation Testing using Appium: A Comprehensive Guide

4 Parts


Perfect Digital Experiences with Data Science Capabilities

Utilize HeadSpin's advanced capabilities to proactively improve performance and launch apps with confidence
popup image