Video at the end of the article | From PO design pattern to Appium source code analysis

1. About Appium

Appium is an open source tool for automated testing, which allows testers to use the same set of APIs on different platforms (iOS, Android) to write automated test scripts, which greatly increases the code reusability between iOS and Android test suites.

In this workshop, we learned the design principles of Appium, how to capture page elements, and how to use Appium-desktop to record use cases, which laid the foundation for some students who are not very familiar with Appium.

Then we explained PageObject, the most popular UI automation test design pattern in the industry, and let everyone have a deep understanding of the actual role of PO in actual work through actual combat.

Our final topic is Appium source code analysis. We took you to deeply analyze the source code of Appium, an open source framework, so that students have a preliminary understanding of the excellent testing framework.

2. Live events on site


▲Workshop meeting room ready


▲ "Catch" a pirate fan at the scene

The workshop officially started at 10 o'clock, but many students arrived at the venue before 9 o'clock to prepare for the environment configuration and other preliminary preparations, which is enough to show the importance everyone attaches to this workshop.

The college also tried its best to cooperate with everyone's enthusiasm for learning, and each teaching assistant was also in place early to answer questions for students who arrived early.


▲The teaching assistant answers questions for the students at the scene

In the morning, I mainly introduced the principle of the Appium test framework, and took you to analyze the Appium automation process. In the morning, the dry goods were full, and the on-site learning atmosphere was high. Every student who came was very serious, and even the lunch break at noon was reluctant to let go.


▲The students listened to the class attentively


▲ During the lunch break, Sihan will answer questions for everyone

In the afternoon, Sihan introduced the PageObject design pattern in detail, and integrated this design concept with actual combat to give you a deeper understanding of the main points of automated testing on mobile terminals.


▲Sihan explained the course for everyone. After
a day of study, I need food to replenish energy! Therefore, the college also prepared a delicious afternoon tea for everyone to make "grain supplements" for everyone.


▲ Afternoon tea break to replenish energy


▲ Teacher Sihan answered questions during tea break

Since there is "Hogwarts", how can there be a lack of "Fantastic Beasts"?

In the process of studying in the afternoon, a cute magic cat joined our Hogwarts Test Academy, and studied with us the analysis of Appium's source code and architecture.

The kittens are learning, what are you waiting for?


▲The little cat who is studying hard, the
inner OS: Appium has so many excellent design ideas that can be used for reference. I have to read more carefully. Next time, I can write a Catium to automatically test whether the dried fish is delicious.
3. Workshop ends perfectly

In just one day, we let the on-site students not only learn practical automation processes and design patterns for optimizing scripts, but also took the students to analyze some of the underlying implementation logic of Appium, one of the best open source frameworks in the test circle.

Over time, I believe that our students absorb the advantages of these excellent open source projects, and can also make an excellent and practical testing framework like Appium.

▲ Group photo after the workshop

4. Dinner time (Easter eggs are coming)

Learning is a hard thing, and the combination of work and rest can make it more efficient.

After the workshop, everyone used the "corruption" right of the academy's TeamBuilding, and the students of the academy had a dinner with their teachers and teaching assistants. Let's chat about the industry situation and technology trends together, and enjoy the delicious food at the same time.


With both delicious food and knowledge, the sixth phase of Workshop - Shenzhen Station finally drew a perfect ending. I look forward to continuing to make progress together with all students next time.



Original link

More technical articles to share

Guess you like

Origin blog.csdn.net/hogwarts_2022/article/details/124296231