Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the selection methods of App automated testing tools

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)05/31 Report--

What are the selection methods of App automated testing tools? I believe many inexperienced people are at a loss about this. Therefore, this paper summarizes the causes and solutions of the problems. Through this article, I hope you can solve this problem.

Now the development of app has been a hot development trend, the testing of mobile applications is also particularly important, and now most of them are still in the state of manual testing. We know that mobile app development, to adapt to different devices, such as an Android app to adapt to different versions, not only to support the latest version, the old version also needs to support, which leads to manual testing requires the purchase of N android phones for manual testing, how to deal with tedious mobile phone testing? Automating mobile phone testing, of course.

Often a novice or inexperienced friend left me a message backstage: what automation tools are used for App functional testing of mobile phones? What kind of testing are these multi-testing tools for? Today I would like to make a summary of how to choose automated testing tools for APP testing.

Function test

At the beginning of functional testing, the most basic thing is to analyze the requirements and write test cases. Testing is the gatekeeper to grasp the quality. The first step to ensure that there is no omission is to write test cases as comprehensive as possible. Put it into practice after laying a solid foundation. Testing is a career that pays attention to experience. It is very important to start with simple requirements, make test plans, write use case execution, and timely adjust the risk and schedule of the execution process to let the team know. And this is the era of automation, you can learn to use some automated testing tools to automate functional testing.

Automation tool

A) lightweight interface automated testing

Jmeter

B) Automation at the APP UI level

Android:UI Automator Viewer,Android Junit,Instrumentation,UIAutomator

IOS: iOS UI Automation based on Instrument

Testing method

Verify each functional implementation of App according to the software description or user requirements, and use the following methods to implement and evaluate the functional testing process:

1) analyze and refine the user usage scenarios of App by using the five elements of time, place, object, behavior and background or business analysis, compare the instructions or requirements, sort out the internal, external and non-functional requirements, build the test points, and define the test standards.

2) according to the characteristics of the tested function point, list the corresponding types of test cases to cover it, for example: where the design input needs to consider equivalence, boundary, negative, exception, illegal, scene rollback, association testing and other test types to cover it.

3) track the coverage of test implementation and requirement input in all stages of test implementation, and correct business or requirement understanding errors in time.

Performance testing

Automation tool

A) Web front-end performance testing

Network packet grabbing tool: Wireshark

Web page file size

Webpagetest

Pagespeed insight

Chrome adb

B) APP side performance testing

Android memory footprint analysis: MAT

Analysis of iOS memory problems: ARC mode

Android WebView performance Analysis:

IOS WebView performance analysis

C) performance testing of backend services

Load, pressure, durability

Extensibility, benchmark

Tool: apacheAB,Jmeter,LoadRunner

Test method:

1) response ability test: test whether all kinds of operations in App meet the requirements of user response time.

Response time for App installation and uninstallation

Response time of various functional operations of App

2) stress test, whether the system resources are occupied abnormally under repeated / long-term operation.

App repeatedly installs and uninstalls to check whether the system resources are normal.

Other functions operate repeatedly to check whether the system resources are normal.

Special test

Does APP start quickly? Do you often Crash when you run? Is there a Catton? These problems can be solved by special tests. Special tests include CPU, memory, frame rate, traffic, power, etc.; there are many tools and methods in this area, and if you can do a good job in special tests, it will be very popular in the industry. In large companies, if you have a large version of APP to be released, you usually need to do a comprehensive special test.

A) compatibility testing

Manual testing: operating system, resolution, rom, network type

Cloud platform: testin, scripting, Android.

Testing method

Main test for internal and external compatibility

1) compatibility with local and mainstream App

2) whether it is compatible with various devices. If there is cross-system support, it is necessary to check whether the behavior is consistent under a single system.

Compatibility of different screen marking rates of mobile phones

Compatibility of different mobile phone brands

B) flow testing

Traffic management built into Android

Network that comes with iOS

Tcpdump grabs the bag

WiFi Agent grab package: Fiddler

Traffic saving methods: compress data, json is better than xml;WebP, better than traditional JPG,PNG; to control the frequency of access; only get the necessary data; cache

C) electricity test

Based on the method of testing equipment, an electric meter is purchased for testing.

GSam Battery Monitoe Pro

IOS is based on Instrument Energy tools

D) weak network testing

The network condition simulation tool that comes with mobile phone

Agent-based simulation of weak networks:

Tool: windows:Network Delay Simulator

Mac:Network Link Conditioner

Field test

E) Stability test

Android:Monkey

Fuzzy test

F) Security testing

Installation package: decompilation, signature, integrity check, permissions.

Sensitive information test:

Keyboard hijacking

Account security

data encryption

Component security testing

Server interface testing: SQL injection, XSS cross-site scripting attacks, CSRF cross-site request forgery, unauthorized access.

G) Environment-related testing

Interference test

Permission test

Boundary condition

Positioning test

Auxiliary test method

A) Code static scan

Android tool: FindBugs,Lint

IOS tool: Analyze

B) Code coverage testing

Existing framework: emma,jacoco

C) Interface Mock method

Interface exception simulation

D) AOP test method

AspectJ

Aspects

After reading the above, have you mastered the methods of selecting App automated testing tools? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report