当前位置:网站首页>Appium automation test foundation - 12 Introduction to appium automated testing framework
Appium automation test foundation - 12 Introduction to appium automated testing framework
2022-06-30 09:57:00 【Test - Eight Precepts】
What we said earlier Android Environment building and adb All commands are prepared for the establishment of mobile terminal automatic test environment .
1、 Mainstream mobile terminals ⾃ Dynamic ⼯ have
(1)Robotium
- ⽀ Holding language ⾔:Java
- only ⽀ a Android System
- No ⽀ Spanning stress ⽤
(2)Macaca
- ⽀ Holding language ⾔:Java,Python,Node.js
- ⽀ a Android and iOS System
- ⽀ Spanning stress ⽤
(3)Appium
- ⽀ Holding language ⾔:Java,C#,Python,php,perl,ruby,Node.js
- ⽀ a Android and iOS System
- ⽀ Spanning stress ⽤
2、⾃ Dynamic test ⼯ Selective concerns
- whether ⽀ a native,webview.
- whether ⽀ Hold on to get toast.
- whether ⽀ Spanning stress ⽤.
explain
(1)native
: Express APP Native PAGE .
- Use Android/IOS Pages written in supported languages .
Android yes Java Language .
IOS yes Object-C Language . - advantage : The page opens fast .
- shortcoming : Updating is complicated .
When you modify the native page , If it needs to be republished , It needs to be re released to the application market , No matter what app What's changed , Even a little native page , All need to be re released . Application market platform audit is required , The audit will take some time .
In terms of users , Updates require users to upgrade or download again app.
(2)webview
: The simple understanding is app Medium H5 page .
- Pages written using front-end technology .
- advantage : Easy to update .
Make changes , There is no need to republish the application market ,webview
The page can be updated on our own server . - shortcoming : Slow opening speed , Many elements of the page need to be loaded , Such as js,css etc. .
(3)toast
: Is a label in the page .
toast
The appearance of
For example, I am in Android Open the file manager in the virtual machine , Click the back button and there will be a line of prompt “ Click again to exit .”, Here's the picture :
This style of prompt is called toast
.
toast
It's not a pop-up window , Pop up the window in the page. If you don't operate it, it will always exist , andtoast
The default time disappears automatically .
Add
- Most of us now app page , It's all by
native
Page andwebview
Page mix , Existing native pages , Also have H5 page . - stay app Distinguish between native pages or H5 The basic method of the page ( Not necessarily accurate ), There is no progress bar when opening the native page , open H5 Your page has a progress bar .
3、APPium brief introduction
- Officer, ⽹:www.appium.io, from SauceLab Companies to develop .
- Appium By
nodejs
Ofexpress
It's written in the frameHttp Server
,Appium send ⽤WebDriver
Ofjson wire
agreement ( The protocol can support multiple languages ), To drive Apple SystematicUIAutomation
library 、Android SystematicUIAutomator
frame .
Appium Yes IOS The support of the system benefits fromDan Cuellar’s
about IOS Research on Automation .
Appium It is also integrated. Selendroid, To support the old android edition . - Appium Support Selenium WebDriver All supported languages , Such as
Java
、Object-C
、JavaScript
、Php
、Python
、Ruby
、C#
、Clojure
, perhapsPerl
Language , You can useSelenium WebDriver
Of API.Appium Support any testing framework . If only Apple Of UIAutomation, We can only use javascript To write test cases , And only use Instruction To run test cases . Again , If only Google Of UIAutomation, We can only use java To write test cases .Appium Real cross platform automated testing is realized . - Appium Is an open source for automated testing 、 Cross platform tools . It allows testers to work on different platforms (iOS,Android) Use the same set API To write automated test scripts , This greatly increases iOS and Android Test the reusability of code between suites .
Support iOS The platform and Android Native applications on the platform ,web Applications and mixed applications .
So-called “ Mobile native app ” It refers to those who use iOS perhaps Android SDK Applications written .
So-called “ Move web application ” It's an application that uses a mobile browser to access (Appium Support iOS Upper Safari and Android Upper Chrome).
So-called “ Hybrid applications ” Native code encapsulates the view of a web page —— Native code and web Content interaction .
such as , image Phonegap, It can help developers develop applications using Web Technology , Then encapsulate... With native code , These are hybrid applications . - Appium Use the framework provided by the supplier :
IOS 9.3 And above : Apple XCUITest
IOS 9.3 And earlier : Apple UIAutomation
Android 4.2+: Google's UiAutomator/UiAutomator 2
Android 2.3+: Google's Instrumentation(Instrumentation By a separate project Selendroid Provide support )
Windows: Microsoft WinAppDriver
a key : Supporting learning materials and video teaching
So here I have carefully prepared the detailed information of the above outline in The link below is as follows
边栏推荐
- Plan the IT technology route for the new year? Let's learn about Gartner infrastructure hype cycle
- 抽象类和接口
- 11.自定义hooks
- 正则表达式基础
- 直播带货源码开发中,如何降低直播中的延迟?
- Installing Oracle database process in windows2007 on VM
- About the smart platform solution for business hall Terminal Desktop System
- Deberta (decoding enhanced Bert with distinguished attention)
- NFS shared services
- 二极管如何工作?
猜你喜欢
Train an image classifier demo in pytorch [learning notes]
【新书推荐】Deno Web Development
Network based dynamic routing protocol (OSPF)
How to reduce the delay in live broadcast in the development of live broadcast source code with goods?
近期学习遇到的比较问题
Flume learning 4
Eight sorts (II)
Practice of super integration and transformation of core production business of public funds
Principle and implementation of small program hand-held bullet screen (uni APP)
oracle跨数据库复制数据表-dblink
随机推荐
Redis + MySQL implements the like function
正则表达式基础
GPT (improving language understanding generative pre training) paper notes
【ARK UI】HarmonyOS ETS的启动页的实现
栈题目:字符串解码
基于Svelte3.x桌面端UI组件库Svelte UI
Oracle cross database replication data table dblink
G-Code 详解
3. integrate eslint and prettier
Flume learning II - Cases
云技能提升好伙伴,亚马逊云师兄今天正式营业
Golang magic code
MySQL优化
2021-07-26
磁悬浮3D灯
About the smart platform solution for business hall Terminal Desktop System
Principle and implementation of small program hand-held bullet screen (uni APP)
【JVM】G1垃圾回收器简述
关于字符串的split和join操作
Object detection yolov5 open source project debugging