as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
The Appium Vega Driver enables automated testing of apps on Fire TV Stick. This page shows how to create automated tests using Python, Java, or JavaScript.

Prerequisites

  1. Complete the steps in Set Up Testing with Appium.
  2. Review Manage Appium Sessions for capabilities configuration.
  3. Confirm if the Appium server is running on default port 4723:
  4. Have a Vega-supported Fire TV device or Vega Virtual Device with a target app installed.

Write your test script

  1. Choose your preferred integrated development environment and programming language.
  2. Create a new file with the following code snippet: Python:
    JavaScript:
    Java: Java requires compilation and dependency management. Use Maven or Gradle to handle these requirements automatically. Project setup using Maven
    1. Check for Maven installation.
    1. Create a pom.xml in your project root.
    1. Create a test class. See text class.
    Project setup using Gradle
    1. Verify Gradle installation:
    1. Create build.gradle in your project root:
    1. Create settings.gradle.
    1. Create a test class. See text class.

Test class

Run your test script

You can run your test script using your preferred testing framework and tooling.
  1. Open a command prompt.
  2. Navigate to your test file location.
  3. Run the test.
Python:
Example output:
JavaScript:
Example output:
Java Using Maven:
Using Gradle:
Example output:

最后修改于 2025年9月30日