当前位置:网站首页>How many of the five app automated test AIDS have you used?
How many of the five app automated test AIDS have you used?
2022-06-23 21:23:00 【Hemingway】
UI When automating tests , First, locate the element to be operated , Then the instructions can be executed . On the web side, it is very convenient to pass devtools Tools ( That is to say, it is often said that F12) Get and write element positioning expressions .
But in mobile automation , This auxiliary tool still has a large optimization space . The list below 5 An element positioning aid I often use , And their strengths and weaknesses .
1、 Appium Inspector
Appium Inspector yes Appium Implemented page element viewer , The old version directly integrates appium In desktop applications , The new version will directly separate it , Made a gadget , Even if not used appium Do automated tests , You can also use this tool to locate elements , Positioning aids are also my default tools .
His advantages are :
1、 Stand alone tools , It can be downloaded separately
2、 Verify that the element expression is correct
3、 It can locate native applications , You can also locate hybrid applications and web page
The disadvantage is that it is troublesome to start , You need to configure parameters , The response speed is also slow ,web The page positioning function is relatively weak , Insufficient precision .
Installed directly on https://github.com/appium/appium-inspector download , Just like the installation of ordinary software , After startup, you need to configure parameters to indicate the mobile phone you are connected to 、 Platform information , It's also the trouble with this tool .
This is an example , Click when finished “start session" You can connect your mobile phone and start positioning . If you think it's troublesome to fill in parameters every time , Can be saved directly , Direct use next time .
{
"platformName": "Android",
"appium:automationName": "Uiautomator2",
"appium:packageName": "com.package.name",
"appium:activity": ".lauchable.activity",
"appium:chromedriverExecutable": "path/to/chromedriver.exe",
"appium:deviceName": "emulator-5554"
}After getting the expression of the element in the page , The search button can be used to verify whether the specified element can be found in the page , This function is easy to use .
Uiautomatorviewer
This is Android sdk The tools included in the page , Install Android sdk after , Directly in \tools\bin In the directory uiautomatorviewer.bat Click the file to run . Its advantage is that Android comes with , Open the box , You can set a shortcut to the file , Click Run ; The disadvantage is that the function is relatively simple , Only basic element information can be obtained .
Weditor
weditor Is in atx A gadget under the ecology , Currently maintained by Alibaba , It supports self generation python uiautomator2 Code for , But if you don't u2, Then this function is useless . It also supports direct operation on the interface app, But this tool is not very stable , The connection is very easy to disconnect , And and appium Are not compatible , To locate, first appium Service disconnected ,appium The runtime also needs to put weditor To break off , The operation is cumbersome .
chrome inspect
This is positioning app Tools needed to embed web pages in , Common in mixed applications and web application . When app When entering a web page , Directly in chrome Browser's url Column input chrome://inspect You can enter the web debugging tool , The page will show which mobile devices are connected . It doesn't need to install any extensions , Browser built-in functions . Click on the page to directly open devtools Tools , And in browsing, press F12 There's no difference .
UC Devtools
This is a UC Web debugging tool developed by browser , Function and chrome inspect equally , Main positioning app Web page elements in . Open the website https://plus.ucweb.com/download/ Download complete .
边栏推荐
- Spend small money to do big things: cloud function + cloud development leverages the practice of e-commerce promoting flexible architecture in CCTV evening party
- How to reduce snapshots
- [open source] goravel (golang Web Framework) - new cache module
- RI Gai series: push of STD container_ Why is back slower than []
- Stm32 w5500 implements TCP, DHCP and web server
- From AIPL to grow, talking about the marketing analysis model of Internet manufacturers
- How to check whether the service is running normally after easydss cluster transcoding is set up?
- 数字电路概述
- The new track of flagship chip is finally clear
- Why is it invalid to assign values to offsetwidth and offsetHeight
猜你喜欢

Four aspects of PMO Department value assessment

How does PMO select and train project managers?

How to gradually improve PMO's own ability and management level
![Harmonyos application development -- mynotepad[memo][api v6] based on textfield and image pseudo rich text](/img/b1/71cc36c45102bdb9c06e099eb42267.jpg)
Harmonyos application development -- mynotepad[memo][api v6] based on textfield and image pseudo rich text

How to view the role of PMO in agile organizations?

New SQL syntax quick manual!
Application of JDBC in performance test

Lightweight, dynamic and smooth listening, hero earphone hands-on experience, can really create

Gradle asked seven times. You should know that~

What are the main dimensions of PMO performance appraisal?
随机推荐
. Net Core 3. X MVC built-in log extension log4net
Global and Chinese markets of natural starch 2022-2028: Research Report on technology, participants, trends, market size and share
JS takes two decimal places
What are the server host security risks? How to prevent safety risks?
[5 minutes to play lighthouse] quickly use Chang'an chain
Is it possible to transfer files on the fortress server? How to operate?
[hot sales at the beginning of the year] | the first special offer of popular cloud products is second to none, and the first year of 1-core 2G cloud server is 38 yuan!
QPS fails to go up due to frequency limitation of public network CLB bandwidth
How to build a personal cloud game server? How many games can the cloud game platform install?
同花顺开户是安全的吗?
C WPF new open source control library: newbeecoder Nbtreeview of UI
Pathname attribute of link a object
JS delete object attribute
上线项目之局域网上线软件使用-----phpStudy
Copilot - employee, your layoff notice has been delivered
. Net cloud native architect training camp (rgca four step architecture method) -- learning notes
Do you really understand the cache penetration, cache breakdown and cache avalanche in rotten street?
Steps for formulating the project PMO strategic plan
[etcd] etcd usage and cluster construction
Stm32 w5500 implements TCP, DHCP and web server