CN104699598B - Automated testing method, device, equipment and system - Google Patents
Automated testing method, device, equipment and system Download PDFInfo
- Publication number
- CN104699598B CN104699598B CN201310661617.3A CN201310661617A CN104699598B CN 104699598 B CN104699598 B CN 104699598B CN 201310661617 A CN201310661617 A CN 201310661617A CN 104699598 B CN104699598 B CN 104699598B
- Authority
- CN
- China
- Prior art keywords
- performance data
- event
- test
- mobile terminal
- test case
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 498
- 230000004044 response Effects 0.000 claims abstract description 111
- 238000000034 method Methods 0.000 claims abstract description 102
- 238000011056 performance test Methods 0.000 claims abstract description 64
- 238000007405 data analysis Methods 0.000 claims description 78
- 230000006870 function Effects 0.000 claims description 71
- 230000008569 process Effects 0.000 claims description 66
- 238000012545 processing Methods 0.000 claims description 16
- 230000009471 action Effects 0.000 claims description 15
- 238000004458 analytical method Methods 0.000 claims description 14
- 230000001960 triggered effect Effects 0.000 claims description 14
- 238000005070 sampling Methods 0.000 claims description 6
- 238000010276 construction Methods 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 12
- 238000013480 data collection Methods 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 12
- 230000006854 communication Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 241000282693 Cercopithecidae Species 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 230000002459 sustained effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of automated testing method, device, equipment and system, belong to field of computer technology.Methods described includes:Perform automatized script to test test case, during automatized script is performed, the performance data of collecting test use-case and/or mobile terminal obtains the performance test form of test case according to performance data.The present invention is by the way that during the automatized script is performed, the performance data of collecting test use-case and/or mobile terminal obtains the performance test form of test case according to performance data;Solve the test in terms of prior art also rests on the event response on basis in the presence of the test to application program, it is impossible to the problem of fully ensuring that the performance quality of application program;The test phase automatic data collection and analytical performance data in application program have been reached, human cost has both been saved, the effect of the performance quality of application program has been fully ensured that again.
Description
Technical Field
The invention relates to the technical field of computers, in particular to an automatic testing method, device, equipment and system.
Background
Mobile devices such as mobile phones or tablet computers have been increasingly favored by users, and a great reason is that the mobile devices can be installed with a large number of applications, and different functions can be implemented through different applications, thereby greatly enriching the work and life of the users.
In order to ensure the quality of the application, developers need to perform repeated and elaborate tests on the application before entering the market. However, manual testing is a repetitive and tedious process, and there are inevitable leaks, so that automatic testing has taken place. Automated testing is an important component of the modern software testing field, and can replace a large number of repeated manual operations and reduce human errors. The automatic test can be realized by writing an automatic script through an automatic test tool or a programming language and driving a tested application program through the automatic script.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems: the existing automatic test tool usually only tests whether operation events such as touch, motion or control can be responded, but some performance data of the application program are required to be fed back through the actual use condition of a user after the application program enters the market, and further the performance data are required to be collected and analyzed manually. It is often too late to remedy the performance problem of the application at this point if it is found that it has lost the user's trust. Therefore, the prior art has the problems that the test of the application program is still in the aspect of basic event response, and the performance quality of the application program cannot be fully ensured.
Disclosure of Invention
In order to solve the problem that the performance quality of an application program cannot be fully guaranteed because the test of the application program still stays in the aspect of basic event response in the prior art, the embodiment of the invention provides an automatic test method, device, equipment and system. The technical scheme is as follows:
in a first aspect, an automated testing method is provided, which is used in a mobile terminal, and the method includes:
executing the automation script to test the test case;
collecting the performance data of the test case and/or the mobile terminal in the process of executing the automation script;
obtaining a performance test report form of the test case according to the performance data;
wherein, the executing automation script tests the test case, including:
reading event information in the automation script, wherein the automation script comprises event information of at least one operation event, and the event information of the operation event comprises a coordinate position corresponding to the operation event and an action corresponding to the operation event;
constructing and obtaining the operation event according to the event information;
and sending the operation event to a custom object, wherein the custom object is used for transmitting the operation event to a response object through an event response chain for carrying out event response.
In a second aspect, an automated testing method is provided, which is used in a test terminal, and the method includes:
recording a test case generation automation script;
sending the automation script to a mobile terminal so that the mobile terminal can execute the automation script to test the test case, acquiring performance data of the test case and/or the mobile terminal in the process of executing the automation script, and obtaining a performance test report form of the test case according to the performance data;
wherein, the recording of the test case generation automation script comprises:
capturing the operation event after the operation event in the test case is triggered;
acquiring event information of the operation event, wherein the event information of the operation event comprises a coordinate position corresponding to the operation event and an action corresponding to the operation event;
storing the event information into the automation script, wherein the event information is used for reading the event information in the automation script after a mobile terminal receives the automation script, constructing the operation event according to the event information, and sending the operation event to a user-defined object, and the user-defined object is used for transmitting the operation event to a response object through an event response chain for event response;
wherein the test case contains at least one of the operation events.
In a third aspect, an automated testing apparatus is provided, which is used in a mobile terminal, and the apparatus includes:
the script execution module is used for executing the automatic script to test the test case;
the data acquisition module is used for acquiring the performance data of the test case and/or the mobile terminal in the process of executing the automation script;
the report acquisition module is used for acquiring a performance test report of the test case according to the performance data;
wherein, the script execution module comprises: the device comprises an information reading unit, an event construction unit and an event response unit;
the information reading unit is used for reading event information in the automation script, the automation script comprises event information of at least one operation event, and the event information of the operation event comprises a coordinate position corresponding to the operation event and an action corresponding to the operation event;
the event construction unit is used for constructing and obtaining the operation event according to the event information;
and the event response unit is used for sending the operation event to a custom object, and the custom object is used for transmitting the operation event to a response object through an event response chain to perform event response.
In a fourth aspect, an automated testing apparatus is provided for use in a test terminal, the apparatus comprising:
the script generation module is used for recording a test case generation automation script;
the script sending module is used for sending the automation script to a mobile terminal so that the mobile terminal can execute the automation script to test the test case, in the process of executing the automation script, the performance data of the test case and/or the mobile terminal is collected, and a performance test report form of the test case is obtained according to the performance data;
wherein the script generation module comprises: the system comprises an event capturing unit, an information acquiring unit and an information storing unit;
the event capturing unit is used for capturing the operation event after the operation event in the test case is triggered;
the information acquisition unit is used for acquiring event information of the operation event, wherein the event information of the operation event comprises a coordinate position corresponding to the operation event and an action corresponding to the operation event;
the information saving unit is used for saving the event information into the automation script, the event information is used for reading the event information in the automation script after the mobile terminal receives the automation script, constructing the operation event according to the event information, and sending the operation event to a user-defined object, and the user-defined object is used for transmitting the operation event to a response object through an event response chain for event response;
wherein the test case contains at least one of the operation events.
In a fifth aspect, there is provided a mobile terminal comprising an automated testing apparatus according to any one of the various possible embodiments of the third aspect and the third aspect.
In a sixth aspect, there is provided a test terminal comprising an automated test equipment according to any one of the various possible embodiments of the fourth aspect and the fourth aspect.
In a seventh aspect, an automated testing system is provided, the system comprising: the system comprises a mobile terminal and a test terminal;
the mobile terminal is a mobile terminal according to the fifth aspect;
the test terminal is a test terminal according to the sixth aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
testing the test case by executing the automation script, acquiring performance data of the test case and/or the mobile terminal in the process of executing the automation script, and obtaining a performance test report form of the test case according to the performance data; the problem that the performance quality of the application program cannot be fully ensured because the test of the application program in the prior art still stays in the test of the basic event response aspect is solved; the method and the device achieve the effects of automatically collecting and analyzing performance data in the testing stage of the application program, not only saving the labor cost, but also fully ensuring the performance quality of the application program.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an implementation environment related to an automated testing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of automated testing provided by one embodiment of the present invention;
FIG. 3 is a flow chart of a method for automated testing provided by another embodiment of the present invention;
FIG. 4 is a flow chart of a method for automated testing provided by another embodiment of the present invention;
FIG. 5 is a flow chart of a method for automated testing provided by another embodiment of the present invention;
FIG. 6 is a flow chart of a method for automated testing provided by another embodiment of the present invention;
FIG. 7 is a block diagram of an automated test equipment according to an embodiment of the present invention;
FIG. 8 is a block diagram of an automated test equipment according to another embodiment of the present invention;
FIG. 9 is a block diagram of an automated test system according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a test terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The inventor has found that the prior collection and analysis of performance data of an application is at a stage when the application has entered the market, which is often late if the application is found to have performance problems and then remedied. If the performance data of the software is collected and analyzed in the testing stage, the problems of the application program in performance can be found in the testing stage, and the optimization or adjustment can be performed in time. In the following, how to combine the performance data collection and analysis with the automated testing of applications will be described and explained in detail with reference to specific embodiments.
First, it should be noted that the performance data of the application mainly includes: time consumption, power consumption, network flow, fluency, CPU occupancy rate and memory occupancy. The time consumption refers to the time length consumed by at least one operation event in a certain test case of the application program from triggering to responding; the power consumption refers to the electric quantity consumed by at least one operation event in a certain test case of the application program from triggering to responding; the network traffic refers to the network traffic consumed by at least one operation event in a certain test case of the application program from triggering to responding; the fluency refers to the average display frame rate of the mobile terminal running with the application program in the test process; the CPU occupancy rate refers to the CPU occupancy rate of the mobile terminal running with the application program in the test process; and the memory occupation refers to the memory occupation of the mobile terminal running the application program in the test process. By optimizing or improving the performance data of the application program, the quality of the application program can be improved, and the user experience can be improved.
Referring to fig. 1, a schematic structural diagram of an implementation environment related to an automated testing method provided by an embodiment of the present invention is shown, where the implementation environment includes: a mobile terminal 20 and a test terminal 40.
The mobile terminal 20 may be a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts Group Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts Group Audio Layer 3), and so on.
The test terminal 40 may be a laptop portable computer or a desktop computer.
The test terminal 40 may establish a connection with the mobile terminal 20 through a wired network, a wireless network, or a USB (Universal Serial Bus) data line, and send the automation script to the mobile terminal 20. After receiving the automation script sent by the test terminal 40, the mobile terminal 20 executes the automation script to perform an automation test on at least one test case of the application program, and collects performance data of the test case and/or the mobile terminal 20 itself during the test process. In particular, when the connection between the test terminal 40 and the mobile terminal 20 is established through the USB data line, the USB connection needs to be disconnected in order not to affect the accuracy of the test during the execution of the automation script and the collection of the performance data by the mobile terminal 20.
Referring to fig. 2, a flowchart of an automated testing method according to an embodiment of the present invention is shown, which is illustrated by applying the automated testing method to a mobile terminal side in the implementation environment shown in fig. 1. The automatic testing method comprises the following steps:
step 202, executing the automation script to test the test case.
And the mobile terminal executes the automation script to test the test case.
Step 204, collecting the performance data of the test case and/or the mobile terminal in the process of executing the automation script.
And the mobile terminal collects the test cases and/or the performance data of the mobile terminal in the process of executing the automation script.
And step 206, obtaining a performance test report of the test case according to the performance data.
And the mobile terminal obtains a performance test report form of the test case according to the performance data.
In summary, in the automated testing method provided in this embodiment, the mobile terminal tests the test case by executing the automation script, and in the process of executing the automation script, collects performance data of the test case and/or the mobile terminal, and obtains a performance test report of the test case according to the performance data; the problem that the performance quality of the application program cannot be fully ensured because the test of the application program in the prior art still stays in the test of the basic event response aspect is solved; the method and the device achieve the effects of automatically collecting and analyzing performance data in the testing stage of the application program, not only saving the labor cost, but also fully ensuring the performance quality of the application program.
Referring to fig. 3, a flowchart of an automated testing method according to another embodiment of the present invention is shown, which is illustrated by applying the automated testing method to a testing terminal side of the implementation environment shown in fig. 1. The automatic testing method comprises the following steps:
step 302, recording the test case generation automation script.
And the test terminal records the test case to generate an automatic script.
And step 304, sending the automation script to the mobile terminal so that the mobile terminal can execute the automation script to test the test case, acquiring performance data of the test case and/or the mobile terminal in the process of executing the automation script, and obtaining a performance test report form of the test case according to the performance data.
The test terminal sends the automation script to the mobile terminal so that the mobile terminal can execute the automation script to test the test case, in the process of executing the automation script, the performance data of the test case and/or the mobile terminal is collected, and a performance test report form of the test case is obtained according to the performance data.
In summary, in the automated testing method provided in this embodiment, the testing terminal generates the automated script by recording the test case, and sends the automated script to the mobile terminal; the mobile terminal executes the automation script to test the test case, collects the performance data of the test case and/or the mobile terminal in the process of executing the automation script, and obtains a performance test report form of the test case according to the performance data; the problem that the performance quality of the application program cannot be fully ensured because the test of the application program in the prior art still stays in the test of the basic event response aspect is solved; the method and the device achieve the effects of automatically collecting and analyzing performance data in the testing stage of the application program, not only saving the labor cost, but also fully ensuring the performance quality of the application program.
Referring to fig. 4, a flowchart of an automated testing method according to another embodiment of the present invention is shown, which is illustrated in the embodiment of fig. 1. The automatic testing method comprises the following steps:
step 401, the test terminal records a test case generation automation script.
The test case refers to a general description for testing a certain function or functions of the application program, and one test case comprises at least one operation event. The operation event refers to an event generated by performing an operation action on the device object, such as clicking a physical button or a virtual button or an interface window on the device object. In each embodiment of the present invention, the device object is a mobile terminal.
The test terminal can record the test case through the automatic test tool to generate the automatic script. In this embodiment, it is assumed that the test case includes an operation event, and the operation event is clicking a virtual button on the mobile terminal. The automatic testing tool records the operation event, namely records the touch event of clicking a certain virtual button on the mobile terminal, so as to record the automatic script and generate the automatic script.
Step 402, the test terminal sends the automation script to the mobile terminal.
After the test terminal generates the automation script, the automation script is sent to the mobile terminal, so that the mobile terminal executes the automation script to perform automation test.
Correspondingly, the mobile terminal receives the automation script sent by the test terminal.
And 403, the mobile terminal executes the automation script to test the test case.
And the mobile terminal executes the process of testing the test case by the automatic script, namely the process of replaying the automatic script recorded by the test terminal. And executing the operation events contained in the recorded test cases in the process of executing the automation script. Specifically, a script parser is called to parse out a script statement from an automation script; then analyzing the event information of the operation event recorded in the script statement; and finally executing the operation event according to the event information of the operation event.
In this embodiment, when the operation event is a touch event of clicking a virtual button on the mobile terminal, the event information includes a coordinate position acted by the touch event and a click action acted by the touch event.
Step 404, in the process of executing the automation script, the mobile terminal collects the test case and/or the performance data of the mobile terminal.
As already mentioned above, the performance data mainly comprises: time consumption, power consumption, network flow, fluency, CPU occupancy rate and memory occupancy of the 6 data. In the process of executing the automation script, the mobile terminal collects the test case and/or the performance data of the mobile terminal through the automation test tool. The performance data of the test case comprises the duration, the electric quantity and the network flow consumed by the operation events contained in the test case from triggering to responding; the performance data of the mobile terminal comprises the average display frame rate, the CPU occupancy rate and the memory occupation of the mobile terminal in the test process.
And 405, the mobile terminal obtains a performance test report of the test case according to the performance data.
The mobile terminal obtains a performance test report of the test case according to the collected performance data, and usually the performance test report is presented in a form.
It should be noted that, in the above step 402, the test terminal sends the automation script to the mobile terminal through the USB data line, and after the mobile terminal receives the automation script, the mobile terminal needs to disconnect the USB data line first and then execute the automation script to test the test case. Otherwise, the performance data acquired by the mobile terminal may be inaccurate, especially the power consumption performance data.
In summary, in the automated testing method provided in this embodiment, the test terminal records the test case to generate the automated script, and sends the automated script to the mobile terminal; the mobile terminal executes the automation script to test the test case, and in the process of executing the automation script, the mobile terminal collects the performance data of the test case and/or the mobile terminal and obtains a performance test report form of the test case according to the performance data; the problem that the performance quality of the application program cannot be fully ensured because the test of the application program in the prior art still stays in the test of the basic event response aspect is solved; the method and the device achieve the effects of automatically collecting and analyzing performance data in the testing stage of the application program, not only saving the labor cost, but also fully ensuring the performance quality of the application program.
Referring to fig. 5, a flowchart of an automated testing method according to another embodiment of the present invention is shown, and the present embodiment is still illustrated by applying the automated testing method to the implementation environment shown in fig. 1. The automatic testing method comprises the following steps:
step 501, after an operation event in a test case is triggered, the test terminal captures the operation event.
In the process of recording the automation script, after an operation event in a test case is triggered, the operation event is captured by an automation test tool. For convenience of illustration and understanding, in this embodiment, it is still assumed that the test case includes an operation event, and the operation event is a touch event of clicking a virtual button on the mobile terminal. In addition, assume that the automated test tool is Monkey Talk. MonkeyTalk is a common automated testing tool for applications under the iOS system and the Android (Android) system.
Specifically, the present step includes the following substeps:
firstly, an event forwarding function of an event receiving object of an operation event is obtained through a Hook function Hook.
After an operation event is triggered, the operation event is received by an object which receives the event, and then is transmitted to a response object through an event response chain to perform an event response. Taking a touch event of clicking a virtual button on a mobile terminal under an iOS system as an example, when a user touches a screen, the touch event UIEvent is generated, the touch event UIEvent is received by an object UIapplication receiving an event, and then the UIapplication sends the touch event UIEvent to a response object on a control tree through an event response chain by the aid of an event forwarding function sendEvent function of the UIapplication for event response.
In this embodiment, after the event UIEvent is triggered and received by the object UIApplication receiving the event, the automation test tool Monkey Talk receives the event forwarding function sendEvent of the object UIApplication. Thus, a touch event UIEvent cannot be issued by the event forwarding function sendEvent function.
Second, a custom event forwarding function corresponding to the event forwarding function is added.
And the test terminal adds a self-defined event forwarding function corresponding to the event forwarding function through an automatic test tool. In this embodiment, it is assumed that the added custom event forwarding function is a mySendEvent function, that is, the mySendEvent function is inserted into the position added to the sendEvent function.
Thirdly, capturing the operation event through a self-defined event forwarding function.
And the test terminal captures the operation event through a self-defined event forwarding function added by the automatic test tool. In this embodiment, the Monkey Talk captures the touch event UIEvent by inserting the added mySendEvent function under UIApplication.
Step 502, the test terminal obtains event information of the operation event.
After the test terminal captures the operation event through the automatic test tool, the operation event is analyzed, and the event information of the operation event is obtained. The event information of one operation event includes information such as a coordinate position where the operation event acts and an action where the operation event acts.
In this embodiment, after the test terminal captures the touch event UIEvent through the Monkey Talk, the coordinate position where the touch event acts is obtained as the coordinate of the touch position when the user touches the screen, and the action where the touch event acts is clicking.
The event information reflects the specific situation of the operation event, and by acquiring the event information of the operation event, the event information can be analyzed and constructed in the subsequent automatic script execution process, so that the operation event is restored.
Step 503, the test terminal saves the event information into the automation script.
And the test terminal stores the acquired event information into the automation script, namely, the automation script is generated. When a test case contains more than one operation event, the event information of all the operation events contained in the test case is usually saved in the same automation script.
Step 504, the test terminal retransmits the operation event to the event forwarding function of the event receiving object of the operation event.
And the test terminal retransmits the operation event to an event forwarding function of an event receiving object of the operation event, wherein the event forwarding function is used for transmitting the operation event to a response object through an event response chain and carrying out event response.
In this embodiment, the test terminal retransmits the touch event UIEvent through the sendEvent function of UIApplication, so that the touch event UIEvent is transmitted to the response object in the control tree through the event response chain for event response. Further, the status and results of the event response may be recorded for verification of the test results in a subsequent automated test phase.
And 505, the test terminal sends the automation script to the mobile terminal.
After the test terminal generates the automation script through the steps, the automation script is sent to the mobile terminal, and the mobile terminal executes the automation script to perform the automation test.
Correspondingly, the mobile terminal receives the automation script sent by the test terminal.
Step 506, the mobile terminal reads the event information in the automation script.
And the mobile terminal analyzes the received automation script and reads the event information in the automation script.
In this embodiment, in step 502, the event information acquired by the test terminal is the coordinate position where the touch event acts and the click action of the touch event. Therefore, at this time, the event information stored in the automation script read by the mobile terminal is: coordinate position and click action.
And step 507, the mobile terminal constructs an operation event according to the event information.
And after reading the event information from the automation script, the mobile terminal constructs and obtains an operation event according to the event information. In this embodiment, the mobile terminal constructs a touch event according to two pieces of information, namely, a coordinate position and a click action.
And step 508, the mobile terminal sends the operation event to the user-defined object.
The custom object is used for transmitting the operation event to the response object through the event response chain to carry out event response. Generally, the process from trigger to response for an operational event is as follows: and the window object transmits the operation event to a response object on the control tree through an event response chain to perform event response.
For example, in the iOS system, a UIEvent is triggered and received by UIApplication, and then the UIApplication sends the UIEvent to UIWindow, and UIWindow transmits the UIEvent to a response object in the control tree through an event response chain to perform event response.
In the existing automatic testing process, the automatic testing tool stores the corresponding relationship between the operation event and the response object in the process of recording the automatic script. In the subsequent process of executing the automation script, the automation testing tool firstly traverses the control tree, searches a response object corresponding to the operation event on the control tree, and then directly sends the operation event to the searched response object for event response. Therefore, whether the operation event is responded or not is verified, or test results such as the probability that the operation event is responded are obtained.
In this embodiment, in order to ensure the accuracy of the performance data acquired subsequently, when the mobile terminal performs the automated test on the test case, the user-defined object is added to all the window objects, and the operation event is transmitted to the response object through the event response chain by the user-defined object to perform the event response so as to complete the automated test, that is, the automated test is completed through the process of restoring the operation event to obtain the response.
Specifically, taking an iOS system as an example, adding a custom object Top UIView on all uiwindows, after constructing event information to obtain UIEvent, sending the UIEvent to the Top UIView, and then transmitting the UIEvent to a response object on a control tree through an event response chain by the Top UIView to perform event response, thereby completing the automated test. Therefore, the process of traversing the control tree to search for the response object is omitted, and the process of obtaining the response through restoring the operation event under the real condition is used for carrying out automatic test, so that the test result is more accurate.
Step 509, in the process of executing the automation script, the mobile terminal collects the test case and/or the performance data of the mobile terminal.
Specifically, in a first possible implementation, a first type of performance data of at least one operational event in a test case is collected over a predetermined time interval.
The first type of performance data comprises at least one of the duration, the electric quantity, the network traffic and the average display frame rate of the mobile terminal in the test process, wherein the duration is spent on at least one operation event in the test case from triggering to responding.
Usually, the 4 performance data of time consumption, power consumption, network flow and fluency need to be collected. The first type of performance data is collected over a predetermined time interval, indicating that the collection of the first type of performance data was only available for a sustained period of time. Taking the collection of the performance data of time consumption as an example, recording the time interval from the triggering to the response of the operation event obtains the performance data of time consumption.
In a second possible implementation, the second type of performance data is sampled at a predetermined time.
The second type of performance data includes at least one of CPU occupancy and memory usage of the central processing unit of the mobile terminal.
In general, in addition to the 4 performance data of time consumption, power consumption, network traffic and fluency, the 2 performance data of CPU occupancy and memory occupancy need to be collected. And sampling at a preset moment to acquire the second type of performance data, wherein the acquisition of the second type of performance data is acquired at different sampling moments. Taking the collection of the CPU occupancy rate as the performance data as an example, the CPU occupancy rates at a plurality of moments are sampled and obtained at different moments in the execution process of the automatic script, so that the performance data of the CPU occupancy rates is obtained.
Step 510, the mobile terminal sends the performance data to the test terminal.
And the mobile terminal sends the acquired performance data to the test terminal for data analysis.
Correspondingly, the test terminal receives the performance data sent by the mobile terminal.
And 511, analyzing the performance data by the test terminal to obtain a performance data analysis result.
The performance data is analyzed mainly from the four aspects of statistics, transverse comparison, longitudinal comparison and alarming.
Specifically, in a first possible implementation, the performance data is counted to obtain a statistical result of the performance data.
For each of the 6 performance data of time consumption, power consumption, network flow, fluency, CPU occupancy rate and memory occupation, a plurality of individual performance data acquired by one or a plurality of automatic tests are summed, averaged or variance-calculated for statistical analysis, and then statistical results of the performance data are obtained. The size and stability of each performance data can be reflected from the statistical results.
In a second possible implementation manner, the performance data of different types are transversely compared to obtain a transverse comparison result of the performance data.
The transverse comparison refers to comparison of importance, coordination and the like of different types of performance data obtained after each automatic test.
In a third possible implementation manner, the performance data of the same kind are longitudinally compared to obtain a longitudinal comparison result of the performance data.
The longitudinal comparison refers to the comparison and analysis of a plurality of performance data obtained after one or a plurality of times of automatic tests for each performance data.
In a fourth possible implementation manner, the performance data is compared with a preset alarm threshold value to obtain an alarm result of the performance data.
And the test terminal compares the performance data with a preset alarm threshold value, and extracts the performance data reaching the alarm threshold value to obtain an alarm result of the performance data.
In general, the performance data can be comprehensively analyzed by using the four possible implementation manners to obtain a performance data analysis result.
And step 512, the test terminal generates a performance test report of the test case according to the performance data analysis result.
And after the test terminal obtains the performance data analysis result, generating a performance test report of the test case. Usually, the information is sent to the developer in the form of a table by mail. And carrying out next optimization and adjustment on the test case by research personnel according to the performance test report.
In summary, in the automated testing method provided in this embodiment, the test terminal records the test case to generate the automated script, and sends the automated script to the mobile terminal; the mobile terminal executes the automation script to test the test case, and in the process of executing the automation script, the mobile terminal collects the performance data of the test case and/or the mobile terminal and obtains a performance test report form of the test case according to the performance data; the problem that the performance quality of the application program cannot be fully ensured because the test of the application program in the prior art still stays in the test of the basic event response aspect is solved; the method and the device achieve the effects of automatically collecting and analyzing performance data in the testing stage of the application program, not only saving the labor cost, but also fully ensuring the performance quality of the application program.
In the automated testing method provided by the embodiment, in the process of executing the automated script, the mobile terminal sends the constructed operation event to the added custom object, and the custom object transmits the operation event to the response object through the event response chain to perform event response, so that the automated testing is completed; the process from triggering to responding of the operation event is restored in the test process, and the test accuracy and the precision of the acquired performance data are improved.
Referring to fig. 6, a flowchart of an automated testing method according to another embodiment of the present invention is shown, and the present embodiment is still illustrated by applying the automated testing method to the implementation environment shown in fig. 1. The automatic testing method comprises the following steps:
step 601, after an operation event in the test case is triggered, the test terminal captures the operation event.
Step 602, the test terminal obtains event information of the operation event.
Step 603, the test terminal saves the event information into the automation script.
Step 604, the test terminal retransmits the operation event to the event forwarding function of the event receiving object of the operation event.
Step 605, the test terminal sends the automation script to the mobile terminal.
Correspondingly, the mobile terminal receives the automation script sent by the test terminal.
Step 606, the mobile terminal reads the event information in the automation script.
Step 607, the mobile terminal constructs an operation event according to the event information.
In step 608, the mobile terminal sends the operation event to the custom object.
Step 609, in the process of executing the automation script, the mobile terminal collects the test case and/or the performance data of the mobile terminal.
Steps 601 to 609 are the same as or similar to steps 501 to 509 in the embodiment shown in fig. 5, which refer to steps 501 to 509 specifically, and are not repeated in this embodiment.
Different from the embodiment shown in fig. 5, in the embodiment shown in fig. 5, after the performance data is acquired by the mobile terminal, the performance data is sent to the test terminal, and the test terminal further analyzes the performance data to obtain a performance test report. In this embodiment, after acquiring the performance data, the mobile terminal automatically analyzes the performance data and obtains a performance test report, which is specifically referred to as the following steps 610 to 611.
And step 610, the mobile terminal analyzes the performance data to obtain a performance data analysis result.
Similar to step 511 in the embodiment shown in fig. 5, the mobile terminal mainly analyzes the performance data from four aspects, i.e., statistics, horizontal comparison, vertical comparison, and alarm.
Specifically, the performance data is counted to obtain a statistical result of the performance data; and/or performing transverse comparison on different types of performance data to obtain a transverse comparison result of the performance data; and/or longitudinally comparing the performance data of the same type to obtain a longitudinal comparison result of the performance data; and/or comparing the performance data with a preset alarm threshold value to obtain an alarm result of the performance data. The specific implementation manner is already described and illustrated in step 511, and is not described in detail in this embodiment.
Step 611, the mobile terminal generates a performance test report of the test case according to the performance data analysis result.
Similar to step 512 in the embodiment shown in fig. 5, the mobile terminal generates a performance test report of the test case according to the performance data analysis result.
It should be noted that the mobile terminal may further analyze the performance data to obtain a performance data analysis result, and then the mobile terminal sends the performance data analysis result to the test terminal; correspondingly, the test terminal receives the performance data analysis result sent by the mobile terminal, and then the test terminal generates a performance test report of the test case according to the performance data analysis result. In a specific implementation, the scheme provided by the embodiment shown in fig. 5 or the scheme provided by the embodiment shown in fig. 6 may be selected according to the computing processing capability of the mobile terminal.
In summary, in the automated testing method provided in this embodiment, the test terminal records the test case to generate the automated script, and sends the automated script to the mobile terminal; the mobile terminal executes the automation script to test the test case, and in the process of executing the automation script, the mobile terminal collects the performance data of the test case and/or the mobile terminal and obtains a performance test report form of the test case according to the performance data; the problem that the performance quality of the application program cannot be fully ensured because the test of the application program in the prior art still stays in the test of the basic event response aspect is solved; the method and the device achieve the effects of automatically collecting and analyzing performance data in the testing stage of the application program, not only saving the labor cost, but also fully ensuring the performance quality of the application program. In addition, after the mobile terminal acquires the performance data, the performance data can be analyzed by self and a performance test report can be generated.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 7, a block diagram of an automated testing device according to an embodiment of the present invention is shown, which may be implemented as part or all of a mobile terminal through software, hardware or a combination of the two. This automatic change testing arrangement includes: a script execution module 710, a data collection module 720 and a report acquisition module 730.
And the script execution module 710 is used for executing the automation script to test the test case.
And a data collection module 720, configured to collect the test case and/or the performance data of the mobile terminal during the process of executing the automation script.
The report obtaining module 730 is configured to obtain a performance test report of the test case according to the performance data.
In summary, in the automated testing apparatus provided in this embodiment, the mobile terminal tests the test case by executing the automation script, and in the process of executing the automation script, collects performance data of the test case and/or the mobile terminal, and obtains a performance test report of the test case according to the performance data; the problem that the performance quality of the application program cannot be fully ensured because the test of the application program in the prior art still stays in the test of the basic event response aspect is solved; the method and the device achieve the effects of automatically collecting and analyzing performance data in the testing stage of the application program, not only saving the labor cost, but also fully ensuring the performance quality of the application program.
Referring to fig. 8, a block diagram of an automated testing device according to another embodiment of the present invention is shown, which may be implemented as part or all of a testing terminal through software, hardware or a combination of both. This automatic change testing arrangement includes: a script generating module 810 and a script sending module 820.
And the script generating module 810 is used for recording the test case generation automation script.
The script sending module 820 is configured to send the automation script to the mobile terminal, so that the mobile terminal executes the automation script to test the test case, collect performance data of the test case and/or the mobile terminal in a process of executing the automation script, and obtain a performance test report of the test case according to the performance data.
In summary, in the automated testing apparatus provided in this embodiment, the testing terminal generates the automation script by recording the test case, and sends the automation script to the mobile terminal; the mobile terminal executes the automation script to test the test case, collects the performance data of the test case and/or the mobile terminal in the process of executing the automation script, and obtains a performance test report form of the test case according to the performance data; the problem that the performance quality of the application program cannot be fully ensured because the test of the application program in the prior art still stays in the test of the basic event response aspect is solved; the method and the device achieve the effects of automatically collecting and analyzing performance data in the testing stage of the application program, not only saving the labor cost, but also fully ensuring the performance quality of the application program.
Referring to fig. 9, a block diagram of an automated test system according to an embodiment of the present invention is shown, where the automated test system includes a mobile terminal 700 and a test terminal 800.
The mobile terminal 700 may include an automated testing device, which may be implemented in software, hardware, or a combination of both. This automatic change testing arrangement includes: a script receiving module 702, a script executing module 710, a data collecting module 720 and a report obtaining module 730.
A script receiving module 702, configured to receive the automation script sent by the test terminal.
And the script execution module 710 is used for executing the automation script to test the test case.
Specifically, the script execution module 710 includes: an information reading unit 710a, an event construction unit 710b, and an event response unit 710 c.
The information reading unit 710a is configured to read event information in the automation script, where the automation script includes the event information of at least one operation event, and the event information is obtained from the operation event by capturing the operation event after the operation event is triggered by the test terminal.
The event constructing unit 710b is configured to obtain the operation event according to the event information.
The event response unit 710c is configured to send the operation event to a custom object, where the custom object is configured to transmit the operation event to a response object through an event response chain to perform an event response.
And a data collection module 720, configured to collect the test case and/or the performance data of the mobile terminal during the process of executing the automation script.
Specifically, the data acquisition module 720 includes: the first acquisition unit 720a, and/or the second acquisition unit 720 b.
The first collecting unit 720a is configured to collect, within a predetermined time interval, first type performance data of at least one operation event in the test case, where the first type performance data includes at least one of a duration, an electric quantity, a network traffic, and an average display frame rate of the mobile terminal during a test process, which are consumed by the at least one operation event in the test case from triggering to responding.
And/or the presence of a gas in the gas,
the second collecting unit 720b is configured to obtain second type performance data at a predetermined time by sampling, where the second type performance data includes at least one of CPU occupancy and memory occupancy of a central processing unit of the mobile terminal.
The report obtaining module 730 is configured to obtain a performance test report of the test case according to the performance data.
Specifically, the report obtaining module 730 includes: an opposite terminal generating unit 730 a; alternatively, the data analysis unit 730b and the data transmission unit 730 c; or, the data analysis unit 730b and the report generation unit 730 d.
The opposite end generating unit 730a is configured to send the performance data to a test terminal, so that the test terminal analyzes the performance data to obtain a performance data analysis result, and generates a performance test report of the test case according to the performance data analysis result.
Or,
the data analysis unit 730b is configured to analyze the performance data to obtain a performance data analysis result; the data sending unit 730c is configured to send the performance data analysis result to a test terminal, so that the test terminal generates a performance test report of the test case according to the performance data analysis result.
Or,
the data analysis unit 730b is configured to analyze the performance data to obtain a performance data analysis result; the report generating unit 730d is configured to generate a performance test report of the test case according to the performance data analysis result.
Specifically, the data analysis unit 730b includes: data statistics subunit 730b 1; and/or, lateral contrast subunit 730b 2; and/or, longitudinal contrast subunit 730b 3; and/or data alarm subunit 730b 4.
The data statistics subunit 730b1 is configured to perform statistics on the performance data to obtain a statistical result of the performance data.
The transverse comparison subunit 730b2 is configured to perform transverse comparison on the different types of performance data to obtain a transverse comparison result of the performance data.
The longitudinal comparison subunit 730b3 is configured to perform longitudinal comparison on the performance data of the same category to obtain a longitudinal comparison result of the performance data.
And the data alarm subunit 730b4 is configured to compare the performance data with a preset alarm threshold to obtain an alarm result of the performance data.
The test terminal 800 may include automated test equipment, which may be implemented in software, hardware, or a combination of both. This automatic change testing arrangement includes: a script generating module 810 and a script sending module 820.
And the script generating module 810 is used for recording the test case generation automation script.
Specifically, the script generating module 810 includes: an event capturing unit 810a, an information acquiring unit 810b, and an information holding unit 810 c.
The event capturing unit 810a is configured to capture an operation event in the test case after the operation event is triggered.
Specifically, the event capturing unit 810a includes: a function hooking subunit 810a1, a function adding subunit 810a2, and an event capturing subunit 810a 3.
The function hooking subunit 810a1 is configured to acquire, through a Hook function Hook, an event forwarding function of an event receiving object of the operation event.
The function adding subunit 810a2 is configured to add a custom event forwarding function corresponding to the event forwarding function.
The event capturing subunit 810a3, configured to capture the operation event through the custom event forwarding function.
The information obtaining unit 810b is configured to obtain event information of the operation event.
The information saving unit 810c is configured to save the event information into the automation script, so that the mobile terminal reads the event information in the automation script after receiving the automation script, constructs the operation event according to the event information, and sends the operation event to a custom object, where the custom object is used to transmit the operation event to a response object through an event response chain for event response.
Wherein the test case contains at least one of the operation events.
The script generating module 810 further includes: event retransmission unit 810 d.
The event resending unit 810d is configured to resend the operation event to an event forwarding function of the event receiving object of the operation event, where the event forwarding function is used to transmit the operation event to a response object through an event response chain to perform an event response.
The script sending module 820 is configured to send the automation script to the mobile terminal, so that the mobile terminal executes the automation script to test the test case, collect performance data of the test case and/or the mobile terminal in a process of executing the automation script, and obtain a performance test report of the test case according to the performance data.
In addition, this automatic testing arrangement still includes: a data receiving module 830, a data analyzing module 840 and a report generating module 850; or the result acquiring module 848 and the report generating module 850.
The data receiving module 830 is configured to receive the performance data sent by the mobile terminal.
The data analysis module 840 is configured to analyze the performance data to obtain a performance data analysis result.
Specifically, the data analysis module 840 includes: a first analysis unit 840 a; and/or, a second analysis unit 840 b; and/or, a third analysis unit 840 c; and/or a fourth analyzing unit 840 d.
The first analyzing unit 840a is configured to perform statistics on the performance data to obtain a statistical result of the performance data.
The second analysis unit 840b is configured to perform lateral comparison on the different types of performance data to obtain a lateral comparison result of the performance data.
The third analyzing unit 840c is configured to perform longitudinal comparison on the performance data of the same category to obtain a longitudinal comparison result of the performance data.
The fourth analyzing unit 840d is configured to compare the performance data with a preset alarm threshold to obtain an alarm result of the performance data.
The report generation module 850 is configured to generate a performance test report of the test case according to the performance data analysis result.
Or,
the result obtaining module 848 is configured to receive a performance data analysis result sent by the mobile terminal, where the performance data analysis result is obtained by analyzing the performance data by the mobile terminal.
The report generation module 850 is configured to generate a performance test report of the test case according to the performance data analysis result.
In summary, the automated testing system provided in this embodiment records the test case through the testing terminal to generate the automated script, and sends the automated script to the mobile terminal; the mobile terminal executes the automation script to test the test case, and in the process of executing the automation script, the mobile terminal collects the performance data of the test case and/or the mobile terminal and obtains a performance test report form of the test case according to the performance data; the problem that the performance quality of the application program cannot be fully ensured because the test of the application program in the prior art still stays in the test of the basic event response aspect is solved; the method and the device achieve the effects of automatically collecting and analyzing performance data in the testing stage of the application program, not only saving the labor cost, but also fully ensuring the performance quality of the application program.
In the automated testing system provided by this embodiment, in the process of executing the automated script, the mobile terminal further sends the constructed operation event to the added custom object, and the custom object transmits the operation event to the response object through the event response chain to perform event response, thereby completing the automated testing; the process from triggering to responding of the operation event is restored in the test process, and the test accuracy and the precision of the acquired performance data are improved.
It should be noted that: in the above embodiment, when performing an automatic test, the automatic test apparatus and the automatic test system are only illustrated by the division of the functional modules, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the above described functions. In addition, the automatic testing device and system provided by the above embodiments and the method embodiments of the automatic testing method belong to the same concept, and the specific implementation process thereof is described in detail in the method embodiments and will not be described herein again.
Referring to fig. 10, a schematic structural diagram of a mobile terminal according to an embodiment of the present invention is shown, where the mobile terminal may be used to implement the automated testing method at the mobile terminal side provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the mobile terminal 1000 may include RF (Radio Frequency) circuitry 1010, memory 1020 including one or more computer-readable storage media, an input unit 1030, a display unit 1040, a sensor 1050, audio circuitry 1060, a WiFi (wireless fidelity) module 1070, a processor 1080 including one or more processing cores, and a power supply 1090. Those skilled in the art will appreciate that the terminal structure shown in fig. 10 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
RF circuit 1010 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information from a base station and then processing the received downlink information by one or more processors 1080; in addition, data relating to uplink is transmitted to the base station. In general, RF circuitry 1010 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 1010 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
The memory 1020 may be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal 1000, and the like. Further, the memory 1020 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 1020 may also include a memory controller to provide access to memory 1020 by processor 1080 and input unit 1030.
The input unit 1030 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit 1030 may include an image input device 1031 and other input devices 1032. The image input device 1031 may be a camera or a photoelectric scanning device. The input unit 1030 may include other input devices 1032 in addition to the image input device 1031. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, or the like.
The display unit 1040 may be used to display information input by or provided to a user and various graphical user interfaces of the mobile terminal 1000, which may be comprised of graphics, text, icons, video, and any combination thereof. The display unit 1040 may include a display panel 1041, and optionally, the display panel 1041 may be configured in the form of an LCD (Liquid crystal display), an OLED (Organic Light-Emitting Diode), or the like.
The mobile terminal 1000 can also include at least one sensor 1050, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 1041 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1041 and/or a backlight when the mobile terminal 1000 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1000, detailed descriptions thereof are omitted.
Audio circuitry 1060, speaker 1061, and microphone 1062 may provide an audio interface between a user and mobile terminal 1000. The audio circuit 1060 can transmit the electrical signal converted from the received audio data to the speaker 1061, and the electrical signal is converted into a sound signal by the speaker 1061 and output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and converted into audio data, which is then processed by the audio data output processor 1080 and then transmitted to, for example, another terminal via the RF circuit 1010, or output to the memory 1020 for further processing. The audio circuit 1060 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1000.
WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal 1000 can help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 1070, and provides the user with wireless broadband internet access. Although fig. 10 shows the WiFi module 1070, it is understood that it does not belong to the essential constitution of the mobile terminal 1000, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1080 is a control center of the mobile terminal 1000, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1000 and processes data by operating or executing software programs and/or modules stored in the memory 1020 and calling data stored in the memory 1020, thereby integrally monitoring the mobile phone. Optionally, processor 1080 may include one or more processing cores; preferably, the processor 1080 may integrate an application processor, which handles primarily the operating system, user interfaces, applications, etc., and a modem processor, which handles primarily the wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1080.
The mobile terminal 1000 may also include a power supply 1090 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 1080 via a power management system that may enable managing charging, discharging, and power consumption. Power supply 1090 may also include any component including one or more DC or AC power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 1000 may further include a bluetooth module or the like, which is not described in detail herein. In this embodiment, the terminal further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for:
executing the automation script to test the test case;
collecting the performance data of the test case and/or the mobile terminal in the process of executing the automation script;
and obtaining a performance test report form of the test case according to the performance data.
Assuming that the foregoing is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the mobile terminal further includes instructions for performing the following operations:
reading event information in the automation script, wherein the automation script comprises the event information of at least one operation event, and the event information is obtained from the operation event by capturing the operation event after the operation event is triggered by a test terminal;
constructing and obtaining the operation event according to the event information;
and sending the operation event to a custom object, wherein the custom object is used for transmitting the operation event to a response object through an event response chain for carrying out event response.
In a third possible implementation manner provided as the basis of the second possible implementation manner, the memory of the mobile terminal further includes instructions for performing the following operations:
and receiving the automation script sent by the test terminal.
In a fourth possible implementation manner provided on the basis of any one of the first to third possible implementation manners, the memory of the mobile terminal further includes instructions for performing the following operations:
collecting first-class performance data of at least one operation event in the test case within a preset time interval, wherein the first-class performance data comprises at least one of time length, electric quantity, network flow and average display frame rate of the mobile terminal in the test process, which are consumed by the at least one operation event in the test case from triggering to responding;
and/or the presence of a gas in the gas,
and sampling at a preset time to obtain second-class performance data, wherein the second-class performance data comprises at least one of CPU occupancy rate and memory occupation of a central processing unit of the mobile terminal.
In a fifth possible implementation manner provided on the basis of any one of the first to third possible implementation manners, the memory of the mobile terminal further includes instructions for performing the following operations:
sending the performance data to a test terminal so that the test terminal can analyze the performance data to obtain a performance data analysis result, and generating a performance test report of the test case according to the performance data analysis result;
or,
analyzing the performance data to obtain a performance data analysis result; sending the performance data analysis result to a test terminal so that the test terminal can generate a performance test report of the test case according to the performance data analysis result;
or,
analyzing the performance data to obtain a performance data analysis result; and generating a performance test report of the test case according to the performance data analysis result.
In a sixth possible implementation manner provided as the basis of the fifth possible implementation manner, the memory of the mobile terminal further includes instructions for performing the following operations:
counting the performance data to obtain a statistical result of the performance data; and/or the presence of a gas in the gas,
performing transverse comparison on the performance data of different types to obtain a transverse comparison result of the performance data; and/or the presence of a gas in the gas,
longitudinally comparing the performance data of the same type to obtain a longitudinal comparison result of the performance data; and/or the presence of a gas in the gas,
and comparing the performance data with a preset alarm threshold value to obtain an alarm result of the performance data.
In summary, the mobile terminal provided in this embodiment tests the test case by executing the automation script, collects performance data of the test case and/or the mobile terminal during the process of executing the automation script, and obtains a performance test report of the test case according to the performance data; the problem that the performance quality of the application program cannot be fully ensured because the test of the application program in the prior art still stays in the test of the basic event response aspect is solved; the method and the device achieve the effects of automatically collecting and analyzing performance data in the testing stage of the application program, not only saving the labor cost, but also fully ensuring the performance quality of the application program.
Referring to fig. 11, a schematic structural diagram of a test terminal according to an embodiment of the present invention is shown, where the test terminal may be used to implement the automatic test method on the test terminal side provided in the foregoing embodiment. The test terminal 1100 includes a Central Processing Unit (CPU)1101, a system memory 1104 including a Random Access Memory (RAM)1102 and a Read Only Memory (ROM)1103, and a system bus 1105 connecting the system memory 1104 and the central processing unit 1101. The test terminal 1100 also includes a basic input/output system (I/O system) 1106, which facilitates transfer of information between devices within the computer, and a mass storage device 1107 for storing an operating system 1113, application programs 1114 and other program modules 1115.
The basic input/output system 1106 includes a display 1108 for displaying information and an input device 1109 such as a mouse, keyboard, etc. for user input of information. Wherein the display 1108 and input device 1109 are connected to the central processing unit 1101 through an input/output controller 1110 connected to a system bus 1105. The basic input/output system 1106 may also include an input/output controller 1110 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input/output controller 1110 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1107 is connected to the central processing unit 1101 through a mass storage controller (not shown) that is connected to the system bus 1105. The mass storage device 1107 and its associated computer-readable media provide non-volatile storage for the test terminal 1100. That is, the mass storage device 1107 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1104 and mass storage device 1107 described above may be collectively referred to as memory.
The test terminal 1100 may also operate as a remote computer connected to a network via a network, such as the internet, in accordance with various embodiments of the present invention. That is, the test terminal 1100 may connect to the network 1112 through the network interface unit 1111 connected to the system bus 1105, or may connect to another type of network or remote computer system (not shown) using the network interface unit 1111.
The memory also includes one or more programs stored in the memory and configured to be executed by the one or more central processing units 1101. The one or more programs include instructions for:
recording a test case generation automation script;
and sending the automation script to a mobile terminal so that the mobile terminal executes the automation script to test the test case, acquiring performance data of the test case and/or the mobile terminal in the process of executing the automation script, and obtaining a performance test report form of the test case according to the performance data.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the test terminal further includes instructions for performing the following operations:
capturing the operation event after the operation event in the test case is triggered;
acquiring event information of the operation event;
storing the event information into the automation script, wherein the event information is used for reading the event information in the automation script after a mobile terminal receives the automation script, constructing the operation event according to the event information, and sending the operation event to a user-defined object, and the user-defined object is used for transmitting the operation event to a response object through an event response chain for event response;
wherein the test case contains at least one of the operation events.
In a third possible implementation manner provided as a basis for the second possible implementation manner, the memory of the test terminal further includes instructions for performing the following operations:
acquiring an event forwarding function of an event receiving object of the operation event through a Hook function Hook;
adding a self-defined event forwarding function corresponding to the event forwarding function;
and capturing the operation event through the custom event forwarding function.
In a fourth possible implementation manner provided as a basis for the third possible implementation manner, the memory of the test terminal further includes instructions for performing the following operations:
and retransmitting the operation event to an event forwarding function of the event receiving object of the operation event, wherein the event forwarding function is used for transmitting the operation event to a response object through an event response chain to perform event response.
In a fifth possible implementation manner provided on the basis of any one of the first to fourth possible implementation manners, the memory of the test terminal further includes instructions for performing the following operations:
receiving performance data sent by the mobile terminal; analyzing the performance data to obtain a performance data analysis result; generating a performance test report of the test case according to the performance data analysis result;
or,
receiving a performance data analysis result sent by the mobile terminal, wherein the performance data analysis result is obtained after the mobile terminal analyzes the performance data; and generating a performance test report of the test case according to the performance data analysis result.
In a sixth possible implementation manner provided as the basis of the fifth possible implementation manner, the memory of the test terminal further includes instructions for performing the following operations:
counting the performance data to obtain a statistical result of the performance data; and/or the presence of a gas in the gas,
performing transverse comparison on the performance data of different types to obtain a transverse comparison result of the performance data; and/or the presence of a gas in the gas,
longitudinally comparing the performance data of the same type to obtain a longitudinal comparison result of the performance data; and/or the presence of a gas in the gas,
and comparing the performance data with a preset alarm threshold value to obtain an alarm result of the performance data.
In summary, the test terminal provided in this embodiment generates the automation script by recording the test case, and sends the automation script to the mobile terminal; the mobile terminal executes the automation script to test the test case, collects the performance data of the test case and/or the mobile terminal in the process of executing the automation script, and obtains a performance test report form of the test case according to the performance data; the problem that the performance quality of the application program cannot be fully ensured because the test of the application program in the prior art still stays in the test of the basic event response aspect is solved; the method and the device achieve the effects of automatically collecting and analyzing performance data in the testing stage of the application program, not only saving the labor cost, but also fully ensuring the performance quality of the application program.
It should be understood that, as used herein, the singular forms "a," "an," "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (23)
1. An automated testing method used in a mobile terminal, the method comprising:
executing the automation script to test the test case;
collecting the performance data of the test case and/or the mobile terminal in the process of executing the automation script;
obtaining a performance test report form of the test case according to the performance data;
wherein, the executing automation script tests the test case, including:
reading event information in the automation script, wherein the automation script comprises event information of at least one operation event, and the event information of the operation event comprises a coordinate position corresponding to the operation event and an action corresponding to the operation event;
constructing and obtaining the operation event according to the event information;
and sending the operation event to a custom object, wherein the custom object is used for transmitting the operation event to a response object through an event response chain for carrying out event response.
2. The method of claim 1, wherein before the executing the automation script tests the test case, further comprising:
and receiving the automation script sent by the test terminal.
3. The method according to claim 1 or 2, wherein collecting the performance data of the test case and/or the mobile terminal during the execution of the automation script comprises:
collecting first-class performance data of at least one operation event in the test case within a preset time interval, wherein the first-class performance data comprises at least one of time length, electric quantity, network flow and average display frame rate of the mobile terminal in the test process, which are consumed by the at least one operation event in the test case from triggering to responding;
and/or the presence of a gas in the gas,
and sampling at a preset time to obtain second-class performance data, wherein the second-class performance data comprises at least one of CPU occupancy rate and memory occupation of a central processing unit of the mobile terminal.
4. The method according to claim 1 or 2, wherein the obtaining a performance test report of the test case according to the performance data comprises:
sending the performance data to a test terminal so that the test terminal can analyze the performance data to obtain a performance data analysis result, and generating a performance test report of the test case according to the performance data analysis result;
or,
analyzing the performance data to obtain a performance data analysis result; sending the performance data analysis result to a test terminal so that the test terminal can generate a performance test report of the test case according to the performance data analysis result;
or,
analyzing the performance data to obtain a performance data analysis result; and generating a performance test report of the test case according to the performance data analysis result.
5. The method of claim 4, wherein analyzing the performance data to obtain a performance data analysis result comprises:
counting the performance data to obtain a statistical result of the performance data; and/or the presence of a gas in the gas,
performing transverse comparison on the performance data of different types to obtain a transverse comparison result of the performance data; and/or the presence of a gas in the gas,
longitudinally comparing the performance data of the same type to obtain a longitudinal comparison result of the performance data; and/or the presence of a gas in the gas,
and comparing the performance data with a preset alarm threshold value to obtain an alarm result of the performance data.
6. An automated testing method for use in a test terminal, the method comprising:
recording a test case generation automation script;
sending the automation script to a mobile terminal so that the mobile terminal can execute the automation script to test the test case, acquiring performance data of the test case and/or the mobile terminal in the process of executing the automation script, and obtaining a performance test report form of the test case according to the performance data;
wherein, the recording of the test case generation automation script comprises:
capturing the operation event after the operation event in the test case is triggered;
acquiring event information of the operation event, wherein the event information of the operation event comprises a coordinate position corresponding to the operation event and an action corresponding to the operation event;
storing the event information into the automation script, wherein the event information is used for reading the event information in the automation script after a mobile terminal receives the automation script, constructing the operation event according to the event information, and sending the operation event to a user-defined object, and the user-defined object is used for transmitting the operation event to a response object through an event response chain for event response;
wherein the test case contains at least one of the operation events.
7. The method of claim 6, wherein the capturing the operational event comprises:
acquiring an event forwarding function of an event receiving object of the operation event through a Hook function Hook;
adding a self-defined event forwarding function corresponding to the event forwarding function;
and capturing the operation event through the custom event forwarding function.
8. The method of claim 7, wherein after saving the event information into the automation script, further comprising:
and retransmitting the operation event to an event forwarding function of the event receiving object of the operation event, wherein the event forwarding function is used for transmitting the operation event to a response object through an event response chain to perform event response.
9. The method according to any one of claims 6 to 8, wherein after sending the automation script to the mobile terminal, the method further comprises:
receiving performance data sent by the mobile terminal; analyzing the performance data to obtain a performance data analysis result; generating a performance test report of the test case according to the performance data analysis result;
or,
receiving a performance data analysis result sent by the mobile terminal, wherein the performance data analysis result is obtained after the mobile terminal analyzes the performance data; and generating a performance test report of the test case according to the performance data analysis result.
10. The method of claim 9, wherein analyzing the performance data to obtain a performance data analysis result comprises:
counting the performance data to obtain a statistical result of the performance data; and/or the presence of a gas in the gas,
performing transverse comparison on the performance data of different types to obtain a transverse comparison result of the performance data; and/or the presence of a gas in the gas,
longitudinally comparing the performance data of the same type to obtain a longitudinal comparison result of the performance data; and/or the presence of a gas in the gas,
and comparing the performance data with a preset alarm threshold value to obtain an alarm result of the performance data.
11. An automated testing apparatus for use in a mobile terminal, the apparatus comprising:
the script execution module is used for executing the automatic script to test the test case;
the data acquisition module is used for acquiring the performance data of the test case and/or the mobile terminal in the process of executing the automation script;
the report acquisition module is used for acquiring a performance test report of the test case according to the performance data;
wherein, the script execution module comprises: the device comprises an information reading unit, an event construction unit and an event response unit;
the information reading unit is used for reading event information in the automation script, the automation script comprises event information of at least one operation event, and the event information of the operation event comprises a coordinate position corresponding to the operation event and an action corresponding to the operation event;
the event construction unit is used for constructing and obtaining the operation event according to the event information;
and the event response unit is used for sending the operation event to a custom object, and the custom object is used for transmitting the operation event to a response object through an event response chain to perform event response.
12. The apparatus of claim 11, further comprising:
and the script receiving module is used for receiving the automatic script sent by the test terminal.
13. The apparatus of claim 11 or 12, wherein the data acquisition module comprises: the first acquisition unit and/or the second acquisition unit;
the first acquisition unit is used for acquiring first-class performance data of at least one operation event in the test case within a preset time interval, wherein the first-class performance data comprises at least one of time length, electric quantity, network flow and average display frame rate of the mobile terminal in the test process, wherein the time length, the electric quantity and the network flow are consumed from triggering to responding of the at least one operation event in the test case;
and/or the presence of a gas in the gas,
the second acquisition unit is used for acquiring second-type performance data at a preset time in a sampling mode, wherein the second-type performance data comprises at least one of the CPU occupancy rate and the memory occupation rate of the mobile terminal.
14. The apparatus according to claim 11 or 12, wherein the report obtaining module comprises: an opposite terminal generating unit; or, a data analysis unit and a data transmission unit; or, the data analysis unit and the report generation unit;
the opposite terminal generating unit is used for sending the performance data to a test terminal so that the test terminal can analyze the performance data to obtain a performance data analysis result, and generating a performance test report of the test case according to the performance data analysis result;
or,
the data analysis unit is used for analyzing the performance data to obtain a performance data analysis result; the data sending unit is used for sending the performance data analysis result to a test terminal so that the test terminal can generate a performance test report of the test case according to the performance data analysis result;
or,
the data analysis unit is used for analyzing the performance data to obtain a performance data analysis result; and the report generation unit is used for generating a performance test report of the test case according to the performance data analysis result.
15. The apparatus of claim 14, wherein the data analysis unit comprises: a data statistics subunit; and/or, a lateral contrast subunit; and/or, a longitudinal contrast subunit; and/or, a data alarm subunit;
the data statistics subunit is configured to perform statistics on the performance data to obtain a statistical result of the performance data; and/or the presence of a gas in the gas,
the transverse comparison subunit is configured to perform transverse comparison on the different types of performance data to obtain a transverse comparison result of the performance data; and/or the presence of a gas in the gas,
the longitudinal comparison subunit is configured to perform longitudinal comparison on the performance data of the same type to obtain a longitudinal comparison result of the performance data; and/or the presence of a gas in the gas,
and the data alarm subunit is used for comparing the performance data with a preset alarm threshold value to obtain an alarm result of the performance data.
16. An automated test apparatus for use in a test terminal, the apparatus comprising:
the script generation module is used for recording a test case generation automation script;
the script sending module is used for sending the automation script to a mobile terminal so that the mobile terminal can execute the automation script to test the test case, in the process of executing the automation script, the performance data of the test case and/or the mobile terminal is collected, and a performance test report form of the test case is obtained according to the performance data;
wherein the script generation module comprises: the system comprises an event capturing unit, an information acquiring unit and an information storing unit;
the event capturing unit is used for capturing the operation event after the operation event in the test case is triggered;
the information acquisition unit is used for acquiring event information of the operation event, wherein the event information of the operation event comprises a coordinate position corresponding to the operation event and an action corresponding to the operation event;
the information saving unit is used for saving the event information into the automation script, the event information is used for reading the event information in the automation script after the mobile terminal receives the automation script, constructing the operation event according to the event information, and sending the operation event to a user-defined object, and the user-defined object is used for transmitting the operation event to a response object through an event response chain for event response;
wherein the test case contains at least one of the operation events.
17. The apparatus of claim 16, wherein the event capture unit comprises: the device comprises a function hooking subunit, a function adding subunit and an event capturing subunit;
the function hooking subunit is configured to acquire, through a Hook function Hook, an event forwarding function of an event receiving object of the operation event;
the function adding subunit is configured to add a custom event forwarding function corresponding to the event forwarding function;
and the event capturing subunit captures the operation event through the custom event forwarding function.
18. The apparatus of claim 17, wherein the script generation module further comprises: an event retransmission unit;
the event retransmitting unit is configured to retransmit the operation event to an event forwarding function of the event receiving object of the operation event, where the event forwarding function is configured to transmit the operation event to a response object through an event response chain to perform an event response.
19. The apparatus of any one of claims 16 to 18, further comprising: the system comprises a data receiving module, a data analysis module and a report generation module; or, the result acquisition module and the report generation module;
the data receiving module is used for receiving the performance data sent by the mobile terminal; the data analysis module is used for analyzing the performance data to obtain a performance data analysis result; the report generation module is used for generating a performance test report of the test case according to the performance data analysis result;
or,
the result obtaining module is used for receiving a performance data analysis result sent by the mobile terminal, wherein the performance data analysis result is obtained after the mobile terminal analyzes the performance data; and the report generation module is used for generating a performance test report of the test case according to the performance data analysis result.
20. The apparatus of claim 19, wherein the data analysis module comprises: a first analysis unit; and/or, a second analysis unit; and/or, a third analysis unit; and/or, a fourth analysis unit;
the first analysis unit is used for counting the performance data to obtain a statistical result of the performance data; and/or the presence of a gas in the gas,
the second analysis unit is used for carrying out transverse comparison on the performance data of different types to obtain a transverse comparison result of the performance data; and/or the presence of a gas in the gas,
the third analysis unit is used for longitudinally comparing the performance data of the same type to obtain a longitudinal comparison result of the performance data; and/or the presence of a gas in the gas,
and the fourth analysis unit is used for comparing the performance data with a preset alarm threshold value to obtain an alarm result of the performance data.
21. A mobile terminal, characterized in that it comprises an automated testing apparatus according to any one of claims 11 to 15.
22. A test terminal, characterized in that it comprises an automated test equipment according to any one of claims 16 to 20.
23. An automated test system, the system comprising: the system comprises a mobile terminal and a test terminal;
the mobile terminal is a mobile terminal according to claim 21;
the test terminal is a test terminal according to claim 22.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310661617.3A CN104699598B (en) | 2013-12-09 | 2013-12-09 | Automated testing method, device, equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310661617.3A CN104699598B (en) | 2013-12-09 | 2013-12-09 | Automated testing method, device, equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104699598A CN104699598A (en) | 2015-06-10 |
CN104699598B true CN104699598B (en) | 2017-09-29 |
Family
ID=53346753
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310661617.3A Active CN104699598B (en) | 2013-12-09 | 2013-12-09 | Automated testing method, device, equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104699598B (en) |
Families Citing this family (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294116A (en) * | 2015-06-11 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Record and the methods, devices and systems of reproduction process process |
CN105243007B (en) * | 2015-10-13 | 2018-09-11 | 广东欧珀移动通信有限公司 | The ageing testing method and device of memory in mobile terminal |
CN105446854B (en) * | 2015-11-09 | 2018-03-20 | 小米科技有限责任公司 | Consumption detection method, system and terminal |
CN105450818B (en) * | 2015-11-11 | 2018-06-29 | 中国联合网络通信集团有限公司 | mobile terminal power consumption current measuring method and device |
CN106911826A (en) * | 2015-12-23 | 2017-06-30 | 联芯科技有限公司 | The automation power consumption test method and system of a kind of terminal |
CN105550117B (en) * | 2016-01-22 | 2018-03-02 | 上海斐讯数据通信技术有限公司 | A kind of method and mobile terminal of test application program operation frame per second |
CN106547665A (en) * | 2016-11-14 | 2017-03-29 | 合网络技术(北京)有限公司 | For the Performance Test System and method of advertising business |
CN106844883A (en) * | 2016-12-29 | 2017-06-13 | 北京华大九天软件有限公司 | It is a kind of that the method that interface is tested automatically is carried out by script |
CN108415820B (en) * | 2017-02-09 | 2021-05-14 | 腾讯科技(深圳)有限公司 | Test method and device of application installation package |
CN107193735A (en) * | 2017-05-17 | 2017-09-22 | 武汉联影医疗科技有限公司 | Method for testing software and system |
CN108287790A (en) * | 2017-12-29 | 2018-07-17 | 五八有限公司 | Application program capacity test method, device and the electronic equipment of terminal |
CN108255687A (en) * | 2017-12-29 | 2018-07-06 | 五八同城信息技术有限公司 | Application program internal memory monitoring test method, device and the electronic equipment of terminal |
CN109344077A (en) * | 2018-10-24 | 2019-02-15 | 郑州云海信息技术有限公司 | RestAPI characteristic test method, device, equipment and storage medium |
CN109582585A (en) * | 2018-12-18 | 2019-04-05 | 网宿科技股份有限公司 | A kind of method and apparatus of detection application traffic leakage |
CN110232013B (en) * | 2019-02-25 | 2022-09-06 | 上海蔚来汽车有限公司 | Test method, test device, controller and medium |
CN110022244B (en) * | 2019-04-03 | 2020-08-28 | 北京字节跳动网络技术有限公司 | Method and apparatus for transmitting information |
CN112180890B (en) * | 2019-07-05 | 2022-01-07 | 北京新能源汽车股份有限公司 | Test case generation method, device and equipment |
CN110502414B (en) * | 2019-08-20 | 2023-08-29 | Oppo广东移动通信有限公司 | Terminal equipment performance test method and device, terminal equipment and storage medium |
CN111061647A (en) * | 2019-12-26 | 2020-04-24 | 行吟信息科技(上海)有限公司 | Software performance automatic testing method and device and electronic equipment |
CN111208989A (en) * | 2019-12-27 | 2020-05-29 | 江苏南高智能装备创新中心有限公司 | Data acquisition terminal capable of executing script |
CN111106983B (en) * | 2019-12-27 | 2021-09-21 | 杭州迪普科技股份有限公司 | Method and device for detecting network connectivity |
CN115051730B (en) * | 2022-06-06 | 2024-07-12 | 重庆金美通信有限责任公司 | Automatic testing device and method for wired network transmission equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212755A (en) * | 2006-12-27 | 2008-07-02 | 上海晨兴电子科技有限公司 | System for automatic limit testing of mobile telephone |
CN102708049A (en) * | 2012-04-21 | 2012-10-03 | 北京迈凯互动网络科技有限公司 | Method and system for recording and replaying test results of mobile application |
CN103425574A (en) * | 2012-05-25 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Method and device for testing applications |
CN103425577A (en) * | 2012-05-25 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Test method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6734898B2 (en) * | 2001-04-17 | 2004-05-11 | General Instrument Corporation | Methods and apparatus for the measurement of video quality |
-
2013
- 2013-12-09 CN CN201310661617.3A patent/CN104699598B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212755A (en) * | 2006-12-27 | 2008-07-02 | 上海晨兴电子科技有限公司 | System for automatic limit testing of mobile telephone |
CN102708049A (en) * | 2012-04-21 | 2012-10-03 | 北京迈凯互动网络科技有限公司 | Method and system for recording and replaying test results of mobile application |
CN103425574A (en) * | 2012-05-25 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Method and device for testing applications |
CN103425577A (en) * | 2012-05-25 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Test method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104699598A (en) | 2015-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104699598B (en) | Automated testing method, device, equipment and system | |
CN108959000B (en) | Server pressure testing method, system and terminal | |
CN106453767B (en) | Fall rear fault detection method and device | |
CN111176960B (en) | User operation behavior tracking method, device, equipment and storage medium | |
CN107273263B (en) | Abnormal operation analysis method, application terminal and monitoring server | |
CN106302996B (en) | Message display method and device | |
US10146658B2 (en) | User device power consumption monitoring and analysis | |
WO2015081801A1 (en) | Method, server, and system for information push | |
CN104516812A (en) | Method and device for testing software | |
CN106294108B (en) | Application program testing method and device | |
CN112148579B (en) | User interface testing method and device | |
CN108810057B (en) | User behavior data acquisition method and device and storage medium | |
CN112540996B (en) | Service data verification method and device, electronic equipment and storage medium | |
CN110163051B (en) | Text extraction method, device and storage medium | |
CN107391518A (en) | Count system, the method and device of page load performance information | |
CN104423822A (en) | Automated test script recording method and device | |
CN109246233A (en) | Data processing method, device, equipment and storage medium based on on-line monitoring | |
CN116069791A (en) | Data processing method and device and computer equipment | |
CN108984374B (en) | Method and system for testing database performance | |
CN115904950A (en) | Test case generation method, device, equipment and storage medium | |
CN107491349B (en) | Applied program processing method and device, computer equipment, storage medium | |
CN112711516A (en) | Data processing method and related device | |
EP3304249B1 (en) | User device power consumption monitoring and analysis | |
CN108932264A (en) | The determination method, apparatus and storage medium of navigation problem | |
CN108269223B (en) | Webpage graph drawing method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210915 Address after: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd. Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. |
|
TR01 | Transfer of patent right |