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. To avoid any other common mistakes, download our free Appium beginner’s guide and follow the instructions to build a proper Appium setup.
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:
Mistake case 2:
Mistake case 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:
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!
Learn all the basics about Appium, how to set it up and how to use it for mobile app testing.Download