当前位置:网站首页>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 do I view the server when I log in to the fortress machine? Operation guide for novice
- 上线项目之局域网上线软件使用-----phpStudy
- Talk about how to customize data desensitization
- December 29, 2021: the elimination rules of a subsequence are as follows: 1. In a subsequence
- Spingboot reads the parameter values in the YML configuration file
- Dart series: your site is up to you. Use extension to extend classes
- Is it safe to open an account for flush stock?
- Development and code analysis of easycvr national standard user defined streaming address function
- Install bitgarden open source password manager
- 同花顺开户是安全的吗?
猜你喜欢

I am 30 years old, no longer young, and have nothing

Gradle asked seven times. You should know that~
![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

Four aspects of PMO Department value assessment

Steps for formulating the project PMO strategic plan

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

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

How PMO uses two dimensions for performance appraisal

What are the main dimensions of PMO performance appraisal?

New SQL syntax quick manual!
随机推荐
[5 minutes to play lighthouse] quickly use Chang'an chain
How to deal with product pictures? How to select mapping software?
同花顺股票开户是安全的吗?
. NET Framework . Net core and Net standard
How do I view the server when I log in to the fortress machine? Operation guide for novice
Memory patch amsi bypass
Global and Chinese market of gas fire pit 2022-2028: Research Report on technology, participants, trends, market size and share
How PMO uses two dimensions for performance appraisal
Talk about leap seconds
Using clion to realize STM32F103 lighting LED
Is it possible to transfer files on the fortress server? How to operate?
Use of pathinfo/pathname in nodejs
JS mailbox regular expression
A detailed discussion on the use guide of network Swiss Army knife nmap
Nodejs operation state keeping technology cookies and sessions
[redis] intersection and union of ordered sets
Retrofit magic, reject duplicate code!
Global and Chinese markets of natural starch 2022-2028: Research Report on technology, participants, trends, market size and share
Model selection and optimization
RI Gai series: push of STD container_ Why is back slower than []