Home Operation and Maintenance Safety What are the Android APP testing process and common problems?

What are the Android APP testing process and common problems?

May 13, 2023 pm 09:58 PM
android

1. Automated testing

Automated testing mainly includes several parts, automated testing of UI functions, automated testing of interfaces, and other specialized automated testing.

1.1UI function automated testing

Automated testing of UI functions, also known as automated testing, is mainly automated testing based on the UI interface, and the click of the UI function is realized through scripts. Replace manual testing with automation.

The advantage of this test is to effectively release the testing manpower for highly repetitive interface feature functional testing, and use the execution of scripts to achieve fast and efficient return of functions.

However, the shortcomings of this kind of test are also obvious, including high maintenance costs, easy misjudgment, and insufficient compatibility. Because it is based on interface operations, the stability of the interface has become the biggest constraint on maintaining scripts. Frequently changing interface interactions mean that test case scripts need to be constantly updated, occupying a large amount of testing resources.

=

Misjudgments are prone to occur mainly because identification based on UI controls can easily lead to slow or abnormal loading due to network conditions, device configuration, test environment, etc., resulting in test case execution Some judgments during the process are inaccurate, which affects the accuracy of the test. Insufficient compatibility mainly means that the execution of test scripts on different devices, different operating systems, different hardware environments, etc. will cause unpredictable situations, leading to inaccurate test case execution results.

Based on the above comparison of advantages and disadvantages, in our UI function automated testing, we mainly implement the testing of the core path of the APP, and conduct UI testing on functional modules that require a large number of repeated executions, repeated verifications, and low frequency of UI interface changes. Implementation of functional automated testing.

The need for a large number of repeated executions and repeated verifications means that the utilization rate after automation is high, and the frequency of UI interface changes is low, which means that subsequent maintenance costs are not high. For us, these three types of use cases are For parts with relatively high input and output, we will give the highest priority to the practice of UI function automated testing.

In the process of UI function automated testing, relevant controls, test cases, and test sets can be effectively sorted out and managed, and repeatable work can be merged in a timely manner to reduce the waste of resources. When the UI function changes, it can also be maintained at a smaller cost, reducing maintenance costs.

1.2 Interface Automated Testing

In the UI function automated testing section, we mentioned the constraints for automation: stability. Precisely because the UI interface is unstable, the cost of automating UI functions is relatively high, so we naturally think of the part that is more stable and more conducive to automation than the UI functions, and that is the interface.

The interface of an APP may change due to the different demands of the product manager at different stages, but the interface behind it is usually relatively stable, which is beneficial for us to carry out automated testing. ensure.

We need to prepare the interfaces called by the APP, sort and summarize them according to the functional modules, prioritize them for automation, understand the meaning of each interface, the value ranges of different parameters, and how to handle different inputs Inventory the situations that produce various outputs, and summarize error or exception returns to ensure the effectiveness and completeness of interface testing.

After the interface automated testing is started, an interface document needs to be maintained together with the development engineer. Whether there is an increase or decrease in interfaces, or related changes to existing interfaces, the test engineers can know immediately and Make corresponding adjustments to the use cases for interface automation testing.

1.3 Other special automated tests

In addition to the above two categories of automation, we can also use automation to do some special tests to help improve our test quality and testing efficiency. Here, we need to think diligently in our daily testing work, thinking about which tasks can be achieved through automation, which tests can be automated to improve testing efficiency, which function points can be automated to achieve long-term test monitoring, etc.

For example, in the project I am responsible for, there is a function. During manual testing, we can only verify it with a limited number of clicks, and the frequency of clicks is low. However, through scripts, we can implement it during the testing process. For faster and longer click operations, we can use automation to achieve it. Not only can it be executed on your own test equipment, but it can also be executed on different devices. This automated test is effective and can improve test efficiency and test quality. Although this test will not be added to the set of use cases for UI function automation for various reasons, in the current version, automation has indeed brought us very useful help, and this is what we need to advocate.

In short, we can use various automated testing tools and testing methods to assist us in testing, which is worthy of recognition.

2. Performance testing

In the testing system of the project I am responsible for, performance testing mainly includes performance testing in three dimensions, namely performance testing in the time dimension, performance testing in the resource dimension, and Fluency test.

