CN110569184A - test method and terminal equipment - Google Patents

test method and terminal equipment Download PDF

Info

Publication number
CN110569184A
CN110569184A CN201910705205.2A CN201910705205A CN110569184A CN 110569184 A CN110569184 A CN 110569184A CN 201910705205 A CN201910705205 A CN 201910705205A CN 110569184 A CN110569184 A CN 110569184A
Authority
CN
China
Prior art keywords
test
video
event
test event
fault
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.)
Granted
Application number
CN201910705205.2A
Other languages
Chinese (zh)
Other versions
CN110569184B (en
Inventor
唐勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Xiaoyu Small Loan Co Ltd
Original Assignee
Chongqing Xiaoyu Small Loan Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Chongqing Xiaoyu Small Loan Co Ltd filed Critical Chongqing Xiaoyu Small Loan Co Ltd
Priority to CN201910705205.2A priority Critical patent/CN110569184B/en
Publication of CN110569184A publication Critical patent/CN110569184A/en
Application granted granted Critical
Publication of CN110569184B publication Critical patent/CN110569184B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The application discloses a test method and terminal equipment, wherein the test method comprises the following steps: in the process of testing a test object, acquiring characteristic information of at least one test event generated aiming at the test object; generating a first video according to the characteristic information of at least one test event; acquiring a fault time point of a test object recorded in a test log; generating a second video according to the fault time point and the first video; and determining a target test event causing the fault of the test object from at least one test event according to the second video. Therefore, the target test event obtained by the method is the reason for the fault of the test object, so that the test fault can be automatically checked.

Description

Test method and terminal equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a test method and a terminal device.
Background
applications, systems and the like on the terminal equipment may fail due to system abnormality or other reasons during use. In this regard, the terminal device may send a random test instruction to the application program or the system to simulate an operation instruction sent by a user, so as to test the stability of the application program, the system, and the like on the terminal device in the actual use process. Although the stability of the terminal equipment can be tested by the method, the reason why the application program, the system and the like on the terminal equipment have faults cannot be determined.
At present, the cause of the fault is determined by adopting a manual repetitive test mode, but the fault troubleshooting method is very inefficient. In another method, a test process is recorded through a screen recording, but the screen recording only records an interface displayed by a display interface in response to an operation action, and cannot display a specific operation action. Even some operation actions do not cause interface changes, such as testing of hidden controls, etc. Therefore, the fault cannot be checked based on screen recording.
disclosure of Invention
The embodiment of the application provides a test method which can automatically check test faults.
In a first aspect, an embodiment of the present application provides a testing method, where the method includes:
In the process of testing a test object, acquiring characteristic information of at least one test event generated aiming at the test object, wherein the characteristic information comprises position information and execution time;
Generating a first video according to the characteristic information of the at least one test event;
Acquiring a fault time point of the test object recorded in a test log;
generating a second video according to the fault time point and the first video;
And determining a target test event causing the fault of the test object from the at least one test event according to the second video.
In a second aspect, an embodiment of the present application provides a terminal device, where the terminal device includes a unit configured to execute the test method of the first aspect, and the terminal device includes:
The device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring characteristic information of at least one test event generated aiming at a test object in the process of testing the test object, and the characteristic information comprises position information and execution time;
The generating unit is used for generating a first video according to the characteristic information of the at least one test event;
The acquisition unit is further configured to acquire a failure time point of the test object recorded in the test log;
The generating unit is further used for generating a second video according to the fault time point and the first video;
And the determining unit is used for determining a target test event causing the fault of the test object from the at least one test event according to the second video.
In a third aspect, an embodiment of the present application provides another terminal device, including a processor and a memory, where the processor and the memory are connected to each other, where the memory is used to store a computer program that supports the terminal device to execute the above test method, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the test method of the first aspect.
In the application, the terminal device records at least one test event generated in the test process, and generates a first video for reproducing a track of the at least one test event according to the at least one test event. And then generating a second video according to the fault time point of the fault of the test object and the first video. And finally, determining a target test event causing the fault of the test object from the at least one test event according to the second video. It can be seen that, for the test event that may cause the change of the display interface or the test event that may not cause the change of the display interface (for the operation of the hidden control), the first video and the second video can reproduce the track of the test event, which is not realized by simple screen recording. And the second video is a video clip when the test object fails, so that the test failure can be accurately positioned. Finally, the target test event which causes the fault of the test object is further determined according to the second video, so that the reason of the fault can be rapidly determined. Therefore, the test fault can be automatically checked.
drawings
in order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a schematic flow chart diagram of a testing method provided by an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram of a testing method according to another embodiment of the present application;
fig. 3 is a schematic block diagram of a terminal device provided in an embodiment of the present application;
fig. 4 is a block diagram illustrating a terminal device according to another embodiment of the present application;
Fig. 5 is an application scenario diagram of a testing method according to an embodiment of the present invention;
Fig. 6 is a schematic diagram of a first video provided by an embodiment of the present application;
fig. 7 is a schematic diagram of another first video provided by an embodiment of the present application;
fig. 8 is a schematic diagram of another first video provided in an embodiment of the present application.
Detailed Description
the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
The application mainly applies to terminal equipment which can be traditional terminal equipment, a large-scale storage system, a desktop computer, a notebook computer, a tablet computer, a palm computer, a smart phone, a portable digital player, a smart watch, a smart bracelet and the like, and the application is not limited to the terminal equipment. When the terminal equipment performs data interaction with other terminal equipment, the terminal equipment and the terminal equipment record and transmit the characteristics of the data according to a preset format, wherein the characteristics of the data comprise time, place, type and the like.
in order to test the stability of the application program, the system and the like on the terminal equipment in the actual use process, the terminal equipment can simulate an operation instruction sent by a user by sending a random test instruction to the application program or the system. If the application program or the system on the terminal equipment has a fault, a tester can interrupt the test and determine the cause of the fault through manual repeated tests. It can be seen that the fault removal efficiency of this test method is very low.
Therefore, the problem of low efficiency of the test method is solved, and another test method is provided in the embodiment of the application, so that test faults can be automatically checked to improve the efficiency of troubleshooting. In brief, the terminal device first records and obtains feature information of a test event generated in a test process and used for testing a test object. And then generating a first video according to the position information and the execution time of the test event indicated by the characteristic information, wherein the first video comprises the test track of the test event in the test process. In order to further position the fault in the test process, the terminal device first obtains the fault time point of the test object recorded in the test log, and then captures a video clip containing the process of the fault of the test event from the first video as a second video according to the fault time point. The second video reduces the query range of the fault, so that the fault of the test object can be accurately positioned. And finally, the terminal equipment determines a target test event causing the fault of the test object from the at least one test event according to the second video, so that the test fault is automatically checked.
In order to better understand the embodiment of the present invention, the method of the embodiment of the present invention for an application will be described below with reference to fig. 5, and the embodiment of the present invention may be applied to a scenario of automatically detecting an application, a system, and the like on a terminal device.
when a test object on the terminal device is tested, the terminal device can receive the operation of a user through an input device such as a touch screen or a mouse, and generate a test event aiming at the test object according to the operation of the user. The terminal equipment can also randomly generate a test event by directly utilizing a preset program so as to simulate manual operation. It is assumed that the terminal device acquires feature information of a slide event generated for the display interface shown in fig. 5, the feature information of the slide event including position information and execution time of the slide event. Then, the terminal device traces the trajectory of the slide event according to the position information and the execution time of the slide event, or acquires an animation effect of the slide operation to express the trajectory of the slide event, resulting in a trajectory video as shown in fig. 6. To this end, the track video may be used as the first video, or the track video and the text information describing the slide event may be combined to obtain the first video as shown in fig. 6. Or, the terminal device may synthesize the first video shown in fig. 6 and the screen recording video for the test object to obtain the first video shown in fig. 7 (the track video and the screen recording video are overlapped, and a blank portion of the track video does not block the screen recording video) or fig. 8 (the track video and the screen recording video are not overlapped with each other).
after the first video is obtained, the terminal equipment acquires a fault time point when the test object has a fault in the test process from the test log. And then the terminal equipment intercepts a video containing the fault time point from the first video for a preset time length to serve as a second video. After the second video is played, the tester can determine a target event causing the fault of the test object from at least one test event generated in the test process.
after the second video is obtained, the terminal device automatically determines a target test event causing the fault of the test object from at least one test event generated in the test process according to the second video. Specifically, the terminal device frames the second video into multiple frames of pictures according to the failure time point, determines a picture containing the track closest to the failure time point from the multiple frames of pictures, and takes the picture as a target picture. And then the terminal equipment acquires a test event corresponding to the target picture as a target test event causing the fault of the test object. Or the terminal device obtains a plurality of test events contained in the second video, then determines a test event with the execution time closest to the fault time point from the plurality of test events contained in the second video, and takes the determined test event as a target test event causing the fault of the test object. After the target test event is determined, a test report containing the target test event can be output.
After determining the target test event causing the failure of the test object, the terminal device may further perform deep detection on the test object based on the target test event. Specifically, the terminal device determines a preset area including a track of the target test event according to the position information of the target test event, and uses the preset area as a to-be-tested area of the test object. The area to be tested is then tested. If no fault occurs in the test process, no processing is performed. If a fault occurs in the testing process, generating a first test video according to the characteristic information of at least one test event generated aiming at the area to be tested in the testing process, wherein the first test video comprises a track of at least one test event generated aiming at the area to be tested in the testing process. And finally, determining a target test event causing the problem of the test object in the test process aiming at the area to be tested according to the second test video. The specific implementation process may refer to the process of generating the second video according to the first video and determining the target test event according to the second video, which is not described herein again.
It should be noted that the content shown in fig. 1 is an example, and does not limit the embodiment of the present invention. Because in the present application, the display interface displayed on the terminal device is different for different applications and programs.
Referring to fig. 1, which is a schematic flowchart of a testing method provided in an embodiment of the present application, the testing method shown in fig. 1 may include:
101: in the process of testing the test object, the characteristic information of at least one test event generated aiming at the test object is obtained.
In the embodiment of the application, the terminal device generates at least one test event for a test object (including an application program, a system, and the like) on the terminal device through a random test program (such as a monkey test program) to test the test object, and obtains characteristic information of the at least one test event through monitoring a service program record. The test event includes a click, a long press, a drag, a slide, a data input, and the like for the test object, and the feature information of the test event includes position information (e.g., coordinates, and the like) and an execution time (each position information corresponds to one execution time) of the test event. The principle of testing a test object by a random test program is that a step of operating the test object by a user through a touch screen or a mouse and then generating a corresponding test event according to the operation of the user is omitted, and the test event acting on the test object is directly generated.
For example, as shown in fig. 5, the terminal device generates a slide event for a certain display interface of the application program shown in fig. 5. The sliding event simulates the process of sliding the display interface from point A to point B by the user.
102: and generating a first video according to the characteristic information of the at least one test event.
In the embodiment of the present invention, the terminal device generates the first video according to the obtained feature information (including the position information and the execution time) of the at least one test event. Specifically, when the first video is generated, the trajectory of the test event may be directly drawn based on the position information of the test event, the execution time of the position information, and the like.
In an implementable manner, the feature information further includes an event type of a test event, and when the first video is generated, the event type of each test event in at least one test event is obtained first; then obtaining the animation effect corresponding to the event type of each test event; and finally, according to the sequence of the execution time of each test event, generating a first video according to the position information of each test event and the animation effect corresponding to the event type of each test event.
In order to enable the track of the test event in the first video to be more vivid and readable, the track of the test event in the first video is rendered by using an animation effect. Specifically, when the first video is generated, the animation effect corresponding to the event type of each test event is sequentially obtained according to the sequence of the execution time of each test event in at least one test event generated in the test process. And then adjusting the position of the animation effect in the display interface of the terminal equipment according to the position information of the test event, so that the track of the test event is expressed by a vivid animation effect. After rendering the trajectory of each of the at least one test event with animation effects, a first video is obtained, which includes a trajectory video such as that shown in fig. 6. The event type of the moving event is moving, and the corresponding animation effect is linear connection; the event type of the click event is click, and the corresponding animation effect is a circle; the event type of the long press event is long press, and the corresponding animation effect is a rounded rectangle; the event type of the slide event is slide, and the corresponding animation effect is an arrow with a direction.
In one practical way, the first video comprises text information for describing at least one test event. Specifically, the first video includes a track video and a text portion as shown in fig. 6, for example. The text portion shown in fig. 6 is the text message described above for describing at least one test event. The text information displays a preset number of pieces of character information in a scrolling mode, and the preset number of pieces of character information comprises the character information corresponding to the currently played test event. The preset number may be any number, and the present application is not limited thereto.
In an implementable manner, during the process of testing the test object, the terminal device records a screen of the display interface of the test object to obtain a screen recording video shown in fig. 7, for example; and then the terminal equipment generates a first video according to the characteristic information of at least one test event acquired in the test process and the screen recording video.
In this embodiment of the application, the terminal device may further record a screen on a display interface of the terminal device by using a video recording program in the test process, so as to obtain a screen recording video as shown in fig. 7. The terminal device then generates a track video, such as that shown in fig. 7, based on at least one test event obtained during the test. Because the screen recording video comprises the time information, the time axis of the screen recording video and the time axis of the first video can be completely overlapped according to the time information of the screen recording video, and the effect of synchronous playing is achieved. And finally, generating a first video according to the track video and the screen recording video. The first video comprises a track video and a screen recording video, and the track video and the screen recording video respectively occupy different areas of a display picture of the first video, such as the first video shown in fig. 7; or, the track video and the screen recording video are overlapped, and the blank part of the track video does not cause the occlusion of the screen recording video, such as the first video shown in fig. 8. When the track video and the screen recording video respectively occupy different areas of a display picture of the first video, the first video and the screen recording video can be distributed vertically or horizontally, and the specific distribution mode of the first video and the screen recording video is not limited by the application.
103: and acquiring the fault time point of the test object recorded in the test log.
In the embodiment of the application, after the terminal device generates the first video, the terminal device obtains the test log and obtains the fault time point of the test object recorded in the test log. The failure time point of the test object is a time point at which the test object fails during the test. Possible failures of the test object include: program run crashes, e.g., 11 o' clock 18 points, system exception causes program exit!
104: and generating a second video according to the fault time point and the first video.
In the embodiment of the application, the terminal device generates a second video according to the fault time point and the first video, and the second video is used for determining a target test event causing the fault of the test object from at least one test event. Specifically, a target time period containing a fault time point is determined; and intercepting a video clip corresponding to the target time period from the first video, and taking the video clip as a second video. For example, a video of 3 seconds before and after the failure time point in the first video is captured as the second video.
105: and determining a target test event causing the fault of the test object from the at least one test event according to the second video.
in this embodiment of the application, since the second video is a clip video that is captured from the first video and contains a process in which the test object fails, the terminal device may determine, by analyzing the second video, a target test object that causes the test object to fail in at least one test event obtained in the test process. Specifically, the terminal device first obtains a fault time point of a test object recorded in the test log, and determines a test event with an execution time closest to the fault time point from at least one test event contained in the second video; then taking the test event with the execution time closest to the fault time point as a target test event causing the fault of the test object; finally, a test report containing the target test event can be output.
For example, the terminal device first determines at least one test event included in the second video according to the execution time of the at least one test event acquired in the test process, and it is assumed that the second video includes the test event for the test object in the 1 st second, the 3 rd second, and the 4 th second, respectively. And the fault time point when the terminal equipment acquires that the test object has faults is 2.5 seconds. Therefore, the test event generated for the 3 rd second is determined to be the closest time point to the fault time point among the 3 test events included in the second video, and then the test event generated for the 3 rd second is taken as the target test event causing the fault of the test object. And finally generating a test report containing the target test event.
in an embodiment, the most recent test event whose execution time is before the failure time point is determined from at least one test event obtained in the test process. As described next to the previous example, it can be determined by the method that the test event generated for the 1 st second is the closest time point occurring before the failure time point among the 3 test events included in the second video. The test event generated at the 1 st second is then taken as a target test event that causes the test object to fail. And finally generating a test report containing the target test event.
In one embodiment, there is another method of determining the target test event. Specifically, the terminal device frames the second video according to the failure time point to obtain at least one frame of picture; then, carrying out image analysis on the at least one frame of picture to determine a picture which is closest to the fault time point and contains a track, and taking the picture which is closest to the fault time point and contains the track as a target picture; then, acquiring a test event corresponding to the target picture as a target test event causing the fault of the test object; finally, a test report for the test object may also be output, the test report including the target test event.
In the embodiment of the application, the terminal device firstly frames the second video into multi-frame pictures. And then, starting from the picture corresponding to the fault time point, searching the picture which is closest to the fault time point and contains the track of the test event, and taking the picture as a target picture. And then determining a test event with the execution time corresponding to the time axis of the target picture from at least one test event acquired in the test process, and taking the test event as the target test event. And mapping relation exists between the time axis of the picture and the execution time of the test event. Finally, after determining the target test event, the terminal device may further output a test report containing the target test event. Therefore, when a target test event causing a fault of a test object is determined, the second video is quickly positioned through a fault time point, then a picture which is closest to the fault time point and comprises a track in the second video is determined by using a framing and image analysis method, and finally the target test event corresponding to the picture is searched in at least one recorded test event, so that the test fault can be automatically and quickly checked.
in an implementation manner, the first video and the second video may include at least one icon of pause, play, rewind, forward, speed up and speed down, and when the icon is selected, the function corresponding to the icon is triggered. For example, when the "pause" icon in the first video is selected, the first video is paused.
In an implementable manner, after the target test event is determined, the terminal device determines a region to be tested of the test object according to the position information of the target test event and a preset range; and then testing the area to be tested.
In the embodiment of the present application, if the target test event causes the test object to malfunction, in addition to the test object to malfunction when the position of the trajectory of the target test event is operated, there is a high possibility that the test object to malfunction when the region near the trajectory of the target test event is operated. Specifically, the terminal device determines a preset area containing a track of the target test event according to the position information of the target test event, and uses the preset area as a to-be-tested area of the test object. The area to be tested is then tested. And if no fault occurs in the test process, no operation is performed. If a fault occurs in the testing process, generating a first test video according to the characteristic information of at least one test event generated aiming at the area to be tested in the testing process, wherein the first test video comprises a track of at least one test event generated aiming at the area to be tested in the testing process. And finally, determining a target test event causing the problem of the test object in the test process aiming at the area to be tested according to the second test video. The specific implementation process may refer to the process of generating the second video according to the first video and determining the target test event according to the second video, which is not described herein again. Therefore, the method and the device can not only carry out verification detection on the track of the target test event, but also carry out centralized test on the area near the track of the target test event, so that the efficiency of finding the test fault can be effectively improved.
It should be noted that the determining of the preset area of the trajectory including the target test event according to the position information of the target test event means determining a circular area with a diameter of a line segment between two farthest points on the trajectory of the target test event, and taking the circular area as an area to be tested; or determining two tangent circle regions respectively taking two end points of the track of the target test event as the circle centers, and taking the two tangent circle regions as the regions to be tested.
In the embodiment of the application, the terminal device records at least one test event generated in the test process, and generates a first video for reproducing a track of the at least one test event according to the at least one test event. And then generating a second video according to the fault time point of the fault of the test object and the first video. And finally, determining a target test event causing the fault of the test object from at least one test event according to the second video. It can be seen that, for the test event that may cause the change of the display interface or the test event that may not cause the change of the display interface (for the operation of the hidden control), the first video and the second video can reproduce the track of the test event, which is not realized by simple screen recording. And the second video is a video clip when the test object fails, so that the test failure can be automatically and accurately positioned. And finally, further determining the obtained target test event causing the fault of the test object according to the second video, so that the reason of the fault can be quickly determined. Therefore, the test fault can be automatically checked.
referring to fig. 2, which is a schematic flow chart of a testing method according to another embodiment of the present application, the testing method shown in fig. 2 may include:
201: in the process of testing the test object, the characteristic information of at least one test event generated aiming at the test object is obtained.
202: and generating a first video according to the characteristic information of the at least one test event.
In an implementable mode, in the process of testing a test object, recording a screen of a display interface of the test object to obtain a screen recording video; and then generating a first video according to the characteristic information of the at least one test event and the screen recording video.
in an implementable manner, the feature information further includes an event type of a test event, and when the first video is generated, the event type of each test event in at least one test event is obtained first; then obtaining the animation effect corresponding to the event type of each test event; and finally, according to the sequence of the execution time of each test event, generating a first video according to the position information of each test event and the animation effect corresponding to the event type of each test event. The event type of the moving event is moving, and the corresponding animation effect is linear connection; the event type of the click event is click, and the corresponding animation effect is a circle; the event type of the long press event is long press, and the corresponding animation effect is a rounded rectangle; the event type of the slide event is slide, and the corresponding animation effect is an arrow with a direction.
In one practical way, the first video comprises text information for describing at least one test event. Specifically, the first video includes a track video and a text portion as shown in fig. 6, for example. The text portion shown in fig. 6 is the text message described above for describing at least one test event. The text information displays a preset number of pieces of character information in a scrolling mode, and the preset number of pieces of character information comprises the character information corresponding to the currently played test event. The preset number may be any number, and the present application is not limited thereto.
203: and acquiring the fault time point of the test object recorded in the test log.
204: and determining a target time period containing the fault time point, and intercepting a video clip corresponding to the target time period from the first video to be used as a second video.
In the embodiment of the application, a target time period containing a fault time point is determined; and intercepting a video clip corresponding to the target time period from the first video, and taking the video clip as a second video. For example, a video of 3 seconds before and after the failure time point in the first video is captured as the second video.
205: and determining a test event with the execution time closest to the fault time point from the test events contained in the second video as a target test event causing the fault of the test object.
in an embodiment, the most recent test event whose execution time is before the failure time point is determined from at least one test event obtained in the test process.
In an implementable manner, the terminal device frames the second video according to the failure time point to obtain at least one frame of picture; performing image analysis on the at least one frame of picture to determine a picture which is closest to the fault time point and contains a track, and taking the picture which is closest to the fault time point and contains the track as a target picture; and acquiring a test event corresponding to the target picture as a target test event causing the fault of the test object.
206: and determining a region to be tested of the test object according to the position information of the target test event and a preset range, and testing the region to be tested.
the method of the present application is explained in more detail in the present application embodiment than in the previous application embodiment. It should be noted that the above description of the various embodiments is intended to emphasize the differences between the various embodiments, and the same or similar parts may be referred to each other, and therefore, for brevity, the description is not repeated herein.
The embodiment of the application also provides a terminal device, and the terminal device is used for executing the unit of the test method in any one of the preceding items. Specifically, refer to fig. 3, which is a schematic block diagram of a terminal device provided in an embodiment of the present application. The terminal device of the embodiment includes: an acquisition unit 310, a generation unit 320, and a determination unit 330. Specifically, the method comprises the following steps:
An obtaining unit 310, configured to obtain feature information of at least one test event generated for a test object during a process of testing the test object, where the feature information includes location information and execution time; a generating unit 320, configured to generate a first video according to the feature information of the at least one test event; the obtaining unit 310 is further configured to obtain a failure time point of the test object recorded in a test log; the generating unit 320 is further configured to generate a second video according to the failure time point and the first video; a determining unit 330, configured to determine, according to the second video, a target test event that causes the test object to fail from the at least one test event.
in an implementable manner, the generating unit 320 is specifically configured to determine a target time period including the failure time point; and intercepting a video clip corresponding to the target time period from the first video, and taking the video clip as a second video.
in an implementation manner, the determining unit 330 is specifically configured to determine, from the test events included in the second video, a test event whose execution time is closest to the failure time point; and taking the test event with the execution time closest to the fault time point as a target test event causing the fault of the test object.
In an implementation manner, the determining unit 330 is specifically configured to perform framing on the second video according to the failure time point to obtain at least one frame of picture; performing image analysis on the at least one frame of picture to determine a picture which is closest to the fault time point and contains a track, and taking the picture which is closest to the fault time point and contains the track as a target picture; and acquiring a test event corresponding to the target picture as a target test event causing the fault of the test object.
in an implementable manner, the determining unit 330 is further configured to determine, according to the position information of the target test event, a region to be tested of the test object according to a preset range; the terminal device further includes a testing unit 340, configured to test the area to be tested.
in an implementable manner, the generating unit 320 is specifically configured to record a screen of a display interface of the test object in a process of testing the test object, so as to obtain a screen recording video; and generating a first video according to the characteristic information of the at least one test event and the screen recording video.
in an implementable manner, the generating unit 320 is specifically configured to obtain an event type of each test event in the at least one test event; acquiring an animation effect corresponding to the event type of each test event; and according to the sequence of the execution time of each test event, generating a first video according to the position information of each test event and the animation effect corresponding to the event type of each test event.
in one practical way, the first video comprises text information for describing the at least one test event.
Fig. 4 is a block diagram of a terminal device according to another embodiment of the present application. The terminal device in this embodiment shown in fig. 4 may include: one or more processors 410 and memory 420. The processor 410 and the memory 420 are connected by a bus 430. The memory 420 is used to store computer programs comprising program instructions, and the processor 410 is used to execute the program instructions stored by the memory 420. Specifically, the method comprises the following steps:
The processor 410 is configured to execute the function of the obtaining unit 310, and is configured to obtain feature information of at least one test event generated for a test object during a test of the test object, where the feature information includes location information and execution time; the processor 410 is further configured to execute the function of the generating unit 320, and is configured to generate a first video according to the characteristic information of the at least one test event; the processor 410 is further configured to obtain a failure time point of the test object recorded in the test log; the processor 410 is further configured to generate a second video according to the failure time point and the first video; the processor 410 is further configured to execute the function of the determining unit 330, and is configured to determine, from the at least one test event according to the second video, a target test event that causes the test object to fail.
In an implementation manner, the processor 410 is specifically configured to determine a target time period including the failure time point; and intercepting a video clip corresponding to the target time period from the first video, and taking the video clip as a second video.
In an implementation manner, the processor 410 is specifically configured to determine, from the test events included in the second video, a test event whose execution time is closest to the failure time point; and taking the test event with the execution time closest to the fault time point as a target test event causing the fault of the test object.
In an implementation manner, the processor 410 is specifically configured to perform framing on the second video according to the failure time point to obtain at least one frame of picture; performing image analysis on the at least one frame of picture to determine a picture which is closest to the fault time point and contains a track, and taking the picture which is closest to the fault time point and contains the track as a target picture; and acquiring a test event corresponding to the target picture as a target test event causing the fault of the test object.
In an implementable manner, the processor 410 is further configured to determine a region to be tested of the test object according to a preset range according to the position information of the target test event; the terminal device further includes a testing unit 340, configured to test the area to be tested.
in an implementation manner, the processor 410 is specifically configured to record a screen of a display interface of the test object during a process of testing the test object, so as to obtain a screen recording video; and generating a first video according to the characteristic information of the at least one test event and the screen recording video.
In an implementation manner, the processor 410 is specifically configured to obtain an event type of each test event of the at least one test event; acquiring an animation effect corresponding to the event type of each test event; and according to the sequence of the execution time of each test event, generating a first video according to the position information of each test event and the animation effect corresponding to the event type of each test event.
In one practical way, the first video comprises text information for describing the at least one test event.
It should be understood that, in the embodiment of the present Application, the Processor 410 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 420 may include a read-only memory and a random access memory, and provides instructions and data to the processor 410. A portion of memory 420 may also include non-volatile random access memory. For example, memory 420 may also store device type information.
In a specific implementation, the processor 410 described in this embodiment of the present application may execute the implementation manners described in the first embodiment and the second embodiment of the test method provided in this embodiment of the present application, and may also execute the implementation manner of the terminal device described in this embodiment of the present application, which is not described herein again.
In another embodiment of the present application, a computer-readable storage medium is provided that stores a computer program comprising program instructions for execution by a processor.
the computer readable storage medium may be an internal storage unit of the terminal device of any of the foregoing embodiments, for example, a hard disk or a memory of the terminal device. The computer readable storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk provided on the terminal device, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the computer-readable storage medium may also include both an internal storage unit of the terminal device and an external storage device. The computer-readable storage medium is used for storing computer programs and other programs and data required by the terminal device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality using different test methodologies for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal device and the unit described above may refer to the corresponding processes in the foregoing test method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed terminal device and testing method may be implemented in other ways. For example, the above-described terminal device embodiments are merely illustrative, and for example, the division of a unit is only one logical function division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, terminal devices or units, and may also be an electrical, mechanical or other form of connection.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a computer-readable storage medium and includes several instructions for causing a computer device (which may be a personal computer, a terminal device, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned computer-readable storage media comprise: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (10)

1. A method of testing, comprising:
In the process of testing a test object, acquiring characteristic information of at least one test event generated aiming at the test object, wherein the characteristic information comprises position information and execution time;
Generating a first video according to the characteristic information of the at least one test event;
Acquiring a fault time point of the test object recorded in a test log;
Generating a second video according to the fault time point and the first video;
and determining a target test event causing the fault of the test object from the at least one test event according to the second video.
2. The method of claim 1, wherein generating a second video from the point in time of failure and the first video comprises:
Determining a target time period containing the fault time point;
And intercepting a video clip corresponding to the target time period from the first video, and taking the video clip as a second video.
3. The method of claim 2, wherein determining from the at least one test event a target test event that causes the test object to fail based on the second video comprises:
determining a test event with the execution time closest to the fault time point from the test events contained in the second video;
And taking the test event with the execution time closest to the fault time point as a target test event causing the fault of the test object.
4. the method of claim 2, wherein determining from the at least one test event a target test event that causes the test object to fail based on the second video comprises:
Framing the second video according to the fault time point to obtain at least one frame of picture;
Performing image analysis on the at least one frame of picture to determine a picture which is closest to the fault time point and contains a track, and taking the picture which is closest to the fault time point and contains the track as a target picture;
and acquiring a test event corresponding to the target picture as a target test event causing the fault of the test object.
5. The method of claim 2, wherein after determining from the at least one test event a target test event that caused the test object to fail based on the second video, the method further comprises:
Determining a region to be tested of the test object according to the position information of the target test event and a preset range;
And testing the area to be tested.
6. The method according to any one of claims 1 to 5, wherein the generating the first video according to the feature information of the at least one test event comprises:
In the process of testing the test object, recording a screen of a display interface of the test object to obtain a screen recording video;
and generating a first video according to the characteristic information of the at least one test event and the screen recording video.
7. the method according to any one of claims 1 to 5, wherein the feature information further comprises an event type, and the generating the first video according to the feature information of the at least one test event comprises:
Obtaining an event type of each test event in the at least one test event;
Acquiring an animation effect corresponding to the event type of each test event;
And according to the sequence of the execution time of each test event, generating a first video according to the position information of each test event and the animation effect corresponding to the event type of each test event.
8. The method according to any one of claims 1 to 5, wherein the first video comprises text information describing the at least one test event.
9. A terminal device, comprising:
The device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring characteristic information of at least one test event generated aiming at a test object in the process of testing the test object, and the characteristic information comprises position information and execution time;
The generating unit is used for generating a first video according to the characteristic information of the at least one test event;
The acquisition unit is further configured to acquire a failure time point of the test object recorded in the test log;
the generating unit is further used for generating a second video according to the fault time point and the first video;
and the determining unit is used for determining a target test event causing the fault of the test object from the at least one test event according to the second video.
10. A terminal device, characterized in that it comprises a processor and a memory, said processor and memory being interconnected, wherein said memory is adapted to store a computer program comprising program instructions, said processor being configured to invoke said program instructions for performing the method according to any one of claims 1-8.
CN201910705205.2A 2019-07-31 2019-07-31 Test method and terminal equipment Active CN110569184B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910705205.2A CN110569184B (en) 2019-07-31 2019-07-31 Test method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910705205.2A CN110569184B (en) 2019-07-31 2019-07-31 Test method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110569184A true CN110569184A (en) 2019-12-13
CN110569184B CN110569184B (en) 2023-06-16

Family

ID=68773908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910705205.2A Active CN110569184B (en) 2019-07-31 2019-07-31 Test method and terminal equipment

Country Status (1)

Country Link
CN (1) CN110569184B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111130888A (en) * 2019-12-26 2020-05-08 珠海格力电器股份有限公司 Fault information collection and prompt method, device, storage medium and mobile terminal

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201301996D0 (en) * 2012-02-10 2013-03-20 Xerox Corp Traffic camera diagnostics via test targets
US20140132571A1 (en) * 2012-11-12 2014-05-15 Sap Ag Automated testing of gesture-based applications
CN104657902A (en) * 2015-03-12 2015-05-27 四川航天系统工程研究所 Integrated support intelligent terminal system for equipment and implementation method of intelligent terminal system
CN106294109A (en) * 2015-05-27 2017-01-04 腾讯科技(深圳)有限公司 Obtain the method and device of defect code
CN106354578A (en) * 2016-08-25 2017-01-25 深圳市金立通信设备有限公司 Terminal testing method and terminal
CN107967214A (en) * 2017-08-15 2018-04-27 北京摩拜科技有限公司 The test method and test equipment of application program
US20180253373A1 (en) * 2017-03-01 2018-09-06 Salesforce.Com, Inc. Systems and methods for automated web performance testing for cloud apps in use-case scenarios
CN108595343A (en) * 2018-06-04 2018-09-28 北京汉能光伏投资有限公司 The test method and device of application program
CN108664392A (en) * 2018-03-19 2018-10-16 重庆小雨点小额贷款有限公司 A kind of application testing method, device, terminal and storage medium
CN108804302A (en) * 2017-05-04 2018-11-13 腾讯科技(深圳)有限公司 A kind of remote test method, system and relevant device
CN109388556A (en) * 2017-08-11 2019-02-26 航天信息股份有限公司 A kind of analysis method and device of test process
CN110007981A (en) * 2019-02-28 2019-07-12 Oppo广东移动通信有限公司 Start method, apparatus, electronic equipment and the medium of application program

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201301996D0 (en) * 2012-02-10 2013-03-20 Xerox Corp Traffic camera diagnostics via test targets
US20140132571A1 (en) * 2012-11-12 2014-05-15 Sap Ag Automated testing of gesture-based applications
CN104657902A (en) * 2015-03-12 2015-05-27 四川航天系统工程研究所 Integrated support intelligent terminal system for equipment and implementation method of intelligent terminal system
CN106294109A (en) * 2015-05-27 2017-01-04 腾讯科技(深圳)有限公司 Obtain the method and device of defect code
CN106354578A (en) * 2016-08-25 2017-01-25 深圳市金立通信设备有限公司 Terminal testing method and terminal
US20180253373A1 (en) * 2017-03-01 2018-09-06 Salesforce.Com, Inc. Systems and methods for automated web performance testing for cloud apps in use-case scenarios
CN108804302A (en) * 2017-05-04 2018-11-13 腾讯科技(深圳)有限公司 A kind of remote test method, system and relevant device
CN109388556A (en) * 2017-08-11 2019-02-26 航天信息股份有限公司 A kind of analysis method and device of test process
CN107967214A (en) * 2017-08-15 2018-04-27 北京摩拜科技有限公司 The test method and test equipment of application program
CN108664392A (en) * 2018-03-19 2018-10-16 重庆小雨点小额贷款有限公司 A kind of application testing method, device, terminal and storage medium
CN108595343A (en) * 2018-06-04 2018-09-28 北京汉能光伏投资有限公司 The test method and device of application program
CN110007981A (en) * 2019-02-28 2019-07-12 Oppo广东移动通信有限公司 Start method, apparatus, electronic equipment and the medium of application program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111130888A (en) * 2019-12-26 2020-05-08 珠海格力电器股份有限公司 Fault information collection and prompt method, device, storage medium and mobile terminal
CN111130888B (en) * 2019-12-26 2021-02-26 珠海格力电器股份有限公司 Fault information collection and prompt method, device, storage medium and mobile terminal

Also Published As

Publication number Publication date
CN110569184B (en) 2023-06-16

Similar Documents

Publication Publication Date Title
US10926184B2 (en) Synchronized video with in game telemetry
US10133653B2 (en) Recording and playback of trace and video log data for programs
US9342237B2 (en) Automated testing of gesture-based applications
US8924912B2 (en) Method of recording and replaying call frames for a test bench
US8645912B2 (en) System and method for use in replaying software application events
US9355003B2 (en) Capturing trace information using annotated trace output
CN109815119B (en) APP link channel testing method and device
US9946638B1 (en) System and method for end to end performance response time measurement based on graphic recognition
CN111858318B (en) Response time testing method, device, equipment and computer storage medium
CN112416775B (en) Software automatic test method and device based on artificial intelligence and electronic equipment
CN107741902A (en) Program application detection method and program application detection means
US11813538B2 (en) Videogame telemetry data and game asset tracker for session recordings
CN110908880B (en) Buried point code injection method, event reporting method and related equipment thereof
Havranek et al. V2S: a tool for translating video recordings of mobile app usages into replayable scenarios
CN108595332B (en) Software testing method and device
CN113209630B (en) Frame grabbing defense method and device for game application, storage medium and computer equipment
Zyrianov et al. Automated recording and semantics-aware replaying of high-speed eye tracking and interaction data to support cognitive studies of software engineering tasks
CN110569184B (en) Test method and terminal equipment
WO2018205392A1 (en) Control response area display control method, electronic apparatus, and storage medium
CN112346935A (en) Rendering time-consuming acquisition and display method, performance monitoring method, device and equipment
CN111708704A (en) Cloud real machine testing method and device, terminal and storage medium
WO2022262472A1 (en) Frame rate processing method and apparatus, storage medium, and terminal
US20220398895A1 (en) Methods, Apparatuses, Systems, Media, and Computer Devices for Processing Data
CN109522223B (en) Automatic test method and system for vehicle-mounted Android multimedia host
CN112631949A (en) Debugging method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant