简体   繁体   English

如何使用Appium for Android运行Java测试文件?

[英]How to run java test files using Appium for android?

I'm very new for Appium. 我对Appium很陌生。 I have configured all my Win-7(64 bit) machine using this blog ie Appium for windows, node.js and Android SDK with API level 17, emulator etc. 我已经使用此博客配置了我所有的Win-7(64位)计算机,即Windows的Appium,node.js和具有API级别17,模拟器等的Android SDK。

I found many java files on git-hub also in this blog also but How to run this java files I don't have idea. 我也在此博客上的git-hub上找到了许多Java文件,但是我不知道如何运行此Java文件。

If anybody guide me step wise will be very helpful. 如果有人指导我明智的做法将非常有帮助。

Thanks. 谢谢。

You can run the java test file using following command: 您可以使用以下命令运行Java测试文件:

mvn -Dtest=com.saucelabs.appium.SimpleTest test

Note: You need to open terminal -> navigate to project directory --> execute the above command. 注意:您需要打开终端->导航到项目目录->执行以上命令。

Refer to this link: Run Java Test File 参考此链接: 运行Java测试文件

For command line execution you can integrate your automation test with build tools. 对于命令行执行,您可以将自动化测试与构建工具集成在一起。

Like Ant, Maven, Gradle. 像蚂蚁,Maven和Gradle。 it can help you to execute and build automation test, also you can easily integrate with CI tools with the help of these. 它可以帮助您执行和构建自动化测试,还可以借助这些工具轻松地与CI工具集成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用CSS Selector Appium Java运行自动化测试 - How to run automated test using css Selector Appium java 用Eclipse编写的Java代码不能与TESTNG一起运行(尝试使用Eclipse和Appium for Android Emulator自动化测试) - Java code written in Eclipse did not run with TESTNG (trying to automate test using Eclipse and Appium for Android Emulator) 如何使用Java Appium Client在Android中滚动? - How to scroll in android using java appium client? Appium:如何使用java中的自动化测试用例检查设备名称 - Appium : how to check device name using automation test cases in java 如何使用Selenium + Appium和Java测试随机值 - How to test random values using Selenium+Appium and java 如何使用appium自动化/测试Android混合应用程序? - how to Automate/test Android hybrid apps using appium? 如何使用Eclipse在Appium上运行脚本测试? - How to run a script test on Appium with Eclipse? 如何在Appium上为2种不同的设备运行JUnit测试? - How to run a JUnit test for 2 different devices on Appium? 如何使用Appium和Java在Android中点击文本旁边的元素? - How to tap the element next to a text in Android using Appium and Java? 如何使用appium和java向下滚动点击Android中的元素? - How to scroll down to click the element in Android using appium and java?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM