简体   繁体   中英

How to run java test files using Appium for android?

I'm very new for 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.

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.

If anybody guide me step wise will be very helpful.

Thanks.

You can run the java test file using following command:

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

For command line execution you can integrate your automation test with build tools.

Like Ant, 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM