CN110008107A - Test method, device and the computer readable storage medium of application - Google Patents
Test method, device and the computer readable storage medium of application Download PDFInfo
- Publication number
- CN110008107A CN110008107A CN201810006964.5A CN201810006964A CN110008107A CN 110008107 A CN110008107 A CN 110008107A CN 201810006964 A CN201810006964 A CN 201810006964A CN 110008107 A CN110008107 A CN 110008107A
- Authority
- CN
- China
- Prior art keywords
- target application
- test
- test operation
- response time
- time
- 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/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0894—Packet rate
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (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 the test method of application, device and computer readable storage mediums.The described method includes: the target application on control intelligent terminal executes test operation;The interface that the intelligent terminal is shown when the target application executes the test operation is recorded, test video corresponding with the test operation is obtained;Client end response time of the target application when executing the test operation is determined according to the test video.The technical solution easy, accurately based on video analysis can determine client end response time of the target application when executing test operation, to which which module the developer of client can quickly understand, there are adjustment spaces, it can be further perfect, testing process is enriched, development efficiency is improved.
Description
Technical field
The present invention relates to apply testing field, and in particular to test method, device and the computer-readable storage medium of application
Matter.
Background technique
There are many tests of application, and one of which is exactly the operational effect of test application.According to the operational effect of application
Counter can release application which aspect also need it is further perfect, so that developer be made to be adjusted corresponding code.
And the response time of test application is capable of providing intuitive effect, thus need one kind that can conveniently, accurately obtain application response
The method of time.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State test method, device and the computer readable storage medium of the application of problem.
According to one aspect of the present invention, a kind of test method of application is provided, comprising:
The target application controlled on intelligent terminal executes test operation;
Record the interface that the intelligent terminal is shown when the target application executes the test operation, obtain with it is described
The corresponding test video of test operation;
Client end response time of the target application when executing the test operation is determined according to the test video.
Optionally, this method further include:
Receive the request data that the target application is sent when executing the test operation;
The request data is forwarded to corresponding server, receives the reply data that the server returns, it will be described
Reply data returns to the target application;
Record receives the request time point of the request data and receives the response time point of the reply data, root
Server-side of the target application when executing the test operation is calculated according to the request time point and response time point
Response time.
Optionally, this method further include:
Call duration time is calculated according to network state;
It is described that the target application is calculated in the execution test according to the request time point and response time point
Server-side response time when operation includes: to subtract the request time point and the call duration time with the response time point,
Obtain the server-side response time.
Optionally, described to include: according to network state calculating call duration time
The network communication speed between the server is obtained, according to the network communication speed, the request data
Data volume and the reply data data volume calculate data communication time;
Dns server is obtained for the parsing time of the address of the server;
The call duration time is obtained plus the parsing time with the data communication time.
Optionally, described that client of the target application when executing the test operation is determined according to the test video
End the response time include:
Identify that the target application executes the start frame and abort frame of the test operation from the test video;
Total sound that the target application executes the test operation is calculated according to the time of the time of start frame and abort frame
Between seasonable;
If the target application not sent request data when executing the test operation, the overall response time is made
For the client end response time;
If the target application has sent request data when executing the test operation, subtracted with the overall response time
The result for going server-side response time and call duration time to obtain is as the client end response time.
Optionally, the boundary for recording the intelligent terminal and being shown when the target application executes the test operation
Face, obtaining test video corresponding with the test operation includes:
The recorded screen command in the operating system of the intelligent terminal is executed, recording obtains the test video.
Optionally, this method further include:
ADB is established with the intelligent terminal to connect;
It includes: to be connected by the ADB that target application on the control intelligent terminal, which executes test operation, control intelligence
Target application in terminal executes test operation.
Another aspect according to the present invention provides a kind of test device of application, comprising:
Control unit, the target application suitable for controlling on intelligent terminal execute test operation;
Recording elements, the boundary shown suitable for recording the intelligent terminal when the target application executes the test operation
Face obtains test video corresponding with the test operation;
Determination unit, suitable for determining visitor of the target application when executing the test operation according to the test video
The family end response time.
Optionally, the device further include:
Retransmission unit, the request data sent suitable for receiving the target application when executing the test operation, and
Suitable for the request data is forwarded to corresponding server, the reply data that the server returns is received, by the response
Data return to the target application;
The determination unit is further adapted for record and receives the request time point of the request data and receive the response
The response time point of data, according to the request time point and response time point calculate the target application in execution described in
Server-side response time when test operation.
Optionally, the determination unit is further adapted for calculating call duration time according to network state, be subtracted with the response time point
The request time point and the call duration time are removed, the server-side response time is obtained.
Optionally, the determination unit, suitable for obtaining the network communication speed between the server, according to the net
The data volume of network communication speed, the data volume of the request data and the reply data calculates data communication time, and obtains
It takes dns server for the parsing time of the address of the server, the parsing time is added with the data communication time
Obtain the call duration time.
Optionally, the determination unit, suitable for identifying that the target application executes the survey from the test video
The start frame and abort frame for trying operation calculate described in the target application execution according to the time of start frame and the time of abort frame
The overall response time of test operation;If the target application not sent request data when executing the test operation, by institute
Overall response time is stated as the client end response time;If the target application has sent number of request when executing the test operation
According to then subtracting the server-side response time using the overall response time and when result that call duration time obtains is as client end response
Between.
Optionally, the recording elements, the recorded screen command being adapted for carrying out in the operating system of the intelligent terminal, are recorded
To the test video.
Optionally, the device further include:
Connection unit is connect suitable for establishing ADB with the intelligent terminal;
Described control unit controls the target application on intelligent terminal and executes test behaviour suitable for being connected by the ADB
Make.
Another aspect according to the present invention, provides a kind of computer readable storage medium, wherein described computer-readable
Storage medium stores one or more programs, and one or more of programs when being executed by a processor, are realized as any of the above-described
Method described in.
It can be seen from the above, technical solution of the present invention, executes test operation by the target application on control intelligent terminal,
And the interface that intelligent terminal is shown when target application executes test operation is recorded, obtain test view corresponding with test operation
Frequently, client end response time of the target application when executing test operation is further determined according to test video.The technical solution
Client end response time of the target application when executing test operation easy, accurately can be determined based on video analysis, thus
Which module the developer of client can quickly understand, and there are adjustment spaces, can be further perfect, enrich test
Link improves development efficiency.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow diagram of the test method of application according to an embodiment of the invention;
Fig. 2 shows a kind of structural schematic diagrams of the test device of application according to an embodiment of the invention;
Fig. 3 shows the structural schematic diagram of computer readable storage medium according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Fig. 1, which shows Fig. 1 according to an embodiment of the invention and shows one kind according to an embodiment of the invention, to be answered
The flow diagram of test method, as shown in Figure 1, this method comprises:
Step S110, the target application controlled on intelligent terminal execute test operation.
For example, clicking the icon of target application on intelligent terminal, target application is opened, this enabling objective application execution
It is the process for starting and loading start page, can be used for the starting response time of test application.In another example clicking the application
Some control jumps to another page, this process application execution be new page load operation, what can be tested is this
Load response time of the page, etc..
Step S120 records the interface that intelligent terminal is shown when target application executes test operation, obtains grasping with test
Make corresponding test video.
Step S130 determines client end response time of the target application when executing test operation according to test video.Root
According to the time of application execution test operation in test video, the response time of applications client can be further deduced.Here it
It is because current most of applications require client and handed over server-side (server) so proposing the concept of client
Mutually, and the development of server-side and the development of client are generally mutually indepedent, and record test video be from client
What the angle at end was recorded, therefore the client end response time is mainly determined according to test video in the present embodiment.
As it can be seen that method shown in FIG. 1, executes test operation by the target application on control intelligent terminal, and record intelligence
The interface that energy terminal is shown when target application executes test operation, obtains test video corresponding with test operation, further
Client end response time of the target application when executing test operation is determined according to test video.The technical solution can it is easy,
Client end response time of the target application when executing test operation is accurately determined based on video analysis, so that client is opened
Which module hair personnel can quickly understand, and there are adjustment spaces, can be further perfect, enrich testing process, improve
Development efficiency.
It is previously noted that most of applications require client and interact with server, that is to say, that held in target application
Interaction may have occurred with server during row test operation, accordingly it is also possible to obtain the server-side response of application accordingly
Time.In one embodiment of the invention, the above method further include: receive what target application was sent when executing test operation
Request data;Request data is forwarded to corresponding server, the reply data that server returns is received, reply data is returned
To target application;Record, which receives, the request time point of request data and receives the response time point of reply data, according to asking
Seeking time point and response time point calculate server-side response time of the target application when executing test operation.
In the present embodiment in order to calculate the server-side response time, the mechanism of similar agency is realized, i.e., is first obtained
The request data for taking target application to send when executing test operation is generally exactly " packet capturing " that concrete mode can use
Fiddler or other packet catchers are realized.Due to needing to obtain the response time of server-side, it is therefore desirable to the data that will be caught
Packet, i.e. request data are forwarded to corresponding server and grab the data packet of server return, that is, reply data, then by its
Return to target application.In process above, primarily to obtaining request time point and the reception for receiving request data
To the response time point of reply data, clothes of the target application when executing test operation can be calculated according to the two time points
It is engaged in the end response time.
For example, subtracting request time point with response time point, obtained result can serve as the server-side response time, but
It is that strictly, this is less accurately, because this does not account for the loss of network bring.Therefore in a reality of the invention
It applies in example, the above method further include: call duration time is calculated according to network state;It is calculated according to request time point and response time point
Server-side response time of the target application when executing test operation includes: to subtract request time point and communication with response time point
Time obtains the server-side response time.
It just on the basis of the example being illustrated above, then is subtracted further by calculating call duration time in the present embodiment
Call duration time, it will be able to obtain a basic accurately server-side response time, that is, after server receives request data
It is handled, and generates the time of reply data.
Specifically, in one embodiment of the invention, in the above method, call duration time packet is calculated according to network state
It includes: the network communication speed between server is obtained, according to network communication speed, the data volume of request data and reply data
Data volume calculate data communication time;Dns server is obtained for the parsing time of the address of server;When with data communication
Between plus parsing the time obtain call duration time.
As it can be seen that being 1Mb/s with network communication speed in the present embodiment, request data 100kb, reply data 200kb are
Example, then data communication time is 100/1000+200/1000=0.3s, that is, 300ms, if DNS is to the address of server
The parsing time is 10ms, then call duration time is 310ms.
In one embodiment of the invention, in the above method, determine that target application is executing test according to test video
Client end response time when operation includes: to identify that target application executes start frame and the end of test operation from test video
Only frame;The overall response time that target application executes test operation is calculated according to the time of start frame and the time of abort frame;If mesh
Mark applies the not sent request data when executing test operation, then using overall response time as the client end response time;If target
It applies and has sent request data when executing test operation, then server-side response time and call duration time are subtracted with overall response time
Obtained result is as the client end response time.
The specific example for determining the client end response time based on test video is given in the present embodiment, is divided into and being applied
It is interacted with server-side and two kinds of situations of no interactions when executing test operation, if do not interacted, it is evident that in test video
Embodying is exactly the client end response time applied using overall response time, if there is interaction, then just needing with overall response
Time subtracts server-side response time and call duration time.
Specifically, target application can be calculated by identifying start frame and the abort frame of test operation executes test behaviour
The overall response time of work.For example, can know the time point of abort frame and start frame, can directly subtract each other;If can obtain
The serial number and frame per second of abort frame and start frame can also calculate overall response time and (for example, abort frame is the 121st frame, rise
Beginning frame is the 1st frame, and frame per second 60fps, then overall response time is 120/60=2s, and certain actual frame per second may be higher, here
Only make the example calculated).
In one embodiment of the invention, in the above method, intelligent terminal is recorded in target application and executes test operation
When the interface that shows, obtaining test video corresponding with test operation includes: the record screen in the operating system for execute intelligent terminal
Order, recording obtain test video.
Such as by taking Android system as an example, record screen can be realized by executing this shell-command of screenrecord.It removes
Except this, it also can use the modes such as high-speed camera in other embodiments and record test video, but cost is higher, effect
Also not so good.
In one embodiment of the invention, the above method further include: establish ADB with intelligent terminal and connect;Control intelligence
It includes: to be connected by ADB that target application in terminal, which executes test operation, and the target application controlled on intelligent terminal executes test
Operation.
ADB (Android Debug Bridge, Android debug bridge) is the important means that Android system is debugged, at this
ADB connection can be established in embodiment by wired mode or wireless mode, utilizes holding for ADB connection control test script
Target application on row, that is, control intelligent terminal executes test operation, alternatively, it is also possible to issue record screen by ADB connection
Order, obtain recording test video and acquisition request data and forwarding reply data.Wherein, can also further pass through
The rate for obtaining ADB connection transmission data is further subtracted by the call duration time of ADB connection transmission data, certainly, due to having
Under line mode is realized in the case where ADB connection, data transmission bauds quickly, data volume generally also very little, this section communication time
It can also ignore.
Fig. 2 shows a kind of structural schematic diagrams of the test device of application according to an embodiment of the invention.Such as Fig. 2 institute
Show, the test device 200 of application includes:
Control unit 210, the target application suitable for controlling on intelligent terminal execute test operation.
For example, clicking the icon of target application on intelligent terminal, target application is opened, this enabling objective application execution
It is the process for starting and loading start page, can be used for the starting response time of test application.In another example clicking the application
Some control jumps to another page, this process application execution be new page load operation, what can be tested is this
Load response time of the page, etc..
Recording elements 220, suitable for recording intelligent terminal interface for showing when target application executes test operation, obtain with
The corresponding test video of test operation.
Determination unit 230, suitable for determining client end response of the target application when executing test operation according to test video
Time.
According to the time of application execution test operation in test video, when can further deduce the response of applications client
Between.Here the concept of client why is proposed, is because current most of applications require client and server-side (service
Device) it interacts, and the development of server-side and the development of client are generally mutually indepedent, and the test video recorded
It is to be recorded from the angle of client, therefore in the present embodiment mainly when determining client end response according to test video
Between.
As it can be seen that device shown in Fig. 2, by the mutual cooperation of each unit, the target application controlled on intelligent terminal is executed
Test operation, and the interface that intelligent terminal is shown when target application executes test operation is recorded, it obtains corresponding with test operation
Test video, client end response time of the target application when executing test operation is further determined according to test video.It should
Technical solution can it is easy, when accurately determining client end response of the target application when executing test operation based on video analysis
Between, so which module the developer of client can quickly understand, there are adjustment spaces, can be further perfect, it enriches
Testing process, improves development efficiency.
It is previously noted that most of applications require client and interact with server, that is to say, that held in target application
Interaction may have occurred with server during row test operation, accordingly it is also possible to obtain the server-side response of application accordingly
Time.In one embodiment of the invention, above-mentioned apparatus further include: retransmission unit (not shown) is suitable for receiving target application
The request data sent when executing test operation, and suitable for request data is forwarded to corresponding server, receive service
The reply data that device returns, returns to target application for reply data;Determination unit 230 is further adapted for record and receives number of request
According to request time point and receive the response time point of reply data, target is calculated according to request time point and response time point
Apply the server-side response time when executing test operation.
In the present embodiment in order to calculate the server-side response time, the mechanism of similar agency is realized, i.e., is first obtained
The request data for taking target application to send when executing test operation is generally exactly " packet capturing " that concrete mode can use
Fiddler or other packet catchers are realized.Due to needing to obtain the response time of server-side, it is therefore desirable to the data that will be caught
Packet, i.e. request data are forwarded to corresponding server and grab the data packet of server return, that is, reply data, then by its
Return to target application.In process above, primarily to obtaining request time point and the reception for receiving request data
To the response time point of reply data, clothes of the target application when executing test operation can be calculated according to the two time points
It is engaged in the end response time.
For example, subtracting request time point with response time point, obtained result can serve as the server-side response time, but
It is that strictly, this is less accurately, because this does not account for the loss of network bring.Therefore in a reality of the invention
It applies in example, in above-mentioned apparatus, determination unit 230 is further adapted for calculating call duration time according to network state, be subtracted with response time point
Request time point and call duration time, obtain the server-side response time.
It just on the basis of the example being illustrated above, then is subtracted further by calculating call duration time in the present embodiment
Call duration time, it will be able to obtain a basic accurately server-side response time, that is, after server receives request data
It is handled, and generates the time of reply data.
Specifically, in one embodiment of the invention, in above-mentioned apparatus, determination unit 230 is suitable for obtaining and servicing
Network communication speed between device is calculated according to the data volume of network communication speed, the data volume of request data and reply data
Data communication time, and dns server is obtained for the parsing time of the address of server, with data communication time plus solution
The analysis time obtains call duration time.
As it can be seen that being 1Mb/s with network communication speed in the present embodiment, request data 100kb, reply data 200kb are
Example, then data communication time is 100/1000+200/1000=0.3s, that is, 300ms, if DNS is to the address of server
The parsing time is 10ms, then call duration time is 310ms.
In one embodiment of the invention, in above-mentioned apparatus, determination unit 230, suitable for being identified from test video
Target application executes the start frame and abort frame of test operation, calculates target according to the time of start frame and the time of abort frame and answers
With the overall response time for executing test operation;If target application not sent request data when executing test operation, will always ring
The client end response time is used as between seasonable;If target application has sent request data when executing test operation, with overall response
The result that time subtracts the server-side response time and call duration time obtains is as the client end response time.
The specific example for determining the client end response time based on test video is given in the present embodiment, is divided into and being applied
It is interacted with server-side and two kinds of situations of no interactions when executing test operation, if do not interacted, it is evident that in test video
Embodying is exactly the client end response time applied using overall response time, if there is interaction, then just needing with overall response
Time subtracts server-side response time and call duration time.
Specifically, target application can be calculated by identifying start frame and the abort frame of test operation executes test behaviour
The overall response time of work.For example, can know the time point of abort frame and start frame, can directly subtract each other;If can obtain
The serial number and frame per second of abort frame and start frame can also calculate overall response time and (for example, abort frame is the 121st frame, rise
Beginning frame is the 1st frame, and frame per second 60fps, then overall response time is 120/60=2s, and certain actual frame per second may be higher, here
Only make the example calculated).
In one embodiment of the invention, in above-mentioned apparatus, recording elements 220 are adapted for carrying out the operation of intelligent terminal
Recorded screen command in system, recording obtain test video.
Such as by taking Android system as an example, record screen can be realized by executing this shell-command of screenrecord.It removes
Except this, it also can use the modes such as high-speed camera in other embodiments and record test video, but cost is higher, effect
Also not so good.
In one embodiment of the invention, above-mentioned apparatus further include: connection unit (not shown) is suitable for and intelligent terminal
Establish ADB connection;Control unit 210, the target application for being suitable for controlling by ADB connection on intelligent terminal execute test operation.
ADB (Android Debug Bridge, Android debug bridge) is the important means that Android system is debugged, at this
ADB connection can be established in embodiment by wired mode or wireless mode, utilizes holding for ADB connection control test script
Target application on row, that is, control intelligent terminal executes test operation, alternatively, it is also possible to issue record screen by ADB connection
Order, obtain recording test video and acquisition request data and forwarding reply data.Wherein, can also further pass through
The rate for obtaining ADB connection transmission data is further subtracted by the call duration time of ADB connection transmission data, certainly, due to having
Under line mode is realized in the case where ADB connection, data transmission bauds quickly, data volume generally also very little, this section communication time
It can also ignore.
In conclusion technical solution of the present invention, executes test operation by the target application on control intelligent terminal, and
The interface that intelligent terminal is shown when target application executes test operation is recorded, test video corresponding with test operation is obtained,
Client end response time of the target application when executing test operation is further determined according to test video.The technical solution can
It is easy, client end response time of the target application when executing test operation accurately determined based on video analysis, thus client
Which module the developer at end can quickly understand, and there are adjustment spaces, can be further perfect, enrich testing process,
Improve development efficiency.
It should be understood that
Algorithm and display be not inherently related to any certain computer, virtual bench or other equipment provided herein.
Various fexible units can also be used together with teachings based herein.As described above, it constructs required by this kind of device
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
It is some in the test device of microprocessor or digital signal processor (DSP) to realize application according to an embodiment of the present invention
Or some or all functions of whole components.The present invention is also implemented as one for executing method as described herein
Partly or completely device or device program (for example, computer program and computer program product).Such realization is originally
The program of invention can store on a computer-readable medium, or may be in the form of one or more signals.In this way
Signal can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or be provided in any other form.
Fig. 3 shows a kind of structural schematic diagram of computer readable storage medium according to an embodiment of the invention.It should
Computer readable storage medium 300 is stored with the computer readable program code for executing steps of a method in accordance with the invention
310, such as the program code that can be read by the processor of electronic equipment, when these program codes are run by electronic equipment,
The electronic equipment is caused to execute each step in method described above.Program code can be pressed in a suitable form
Contracting.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
Embodiment of the invention discloses A1, a kind of test method of application, comprising:
The target application controlled on intelligent terminal executes test operation;
Record the interface that the intelligent terminal is shown when the target application executes the test operation, obtain with it is described
The corresponding test video of test operation;
Client end response time of the target application when executing the test operation is determined according to the test video.
A2, method as described in a1, wherein this method further include:
Receive the request data that the target application is sent when executing the test operation;
The request data is forwarded to corresponding server, receives the reply data that the server returns, it will be described
Reply data returns to the target application;
Record receives the request time point of the request data and receives the response time point of the reply data, root
Server-side of the target application when executing the test operation is calculated according to the request time point and response time point
Response time.
A3, as described in A2 method, wherein this method further include:
Call duration time is calculated according to network state;
It is described that the target application is calculated in the execution test according to the request time point and response time point
Server-side response time when operation includes: to subtract the request time point and the call duration time with the response time point,
Obtain the server-side response time.
A4, the method as described in A3, wherein described to include: according to network state calculating call duration time
The network communication speed between the server is obtained, according to the network communication speed, the request data
Data volume and the reply data data volume calculate data communication time;
Dns server is obtained for the parsing time of the address of the server;
The call duration time is obtained plus the parsing time with the data communication time.
A5, the method as described in any one of A1-A4, wherein described to determine that the target is answered according to the test video
Include: used in client end response time when executing the test operation
Identify that the target application executes the start frame and abort frame of the test operation from the test video;
Total sound that the target application executes the test operation is calculated according to the time of the time of start frame and abort frame
Between seasonable;
If the target application not sent request data when executing the test operation, the overall response time is made
For the client end response time;
If the target application has sent request data when executing the test operation, subtracted with the overall response time
The result for going server-side response time and call duration time to obtain is as the client end response time.
A6, method as described in a1, wherein described to record the intelligent terminal in the target application execution test
The interface shown when operation, obtaining test video corresponding with the test operation includes:
The recorded screen command in the operating system of the intelligent terminal is executed, recording obtains the test video.
A7, method as described in a1, wherein this method further include:
ADB is established with the intelligent terminal to connect;
It includes: to be connected by the ADB that target application on the control intelligent terminal, which executes test operation, control intelligence
Target application in terminal executes test operation.
The embodiment of the present invention also discloses B8, a kind of test device of application, comprising:
Control unit, the target application suitable for controlling on intelligent terminal execute test operation;
Recording elements, the boundary shown suitable for recording the intelligent terminal when the target application executes the test operation
Face obtains test video corresponding with the test operation;
Determination unit, suitable for determining visitor of the target application when executing the test operation according to the test video
The family end response time.
B9, the device as described in B8, wherein the device further include:
Retransmission unit, the request data sent suitable for receiving the target application when executing the test operation, and
Suitable for the request data is forwarded to corresponding server, the reply data that the server returns is received, by the response
Data return to the target application;
The determination unit is further adapted for record and receives the request time point of the request data and receive the response
The response time point of data, according to the request time point and response time point calculate the target application in execution described in
Server-side response time when test operation.
B10, the device as described in B9, wherein
The determination unit is further adapted for calculating call duration time according to network state, is subtracted with the response time point described
Request time point and the call duration time obtain the server-side response time.
B11, the device as described in B10, wherein
The determination unit, suitable for obtaining the network communication speed between the server, according to the network communication
The data volume of speed, the data volume of the request data and the reply data calculates data communication time, and obtains DNS clothes
Be engaged in device for the address of the server the parsing time, obtained with the data communication time plus the parsing time described in
Call duration time.
B12, the device as described in any one of B8-B11, wherein
The determination unit, suitable for identifying that the target application executes the test operation from the test video
Start frame and abort frame calculate the target application according to the time of start frame and the time of abort frame and execute the test operation
Overall response time;If the target application not sent request data when executing the test operation, by the overall response
Time is as the client end response time;If the target application has sent request data when executing the test operation, with
The result that the overall response time subtracts the server-side response time and call duration time obtains is as the client end response time.
B13, the device as described in B8, wherein
The recording elements, the recorded screen command being adapted for carrying out in the operating system of the intelligent terminal, recording obtain described
Test video.
B14, the device as described in B8, wherein the device further include:
Connection unit is connect suitable for establishing ADB with the intelligent terminal;
Described control unit controls the target application on intelligent terminal and executes test behaviour suitable for being connected by the ADB
Make.
The embodiment of the present invention also discloses C15, a kind of computer readable storage medium, wherein described computer-readable
Storage medium stores one or more programs, and one or more of programs when being executed by a processor, are realized as appointed in A1-A7
Method described in one.
Claims (10)
1. a kind of test method of application, comprising:
The target application controlled on intelligent terminal executes test operation;
The interface that the intelligent terminal is shown when the target application executes the test operation is recorded, is obtained and the test
Operate corresponding test video;
Client end response time of the target application when executing the test operation is determined according to the test video.
2. the method for claim 1, wherein this method further include:
Receive the request data that the target application is sent when executing the test operation;
The request data is forwarded to corresponding server, the reply data that the server returns is received, by the response
Data return to the target application;
Record receives the request time point of the request data and receives the response time point of the reply data, according to institute
It states request time point and response time point calculates server-side response of the target application when executing the test operation
Time.
3. method according to claim 2, wherein this method further include:
Call duration time is calculated according to network state;
It is described that the target application is calculated in the execution test operation according to the request time point and response time point
When the server-side response time include: that the request time point and the call duration time are subtracted with the response time point, obtain
The server-side response time.
4. method as claimed in claim 3, wherein described to include: according to network state calculating call duration time
The network communication speed between the server is obtained, according to the number of the network communication speed, the request data
Data communication time is calculated according to the data volume of amount and the reply data;
Dns server is obtained for the parsing time of the address of the server;
The call duration time is obtained plus the parsing time with the data communication time.
5. such as method of any of claims 1-4, wherein described to determine that the target is answered according to the test video
Include: used in client end response time when executing the test operation
Identify that the target application executes the start frame and abort frame of the test operation from the test video;
When calculating the target application according to the time of the time of start frame and abort frame and executing the overall response of the test operation
Between;
If the target application not sent request data when executing the test operation, using the overall response time as visitor
The family end response time;
If the target application has sent request data when executing the test operation, clothes are subtracted with the overall response time
The result that business end response time and call duration time obtain is as the client end response time.
6. the method for claim 1, wherein described record the intelligent terminal in the target application execution survey
The interface shown when examination operation, obtaining test video corresponding with the test operation includes:
The recorded screen command in the operating system of the intelligent terminal is executed, recording obtains the test video.
7. the method for claim 1, wherein this method further include:
ADB is established with the intelligent terminal to connect;
It includes: to be connected by the ADB that target application on the control intelligent terminal, which executes test operation, controls intelligent terminal
On target application execute test operation.
8. a kind of test device of application, comprising:
Control unit, the target application suitable for controlling on intelligent terminal execute test operation;
Recording elements, the interface shown suitable for recording the intelligent terminal when the target application executes the test operation,
Obtain test video corresponding with the test operation;
Determination unit, suitable for determining client of the target application when executing the test operation according to the test video
Response time.
9. device as claimed in claim 8, wherein the device further include:
Retransmission unit, the request data sent suitable for receiving the target application when executing the test operation, and be suitable for
The request data is forwarded to corresponding server, the reply data that the server returns is received, by the reply data
Return to the target application;
The determination unit is further adapted for record and receives the request time point of the request data and receive the reply data
Response time point, the target application is calculated according to the request time point and response time point and is executing the test
Server-side response time when operation.
10. a kind of computer readable storage medium, wherein the computer-readable recording medium storage one or more program,
One or more of programs when being executed by a processor, realize such as method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810006964.5A CN110008107A (en) | 2018-01-04 | 2018-01-04 | Test method, device and the computer readable storage medium of application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810006964.5A CN110008107A (en) | 2018-01-04 | 2018-01-04 | Test method, device and the computer readable storage medium of application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110008107A true CN110008107A (en) | 2019-07-12 |
Family
ID=67164202
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810006964.5A Pending CN110008107A (en) | 2018-01-04 | 2018-01-04 | Test method, device and the computer readable storage medium of application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110008107A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110580220A (en) * | 2019-08-12 | 2019-12-17 | 百富计算机技术(深圳)有限公司 | method for measuring execution time of code segment and terminal equipment |
CN110908905A (en) * | 2019-11-15 | 2020-03-24 | 北京博睿宏远数据科技股份有限公司 | Method, device, equipment and medium for measuring transaction speed of security dealer APP |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139010A (en) * | 2012-11-13 | 2013-06-05 | 深圳中兴网信科技有限公司 | Terminal and testing server and testing method |
CN104424092A (en) * | 2013-08-22 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Page loading time length testing method and device |
CN105099989A (en) * | 2014-04-24 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Service request processing and service processing result acquiring method, device and system |
CN105827484A (en) * | 2016-05-11 | 2016-08-03 | 厦门美图移动科技有限公司 | Synchronous test image display method and system |
CN106506269A (en) * | 2016-11-03 | 2017-03-15 | 北京蓝海讯通科技股份有限公司 | Execute method, system, computing device and the test system of test assignment |
-
2018
- 2018-01-04 CN CN201810006964.5A patent/CN110008107A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139010A (en) * | 2012-11-13 | 2013-06-05 | 深圳中兴网信科技有限公司 | Terminal and testing server and testing method |
CN104424092A (en) * | 2013-08-22 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Page loading time length testing method and device |
CN105099989A (en) * | 2014-04-24 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Service request processing and service processing result acquiring method, device and system |
CN105827484A (en) * | 2016-05-11 | 2016-08-03 | 厦门美图移动科技有限公司 | Synchronous test image display method and system |
CN106506269A (en) * | 2016-11-03 | 2017-03-15 | 北京蓝海讯通科技股份有限公司 | Execute method, system, computing device and the test system of test assignment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110580220A (en) * | 2019-08-12 | 2019-12-17 | 百富计算机技术(深圳)有限公司 | method for measuring execution time of code segment and terminal equipment |
CN110580220B (en) * | 2019-08-12 | 2023-05-23 | 百富计算机技术(深圳)有限公司 | Method for measuring code segment execution time and terminal equipment |
CN110908905A (en) * | 2019-11-15 | 2020-03-24 | 北京博睿宏远数据科技股份有限公司 | Method, device, equipment and medium for measuring transaction speed of security dealer APP |
CN110908905B (en) * | 2019-11-15 | 2023-07-14 | 北京博睿宏远数据科技股份有限公司 | Method, device, equipment and medium for measuring APP transaction speed of security dealer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105468529B (en) | A kind of accurate traversal method of Android application UI controls and device | |
CN108595329A (en) | A kind of application testing method, device and computer storage media | |
CN105224456B (en) | A kind of test script generation method, device and system | |
CN104461897B (en) | A kind of method and apparatus of Application testing | |
CN105512015B (en) | A kind of Android intended application collapse statistical method and device | |
US10613964B2 (en) | Conditional debugging of server-side production code | |
CN106294094A (en) | The method of testing of game server, client, server and system | |
CN107688529B (en) | Component debugging method and device | |
US20200167159A1 (en) | Processor testing | |
CN110013672B (en) | Method, device, apparatus and computer-readable storage medium for automated testing of machine-run games | |
CN111209193B (en) | Program debugging method and device | |
CN107391219B (en) | Function Compilation Method and device | |
CN107979506B (en) | Flow acquisition and cloud display system, method, device and equipment | |
CN112559348B (en) | Test analysis method, system, equipment and medium based on jacoco | |
CN105204917B (en) | The method and device of loading configuration file in application program launching | |
CN109960644A (en) | A kind of test method and system of SDK | |
CN109739704A (en) | A kind of interface test method, server-side and computer readable storage medium | |
CN108829588A (en) | A kind of processing method of test application program, deployment system and device | |
CN110008107A (en) | Test method, device and the computer readable storage medium of application | |
CN109558328A (en) | A kind of test method of code coverage, system, device and readable storage medium storing program for executing | |
CN107846449A (en) | Method, apparatus, readable storage medium storing program for executing and the equipment of calling system instrument | |
CN109697142A (en) | Method and device for detecting bare metal server in cloud computing environment | |
CN108920379B (en) | Method and device for capturing lua code exception | |
CN105373474B (en) | A kind of test method and device for operation system | |
CN110399723A (en) | Leak detection method and device, storage medium and electronic device |
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: 20190712 |
|
RJ01 | Rejection of invention patent application after publication |