当前位置:网站首页>Huawei app UI automation test post interview real questions, real interview experience.
Huawei app UI automation test post interview real questions, real interview experience.
2022-07-28 02:05:00 【Automated test】
1.Android APP When there is not enough memory , How to get memory ?
System priority end suspended ( Pause ) The process of , Free memory .
2.APP What are the common problems in testing ? What are the reasons ?
Common are crash、ANR( No response from application 、 stuck ), It's usually fragmented by devices 、 The Internet is volatile 、 Memory leak 、 Coding error .
3.APP Automated test tool
Open questions , With a little bit of subjective opinion :
- Compare the advantages and disadvantages of other familiar automation tools ;
- A brief solution to automation ( Brief at the same time, the key content please be specific ).
4.Android And web Test differences ?
The same thing :
- Test cases are designed according to equivalence class 、 Boundary value and other methods , The test principle is the same ;
- Most use black box testing to verify business functions ;
- Need to check the interface layout 、 The style and buttons are beautiful 、 Unity, etc (UI test );
- Test the speed of page loading and page flipping 、 Whether the login duration overflows or not ( Performance testing );
- Test the stability of the application system .
Difference :
- Mobile phone as a communication tool , Some actions, such as communication, will be helpful to APP produce ( Interrupt test );
- Mobile phone users are right about app Install and uninstall the product : From the last version / The last two versions are upgraded directly to the latest version ( Install uninstall test );
- web The most commonly used tools for automated testing are selenium, and android The more commonly used automation tools for mobile phone automatic testing are monkey、monkeyrunner、Appium( Testing tools are different ).
5.app What kinds of environments are there for testing ?
- The local environment :app Installed mobile phone environment and computer built automated test environment ( Like Android SDK etc. );
- Server environment :war Package deployment server , The browser can access the server .
6. A brief introduction Android SDK Installation steps of
- download jdk And android sdk;
- install jdk, Configure environment variables (java_home、classpath、 path).
7. Introduce the test points of mobile applications and their servers ?
- Mobile applications mainly have permissions 、 Install run uninstall 、UI、 function 、 performance 、 interrupt 、 Compatibility 、 Security 、 Return to 、 Upgrade update 、 User experience (app Of 11 Big test point );
- There are interface tests on the server side 、 Performance testing 、 Security testing .
8. How to determine bug Is it a client or background problem ?
This depends on the business , General data problems, front-end problems more , The general practice is to raise problems to the front-end development , They know whether it's their own problem or the data back in the background .
9. How to get the log information from Android
- Import the Android system log information into the local system in real time :adb logcat -v time > d:\mylog.log;
- Run using some app, Get this in real time app Log information (cmd The return information inside ) :adb shell monkey -p com.android.calendar -v 1000 > d:\mylog2.log.
10. common adb command
- View currently connected devices :adb devices;
- Install the software :adb install route \xx.apk;
- Uninstall software :adb uninstall < Package name >;
- Send files from computer to device :adb push < The local path > < Remote path > adb push C:\test1.txt /sdcard/;
- Download files from your device to your computer :adb pull < Remote path > < The local path > adb pull /sdcard/test1.txt D:
- Get logs in real time :adb logcat -v time > D:\mylog.log;
- Log in to the terminal device shell:adb shell;
- Find the package name / Activity name :adb logcat | findstr START ( Script , cmp= The latter value is Package name /activity name );
- start-up APP start-up ;
- adb shell am start -n packageName/activity;
- close app grammar :adb shell am force-stop Package name ;
- monitor APP Starting time adb shell am start -W packageName/activity;
- Monkey command :adb shell monkey -v -p mypackage 50.
11.APP How to test so many mainstream models
My mobile phone models are Meizu , Huawei , millet ,iphone7、iphone8 、iphone8plus 、iphone x Test compatibility , Some models that don't have , Let's borrow a colleague's mobile phone to test , At the same time apply for the company to buy , Or use Use cloud real machine .
12.App collapse ( Flash back ) reason
Too much cache garbage : Due to the characteristics of Android system, if you don't clean up garbage files for a long time , It will cause more and more cards to flash back , Running too many programs leads to insufficient memory .
Application version compatibility : If the application version is too low , Can lead to incompatibility , Cause a flashback . Besides , There are also some new versions In debugging , It will also cause the application to flash back .
resolvent : If the version is too old , Update to the new version ; If it's a new version, go back , Maybe the application is in revision debugging , You can uninstall and install the old version . Check APP Intermediate access to the network , In the component ImageView Whether it can be downloaded and displayed to app On the page . Check APP Of sdk Is it compatible with the mobile phone system . Flashback in some specific cases , For example, playing video , stay Android5.0 Upgrade to Android6.0 When , Some systems API The old version has , The new version doesn't have , When the time comes to go back to the object, it fails , Empty , The system will flash back .
13.Appium What are the starting methods
- The client starts ;
- Command line start .
14. Android UI Automated test tool
appium: It's a mobile automation framework , Can be used to test native applications , Mobile web applications And hybrid applications , And it's cross platform .
robotium: It's a foreign Android Automated testing framework , Mainly aimed at Android The application of the platform for black box automation testing , It provides the ability to simulate a variety of gesture operations ( Click on 、 Long press 、 Sliding, etc )、 Search and assertion mechanism API, Be able to operate various controls .
15.Android Mobile phones and IOS System difference
The operation mechanism of the two is different :IOS The sandbox mechanism is adopted , Android uses a virtual machine operating mechanism .
They have different backstage systems :IOS No third-party program can run in the background ; Any program in Android Can run in the background , Don't shut down until there's no memory .
IOS For UI The command has the highest authority , Data processing instructions have the highest authority in Android .
Finally, I made up some notes of learning materials
Want to edit learning materials, notes, documents
【 Private letter my key words “999” Free access 】 High salary resume template ( Interview collection is free )
If this article helps you , Please make up a little like ! Only in this way can I have the motivation to continue to update !
Have you learned today's little knowledge
Welcome to interact with us in the message area ~