2.1 Time Dimension

Performance testing in the time dimension mainly refers to the time response of functional features after a click operation. We are more familiar with the first screen loading time, the response jump opening time after clicking, etc.

There are many ways to perform performance testing in the time dimension. You can use screen recordings to calculate time, you can also use timestamps in the program to calculate time, you can also use third-party scripts to calculate time, or you can through image recognition Technology to calculate time, etc.

During the testing process, we need to conduct pre-research on the tool in conjunction with the project itself. Is it a one-time test or does it require continuous testing in the future? Whether it needs to be converted into a tool for subsequent long-term use? Is it on a single device? To use it, you still need to consider compatibility for use in different device environments, whether the tool is open source or provides a data interface for subsequent integration with the team's test platform, and so on.

2.2 Resource Dimension

The performance test of the resource dimension mainly refers to the consumption of various system resources during the use of the APP, including CPU, memory, power, traffic, etc.

The selection of testing tools depends on the different test terminals. The dimensions that need to be monitored during the test are also determined based on the project. The specific testing methods will not be discussed here.

What needs to be mentioned here is that performance testing in the resource dimension can do two parts of the work, one is the performance test during the test process, and the other is the collection of online performance data.

Performance testing during the testing process can be evaluated based on business testing needs. Which scenarios need to be tested? Is it a one-time test of the current version or a test that requires comparison of each subsequent version? Is it only necessary to test this version? The performance data of the machine still needs to be collected on multiple devices. It only needs to be tested by this APP, and it still needs to be compared with competing products and tested.

On this basis, evaluate whether it is necessary to implement test cases through automated scripts for subsequent reuse. If subsequent longitudinal comparative testing with historical versions is required, it is necessary to ensure that the test environment and test equipment are as consistent as possible to make the test results more authentic and reliable.

Another small point to add is that the processing and calculation of test data can be realized through automated scripts, saving the cost of human computing resources. If necessary, you can also build a simple platform and store all test data on the platform for subsequent analysis and reference.

To collect online performance data, development engineers need to report relevant data during the function implementation process. After the function is released, the online data must be retrieved, processed, and calculated to discover possible problems. With the cooperation of the development engineer's logs and the logs of users who have errors, the location, analysis and resolution of relevant performance issues can be achieved.

2.3 Fluency test

As the most intuitive feeling of user experience, the fluency test is also a must for many performance tests. There is no need to go into details here about the method of doing fluency testing, but there are a few points that need to be noted:

The first is how we plan the use cases for the fluency test, and the second is how we use the test result data after the fluency test To analyze and improve, the third is how we need to monitor the fluency from online data after the APP is released.

Regarding the design of fluency test cases, it needs to be designed based on the core functions of the APP and the common user paths. It is best to have online data to support this part, rather than just thinking about it. The jump paths of most users in the APP obtained with the support of data are what we need to focus on. In addition, we also need to pay attention to the paths prone to lags monitored in the online data during the testing process.

The analysis and use of data after the fluency test, as well as the monitoring of online fluency data, require joint planning and joint investigation by test engineers and development engineers. This article will not elaborate on it.

3. Stability test

Regarding this part, you can start from the two stages of the test stage before the release of the APP and the online operation stage after the release, and carry out the work separately.

During the testing phase, we can carry out stability testing around Monkey testing and code review. Qualified teams can also use static code scanning tools at this stage. During the Monkey testing process, attention should be paid to the equipment, environment, and frequency of test execution. Problems discovered during the process should also be analyzed to a certain extent, and special attention should be paid to the parts prone to problems. Code walkthroughs can be combined with modules that are prone to crashes during functional testing to carry out key walkthroughs, promote development and pair programming, and check for possible problems in these modules. As for static code scanning, development students need to solve the scanned problems and develop good coding habits to avoid the leakage of related problems.

In the operation phase, we can conduct stability testing around the reporting and analysis of external network crash data. This part relies more on development engineers to solve. However, during this process, test engineers can analyze the reported data and locate some basic data of crashes, such as common systems, models, etc., to improve and optimize daily stability. sex test.

