当前位置:网站首页>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 .
边栏推荐
- How to build a cloud game platform? Disadvantages of traditional games
- Share a super Mary source code
- Customize view to imitate today's headlines and like animation!
- Install bitgarden open source password manager
- From different angles, you can learn about the implementation of sliding list in fluent
- December 29, 2021: the elimination rules of a subsequence are as follows: 1. In a subsequence
- Whether the offsetwidth includes scroll bars
- QPS fails to go up due to frequency limitation of public network CLB bandwidth
- How to handle the prompt that DNS is incorrect when adding resolution to Tencent cloud?
- How to solve the problem that the ID is not displayed when easycvr edits the national standard channel?
猜你喜欢

How does PMO select and train project managers?

Steps for formulating the project PMO strategic plan
![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

New SQL syntax quick manual!

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

Beitong G3 game console unpacking experience. It turns out that mobile game experts have achieved this

Gradle asked seven times. You should know that~

How PMO uses two dimensions for performance appraisal

How to gradually improve PMO's own ability and management level

How to view the role of PMO in agile organizations?
随机推荐
Model selection and optimization
Is it possible to transfer files on the fortress server? How to operate?
Short video intelligent audit software intelligent audit or manual audit
Fortress deployment server setup operation guide for novices
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 check whether the service is running normally after easydss cluster transcoding is set up?
Command line add user set password never expires add remote group add administrator group
2021 three "myths" of science and technology industry -- yuancosmos, NFT and web 3
The new track of flagship chip is finally clear
Bi-sql index
Application of JDBC in performance test
How to Net project migration to NET Core
Talk about how to customize data desensitization
Bypass memory integrity check
Thinking about distributed system consensus
How to build a cloud game platform on the server? How to select a cloud game server?
Use Tencent cloud lightweight application server to build an unlimited network disk -zpan building tutorial
. NET Core . NET Framework
[SAP ABAP] call API interface instance
【etcd】etcd使用与集群搭建