如何在 Android Studio 中使用 Appium?

问题描述:

我正在尝试将 Appium 与 A​​ndroid Studio 结合使用.我在谷歌上的搜索并没有多大帮助!那么我在 gradle 文件中需要什么以及如何运行测试?

I'm trying to use Appium with Android Studio. My search on google doesn't helped much out! So what do I need in the gradle file and how to run the tests?

谢谢

你的 gradle 文件应该是这样的:

Your gradle file should be like this:

apply plugin: 'java'

repositories {
    mavenCentral()
}

dependencies {
    Mention all your jar here
}

您可以从命令行运行 gradle(gradle assemble) 以创建测试的 jar,然后您可以运行该 jar.

From command line you can run your gradle(gradle assemble) to create the jar of your test and then you can run that jar.