CN107391362A - Application testing method, mobile terminal and storage medium - Google Patents
Application testing method, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN107391362A CN107391362A CN201710512945.5A CN201710512945A CN107391362A CN 107391362 A CN107391362 A CN 107391362A CN 201710512945 A CN201710512945 A CN 201710512945A CN 107391362 A CN107391362 A CN 107391362A
- Authority
- CN
- China
- Prior art keywords
- application
- mobile terminal
- intended application
- default
- test
- 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/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/24—Arrangements for testing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
- H04W8/245—Transfer of terminal data from a network towards a terminal
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Signal Processing (AREA)
- Mathematical Physics (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Hardware Design (AREA)
- Debugging And Monitoring (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of application testing method, mobile terminal and storage medium, wherein, the application testing method comprises the following steps:By debugging, bridge acquisition is default to apply test script;Perform and preset using test script to start the default intended application with desktop icons in mobile terminal successively, and intended application is tested;The first test data of the first system is obtained, the first system is the system that mobile terminal is currently run.The present invention is default using after test script by debugging bridge acquisition, automatically the intended application with desktop icons and is started successively, to carry out the test of intended application, without manually starting intended application one by one, so as to reduce test manually cost, in addition, terminal starts intended application successively automatically, and intended application is tested, so as to improve test rate.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of application testing method, mobile terminal and storage medium.
Background technology
With developing rapidly for internet and electronic technology, the function of intelligent terminal is stronger and stronger, with smart mobile phone
Exemplified by, the application program (Application, referred to as applying) on smart mobile phone is also more and more, at the same time, people
System to smart mobile phone and the application program experience requirements on smart mobile phone also more and more higher.
At present, developed using APP in order to meet the needs of user, with the rise of version, the system taken using APP provides
(such as internal memory, CPU etc.) is also more and more in source.Although the hardware device of smart mobile phone is also constantly being lifted, constantly increase
System and application program remain unchanged causes very big pressure to the experience of smart mobile phone, wherein being exactly critically important using toggle speed
One kind experience.In addition when application is more, between compatibility, using the compatibility between system, and to application
Management and control strategy validity etc. is all the significant terms for influenceing Consumer's Experience.Therefore, should in before intelligent terminal dispatches from the factory i.e. to system
It is necessary with test comprehensively is carried out.
In the prior art, it is manually to start the application that needs to test one by one using general common method is tested, then
The system during startup optimization and every test data of application are applied in detection.It is but continuous with number of applications
Increase, if starting application one by one manually, need substantial amounts of tester, so as to cause to test the lifting of manually cost,
Meanwhile the test operation of manual testing's application is comparatively laborious, therefore, test is time-consuming longer, so as to cause test rate low.
The content of the invention
It is existing to solve it is an object of the invention to provide a kind of application testing method, mobile terminal and storage medium
The application test rate of mobile terminal is low, and tests the problem of manually cost is high.
In order to solve the above problems, the invention provides a kind of application testing method, and it is applied to mobile terminal, using survey
Method for testing comprises the following steps:
By debugging, bridge acquisition is default to apply test script;
Perform and preset using test script to start the default intended application with desktop icons in mobile terminal successively,
And intended application is tested;
The first test data of the first system is obtained, the first system is the system that mobile terminal is currently run.
As a further improvement on the present invention, perform default default in mobile terminal to start successively using test script
Intended application with desktop icons, and the step of test intended application, including:
Perform and preset using test script to pass through the application management service acquisition mobile terminal system in mobile terminal system
All application component information in system;
Filtering matching is carried out to all application component information, it is determined that the intended application module information with desktop icons, mesh
Mark application component information corresponds to intended application;
Start intended application successively, and intended application is tested.
As a further improvement on the present invention, filtering matching is carried out to all application component information, it is determined that having desk-top picture
Target intended application module information, the step of intended application module information corresponds to intended application, including:
The information for obtaining application corresponding to each application component in mobile terminal system describes file;
File is described according to information and determines whether corresponding application component is the intended application group with desktop icons
Part.
As a further improvement on the present invention, preset includes all intended applications with desktop icons using test script
Button click on event, perform it is default using test script to start the default mesh with desktop icons in mobile terminal successively
The step of marking application, and testing intended application, including:
Perform to preset and mesh corresponding with button click event is started with analogue-key click event successively using test script
Mark application, and intended application is tested.
As a further improvement on the present invention, application testing method also includes:
When receiving the upgrade command of user's input, the first system liter that is currently run mobile terminal according to upgrade command
Level is to second system;
By debugging, bridge acquisition is default to apply test script;
Perform and preset using test script to start the default intended application with desktop icons in mobile terminal successively,
And intended application is tested;
Obtain the second test data of second system.
As a further improvement on the present invention, after the step of obtaining the second test data of second system, in addition to:
Difference analysis is carried out to the first test data and the second test data, to obtain difference analysis report.
As a further improvement on the present invention, the first test data includes the first operational factor, and the second test data includes
Second operational factor;Difference analysis is carried out to the first test data and the second test data, to obtain difference analysis report
The step of, including:
The first operational factor and the second operational factor are compared, to obtain the runnability difference of the first system and second system
Property data message, the first operational factor include the first application interface opening time and first order perform the time, second operation ginseng
Number includes the second application interface opening time and the second order performs the time.
As a further improvement on the present invention, obtained before presetting the step of applying test script by debugging bridge, also wrapped
Include:
List of application and all first application component information in mobile terminal system are obtained by debugging bridge;
The second application component information with desktop icons is identified from all first application component information;
Go out intended application module information, intended application module information in the second application component information sifting according to preset rules
Corresponding intended application;
All intended applications are added into default application test script.
In order to solve the above problems, present invention also offers a kind of mobile terminal, and it includes processor, coupled with processor
Memory;
Processor, memory can realize the step in above-mentioned application testing method at work.
In order to solve the above problems, present invention also offers a kind of storage medium, routine data is stored thereon with, the program
The step in above-mentioned application testing method is realized when data are executed by processor.
Compared with prior art, the present invention is default using after test script by debugging bridge acquisition, starts automatically and successively
Intended application with desktop icons, to carry out the test of intended application, without manually starting intended application one by one, so as to drop
Low test manually cost, in addition, terminal starts intended application successively automatically, and is tested intended application, so as to carry
Test rate is risen.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of application testing method one embodiment of the present invention;
Fig. 2 is the flow signal for starting simultaneously one embodiment of test target applying step in application testing method of the present invention
Figure;
Fig. 3 is that module information is filtered to determine one embodiment of intended application step in application testing method of the present invention
Schematic flow sheet;
Fig. 4 is the schematic flow sheet of second embodiment of application testing method of the present invention;
Fig. 5 is the schematic flow sheet of 3rd embodiment of application testing method of the present invention;
Fig. 6 is the schematic flow sheet of 4th embodiment of application testing method of the present invention;
Fig. 7 is the schematic flow sheet of 5th embodiment of application testing method of the present invention;
Fig. 8 is the schematic flow sheet of 6th embodiment of application testing method of the present invention;
Fig. 9 is the high-level schematic functional block diagram of mobile terminal one embodiment of the present invention;
Figure 10 is the high-level schematic functional block diagram of first processing module one embodiment in mobile terminal of the present invention;
Figure 11 is the high-level schematic functional block diagram of module information filter submodule one embodiment in mobile terminal of the present invention;
Figure 12 is the high-level schematic functional block diagram of second embodiment of mobile terminal of the present invention;
Figure 13 is the high-level schematic functional block diagram of 3rd embodiment of mobile terminal of the present invention;
Figure 14 is the high-level schematic functional block diagram of 4th embodiment of mobile terminal of the present invention;
Figure 15 is the high-level schematic functional block diagram of 5th embodiment of mobile terminal of the present invention;
Figure 16 is the high-level schematic functional block diagram of 6th embodiment of mobile terminal of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used to limit the present invention.
Fig. 1 illustrates one embodiment of application testing method of the present invention.In the present embodiment, the application testing method should
For mobile terminal, specifically, the application testing method comprises the following steps:
Step S1, by debugging, bridge acquisition is default to apply test script.
In the present embodiment, when mobile terminal system is Android system, debugging bridge is that android debugs bridge, similarly hereinafter.
Step S2, perform and preset using test script to start the default mesh with desktop icons in mobile terminal successively
Mark application, and intended application is tested.
It should be noted that the intended application in the present embodiment can have the institute of desktop icons in mobile terminal system
Have application, either in mobile terminal system in all third-party applications or mobile terminal system with desktop icons with
All system applications of desktop icons.
On the basis of above-described embodiment, in other embodiment, specifically, referring to Fig. 2, step S2, including:
Step S201, perform and preset using test script to be moved by the application management service acquisition in mobile terminal system
All application component information in dynamic terminal system.
Android (Android) system is a operating system increased income that *** (Google) is released, and is widely used at present
In hand held devices such as mobile phones, android system is included based on linux kernel, Android system service:Should
With bag management service (PackageManagerService), campaign management services (ActivityManagerService), window
Management service (WindowManagerService) etc..Wherein, it is main using bag management service (PackageManagerService)
If for handling the installation of application, unloading and the acquisition of application information, by that can be obtained using bag management service
All application component information in mobile terminal system.
Step S202, filtering matching is carried out to all application component information, it is determined that the intended application group with desktop icons
Part information, intended application module information correspond to intended application.
Further, on the basis of above-described embodiment, in other embodiment, specifically, referring to Fig. 3, step S202, bag
Include:
Step S2021, the information for obtaining application corresponding to each application component in mobile terminal system describe file.
It should be noted that in android system, AndroidManifest.xml files are the letters of whole application program
Breath description file, defines the Activity included in application program, Service, Content provider and
BroadcastReceiver module informations.Each application program must include one under the root directory
AndroidManifest.xml files, and filename can not be changed.
AndroidManifest.xml files mainly provide following information description:The java bags of application program are named,
This bag star is for this application program of unique mark;Activity, the Service included in application program is described,
ContentProvider and BroadcastReceiver components;Define the process of application program operation;State to apply journey
Sequence needs to access the authority needed for limited API;Other programs are stated if it is desired to authority required for accessing this program assembly;Sound
Bright application program can be required for normal operation minimal level OphoneAPI;Connection required for listing application program operation
Storehouse.
Step S2022, file is described according to information and determines whether corresponding application component is to have desktop icons
Intended application component.
Specifically, by the AndroidManifest.xml files in application program<intent-filter>Structure
In<action/>、<category/>To determine whether application component has desktop icons.
For example, it the following is in an application program in AndroidManifest.xml files<intent-filter>Knot
Structure content, below<action/>、<category/>In content i.e. represent have desktop start icon.
<intent-filter>
<action android:Name=" android.intent.action.MAIN "/>
<category android:Name=" android.intent.category.LAUNCHER "/>
</intent-filter>
The present embodiment describes file by the information of each application component and judges whether the application component is with desktop
The intended application component of icon, it is therefore not necessary in the extra software mould for being used to filter matching application component information of terminal installation
Block, therefore, it reduce further the design cost of application testing method of the present invention.
Step S203, start intended application successively, and intended application is tested.
The present embodiment uses the application management service that system carries to obtain all application component information, without pacifying in terminal
The extra software module for securing component information of dress, therefore, reduces the design cost of application testing method of the present invention.
Step S3, obtains the first test data of the first system, and the first system is the system that mobile terminal is currently run.
It should be noted that the first test data in the present embodiment can include the system resources such as current memory, CPU
Occupancy situation, each situation using system resources such as committed memory, CPU can also be included.
The present embodiment is default using after test script by debugging bridge acquisition, and starting automatically and successively has desktop icons
Intended application, to carry out the test of intended application, without manually starting intended application one by one, so as to reduce test manually
Cost, in addition, terminal starts intended application successively automatically, and intended application is tested, so as to improve test rate.
The application testing method of the present invention is applied to during the use of mobile terminal, if filter operation need not be carried out,
It then can further lift test rate.Therefore, on the basis of above-described embodiment, in other embodiment, application test pin is preset
This button for including all intended applications with desktop icons clicks on event, specifically, referring to Fig. 4, step S2, in addition to:
Step S210, perform and default click on that event starts successively and button clicks on event with analogue-key using test script
Corresponding intended application, and intended application is tested.
Specifically, include adb shell input tap x, y using test script default;Represent on screen
The position of click coordinate point (x, y), such as adb shell input tap 50250, represent the click coordinate point x=on screen
50 y=250 position.Therefore thing is clicked on by writing the button of each desktop icons in presetting using test script in advance
Part, you can start all applications with desktop icons in mobile terminal successively.
Button is clicked on event and prestored corresponding to the intended application that the present embodiment will need to test, and therefore, is testing
Cheng Zhong, without carrying out filter operation, and directly test intended application corresponding with button click event, so as to further be lifted
Test rate.
By the present invention application testing method be applied to mobile terminal use during, with version rise, it is necessary to
Immediately the version after upgrading is tested comprehensively, so that the version after upgrading quickly meets that the new program that user proposes is experienced
It is required that.Therefore, on the basis of above-described embodiment, in other embodiment, referring to Fig. 5, the application testing method also includes:
Step S10, when receiving the upgrade command of user's input, mobile terminal is currently run according to upgrade command the
One system upgrade is to second system.
Specifically, when mobile terminal by network (for example:Mobile communications network or wireless network) receive latest edition
During system software, output display upgrade tip dialog box, if getting the confirmation that user inputs in the upgrade tip dialog box
Trigger signal, then generate upgrade command.
Step S11, by debugging, bridge acquisition is default to apply test script.
Step S12, perform default default with desktop icons in mobile terminal to start successively using test script
Intended application, and intended application is tested.
It should be noted that the relevant technical details of the step have clearly described in the above-described embodiments, in order to reduce
Repeat, will not be repeated here.
Step S13, obtain the second test data of second system.
It should be noted that the second test data in the present embodiment can include the system resources such as current memory, CPU
Occupancy situation, each situation using system resources such as committed memory, CPU can also be included.
When the present embodiment detects that system upgrade is completed, all applications to system after upgrading automatically are tested, therefore,
Without user after the completion of upgrading, manual operation in system after upgrading to, using testing, body being used so as to improve user
Test.
By the present invention application testing method be applied to mobile terminal use during, it is necessary to know upgrading after version with
Otherness between current version.Therefore, on the basis of above-described embodiment, in other embodiment, referring to Fig. 6, step S13 it
Afterwards, in addition to:
Step S20, difference analysis is carried out to the first test data and the second test data, to obtain difference analysis report
Accuse.
It should be noted that the first test data in the present embodiment is identical with the type of the second test data, such as the
One test data includes each applying committed memory data, then also includes each applying committed memory number in the second test data
According to.In addition, difference of the present embodiment by same type data in the first test data of calculating and the second test data, to analyze
The performance applied in test two systems version, the follow-up reference optimized as system optimization or application performance.
The present embodiment is by comparing the first test data and the second test data, to obtain difference analysis report, so as to
There is provided using test development personnel according to difference analysis report, further clear and definite research direction and for the research and development of software forward position
Data are supported, so as to further improve the exploitation speed of software.
The application testing method of the present invention is applied to during the use of mobile terminal, runnability is mobile terminal
Important indicator.Therefore, on the basis of above-described embodiment, in other embodiment, the first test data includes the first operational factor, the
Two test datas include the second operational factor;Specifically, referring to Fig. 7, step S20, including:
Step S200, the first operational factor and the second operational factor are compared, to obtain the fortune of the first system and second system
Row poor performance opposite sex data message, the first operational factor includes the first application interface opening time and the first order performs the time,
Second operational factor includes the second application interface opening time and the second order performs the time.
Specifically, in execution, this applies test script to start all targets with desktop icons in mobile terminal successively
Using when, the interface opening time and order that count each intended application perform the time, during for follow-up system edition upgrading, then
When secondary target complete of the startup with desktop icons is applied, the interface opening time of each intended application can be subsequently counted again
The time is performed with order, compares the interface opening time of same intended application in different system version and order performs time length
It is short, test system runnability difference.
Count the interface opening time of each intended application and order performs the time and realizes that code is as follows:
Starting:Intent { cmp=com.android.calculator2/.Calculator }
Status:ok
Activity:com.android.calculator2/.Calculator
ThisTime:96
TotalTime:96
WaitTime:109
Complete
Wherein, TotalTime is interface opening time (ms), and WaitTime performs the time (ms) for order.
The present embodiment is by the comparison of the first operational factor and the second operational factor, to obtain the first system and second system
Runnability otherness data message, so that software developer is according to the runnability otherness data message, obtain immediately
Know both runnability difference, shorten the duration known needed for both runnability difference, and required human cost,
So as to further improve the exploitation speed of test software, and reduce the development cost of test software.
The application testing method of the present invention is applied to during the use of mobile terminal, it is necessary to true according to the needs of user
The intended application tested is needed calmly.Therefore, on the basis of above-described embodiment, in other embodiment, referring to Fig. 8, before step S1,
Also include:
Step S30, list of application and all first application component information in mobile terminal system are obtained by debugging bridge.
Step S31, the second application component information with desktop icons is identified from all first application component information.
Step S32, go out intended application module information, intended application in the second application component information sifting according to preset rules
Module information corresponds to intended application.
It should be noted that preset rules can define intended application with blacklist or white list etc. in the present embodiment,
All applications that can also be defined as there are desktop icons, all third-party applications, the application of all systems, all target types
Using (such as video class application, communication class application etc.).
Step S33, all intended applications are added into default application test script.
The present embodiment obtains all first application component information by debugging bridge, and believes automatically from all first application components
All the second application component information with desktop icons are identified in breath, reduce manual steps, so as to further carry
User experience is risen.In addition, the present invention can be according to the demand of user, going out target from the second application component information sifting should
With module information, so as to only test intended application, reduce the quantity of the intended application of required test, so as to further
Test rate is improved, it is efficient also to improve test.
Fig. 9 illustrates one embodiment of mobile terminal of the present invention.In the present embodiment, the mobile terminal includes the first survey
Training this acquisition module 10, the test data acquisition module 12 of first processing module 11 and first.
Wherein, the first test script acquisition module 10, for bridge acquisition is default to apply test script by debugging;At first
Module 11 is managed, is preset for performing using test script to start the default target with desktop icons in mobile terminal successively
Using, and intended application is tested;First test data acquisition module 12, for obtaining the first test number of the first system
According to the first system is the system that mobile terminal is currently run.
On the basis of above-described embodiment, in other embodiment, referring to Figure 10, first processing module 11 includes module information
Acquisition submodule 111, module information filter submodule 112 and test submodule 113.
Wherein, module information acquisition submodule 111, preset for performing using test script to pass through mobile terminal system
In application management service acquisition mobile terminal system in all application component information;Module information filter submodule 112, is used for
Filtering matching is carried out to all application component information, it is determined that the intended application module information with desktop icons, intended application group
Part information corresponds to intended application;Submodule 113 is tested, is tested for starting intended application successively, and to intended application.
On the basis of above-described embodiment, in other embodiment, referring to Figure 11, module information filter submodule 112 includes
Information describes file obtaining unit 1120 and intended application component determining unit 1121.
Wherein, information describes file obtaining unit 1120, for obtaining each application component in mobile terminal system
The information of corresponding application describes file;Intended application component determining unit 1121, for according to information describe file determine with
Corresponding to application component whether be the intended application component with desktop icons.
It is default that there is desk-top picture including all using test script in other embodiment on the basis of above-described embodiment
The button of target intended application clicks on event, and referring to Figure 12, first processing module 11 includes test cell 110.Wherein, the test
Unit 110, default event is clicked on analogue-key using test script start that to click on event with button corresponding successively for performing
Intended application, and intended application is tested.
On the basis of above-described embodiment, in other embodiment, referring to Figure 13, the mobile terminal also includes upgraded module
20th, the second test script acquisition module 21, the test data acquisition module 23 of Second processing module 22 and second.
Wherein, upgraded module 20, during upgrade command for receiving user's input, according to upgrade command by mobile terminal
The first system currently run upgrades to second system;Second test script acquisition module 21, for being obtained in advance by debugging bridge
If using test script;Second processing module 22, it is default pre- in mobile terminal to start successively using test script for performing
If the intended application with desktop icons, and intended application is tested;Second test data acquisition module 23, for obtaining
Take the second test data of second system.
On the basis of above-described embodiment, in other embodiment, referring to Figure 14, the mobile terminal also includes difference analysis
Module 30.Wherein, difference analysis module 30, for carrying out difference analysis to the first test data and the second test data,
To obtain difference analysis report.
On the basis of above-described embodiment, in other embodiment, referring to Figure 15, difference analysis module 30 includes comparing list
Member 300.Wherein, comparing unit 300, for comparing the first operational factor and the second operational factor, to obtain the first system and the
The runnability otherness data message of two system, the first operational factor include the first application interface opening time and the first order
The time is performed, the second operational factor includes the second application interface opening time and the second order performs the time.
On the basis of above-described embodiment, in other embodiment, referring to Figure 16, the mobile terminal also obtains including module information
Modulus block 40, module information identification module 41, module information screening module 42 and add module 43.
Wherein, module information acquisition module 40, for by debug bridge obtain mobile terminal system in list of application and
All first application component information;Module information identification module 41, provided for being identified from all first application component information
There is the second application component information of desktop icons;Module information screening module 42, for applying group second according to preset rules
Part information sifting goes out intended application module information, and intended application module information corresponds to intended application;Add module 43, for by institute
Some intended applications are added into default application test script.
The other details of technical scheme are realized on each module in above-mentioned eight embodiment mobile terminals, reference can be made to above-mentioned reality
The description in the application testing method in example is applied, here is omitted.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined
See the part explanation of embodiment of the method.
The present embodiment additionally provides a kind of mobile terminal, and the mobile terminal includes processor and memory, the processor coupling
Connect the memory.The memory storage has the functional module that above-described embodiment describes.The computing device memory storage
The functional module of above-described embodiment description, it is possible to achieve the application testing method that the application provides.
The present embodiment additionally provides a kind of storage medium, and for storage program data, it, which is included, is used to perform the application
State the routine data designed by application testing method embodiment., can be with by performing the routine data stored in the storage medium
Realize the application testing method that the application provides.
Storage medium in the present embodiment can be read-only storage, can store static information and the static storage of instruction is set
Standby, random access memory or can storage information and instruction dynamic memory or electric erazable programmable it is read-only
Memory, read-only optical disc or other optical disc storages, laser disc storage, magnetic disk storage medium or other magnetic storage apparatus.
The embodiment of invention is described in detail above, but it is only used as example, and the present invention is not intended to limit
With specific embodiments described above.For a person skilled in the art, any equivalent modifications carried out to the invention
Or substitute also all among scope of the invention, therefore, the equalization made in the case where not departing from the spirit and principles in the present invention scope
Conversion and modification, improvement etc., all should be contained within the scope of the invention.
Claims (10)
1. a kind of application testing method, it is characterised in that it is applied to mobile terminal, and the application testing method includes following step
Suddenly:
By debugging, bridge acquisition is default to apply test script;
Perform it is described it is default using test script to start the default target with desktop icons in the mobile terminal successively
Using, and the intended application is tested;
The first test data of the first system is obtained, the first system is the system that the mobile terminal is currently run.
2. application testing method according to claim 1, it is characterised in that described perform described default applies test script
To start the default intended application with desktop icons in the mobile terminal successively, and the intended application is tested
The step of, including:
Perform it is described it is default using test script with by described in the application management service acquisition in mobile terminal system it is mobile eventually
All application component information in end system;
Filtering matching is carried out to all application component information, it is determined that the intended application module information with desktop icons, institute
State intended application module information and correspond to intended application;
Start the intended application successively, and the intended application is tested.
3. application testing method according to claim 2, it is characterised in that described that all application component information are entered
Row filtering matching, it is determined that the intended application module information with desktop icons, the intended application module information corresponds to target should
With the step of, including:
The information for obtaining application corresponding to each application component in the mobile terminal system describes file;
File is described according to described information and determines whether corresponding application component is the intended application group with desktop icons
Part.
4. application testing method according to claim 1, it is characterised in that the default application test script includes all
The button of intended application with desktop icons clicks on event, described to perform the default application test script to start institute successively
The step of stating the default intended application with desktop icons in mobile terminal, and testing the intended application, including:
Performing the default application test script, the button click event starts successively and the button clicks on event to simulate
Corresponding intended application, and the intended application is tested.
5. application testing method according to claim 1, it is characterised in that the application testing method also includes:
When receiving the upgrade command of user's input, the first system for currently being run the mobile terminal according to the upgrade command
System upgrades to second system;
Obtained by the debugging bridge and described default apply test script;
Perform it is described it is default using test script to start the default target with desktop icons in the mobile terminal successively
Using, and the intended application is tested;
Obtain the second test data of the second system.
6. application testing method according to claim 5, it is characterised in that second survey for obtaining the second system
After the step of trying data, in addition to:
Difference analysis is carried out to first test data and second test data, to obtain difference analysis report.
7. application testing method according to claim 6, it is characterised in that first test data includes the first operation
Parameter, second test data include the second operational factor;It is described to first test data and it is described second test number
According to difference analysis is carried out, to obtain the step of difference analysis is reported, including:
First operational factor and second operational factor are compared, to obtain the first system and the second system
Runnability otherness data message, first operational factor includes the first application interface opening time and the first order performs
Time, second operational factor includes the second application interface opening time and the second order performs the time.
8. application testing method according to claim 1, it is characterised in that described to obtain default application survey by debugging bridge
Before this step of of training, in addition to:
List of application and all first application component information in the mobile terminal system are obtained by the debugging bridge;
The second application component information with desktop icons is identified from all first application component information;
Go out intended application module information, the intended application component in the second application component information sifting according to preset rules
Information corresponds to the intended application;
All intended applications are added into the default application test script.
9. a kind of mobile terminal, it is characterised in that it includes processor, the memory with processor coupling;
The processor, the memory can be realized in any one of the claim 1-8 application testing methods at work
The step of.
10. a kind of storage medium, is stored thereon with routine data, it is characterised in that when described program data are executed by processor
Realize the step in any one of the claim 1-8 application testing methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710512945.5A CN107391362A (en) | 2017-06-28 | 2017-06-28 | Application testing method, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710512945.5A CN107391362A (en) | 2017-06-28 | 2017-06-28 | Application testing method, mobile terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107391362A true CN107391362A (en) | 2017-11-24 |
Family
ID=60334032
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710512945.5A Pending CN107391362A (en) | 2017-06-28 | 2017-06-28 | Application testing method, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107391362A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228421A (en) * | 2017-12-26 | 2018-06-29 | 东软集团股份有限公司 | data monitoring method, device, computer and storage medium |
CN108881585A (en) * | 2018-05-08 | 2018-11-23 | 北京五八信息技术有限公司 | Built-in application program test processing method, device, electronic equipment and storage medium |
CN109726100A (en) * | 2018-04-19 | 2019-05-07 | 平安普惠企业管理有限公司 | Application performance test method, apparatus, equipment and computer readable storage medium |
CN109885325A (en) * | 2019-02-26 | 2019-06-14 | 努比亚技术有限公司 | Terminal system upgrade method, terminal and computer readable storage medium |
CN109918314A (en) * | 2019-04-08 | 2019-06-21 | 网易(杭州)网络有限公司 | Test method and device on mobile terminal, electronic equipment, storage medium |
CN110727645A (en) * | 2019-10-22 | 2020-01-24 | 东莞市小精灵教育软件有限公司 | Method and system for opening debug bridge adb, storage medium and electronic equipment |
CN116088970A (en) * | 2022-05-27 | 2023-05-09 | 荣耀终端有限公司 | Method for controlling application call and related device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544100A (en) * | 2012-07-12 | 2014-01-29 | 腾讯科技(深圳)有限公司 | Method, system and client side for testing APP of portable data processing equipment |
US20150332043A1 (en) * | 2014-05-15 | 2015-11-19 | Auckland Uniservices Limited | Application analysis system for electronic devices |
CN105988925A (en) * | 2015-02-10 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Method, device and system for testing start-up time of application program |
CN106294158A (en) * | 2016-08-11 | 2017-01-04 | 北京小米移动软件有限公司 | Terminal test method, Apparatus and system |
CN106547687A (en) * | 2016-10-14 | 2017-03-29 | 深圳前海微众银行股份有限公司 | Application testing method, apparatus and system |
-
2017
- 2017-06-28 CN CN201710512945.5A patent/CN107391362A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544100A (en) * | 2012-07-12 | 2014-01-29 | 腾讯科技(深圳)有限公司 | Method, system and client side for testing APP of portable data processing equipment |
US20150332043A1 (en) * | 2014-05-15 | 2015-11-19 | Auckland Uniservices Limited | Application analysis system for electronic devices |
CN105988925A (en) * | 2015-02-10 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Method, device and system for testing start-up time of application program |
CN106294158A (en) * | 2016-08-11 | 2017-01-04 | 北京小米移动软件有限公司 | Terminal test method, Apparatus and system |
CN106547687A (en) * | 2016-10-14 | 2017-03-29 | 深圳前海微众银行股份有限公司 | Application testing method, apparatus and system |
Non-Patent Citations (1)
Title |
---|
QINJUNING: ""Android中获取应用程序(包)的信息-----PackageManager的使用(一)"", 《HTTPS://BLOG.CSDN.NET/QINJUNING/ARTICLE/DETAILS/6867806》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228421A (en) * | 2017-12-26 | 2018-06-29 | 东软集团股份有限公司 | data monitoring method, device, computer and storage medium |
CN109726100A (en) * | 2018-04-19 | 2019-05-07 | 平安普惠企业管理有限公司 | Application performance test method, apparatus, equipment and computer readable storage medium |
CN108881585A (en) * | 2018-05-08 | 2018-11-23 | 北京五八信息技术有限公司 | Built-in application program test processing method, device, electronic equipment and storage medium |
CN108881585B (en) * | 2018-05-08 | 2020-11-10 | 北京五八信息技术有限公司 | Built-in application program test processing method and device, electronic equipment and storage medium |
CN109885325A (en) * | 2019-02-26 | 2019-06-14 | 努比亚技术有限公司 | Terminal system upgrade method, terminal and computer readable storage medium |
CN109885325B (en) * | 2019-02-26 | 2023-05-16 | 深圳市华晨旭悦科技有限公司 | Terminal system upgrading method, terminal and computer readable storage medium |
CN109918314A (en) * | 2019-04-08 | 2019-06-21 | 网易(杭州)网络有限公司 | Test method and device on mobile terminal, electronic equipment, storage medium |
CN110727645A (en) * | 2019-10-22 | 2020-01-24 | 东莞市小精灵教育软件有限公司 | Method and system for opening debug bridge adb, storage medium and electronic equipment |
CN110727645B (en) * | 2019-10-22 | 2023-02-24 | 东莞市小精灵教育软件有限公司 | Method and system for opening debug bridge adb, storage medium and electronic equipment |
CN116088970A (en) * | 2022-05-27 | 2023-05-09 | 荣耀终端有限公司 | Method for controlling application call and related device |
CN116088970B (en) * | 2022-05-27 | 2024-04-09 | 荣耀终端有限公司 | Method for controlling application call and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107391362A (en) | Application testing method, mobile terminal and storage medium | |
CN109302522B (en) | Test method, test device, computer system, and computer medium | |
CN104699616B (en) | The method of a kind of application test, Apparatus and system | |
US9268672B1 (en) | Automated test case generation for applications | |
US9495543B2 (en) | Method and apparatus providing privacy benchmarking for mobile application development | |
CN110209569B (en) | Interface test method, interface test device and storage medium | |
CN110674047B (en) | Software testing method and device and electronic equipment | |
CN109684188B (en) | Test method and device | |
CN107045475B (en) | Test method and device | |
CN112799940A (en) | Regression testing method, device, computer system and computer readable storage medium | |
CN111654495B (en) | Method, apparatus, device and storage medium for determining traffic generation source | |
US10169189B2 (en) | Functional test automation of mobile applications interacting with native stock applications | |
CN112306857A (en) | Method and apparatus for testing applications | |
CN113918864A (en) | Website page testing method, testing system, testing device, electronic equipment and medium | |
CN114647572A (en) | Method and system for software application component testing | |
US10846206B2 (en) | Adaptive software testing | |
US9053084B1 (en) | Self-service testing | |
CN111158987B (en) | Health check method and device for micro-service architecture | |
CN111949536A (en) | JAVA application program testing method and system based on bytecode technology | |
US20220147437A1 (en) | Automated testing of mobile devices using visual analysis | |
CN105339974B (en) | Analog sensor | |
US9069951B2 (en) | Inferring security decisions from trusted users | |
US20180196724A1 (en) | Cloud servers and methods for handling dysfunctional cloud services | |
CN116149978A (en) | Service interface testing method and device, electronic equipment and storage medium | |
CN115982018B (en) | UI test method, system, computer device and storage medium based on OCR |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171124 |
|
RJ01 | Rejection of invention patent application after publication |