High salary resume template ( Interview collection is free )
![]()
边栏推荐
- LeetCode 第 302 场周赛
- 软件测试面试题:你认为做好测试用例设计工作的关键是什么?
- Leetcode: 515. Find the maximum value in each tree row
- GBase 8c 事务ID和快照(五)
- 数字经济才是未来经济发展的核心
- JS what situations can't use json Parse, json.stringify deep copy and a better deep copy method
- 自定义类型:结构体,枚举,联合
- LeetCode第 83 场双周赛
- UE4 unreal ndisplay plug-in easy to use three fold screen details
- Dpdk plug-in of VPP
猜你喜欢

Enterprise operation and maintenance practice - using aliyun container image service to pull and build images of overseas GCR and quay warehouses

Redis design specification

Fluorite network, difficult to be a "lone brave"

Completely delete MySQL in Linux system

Enterprise operation and maintenance practice - using aliyun container image service to pull and build images of overseas GCR and quay warehouses

Redis设计规范

Starfish Os X MetaBell战略合作,元宇宙商业生态更进一步

Packet capturing wizard netcapture app packet capturing tutorial "complete"

LeetCode高频题128. 最长连续序列,经常被互联网大厂面试考到

Hcip day 12 notes
随机推荐
The petrochemical industry is facing the tide of rising prices, and the digital dealer distribution system platform enables dealers and stores
萤石网络,难当「孤勇者」
GBase 8c 恢复控制函数
Gbase 8C transaction ID and snapshot (III)
GBase 8c 数据库对象尺寸函数(一)
The storage cost is reduced by 80%. How does the cost management of youzan data middle office do?
Gbase 8C transaction ID and snapshot
Gbase 8C transaction ID and snapshot (V)
N32l43x FLASH read \ write \ erase operation summary
Domain Driven Design -- Terminology
The story of the third uncle
Simplicity for beauty - programming ideas
What are the important applications of MES system in manufacturing enterprises
Establishment of elk log analysis system
Unity universal red dot system
你所不知道的WMS
Forget the root password
测试/开发程序员的级别“陷阱“,级别不是衡量单维度的能力......
focal loss原理及实现
FreeRTOS kernel summary