如何在 Android Studio 中使用 Appium? [英] How to use Appium with Android Studio?

查看:30
本文介绍了如何在 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.

这篇关于如何在 Android Studio 中使用 Appium?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