The above is the detailed content of What are the Android APP testing process and common problems?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1663
14
PHP Tutorial
1266
29
C# Tutorial
1238
24
New report delivers damning assessment of rumoured Samsung Galaxy S25, Galaxy S25 Plus and Galaxy S25 Ultra camera upgrades New report delivers damning assessment of rumoured Samsung Galaxy S25, Galaxy S25 Plus and Galaxy S25 Ultra camera upgrades Sep 12, 2024 pm 12:23 PM

In recent days, Ice Universe has been steadily revealing details about the Galaxy S25 Ultra, which is widely believed to be Samsung's next flagship smartphone. Among other things, the leaker claimed that Samsung only plans to bring one camera upgrade

Samsung Galaxy S25 Ultra leaks in first render images with rumoured design changes revealed Samsung Galaxy S25 Ultra leaks in first render images with rumoured design changes revealed Sep 11, 2024 am 06:37 AM

OnLeaks has now partnered with Android Headlines to provide a first look at the Galaxy S25 Ultra, a few days after a failed attempt to generate upwards of $4,000 from his X (formerly Twitter) followers. For context, the render images embedded below h

IFA 2024 | TCL\'s NXTPAPER 14 won\'t match the Galaxy Tab S10 Ultra in performance, but it nearly matches it in size IFA 2024 | TCL\'s NXTPAPER 14 won\'t match the Galaxy Tab S10 Ultra in performance, but it nearly matches it in size Sep 07, 2024 am 06:35 AM

Alongside announcing two new smartphones, TCL has also announced a new Android tablet called the NXTPAPER 14, and its massive screen size is one of its selling points. The NXTPAPER 14 features version 3.0 of TCL's signature brand of matte LCD panels

Vivo Y300 Pro packs 6,500 mAh battery in a slim 7.69 mm body Vivo Y300 Pro packs 6,500 mAh battery in a slim 7.69 mm body Sep 07, 2024 am 06:39 AM

The Vivo Y300 Pro just got fully revealed, and it's one of the slimmest mid-range Android phones with a large battery. To be exact, the smartphone is only 7.69 mm thick but features a 6,500 mAh battery. This is the same capacity as the recently launc

Samsung Galaxy S24 FE billed to launch for less than expected in four colours and two memory options Samsung Galaxy S24 FE billed to launch for less than expected in four colours and two memory options Sep 12, 2024 pm 09:21 PM

Samsung has not offered any hints yet about when it will update its Fan Edition (FE) smartphone series. As it stands, the Galaxy S23 FE remains the company's most recent edition, having been presented at the start of October 2023. However, plenty of

Xiaomi Redmi Note 14 Pro Plus arrives as first Qualcomm Snapdragon 7s Gen 3 smartphone with Light Hunter 800 camera Xiaomi Redmi Note 14 Pro Plus arrives as first Qualcomm Snapdragon 7s Gen 3 smartphone with Light Hunter 800 camera Sep 27, 2024 am 06:23 AM

The Redmi Note 14 Pro Plus is now official as a direct successor to last year'sRedmi Note 13 Pro Plus(curr. $375 on Amazon). As expected, the Redmi Note 14 Pro Plus heads up the Redmi Note 14 series alongside theRedmi Note 14and Redmi Note 14 Pro. Li

Motorola Razr 50s shows itself as possible new budget foldable in early leak Motorola Razr 50s shows itself as possible new budget foldable in early leak Sep 07, 2024 am 09:35 AM

Motorola has released countless devices this year, although only two of them are foldables. For context, while most of the world has received the pair as the Razr 50 and Razr 50 Ultra, Motorola offers them in North America as the Razr 2024 and Razr 2

New report delivers damning assessment of rumoured Samsung Galaxy S25, Galaxy S25 Plus and Galaxy S25 Ultra camera upgrades New report delivers damning assessment of rumoured Samsung Galaxy S25, Galaxy S25 Plus and Galaxy S25 Ultra camera upgrades Sep 12, 2024 pm 12:22 PM

In recent days, Ice Universe has been steadily revealing details about the Galaxy S25 Ultra, which is widely believed to be Samsung's next flagship smartphone. Among other things, the leaker claimed that Samsung only plans to bring one camera upgrade

See all articles