Appium Tip #25: How to Avoid the Most Common Test Zip Mistake

Everything About Appium Test Automation

Dear Testdroiders,

This is the 25th blog of our 37 Things You Should Know About Appium blog series. Today we are going to quickly talk about the most common test zip mistake with Appium and how to avoid it to get your Appium tests running instantly with no hassle.

As you know, the Appium Server-Side Execution on Testdroid Cloud enables you to run Appium tests on all of our devices in parallel with no need to change complicated setups or modify any desired capabilities which must be done at client side. The process is simple – upload the target .apk or .ipa, upload your test scripts in .zip file and then you can just start the test run after selecting the device group. If you find that the test didn’t run properly, chances are that the test files are wrongly zipped.

Appium Tip 25: The Most Common Mistake of Appium Tests Zipping

If your Appium tests are finished with failure or didn’t even start, then one of the most important things you can check is how your project files are zipped. The typical mistakes of zipping Appium test files look as below – either all files are under a parent directory or part of the files are not found in the root of the zip file.

Mistake case 1: 

Appium Tests Wrong Zipping #1

Mistake case 2: 

Appium Tests Wrong Zipping #2

Mistake case 3: 

Appium Tests Wrong Zipping #3

One thing worth noting is that run-tests.sh is the key to automating the tests (you can rename it as run-tests_android.sh for Android or run-tests_ios.sh for iOS). It is the launch point of testing process and used to execute any of the tests provided. It can also be modified to fit the purposes of the test project. Hence the correct way of a zipped file looks like below – all the files are at the root of the zip file.

Correct way for zipping:

Correct Way to Zip Appium Tests

Hope this quick tip will help you avoid the unnecessary check-up on your Appium tests for server-side execution. Please comment below and stay tuned as more tips and tricks for Appium are on their way here Testdroid blog.

Happy Appium Test Automation!

  • Yogesh Gujrati

    Hi Lingkai Shao@lingkai_shao,
    Thanks for sharing this content,
    I need your help man, can you please provide me Complete thorough Study material for APPIUM, for Mobile Automation using Android and iOS device UIAutomation.Thanks in advance.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close