Appium - First introduction to mobile APP automated testing framework Appium

When it comes to mobile APP automated testing, the representative testing framework is none other than Appium. Starting today, we will cover APP structure analysis, Appium framework learning, Android/iOS automated testing practice, automatic traversal regression testing, automated testing platform and continuous integration . Learn Appium from the shallower to the deeper in multiple dimensions

Today we will first have a preliminary understanding of Appium and how to design the UI automation of mobile APP more reasonably.

1. Appium design concept

Appium is an open source framework integrated with multiple services such as WebdriverAgent, espresso, and UI automator2 to drive each end to complete automated testing.

Appium supports multiple languages: python java nodejs, one language can complete multi-end testing work

Appium supports cross-platform: Android, iOS, windows, mac

Appium supports the underlying multi-engine switchability, such as iOS: KIF, WDA, XCTest; Android: robotium, ui automator

Your client can send an HTTP request to tell Appium what kind of program you want to automate, and help me click a button to implement assertions.

2. Appium underlying engine list

Android: The main engine is divided into two : selendroid and Esresso engines: these two engines can complete lower-level calls, such as calling the APIUI of the underlying SDK automator2: used to support cross-APP testing and compatibility testing

IOS: XCUItest engine UI automator: Already abandoned by Apple XCUItest: Facbook's WDA (webdriverAgent)

现在我也找了很多测试的朋友,做了一个分享技术的交流群,共享了很多我们收集的技术文档和视频教程。
如果你不想再体验自学时找不到资源,没人解答问题,坚持几天便放弃的感受
可以加入我们一起交流。而且还有很多在自动化,性能,安全,测试开发等等方面有一定建树的技术大牛
分享他们的经验,还会分享很多直播讲座和技术沙龙
可以免费学习!划重点!开源的!!!
qq群号:110685036

3. Overview of Appium multi-terminal architecture system

Traverse tools or scripts and initiate HTTP requests through webdriver

After receiving the appium service, it calls the corresponding Api or App through the above-mentioned intermediate engine.

If you are testing mobile browsers, applets, etc., you need to use the chrome driver and webview kernel to call them.

4. Proper use of UI automation testing

UI automation testing is divided into traditional testing based on test cases and automatic traversal testing based on test cases.

Value: Based on the use case maintenance system, core and complex business processes must be handed over to the test system based on use case maintenance to maintain and support the return of old functions.

Disadvantages: There will be use case maintenance costs, the exploration of new functions cannot be covered, and test cases need to be rewritten.

Automatic traversal testing

Definition: Fully functional traversal of the APP in an automated manner to explore bugs

Value: Reduce automated maintenance costs, covering compatibility, stability, performance, and basic business assertions. Almost 50 to 60% of an APP is very simple browsing, data display, etc., which can be maintained by automated traversal. Likewise Support the return of basic old functions

Purpose: multi-device compatibility testing, automated special testing

4. Mobile APP layered testing strategy

Unit testing : Use the APP layered testing strategy to increase the scale of single testing and control the scale of UI automated testing.

Test case-based testing : core integration and acceptance test cases are handed over to automated testing

Automatic traversal testing : most basic regression tests are handed over to automatic traversal

Manual testing : The test team leader is responsible, and the entire product team participates

Use different testing methods to solve different testing demands in the product. Through Android’s official testing guidance and mature testing technology in the industry, you can find a set of testing methods suitable for your company, so as to build the company’s testing system.

Finally, I would like to thank everyone who read my article carefully. Looking at the increase in fans and attention, there is always some courtesy. Although it is not a very valuable thing, if you can use it, you can take it directly!

Software Testing Interview Document

We must study to find a high-paying job. The following interview questions are from the latest interview materials from first-tier Internet companies such as Alibaba, Tencent, Byte, etc., and some Byte bosses have given authoritative answers. After finishing this set I believe everyone can find a satisfactory job based on the interview information.
 

Insert image description here

Guess you like

Origin blog.csdn.net/jiangjunsss/article/details/132810595