程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

[Python app automation test practice ①] - gossip about app automation

編輯:Python
Wanyeji Faint thunder , Cloudy sky . But I hope the wind and rain will come , I can keep you here .


Preface
Author's brief introduction : Husky who yearns for power , You can call me Siberian Husky , One devoted to TFS Empowered bloggers
CSDN Blog expert certification 、 Nova plan Season 3 full stack track top_1 、 Huawei cloud sharing expert 、 Alibaba cloud expert Blogger
If there is something wrong with the knowledge of the article , Please correct me. ! Learn with you , Progress together
The motto of life : Being superior to some other man , Is not high , The true nobility is to be superior to one's former self .
If you feel the blogger's article is good , Please pay attention. 、 give the thumbs-up 、 Collect three companies to support bloggers


Column series ( Click unlock ) Learning route guidance Knowledge orientation Python Full stack white paper Zero foundation beginner level chapter Easy to get started in an easy to understand way , Let you fall in love with Python The charm of . Advanced Grammar Mainly around multi-threaded programming 、 Regular expression learning 、 Including project exercises close to actual combat . Office automation Realize the automatic operation of daily office software , Save time 、 Improve office efficiency . Automation test practice From the perspective of actual combat , One step ahead , Rapid transformation test development engineer . Database development practice Updating Introduction and practice of reptile Updating Data analysis Updating Introduction to the front +flask Full stack Updating django+vue Full stack Updating expand - Introduction to artificial intelligence Updating The road to network security Stepping on a pit Record the pit encountered during learning and drilling , It is convenient for those who come from behind to catch up Net security literacy Three days fishing , No deep understanding of the principle , It will only make you a script boy . vulhub The loopholes in the shooting range reappear Make it easy to reproduce vulnerabilities , Let security researchers focus more on the vulnerability principle itself . shell Programming Don't involve linux Basics , The final case will be in the direction of safety reinforcement . [ To be finished ] WEB Vulnerability attack and defense 2021 year 9 month 3 Stop updating on , Move to safe communities such as prophet community and small secret circles Collection of penetration tools 2021 year 9 month 3 Stop updating on , Move to safe communities such as prophet community and small secret circles A little Engineer Test artifact - Charles Software test data packet capture analysis artifact Test artifact - Fiddler Learn to fiddle , Learn not to stand upside down and eat , Rarefied ! Test artifact - Jmeter Not just a performance test artifact , It can also be used to build a lightweight interface automation testing framework . RobotFrameWorkPython Automatic test tool realized , This chapter only introduces UI Automation part . Java Realization UI automation Document written in 2016 year ,Java Realized UI automation , It still has reference significance . MonkeyRunner There are not many application scenarios for this tool at present , The document has been deleted , Only for the sake of good typesetting .


List of articles

    • Why do it APP automation
    • APP Automation and WEB Automated comparison

Hello everyone , We've learned that through selenium Realization WEB automated testing , For browsers like this , We call it B/S Testing tasks for architectural patterns . With the arrival and vigorous development of mobile Internet 、 mobile phone APP Used frequently 、 More applications , So for mobile phones APP The test of is becoming more and more popular , This is also the reason why this section appears .

Just imagine , Can you put APP Also like the previous selenium It's like that mobile phone APP Do similar things in ? The answer, of course, is yes . Today's content is the introduction of mobile terminal Automation testing , There are two main contents :

  • Why do it APP automation
  • APP Automation and WEB Automated comparison

Why do it APP automation

We can see from real life , Everyone's use of the Internet has gradually changed from WEB The interface is transferred to APP above , Almost do not leave the phone . So , In the testing industry , About APP Mobile testing skills are becoming more and more popular , about APP It is more and more urgent to automate the testing of .

APP There are many testing tools , from PC —> WEB —> APP The development route of , The means of automated testing are also changing with the tools . Recorded from the earliest kind of screen ( Video recording ) Automation based on coordinates , To the later formed office 、 Commercial automation tools , The most commonly used in a large number of mobile end automated test tools Namely APPIUM Such a tool .

Return to the right topic , Why do APP automation ?

In the early days of mobile Internet , At that time, we still used the Symbian system . At that time APP Very simple , But I can talk on my cell phone QQ, We all feel great sending text messages through Feixin .

But over time , Everyone is concerned about mobile phones 、 The requirements for mobile products are becoming higher and higher . We hope APP Good quality can be achieved 、 To use 、 Great experience 、 Visual effect 、 The operating habits are in line with the public's aesthetic 、 Ergonomic and so on .

So based on this , Enterprises also urgently need APP Test of . Therefore, Internet companies are investing more and more in mobile terminal products 、 Pay more and more attention to .

The iteration of Internet products is different from the earliest ones PC End products Not quite the same. , Its iterations are very fast . So in view of the fast iteration , Right again APP The increase of testing investment , So there is a very urgent need APP automation To complete tedious regression tests .

A small summary :

  • The user to APP The requirements for product quality and user experience are getting higher and higher
  • Internet companies pay more and more attention to the investment in mobile terminal products
  • Rapid iteration of Internet products
  • Tedious regression testing

APP Automation and WEB Automated comparison

APP automation And WEB automation The main differences are the following :

WEBAPP Starting mode Browser launch 、 Multithreading Exhale APP start-up 、 Only single thread Client information By starting webdriver Different browser classes Need to make desired_caps Content , Contains device information Element localization name、id、class_name、css、xpath etc. I won't support it css_selector and linktext Element operation Can support through js Realization I won't support it js , But it supports sliding and other operations
  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved