Adding ADB Support to our Framework [Advanced Appium Tutorial - 7][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
Рекомендации по теме
Комментарии
Автор

just an FYI, I had to add a trim()

In public ArrayList getLogcatProcesses(){

I had to add a
")[0]);
to get it to work, as there was a preceding whitespace on the process string returned.

JonathanTaylor
Автор

Question with the building of the ArrayList I get the following warning ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized, I have looked into generics on oracles page but cant figure out how to edit these arrays to not have said warning. I just suppressed the warning for now but I read this is not the solution I want to use. Do you have any recomendations for a fix for this.

Thanks,
Chris

chrismcdonald
Автор

Hi Artur!

I had the grep and logID in the Runnable at startLogcat but it requires me to make the grep and logID variable to be final. Did you do any configuration to your project that I might have missed?

Regards!

thedomiliciousooadp