CN109582564A - A kind of test method of mobile application software - Google Patents
A kind of test method of mobile application software Download PDFInfo
- Publication number
- CN109582564A CN109582564A CN201811268179.3A CN201811268179A CN109582564A CN 109582564 A CN109582564 A CN 109582564A CN 201811268179 A CN201811268179 A CN 201811268179A CN 109582564 A CN109582564 A CN 109582564A
- Authority
- CN
- China
- Prior art keywords
- test
- application software
- server
- record file
- mobile
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of test methods of mobile application software, comprising the following steps: after server receives the test request of user, test assignment and the application software are transferred to a mobile terminal or multiple mobile terminals;Mobile terminal is respectively mounted application software, and is accordingly tested according to test assignment application software, generates test record file and is transmitted to server;Server extracts the test information of application software and is analyzed from test record file, and differentiates that application software whether there is defect based on the analysis results.The present invention substantially increases testing efficiency and the accuracy of mobile application software, effectively reduces personnel cost, improves test quality, and the test scope of application is wider.
Description
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of test method of mobile application software.
Background technique
With the fast development of mobile Internet industry, mobile interchange application support platform is gradually built up, and mobile application is soft
The application of part is also more and more extensive.But with mobile device and and its operating system constantly upgrade development, existing movement is answered
It is easy to appear the problems such as function is not perfect, stability is insufficient, compatible not strong with software, to avoid these problems, is just needed
Mobile application software is tested, to meet, mobile terminal diversity, access, edition upgrading be fast, power industry
The requirement of the electric power mobiles application characteristic such as application scenarios complexity.But the testing efficiency of existing mobile application software test method
It is lower, and can only individually be tested for a capacity index of software, the test scope of application is also smaller.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of test methods of mobile application software, can be improved movement and answer
With the testing efficiency and the test scope of application of software.
In order to solve the above technical problem, the present invention provides technical solution it is as follows:
A kind of test method of mobile application software, comprising the following steps:
1) server receive user test request after, by test assignment and the application software be transferred to a mobile terminal or
Multiple mobile terminals;
2) mobile terminal is respectively mounted the application software, and is accordingly tested according to test assignment the application software,
It generates test record file and test record file is transmitted to server;
It include compatibility test, performance test, functional test, traversal according to the test that test assignment carries out the application software
One of test, remote debugging and safety test are a variety of;
3) server extracts the test information of the application software from the test record file, and to the test information
It is analyzed, and differentiates the application software with the presence or absence of defect based on the analysis results.
The test record file includes one of installation log, running log and operation snapshot or a variety of.
In the step 3), server extracts the test information of the application software from the test record file
Method are as follows: image recognition is carried out to the test record file and keyword screens and obtain the test letter of the application software
Breath.
The defect of the application software include aacode defect, security breaches, control is unavailable, cannot achieve remote debugging,
One of functional defect, performance deficiency and compatible defective are a variety of.
The safety test includes static detection, the method for the static detection are as follows: to the apk text in the application software
Part carries out decompiling and obtains source code, and test record file is written in source code;
When carrying out static detection to the application software, the step 3) specifically: server is from the test record file
Extract static detection source code, and by the problems in the problems in source code and server code characteristic library code carry out
Match, if successful match, being judged as the application software, there are aacode defects, and being otherwise judged as the application software, there is no generations
Code defect.
The safety test further includes dynamic detection, the method for the dynamic detection are as follows: runs the application software, and makes
The running application software is attacked with dynamic attacks means, and by the operation information of application software described after attack
Test record file is written;
When carrying out dynamic detection to the application software, the step 3) specifically: server is from the test record file
Extract the application software it is under attack after operation information, and judge that the application software is according to the operation information after attack
It is no that there are security breaches.
The method of the traversal test are as follows: traverse all controls in the application software, and traversing result is written and is surveyed
Trial record file;
When carrying out traversal test to the application software, the step 3) specifically: server is from the test record file
The traversing result of control is extracted, and unavailable control is judged whether there is according to traversing result.
The test assignment includes test-types, length of testing speech and whether executes screenshotss.
In the step 3), if server differentiates the application software existing defects based on the analysis results, server is also
The defective locations of the application software are positioned, and is provided for defect and solves to suggest.
In the step 3), the test information of the application software is also fed back to display and is shown by server.
The invention has the following advantages: the test method of mobile application software of the invention, high degree of automation, energy
Enough fast and effeciently test record file of the acquisition applications software on different mobile terminal, and therefrom rapidly extracting tests information
Analyzed, substantially increase testing efficiency and accuracy, be obviously improved large scale test mobile application software operate in it is more
The power of test of terminal, effectively reduces personnel cost, improves test quality;Be able to carry out compatibility test, performance test,
A variety of tests, the test scope of applications such as functional test, traversal test, remote debugging and safety test are wider.
Specific embodiment
The present invention is further explained in the light of specific embodiments, so that those skilled in the art can be preferably
Understand the present invention and can be practiced, but illustrated embodiment is not as a limitation of the invention.
Present embodiment discloses a kind of test methods of mobile application software, comprising the following steps:
1) server and multiple mobile terminals are carried out after remotely connecting, issues test request with user orientation server, server connects
After the test request for receiving user, test assignment and application software are transmitted to one or more specified mobile terminals;For example, with
Family accesses the IP address of server, after establishing interactive connection, logins test macro, and request carries out dependence test, and by test item
Required test parameter, to server, is issued on the controller of each mobile terminal by communication network transmission by server, is controlled
Device processed by after the parameter collection of each mobile terminal, requests according to server in advance, issues corresponding test assignment.
Wherein, test assignment and application software are transferred to multiple mobile terminals, convenient for supporting multiple terminals to carry out simultaneously
The same test assignment is conducive to improve testing efficiency.Long-range connection type can avoid carrying when tester is outgoing to be tested excessive
The problem of mobile terminal, conducive to the utilization rate for promoting test resource.
Wherein, test assignment includes test-types, length of testing speech and whether executes screenshotss etc..Test-types include compatibility
Test, performance test, functional test, traversal test, remote debugging and safety test.
2) mobile terminal is respectively mounted application software, and is accordingly tested according to test assignment application software, generates
Test record file is simultaneously transmitted to server by test record file;
It wherein, include compatibility test, performance test, function survey according to the test that test assignment carries out the application software
One of examination, traversal test, remote debugging and safety test are a variety of.
In a wherein embodiment, test record file includes in installation log, running log and operation snapshot
It is one or more.
3) server extracts the test information of the application software from test record file, and carries out to test information
Analysis, and differentiate that application software whether there is defect based on the analysis results.
The defect of application software includes aacode defect, security breaches, control is unavailable, cannot achieve remote debugging, function
One of defect, performance deficiency and compatible defective are a variety of.
In a wherein embodiment, server extracts the test letter of application software from the test record file
The method of breath are as follows: image recognition is carried out to test record file and keyword screens and obtain the test information of application software.It should
Method substantially increases the speed and accuracy for obtaining test information.
In a wherein embodiment, above-mentioned steps 3) in, if server determines application software based on the analysis results
Existing defects, then server also positions the defective locations of application software, and provides for the defect and solve to suggest, for
Tester and the further problem analysis of developer, are more convenient for optimizing application software.
In a wherein embodiment, above-mentioned steps 3) in, server also feeds back to the test information of application software
Display is shown, to show foreground user.Server can also whether there is defect, defective locations and defect
It solves to suggest also being shown over the display, so that can be with the test knot of more intuitive understanding application software for user
Fruit, conducive to the optimization of application software.
In a wherein embodiment, safety test includes static detection and dynamic detection.By static detection and move
State detection can substantially reduce personnel's false pass rate and False Rate, so that the testing efficiency for improving safety test and test are accurately
Degree.
The method of static detection are as follows: mobile terminal carries out decompiling to the apk file in application software and obtains source code, and
Test record file is written into source code;
When carrying out static detection to application software, above-mentioned steps 3) specifically: server extracts static state from test record file
The source code of detection, and the problems in the problems in source code and server code characteristic library code is matched, if matching
Success, then being judged as the application software, there are aacode defects, are otherwise judged as the application software nonexistent code defect.
The method of dynamic detection are as follows: running of mobile terminal application software, and using dynamic attacks means to running institute
It states application software to be attacked, and test record file is written into the operation information of application software described after attack;Wherein, dynamic
Attack means include Dynamic injection and dynamic debugging etc..Wherein, when carrying out dynamic detection, mobile terminal is simulated using mobile device
Device.
When carrying out dynamic detection to application software, above-mentioned steps 3) specifically: server is from the test record file
Extract the application software it is under attack after operation information, and judge that the application software is according to the operation information after attack
It is no that there are security breaches.
In a wherein embodiment, the method that traverses test are as follows: all controls in mobile terminal traversal applications software
Part, and test record file is written into traversing result;
When carrying out traversal test to application software, above-mentioned steps 3) specifically: server extracts control from test record file
Traversing result, and unavailable control is judged whether there is according to traversing result.
In a wherein embodiment, the method for functional test are as follows: the items of mobile terminal automatic running application software
Function, and test record file is written into operation result;
When carrying out functional test to application software, above-mentioned steps 3) specifically: server abstraction function from test record file
The operation result of test, and judge the application software with the presence or absence of functional defect according to operation result.
In a wherein embodiment, the method for performance test are as follows: running of mobile terminal application software, and test application
Runnability of software, such as power consumption, CPU occupancy situation etc., and test record file is written into test result;
When being tested for the property to application software, above-mentioned steps 3) specifically: server extracts performance from test record file
The test result of test, and judge the application software with the presence or absence of performance deficiency according to test result.
In a wherein embodiment, the method for compatibility test are as follows: keep the equal automatic running of multiple mobile terminals above-mentioned
Application software, and test record file is written into the test result that can multiple terminals operate normally above-mentioned application software;
When carrying out compatibility test to application software, above-mentioned steps 3) specifically: server extracts simultaneous from test record file
The test result of capacitive test, and judge whether application software meets compliance according to test result, if meeting compatibility
It is required that being then judged as the application software, there is no compatible defectives, are otherwise judged as that there are compatible defectives for the application software.
In a wherein embodiment, the method for remote debugging are as follows: the mobile terminal of operation application software is carried out remote
Journey debugging, and test record file is written into remote debugging result;
Wherein remote debugging includes following operation: remote operation mobile terminal is clicked mobile terminal, is slided, is executed
Shell-command, screenshot and transmission installation kit etc..
When carrying out remote debugging to application software, above-mentioned steps 3) specifically: server is extracted from test record file
Remote debugging is as a result, and judge whether application software is able to carry out remote debugging according to remote debugging result.
The test method of the mobile application software of the present embodiment, high degree of automation being capable of fast and effeciently acquisition applications
Test record file of the software on different mobile terminal, and therefrom rapidly extracting test information is analyzed, and is substantially increased
Testing efficiency and accuracy have been obviously improved the power of test that large scale test mobile application software operates in multiple terminals, effectively
Personnel cost is reduced, test quality is improved;Be able to carry out compatibility test, performance test, functional test, traversal test,
A variety of tests such as remote debugging and safety test, the test scope of application are wider.
Embodiment described above is only to absolutely prove preferred embodiment that is of the invention and being lifted, protection model of the invention
It encloses without being limited thereto.Those skilled in the art's made equivalent substitute or transformation on the basis of the present invention, in the present invention
Protection scope within.Protection scope of the present invention is subject to claims.
Claims (10)
1. a kind of test method of mobile application software, characterized in that the following steps are included:
1) server receive user test request after, by test assignment and the application software be transferred to a mobile terminal or
Multiple mobile terminals;
2) mobile terminal is respectively mounted the application software, and is accordingly tested according to test assignment the application software,
It generates test record file and test record file is transmitted to server;
It include compatibility test, performance test, functional test, traversal according to the test that test assignment carries out the application software
One of test, remote debugging and safety test are a variety of;
3) server extracts the test information of the application software from the test record file, and to the test information
It is analyzed, and differentiates the application software with the presence or absence of defect based on the analysis results.
2. the test method of mobile application software as described in claim 1, characterized in that the test record file includes peace
Fill one of log, running log and operation snapshot or a variety of.
3. the test method of mobile application software as described in claim 1, characterized in that in the step 3), server from
The method of the test information of the application software is extracted in the test record file are as follows: carry out to the test record file
Image recognition and keyword screen and obtain the test information of the application software.
4. the test method of mobile application software as described in claim 1, characterized in that the defect of the application software includes
Aacode defect, security breaches, control are unavailable, cannot achieve remote debugging, in functional defect, performance deficiency and compatible defective
It is one or more.
5. the test method of mobile application software as claimed in claim 4, characterized in that the safety test includes static inspection
It surveys, the method for the static detection are as follows: decompiling is carried out to the apk file in the application software and obtains source code, and by source
Test record file is written in code;
When carrying out static detection to the application software, the step 3) specifically: server is from the test record file
Extract static detection source code, and by the problems in the problems in source code and server code characteristic library code carry out
Match, if successful match, being judged as the application software, there are aacode defects, and being otherwise judged as the application software, there is no generations
Code defect.
6. the test method of mobile application software as claimed in claim 5, characterized in that the safety test further includes dynamic
Detection, the method for the dynamic detection are as follows: run the application software, and described answered using dynamic attacks means to running
It is attacked with software, and test record file is written into the operation information of application software described after attack;
When carrying out dynamic detection to the application software, the step 3) specifically: server is from the test record file
Extract the application software it is under attack after operation information, and judge that the application software is according to the operation information after attack
It is no that there are security breaches.
7. the test method of mobile application software as claimed in claim 4, characterized in that the method for the traversal test are as follows:
All controls in the application software are traversed, and test record file is written into traversing result;
When carrying out traversal test to the application software, the step 3) specifically: server is from the test record file
The traversing result of control is extracted, and unavailable control is judged whether there is according to traversing result.
8. the test method of mobile application software as described in claim 1, characterized in that the test assignment includes test class
Type, length of testing speech and whether execute screenshotss.
9. the test method of mobile application software as described in claim 1, characterized in that in the step 3), if server
The application software existing defects are differentiated based on the analysis results, then server also determines the defective locations of the application software
Position, and provided for defect and solve to suggest.
10. the test method of mobile application software as described in claim 1, characterized in that in the step 3), server is also
The test information of the application software is fed back to display to be shown.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811268179.3A CN109582564A (en) | 2018-10-29 | 2018-10-29 | A kind of test method of mobile application software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811268179.3A CN109582564A (en) | 2018-10-29 | 2018-10-29 | A kind of test method of mobile application software |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109582564A true CN109582564A (en) | 2019-04-05 |
Family
ID=65921067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811268179.3A Pending CN109582564A (en) | 2018-10-29 | 2018-10-29 | A kind of test method of mobile application software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109582564A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113885931A (en) * | 2021-08-27 | 2022-01-04 | 深圳思为科技有限公司 | Hosting method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541729A (en) * | 2010-12-31 | 2012-07-04 | 航空工业信息中心 | Detection device and method for security vulnerability of software |
CN103516559A (en) * | 2012-12-13 | 2014-01-15 | Tcl集团股份有限公司 | Method and system for testing application compatibility of intelligent terminal |
US20140047417A1 (en) * | 2012-08-13 | 2014-02-13 | Bitbar Technologies Oy | System for providing test environments for executing and analysing test routines |
CN104050076A (en) * | 2013-03-12 | 2014-09-17 | 阿里巴巴集团控股有限公司 | Testing method, device and system of application software on mobile terminal |
CN108595952A (en) * | 2018-03-30 | 2018-09-28 | 全球能源互联网研究院有限公司 | A kind of detection method and system of electric power mobile application software loophole |
-
2018
- 2018-10-29 CN CN201811268179.3A patent/CN109582564A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541729A (en) * | 2010-12-31 | 2012-07-04 | 航空工业信息中心 | Detection device and method for security vulnerability of software |
US20140047417A1 (en) * | 2012-08-13 | 2014-02-13 | Bitbar Technologies Oy | System for providing test environments for executing and analysing test routines |
CN103516559A (en) * | 2012-12-13 | 2014-01-15 | Tcl集团股份有限公司 | Method and system for testing application compatibility of intelligent terminal |
CN104050076A (en) * | 2013-03-12 | 2014-09-17 | 阿里巴巴集团控股有限公司 | Testing method, device and system of application software on mobile terminal |
CN108595952A (en) * | 2018-03-30 | 2018-09-28 | 全球能源互联网研究院有限公司 | A kind of detection method and system of electric power mobile application software loophole |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113885931A (en) * | 2021-08-27 | 2022-01-04 | 深圳思为科技有限公司 | Hosting method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105988924B (en) | A kind of non-intrusion type embedded software graphic user interface automated testing method | |
CN109361562B (en) | Automatic testing method based on associated network equipment access | |
CN106326108B (en) | New application testing method and device | |
CN105094783B (en) | method and device for testing stability of android application | |
CN106294179B (en) | Analog detection method and server in process of application development | |
CN103577324B (en) | Static detection method for privacy information disclosure in mobile applications | |
CN105787364B (en) | Automatic testing method, device and system for tasks | |
CN106776294B (en) | Automatic android mobile phone testing method and system | |
CN111897724B (en) | Automatic testing method and device suitable for cloud platform | |
US8468497B2 (en) | Automated defect classification | |
CN111290955B (en) | Non-invasive automatic test system for subway signal system test software | |
CN107665168A (en) | A kind of embedded software GUI automated test devices | |
CN107092555A (en) | A kind of method and system of test application program | |
CN109413678A (en) | A kind of Wi-Fi module automatic test approach and test macro | |
CN106951782A (en) | A kind of malicious code detecting method applied towards Android | |
CN111080633A (en) | Screen defect detection method and device, terminal equipment and storage medium | |
CN105740142A (en) | SSR centralized management platform pressure test management system | |
CN111427765A (en) | Method and system for automatically starting interface performance test realized based on jmeter | |
CN107102949A (en) | Application program off-line test method and instrument | |
CN110717184A (en) | Distributed safety test system | |
CN104899140A (en) | Test method for mobile terminal assembly | |
CN106445810B (en) | A kind of test method and system of interactive software and equipment compatibility | |
CN109582564A (en) | A kind of test method of mobile application software | |
CN105975379A (en) | False mobile device recognition method and system | |
CN108011950B (en) | Implementation method of remote radio frequency circuit experiment platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |