Creating DriverManager for AndroidDriver [Advanced Appium Tutorial - 10][Java]

preview_player
Показать описание
In this Appium Automation Tutorial Series we will learn how to create Mobile Automation Framework for Android platform.
I will show and explain step by step, class by class, how to implement all of the layers in this Automation Framework for Android. This framework will not address automation on iOS platform.
By the end of this series you should have the understanding on how to design and structure your own Framwork, and how to implement your own API.
You will also learn advanced JUnit usecases and how to implement them in your own Android automation framework. I will cover things like JUnit Rules, Retry, and Parametarized test runs.
At the end of this Appium Tutorial series you will have a solid platform for an automation framework that you can take and develop further depending on your requirements.

We will use object oriented programming to help us build very readable and reusable code. We will create wrappers for Appium, and ADB (Android debug bridge).
We will also create our own DriverMager that will automatically troubleshoot any issues with our Appium Servers and start Appium servers automatically.

Note 1: This tutorial series is not very beginner friendly if you do not know much Java. So some basic knowledge of Java is required.
Note 2: Code is available on GitHub. Note that commits are done after each video starting from Appium Tutorial part 3, so you can checkout a specific commit for specific video.
Note 3: Make sure to like, subscribe and spread the word, it is greatly appreciated!

Thank you,
Hope you enjoy the videos
Рекомендации по теме
Комментарии
Автор

Interesting, I am able to log any log level except for DEBUG. In other words, I tried changing MyLogger.log.debug under the command () on the ADB class. I also tried changing the to other levels like INFO, ERROR, WARN..., and they work just fine. BUT not Level. DEBUG! :/

aot
Автор

Hey, I didn't get that. Why do you need DriverManager class if you can not change driver's settings dynamically?

codesmanlabs
Автор

One question it seems I must have the unlock apk installed on the device or else I get a null pointer exception when running the test. I am using a galaxy s8 with android 7.0, so the problem being when the unlock apk is installed it will always fail for device in use when it is actually not.

Ender
join shbcf.ru