Application evaluation method and system, electronic equipment and storage medium thereof
By extracting and marking the key frames of the operation video, the accuracy problem of the application fluency evaluation method in the existing technology in the evaluation of complex page switching time is solved, the evaluation efficiency and accuracy are improved, and it is suitable for performance testing of complex applications.
Patent Information
- Application Number
- CN202310231308.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-17
AI Technical Summary
Existing application fluency evaluation methods are difficult to accurately judge the page switching time between applications, especially when complex pages or dynamic data exist, resulting in inaccurate evaluation results and a large amount of repetitive work.
By extracting and displaying the key frames of the operation video of the application under test, users can mark the start and end key frames to evaluate application performance, reducing the user's need to find the start and end frames in all video frames, and improving evaluation efficiency and accuracy. sex.
This method reduces the user's workload and operational difficulty, improves the accuracy of application evaluation, and can test the performance of complex applications more efficiently, and has higher implementability than fully automated testing.
Smart Images

Figure CN118656286A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing, and more specifically, to an application evaluation method, system, electronic device and storage medium thereof. Background Art
[0002] Currently, more and more applications are being released. In the process of application development and use, the most direct indicator for the user experience of the application is the application fluency. Usually, the switching time between pages in the application can be used as an evaluation indicator of application fluency.
[0003] However, there are some problems in the current application fluency evaluation methods, which can easily affect the accuracy of application fluency judgment. Summary of the invention
[0004] The embodiments of the present application provide an application evaluation method, system, electronic device, and storage medium thereof that can at least partially solve the above-mentioned problems or other problems existing in the prior art.
[0005] An embodiment of the present application provides an application performance evaluation method, including: extracting and displaying key frames of an operation video of an application to be tested; determining a start key frame and an end key frame in the key frames based on a detected user marking operation on the key frames; and evaluating the performance of the application to be tested based on the start key frame and the end key frame.
[0006] The embodiments of the present application also provide an electronic device, comprising: at least one processor and a memory. The memory is communicatively connected to the at least one processor and stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor so that the at least one processor can execute the application evaluation method mentioned in the above embodiments.
[0007] The embodiment of the present application also provides an application performance evaluation system, including: a test device and an evaluation platform. The test device is installed with an application to be tested to execute the detected operation instruction. The evaluation platform includes a processor, and the processor is configured to: in response to the test device executing the operation instruction, obtain an operation video of the test device executing the operation instruction, and execute the application evaluation method mentioned in the above embodiment based on the operation video.
[0008] The embodiments of the present application further provide a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the application evaluation method mentioned in the above embodiments is implemented.
[0009] According to some embodiments of the present application, by extracting and displaying key frames so that users can mark the start key frame and the end key frame, it is not necessary for users to determine the start key frame and the end key frame in all video frames of the operation video, thereby improving the work efficiency of application evaluation and reducing the workload of users. At the same time, the solution does not require users to click start and end separately when triggering an operation instruction to determine the start time and end time of the operation instruction, thereby reducing the difficulty of operation and improving the accuracy of performance evaluation results. In addition, compared with the method of fully automated testing applications, it can test the performance of complex applications and is more feasible. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings, in which:
[0011] Figure 1 and Figure 2 They are schematic block diagrams of application performance evaluation systems provided according to some embodiments of the present application;
[0012] Figure 3 is an exemplary block diagram of an evaluation platform of some embodiments of the present application;
[0013] Figure 4 is an exemplary flow chart of an application evaluation method according to some embodiments of the present application;
[0014] Figure 5 is a schematic diagram of an operation interface provided by an interface management module of an evaluation platform in some embodiments of the present application;
[0015] Figure 6 is a schematic diagram of interaction between a user, an evaluation platform, a test device, and a camera device according to some embodiments of the present application; and
[0016] Figure 7 is a schematic block diagram of an electronic device according to some embodiments of the present application. DETAILED DESCRIPTION
[0017] In order to better understand the present application, a more detailed description will be made of various aspects of the present application with reference to the accompanying drawings. It should be understood that these detailed descriptions are only descriptions of exemplary embodiments of the present application, and are not intended to limit the scope of the present application in any way. Throughout the specification, the same reference numerals refer to the same elements. The expression "and / or" includes any and all combinations of one or more of the associated listed items.
[0018] It should also be understood that expressions such as "include", "including", "have", "contain" and / or "comprising" are open rather than closed expressions in this specification, which indicate the presence of the stated features, elements and / or components, but do not exclude the presence of one or more other features, elements, components and / or combinations thereof. In addition, when expressions such as "at least one of..." appear after a list of listed features, they modify the entire list of features rather than just the individual elements in the list. In addition, when describing embodiments of the present application, "may" is used to mean "one or more embodiments of the present application". And, the term "exemplary" is intended to refer to an example or illustration.
[0019] Unless otherwise specified, all words (including engineering terms and scientific and technological terms) used in this article have the same meaning as those commonly understood by ordinary technicians in the field to which this application belongs. It should also be understood that, unless clearly stated in this application, words defined in common dictionaries should be interpreted as having the same meaning as their meaning in the context of the relevant technology, and should not be interpreted in an idealized or overly formal sense.
[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. In addition, unless explicitly limited or contradictory to the context, the specific steps included in the method described in the present application are not necessarily limited to the order described, but can be performed in any order or in parallel. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
[0021] In some embodiments, some application automation testing tools, such as Android application interface automation testing tools (UI Automator), application automation testing tools (Appium), etc., can test applications by controlling applications to perform specified operations, but they cannot accurately identify the switching time difference between page A and page B in the application, especially for complex pages. For example, some application pages display different dynamic data each time, or there are loading animations or intermediate pages between pages, etc. Without changing the original application code to increase the status judgment, such tools cannot provide a general method for judging the loading completion status of page A and page B. Therefore, the use of such tools has limitations.
[0022] In other implementations, for the above-mentioned more complex applications, the application performance is evaluated by manually recording the screen. For example, when on page A, the startup time is recorded and the page B is triggered to open, and then the end time is recorded when page B is fully displayed. Similarly, the switching time between other pages is recorded to evaluate the application performance. However, the fully manual method has problems such as inconsistent statistical accuracy and results, large errors, and a very large amount of repeated work.
[0023] To better evaluate application performance, Figure 1 and Figure 2 They are schematic block diagrams of application performance evaluation systems provided according to some embodiments of the present application. Figure 1 As shown, the application performance evaluation system 100 may include a test device 110 and an evaluation platform 120. The test device 110 is installed with an application to be tested to execute the detected operation instruction. The evaluation platform 120 may include a processor, which may be configured to: in response to the test device executing the operation instruction, obtain an operation video of the test device executing the operation instruction, and execute the application evaluation method 200 (for example, Figure 4 ).
[0024] It should be understood that for ease of understanding, Figure 1 The device where the application to be tested is installed and the device where the application to be tested is evaluated are different devices. In other implementations, the two devices may also be the same device, that is, the device where the application to be tested is installed can be directly used to execute the following steps: Figure 4 The application does not limit the application evaluation method 200 described as an example.
[0025] In some embodiments of the present application, the above-mentioned operation video can be obtained by a camera device. Figure 2 As shown, the application performance evaluation system 100 may also include a camera device 130, which has a screen shooting angle of the test device 110, and can be used to record the screen of the test device 110 after receiving a start recording instruction to obtain a screen recording video, and transmit the screen recording video to the evaluation platform 120. Among them, the screen recording video is determined as an operation video by the evaluation platform 120. In the above example, by shooting the screen recording video by a camera device 130 independent of the test device 110, the situation in which the memory occupation caused by the screen recording of the test device 110 itself affects the evaluation of the application to be tested can be reduced, and the accuracy of the test results can be improved.
[0026] It should be understood that, without departing from the teachings of this application, the screen recording video can also be recorded by the test device 110 after triggering the screen recording function, and this application does not impose any restrictions on this.
[0027] In some embodiments of the present application, Figure 3 is an exemplary block diagram of the evaluation platform 120 of some embodiments of the present application. Figure 3 As shown, the evaluation platform 120 may include an interface management module 121 , a scheduling module 122 , and a key frame extraction module 123 .
[0028] As an example, the interface management module 121 can be used to manage the human-computer interaction interface of the evaluation platform 120. After receiving a user instruction based on the human-computer interaction interface, it can call the corresponding processing module or unit to complete the instruction, and can also display the progress and results of the instruction execution.
[0029] For example, the interface management module 121 may display an operation interface for the user to confirm the start of application evaluation, and after detecting that the user triggers a control indicating the start of application evaluation, send a start evaluation instruction to the scheduling module 122 of the evaluation platform 120 so that the evaluation platform 120 starts performance evaluation of the application to be tested.
[0030] For another example, the interface management module 121 may include a display progress and result unit 1211 and a marking and statistics unit 1212. The display progress and result unit 1211 may be used to determine the evaluation progress or performance evaluation result of the application to be tested, and display the determined data through the operation interface. The marking and statistics unit 1212 may detect the start key frame and the end key frame marked by the user in the operation interface, and may count the response time of the application to be tested to the operation instruction based on the marked start key frame and the end key frame, so that the display progress and result unit 1211 may determine the performance evaluation result of the application to be tested.
[0031] As an example, the scheduling module 122 can receive feedback signals from the interface management module 121 and other system modules, and schedule the operation of each system module so that each system module can operate in an orderly manner. For example, after receiving the start evaluation instruction from the interface management module 121, the scheduling module 122 can control the system modules related to the application performance evaluation to start running to perform the application performance evaluation.
[0032] As an example, the key frame extraction module 123 can be used to analyze the operation video and perform the key frame extraction operation with a specified algorithm. Optionally, after extracting the key frame, the key frame extraction module 123 can record the position of the key frame in the operation video to determine the corresponding relationship between the key frame and the operation video. It is understandable that the algorithm used by the key frame extraction module 123 to extract the key frame can be selected as needed, and this application does not limit this.
[0033] Optionally, the evaluation platform 120 may further include an instruction execution module 124, which may obtain an execution sequence script of the application to be tested, and after receiving the start execution instruction, may sequentially send the operation instructions in the execution sequence script to the test device 110. The execution sequence script of the application to be tested may be uploaded by a user, or may be obtained by the evaluation platform 120 through other channels such as the Internet, which is not limited here.
[0034] In some scenarios, the system modules related to application performance evaluation that can be scheduled by the scheduling module 122 may include the instruction execution module 124, the key frame extraction module 123 and the interface management module 121. For example, after receiving the start evaluation instruction from the interface management module 121, the scheduling module 122 may send a start execution instruction to the instruction execution module 124 to control the instruction execution module 124 to issue an operation instruction. After receiving the operation video, the scheduling module 122 may send a key frame extraction instruction to the key frame extraction module 123 to control the key frame extraction module 123 to extract the key frames in the operation video. After determining that the key frame extraction is completed, the scheduling module 122 may send a marking instruction to the interface management module 121 to control the interface management module 121 to display an operation interface for the user to mark the start key frame and the end key frame. The key frames extracted by the key frame extraction module 123 are displayed in the operation interface so that the user can perform marking operations.
[0035] It should be understood that, without departing from the teachings of this application, the evaluation platform 120 may also include other system modules, each of which may be a logic module, and this application does not limit the number of system modules in the evaluation platform 120.
[0036] In some embodiments of the present application, the application under test in the test device 110 can receive operation instructions and call the execution actions corresponding to each operation instruction in the order of the received operation instructions through the human-computer interface capability provided by the test device 110, such as starting the application, clicking, sliding, etc.
[0037] In some embodiments of the present application, the camera device 130 may start recording the execution process of the device under test after receiving a start recording instruction from the evaluation platform 120, and may complete the recording after receiving an end recording instruction from the evaluation platform 120. The camera device 130 may upload the recorded screen recording video to the evaluation platform 120, or store the screen recording video in a local storage space, so that after other devices legally request the operation video, the screen recording video can be transmitted to the device.
[0038] It should be understood that the application performance evaluation system 100 may also include other devices without departing from the teachings of the present application, and the present application does not limit this.
[0039] Figure 4 is an exemplary flow chart of an application evaluation method 200 according to some embodiments of the present application. Figure 4 As shown, the application evaluation method 200 may include the following steps:
[0040] S21, extracting and displaying key frames of the operation video of the application to be tested;
[0041] S22, determining a start key frame and an end key frame in the key frames according to the detected user marking operation on the key frames; and
[0042] S23, evaluating the performance of the application to be tested according to the start key frame and the end key frame.
[0043] According to some embodiments of the present application, a key frame is an image with a large difference between the front and back of an operation video. By extracting and displaying the key frame so that the user can mark the start key frame and the end key frame, the user does not need to determine the start key frame and the end key frame in all video frames of the operation video, thereby improving the work efficiency of application evaluation and reducing the workload of the user. At the same time, the solution does not require the user to click start and end separately when triggering an operation instruction to determine the start time and end time of the operation instruction, thereby reducing the difficulty of operation and improving the accuracy of the performance evaluation results. In addition, compared with the method of fully automated testing of applications, it can test the performance of complex applications and is more feasible.
[0044] For ease of understanding, the following Figure 2 The application performance evaluation system 100 is taken as an example to illustrate the application evaluation method 200 .
[0045] In some embodiments of the present application, the application performance evaluation system 100 can send operation instructions to the test device 110 installed with the application to be tested in sequence according to the instruction sequence script through the evaluation platform 120, and obtain the screen recording video reflecting the process of the test device 110 executing the operation instructions through the evaluation platform 120 as the operation video used in step S21.
[0046] As an example, the instruction sequence script may be uploaded by the user through the operation interface provided by the evaluation platform 120. For example, Figure 5 1 is a schematic diagram of an operation interface 140 provided by the interface management module 121 of the evaluation platform 120 in some embodiments of the present application. Figure 5 As shown, the operation interface 140 of the interface management module 121 may include a control 141 for instructing to upload a command sequence script. A user (e.g., an operator) may write an operation instruction according to the action to be performed by the application to be tested to form a command sequence script, and select and upload the script file of the command sequence script through the control 141 for instructing to upload the command sequence script. It is understandable that the method of writing the command sequence script can be selected as needed, for example, the command sequence script can be written through UIAutomator or Appium, and this application does not limit this.
[0047] Optionally, the instruction sequence script may include at least one or more of the following instructions: an opening instruction of the application to be tested, a click instruction for simulating clicking on a control of the application to be tested, a sliding instruction for simulating sliding an operation interface of the application to be tested, and a closing instruction of the application to be tested. In the above scheme, by writing the opening instruction, the click instruction, the sliding instruction, and the closing instruction in the instruction sequence script, the opening time of the application to be tested, the switching time between pages, the response time of the sliding operation, etc. can be tested, which is conducive to a more comprehensive evaluation of the application to be tested.
[0048] Optionally, the evaluation platform 120 may display the instruction identifier of the operation instruction in the instruction sequence script on the operation interface 140. For example, the instruction identifier may include the instruction name of the operation instruction, and the operation interface 140 may include an instruction sequence display box 142, and the instruction sequence display box 142 may display the instruction name of the operation instruction included in the instruction sequence script. For example, the instruction name of the operation instruction in the instruction sequence script may include: Figure 5 The example includes opening the application, waiting for 3 seconds (so that the test device 120 displays page A), clicking button 1 (so that the test device 120 opens page B), waiting for 3 seconds (so that the test device 120 displays page B), clicking button 2 (so that the test device 120 opens page C)…closing the application, etc.
[0049] It is understandable that, without departing from the teachings of this application, the information of the instruction name that needs to be displayed in the instruction sequence display box 142 can be synchronously edited by the user into a script file including the instruction sequence script, or the evaluation platform can determine the instruction name by analyzing the instruction sequence script. This application does not impose any restrictions on this.
[0050] Optionally, the operation interface 140 may further include a control 143 for instructing to start the evaluation, for example Figure 5 The text in the control 143 is displayed as "Execute Evaluation". The user can trigger the start evaluation instruction by clicking the control 143 to start the application performance evaluation. After detecting that the control 143 is triggered, the interface management module 121 can send the start evaluation instruction to the scheduling module 122.
[0051] It is understandable that, without departing from the teachings of the present application, the evaluation platform 120 may also provide the user with other ways of triggering the start of the evaluation instruction, and the present application does not impose any limitation on this.
[0052] It should be understood that, without departing from the teachings of this application, in addition to triggering the test device 110 to control the application to be tested by the evaluation platform 120 sending operation instructions to the test device 110 in sequence, the application to be tested can also be controlled by the test device 110 in other ways. For example, the test device 110 can be manually operated, and the application to be tested can be triggered to execute different operation instructions in a certain order during the operation. This application does not limit the method of controlling the application to be tested to execute different operation instructions.
[0053] In some embodiments of the present application, the application performance evaluation system 100 can obtain a screen recording video through a camera device 130. For example, after determining that the application to be tested needs to be evaluated, the evaluation platform 120 can send a start recording instruction to the camera device 130 to start the camera device 130. Since the camera device 130 has the screen viewing angle of the test device 110, it can perform screen recording of the test device 110 after it works to obtain a screen recording video. After the recording is completed, the camera device 130 can actively or passively send the screen recording video to the evaluation platform 120. After the evaluation platform 120 obtains the screen recording video from the camera device 130, it regards it as an operation video of the application to be tested and executes step S21. In the above example, by shooting the screen recording video by a camera device 130 independent of the test device 110, the situation in which the memory occupation caused by the screen recording of the test device 110 itself affects the evaluation of the application to be tested can be reduced, and the accuracy of the performance evaluation results can be improved.
[0054] It can be understood that the camera device 130 actively sending the screen recording video to the evaluation platform 120 may refer to the camera device 130 automatically sending the screen recording video to the evaluation platform 120 after the screen recording video is completed, and the camera device 130 passively sending the screen recording video to the evaluation platform 120 may refer to the camera device 130 sending the screen recording video to the evaluation platform 120 after receiving the video acquisition instruction sent by the evaluation platform 120, or the camera device 130 sends the screen recording video to the evaluation platform 120 after determining that the user operation data detected by itself indicates the synchronization of the screen recording video. This application does not impose any restrictions on this.
[0055] It should be understood that, without departing from the teachings of this application, the screen recording video can also be recorded by the test device 110 after triggering the screen recording function, and this application does not impose any restrictions on this.
[0056] In some embodiments of the present application, the evaluation platform 120 extracts key frames in the operation video through the key frame extraction module 123 for subsequent application performance evaluation. For example, the principle of the video is to use the visual difference of the human eye to quickly play multiple pictures so that the viewer feels that the picture is moving. Therefore, a video is usually composed of multiple images, and each image in the video can be regarded as a video frame. Since the picture changes of most adjacent video frames are not large, many video tools will use compression algorithms to try to ignore the same parts of the previous and next video frames, only save the different parts, and then complete the picture according to the corresponding algorithm when playing. Video frames with large differences between the front and back can be called key frames, and their number will be much smaller than the number of all video frames that make up the video. In some embodiments of the present application, the evaluation platform 120 extracts key frames from the operation video by analyzing the operation video, reducing the number of video frames that users need to browse, reducing the workload of users, and effectively improving the work efficiency of application performance evaluation.
[0057] As an option, the evaluation platform 120 may extract key frames by masking the video frames of the operation video according to preset masking rules, and identifying the masked video frames to obtain key frames in the operation video. For example, the evaluation platform may implement the masking function through masking technology. For example, the evaluation platform 120 obtains photos of the desired page taken in advance, and the user can mark the parts of the photo that change each time with a mask. In the process of identifying key frames, the evaluation platform 120 can automatically compare the masked parts that change one by one, and mark the video frames with high similarity, so as to determine the video frames with low similarity as key frames. The above scheme can filter out irrelevant images to improve the intelligence of the system and reduce the data processing amount of the evaluation platform.
[0058] Optionally, the operation interface 140 may include: Figure 5 The key frame area 144 for displaying key frames is shown. For example, the evaluation platform 120 extracts key frames from the operation video to obtain key frames such as image 1, image 2, image 3, image 4, image 5, ... image N, and the interface management module 121 obtains the key frames and displays them in the key frame area 144. The above scheme displays the key frames to the user through the operation interface 140, which is conducive to the user to perform marking operations through the visual interface and reduces the difficulty of operation.
[0059] It is understandable that the position of the key frame area 144 and the key frame arrangement can be set as needed without departing from the teaching of the present application, and the present application does not impose any restrictions on this.
[0060] In some embodiments of the present application, the instruction sequence script may include multiple operation instructions, and the evaluation platform 120 may evaluate the performance of the application to be tested according to the start key frame and the end key frame, which may include: determining the response time of each operation instruction according to the start key frame and the end key frame corresponding to each operation instruction, and evaluating the performance of the application to be tested according to the response time of each operation instruction. For example, the evaluation platform 120 may count the response time of the operation instruction based on the start key frame and the end key frame corresponding to each operation instruction, determine the average response time and / or the total response time based on the response time of each operation instruction, and determine the performance evaluation result of the application to be tested based on the average response time and / or the total response time. For example, if the operation instruction includes a click instruction for simulating clicking on the control of the application to be tested, the corresponding execution action is to open the page corresponding to the clicked control, and by counting the response time of the operation instruction, the switching time of the page can be determined. In the above scheme, the application fluency of the application to be tested is evaluated by counting the response time of various instructions, so that the user can determine whether the application to be tested needs to be improved or whether to release the application to be tested based on the evaluated application fluency.
[0061] It is understandable that, without departing from the teachings of the present application, the evaluation platform 120 may output the average response time and / or the total response time as the performance evaluation result, or may determine the performance evaluation result based on the average response time and / or the total response time, and a pre-set evaluation rule, wherein the evaluation rule may be set as needed, for example, taking the average response time as an example, the evaluation rule may indicate: in response to the average response time being in the first time range, determining the performance evaluation result as excellent application fluency; in response to the average response time being in the second time range, determining the performance evaluation result as medium application fluency; and in response to the average response time being in the third time range, determining the performance evaluation result as poor application fluency. Wherein, the value in the first time range is less than the value in the second time range, and the value in the second time range is less than the value in the third time range. The present application does not limit the method of determining the performance evaluation result of the application to be tested based on the average response time and / or the total response time.
[0062] As an option, the evaluation platform 120 determines the start key frame and the end key frame in the key frame according to the detected user's marking operation on the key frame, which may include: in response to detecting a first marking operation for any key frame, determining the currently selected instruction identifier, and determining the operated key frame as the start key frame of the operation instruction corresponding to the selected instruction identifier; or, in response to detecting a second marking operation for any key frame, determining the currently selected instruction identifier, and determining the operated key frame as the end key frame of the operation instruction corresponding to the selected instruction identifier. The above scheme is conducive to the user to perform marking operations on the start key frame and the end key frame for different operation instructions respectively, and it is convenient for the evaluation platform 120 to count the response time of different operation instructions respectively.
[0063] It is understandable that the first marking operation and the second marking operation can be set as needed. For example, in some embodiments, the user can implement the first marking operation and the second marking operation for different operation instructions through the visual operation interface 140 provided by the interface management module 121. For example, the operation interface 140 may include: Figure 5 The instruction sequence display box 142, the key frame area 144 for displaying key frames, the control 145 indicating that the currently selected key frame is set as the start key frame, and the control 146 indicating that the currently selected key frame is set as the end key frame. The user can select any operation instruction displayed in the instruction sequence display box 142, and select the start key frame of the operation instruction from the key frame area 144, click the control 145 to mark it as the start key frame of the selected operation instruction, select the end key frame of the operation instruction from the key frame area 144, and click the control 146 to mark it as the end key frame of the selected operation instruction. The present application does not limit the first marking operation and the second marking operation supported by the evaluation platform 120.
[0064] As an option, Figure 5 As shown, the operation interface 140 may also include a control 147 for indicating the start of the statistical operation of the response time. For example, after detecting that the control 147 is triggered, the evaluation platform 120 starts to calculate the response time, average response time, total response time, etc. of each operation instruction. The above statistical results may also be selectively displayed in the result display area 148 in the operation interface 140.
[0065] As an option, Figure 5As shown, the operation interface 140 may also include a control 149 for indicating saving the performance evaluation result. For example, after detecting that the control 149 is triggered, the evaluation platform 120 may save the determined performance evaluation result to a designated storage area. The storage area may be a local storage area of the evaluation platform 120, or a storage area connected to the evaluation platform 120 via a data cable, a network, etc. The above scheme may facilitate the user to view the performance evaluation results of the application to be tested again later, and may also facilitate the user to compare the performance of the application to be tested with other applications or other versions of the application to be tested.
[0066] As an option, Figure 5 As shown, the operation interface 140 may also include an operation video display area 150. The interface management module may control the operation video display area 150 to display the operation video, so that the user can understand the general process of the application to be tested executing the operation instruction by watching the operation video. Optionally, the operation video display area 150 may also be provided with a button for playing / pausing the video, a fast forward button, and a fast rewind button, etc., which are not limited here.
[0067] As an option, the operation video display area 150 and the key frame area 144 in the operation interface 140 may be associated. For example, after determining that any key frame in the key frame area 144 is selected, the interface management module 121 may control the operation video in the operation video display area 150 to jump to the video frame corresponding to the selected key frame. The above solution facilitates the user to quickly find other video frames located near the key frame in the operation video and understand the video portion corresponding to the key frame in the operation video.
[0068] In some embodiments of the present application, the evaluation platform 120 may also determine and provide feedback on the evaluation progress of the application to be tested according to the order of the currently sent operation instruction among all the operation instructions indicated by the instruction sequence script.
[0069] It should be understood that without departing from the teaching of this application, the method for determining the evaluation progress and the form of feedback can be set as needed, and this application does not limit this.
[0070] As an example, the feedback form of the evaluation progress can be in the form of a percentage. In this example, the evaluation progress can be the ratio of the ranking and the total instructions, or it can be a value determined based on the ranking, the estimated execution time of each operation instruction, the estimated operation video analysis time and the statistical time. For example, the instruction sequence script contains 10 operation instructions, and the operation instruction sent by the evaluation platform 120 to the test device 110 is the third operation instruction. Its evaluation progress can be 3 / 10=30%, or it can be (t1+t2) / (T1+T2+T3)%, where t1 is the estimated execution time of the first operation instruction, t2 is the estimated execution time of the second operation instruction, T1 is the sum of the estimated execution time of all operation instructions, T2 is the estimated operation video analysis time, and T3 is the estimated statistical time. The above scheme facilitates users to understand the evaluation progress of the application to be tested, arrange time reasonably, and improve user experience.
[0071] As another example, feedback on the progress of the assessment could be in the form of Figure 5 The progress bar in the progress feedback area 151 is shown as an example. The progress bar can mainly reflect the progress of key frame extraction, and may include a "start" node, a "script execution in progress" node, a "script execution end" node, a "key frame extraction" node, and a "completion" node. By way of example, the evaluation platform 120 may determine the node corresponding to the currently executed operation, connect the determined node and the node before it with a solid line, and connect the determined node and the node after it with a dotted line. For example, if the evaluation platform 120 determines that all operation instructions in the instruction sequence script have been issued and completed, and receives an instruction completion notification, it can be connected through Figure 5 The example forms feedback the evaluation progress, that is, the "Start" node and the "Script Execution" node are connected by a solid line, the "Script Execution" node and the "Script Execution End" node are connected by a solid line, the "Script Execution End" node and the "Key Frame Extraction" node are connected by a dotted line, and the "Key Frame Extraction" node and the "Completion" node are connected by a dotted line. For another example, if the evaluation platform 120 determines that an operation instruction is still being issued, and the issued operation instruction is not the last operation instruction in the instruction sequence script, then the "Start" node and the "Script Execution" node can be connected by a solid line, the "Script Execution" node and the "Script Execution End" node can be connected by a dotted line, the "Script Execution End" node and the "Key Frame Extraction" node can be connected by a dotted line, the "Script Execution End" node and the "Key Frame Extraction" node can be connected by a dotted line, and the "Key Frame Extraction" node and the "Completion" node can be connected by a dotted line.
[0072] It should be understood that, without departing from the teachings of the present application, the evaluation platform 120 may be further configured with other functions, and controls for triggering other functions may be displayed through the operation interface 140 , and the present application does not impose any limitation on this.
[0073] For ease of understanding, the following Figure 3 Taking the illustrated evaluation platform 120 as an example, the interaction among the user 160 , the evaluation platform 120 , the test device 110 and the camera device 130 is exemplarily described.
[0074] In some embodiments of the present application, Figure 6 1 is a schematic diagram of the interaction between the user 160, the evaluation platform 120, the test device 110 and the camera device 130 according to some embodiments of the present application. Figure 6 As shown, the evaluation of application performance may include the following steps:
[0075] S31, the user determines to start the evaluation. The user may refer to an operator of the application performance evaluation system 100, for example, a tester. The user can perform management operations and view performance evaluation results through the operation interface 140 provided by the interface management module 121 of the evaluation platform 120. In some scenarios, the user uploads the instruction sequence script by clicking the control 141, and clicks the control 143 indicating the start of the evaluation in the operation interface 140 to trigger the subsequent evaluation operation of the evaluation platform 120.
[0076] S32, the interface management module 121 calls the application evaluation execution process of the scheduling module 122. For example, the interface management module 121 sends a start evaluation instruction to the scheduling module 122 to call the application evaluation execution process of the scheduling module 122 to start the performance evaluation of the application to be tested.
[0077] S33 - 1 , the scheduling module 122 sends a start execution instruction to the instruction execution module 124 .
[0078] S33 - 2 , the scheduling module 122 sends a start recording instruction to the camera device 130 .
[0079] It is understandable that step S33-1 and step S33-2 may be executed simultaneously, or step S33-2 may be executed first and then step S33-1, and this application does not impose any limitation on this.
[0080] S34, after receiving the start execution instruction, the instruction execution module 124 sends the operation instruction to the test device 110. For example, the instruction execution module 124 sends the operation instructions in the execution sequence script to the test device 110 in sequence.
[0081] S35 , the testing device 110 controls the application to be tested to execute the received operation instruction, so as to evaluate the application to be tested.
[0082] S36, after determining that the operation instruction is completed, the instruction execution module 124 sends an instruction completion notification to the scheduling module 122. It is understandable that the instruction execution module 124 can determine that the operation instruction is completed after all operation instructions are issued, and can also determine whether the operation instruction is completed based on the feedback of the test device. For example, after all operation instructions are completed, the test device 110 can send a first prompt message to the instruction execution module 124, and the instruction execution module 124 determines that the operation instruction is completed after receiving the first prompt message. For another example, after executing each operation instruction, the test device 110 sends the second prompt message corresponding to each operation instruction to the instruction execution module 124, and the instruction execution module 124 determines whether all operation instructions are completed based on the received second prompt message.
[0083] Optionally, if the test device 110 sends the second prompt information corresponding to each operation instruction to the instruction execution module 124 after executing each operation instruction, the instruction execution module 124 may send the next operation instruction after sending an operation instruction and receiving the second prompt information corresponding to the operation instruction, so as to reduce program disorder of the test device 110.
[0084] S37, the scheduling module 122 sends an end recording instruction to the camera device 130 to end the recording. It is understandable that, without departing from the teachings of the present application, the camera device 130 can also start and end recording under manual control, that is, the user directly clicks on the camera device 130 to start or end recording, and the present application does not limit this.
[0085] S38, the camera device 130 saves the recorded screen recording video. For example, the screen recording video can be saved in the video file storage space 125, which can be the storage space of the evaluation platform 120 or the storage space of the camera device 130. Here, the storage space of the evaluation platform 120 is used as an example.
[0086] S39, the scheduling module 122 sends a key frame extraction instruction to the key frame extraction module 123. For example, the scheduling module 122 sends the key frame extraction instruction after determining that the screen recording video is saved.
[0087] S40, the key frame extraction module 123 reads the screen recording video from the video file storage space 125 as the operation video.
[0088] S41, the key frame extraction module 123 extracts the key frames in the operation video. The key frame extraction process can refer to the above related description, and is not limited here.
[0089] S42 , the key frame extraction module 123 stores the extracted key frames in the image storage space 126 in the form of pictures.
[0090] S43, after extracting the key frames, the key frame extraction module 123 sends an extraction completion notification to the scheduling module 122.
[0091] S44 , the scheduling module 122 feeds back the progress of the application evaluation execution process to the interface management module 121 .
[0092] It is understandable that, after step S32, the scheduling module 122 may determine and send the progress of the application evaluation execution process to the interface management module 121 based on the feedback from each system module, or it may only send a notification to the interface management module 121 after determining that the key frame extraction is completed so that the interface management module 121 can start the statistical operation. This application does not impose any restrictions on this.
[0093] Optionally, after determining that the extraction of the progress indication key frame of the application evaluation execution process is completed, the interface management module 121 executes step S45 - 1 and step S45 - 2 .
[0094] S45-1, read the screen recording video as the operation video from the video file storage space 125. It can be understood that the interface management module 121 can selectively perform the acquisition and display operations of the operation video, and this application does not limit it.
[0095] S45 - 2 , read the key frame information from the image storage space 126 .
[0096] S46, the interface management module 121 displays the operation video and key frames. The display method of the operation video and key frames can refer to the above related description, which will not be repeated here.
[0097] S47, the user cyclically marks all page switching intervals through the operation interface 140 provided by the interface management module 121. In other words, the user marks the start key frame and the end key frame through the operation interface 140.
[0098] S48, the user triggers the statistical operation through the operation interface 140 provided by the interface management module 121. For example, the user clicks Figure 5 The control 147 in the illustrated operation interface 140 is used to trigger a statistical operation.
[0099] S49, the interface management module 121 performs statistical operations. For example, after detecting that the control 147 is triggered, the evaluation platform 120 starts to calculate the response time, average response time, total response time, etc. of each operation instruction to evaluate the performance of the application to be tested.
[0100] S50, the interface management module 121 feeds back the performance evaluation result through the operation interface 140. The feedback method of the performance evaluation result can be referred to the above description, which will not be repeated here.
[0101] According to some embodiments of the present application, a more complete application performance evaluation system 100 is proposed. The application performance evaluation system 100 extracts and displays key frames so that users can mark the start key frame and the end key frame, without the need for users to determine the start key frame and the end key frame in all video frames of the operation video, thereby improving the work efficiency of application evaluation and reducing the user's workload. At the same time, the solution does not require the user to click start and end separately when triggering an operation instruction to determine the start time and end time of the operation instruction, thereby reducing the difficulty of operation and improving the accuracy of the performance evaluation results. In addition, compared with the method of fully automated testing of applications, it can test the performance of complex applications and is more feasible. In addition, the application evaluation method 200 mentioned in the embodiments of the present application does not require the source code of the application to be tested to be modified, thereby reducing the invasiveness of the application to be tested.
[0102] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0103] The embodiment of the present application also provides an electronic device, such as Figure 7 As shown, the electronic device 700 may include: at least one processor and a memory, the memory is communicatively connected to the at least one processor and stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned application evaluation method 200. For example, the electronic device 700 may be, for example, the evaluation platform 120 mentioned above, or other devices, which are not limited here.
[0104] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the application evaluation method 200 is implemented.
[0105] Figure 7 is a schematic block diagram of an electronic device 700 according to some embodiments of the present application. Figure 7As shown, the electronic device 700 includes a processor 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a memory 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 can also be stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0106] Multiple components in the electronic device 700 are connected to the I / O interface 705, including: an input unit 706, such as buttons and touch screens of the vehicle computer; an output unit 707, connected to, for example, various types of displays, speakers, etc., to output various forms of signals; a memory 708, including any medium for storing computer executable programs; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the electronic device 700 to exchange information / data with other devices through a local area network or other wireless communication network.
[0107] The processor 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 701 performs the various methods and processes described above, such as the application evaluation method 200. For example, in some embodiments, the application evaluation method 200 may be implemented as a computer software program, which is tangibly contained in a computer-readable storage medium, such as a memory 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the processor 701, one or more steps of the application evaluation method 200 described above may be performed. Alternatively, in other embodiments, the processor 701 may be configured to execute the application evaluation method 200 in any other appropriate manner (e.g., by means of firmware).
[0108] Various aspects of the present application are described herein with reference to the flowcharts and / or timing diagrams of the methods, devices (systems), and computer program products according to the exemplary embodiments of the present application. It should be understood that each step of the flowchart and / or timing diagram and the combination of the steps in the flowchart and / or timing diagram can be implemented by computer-readable program instructions.
[0109] These computer readable program instructions can be provided to the electronic device 700 (such as Figure 2 The instructions are executed by a processor in the evaluation platform 120, a general-purpose computer, a special-purpose computer, or a processing unit of other programmable data processing devices, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / steps specified in one or more steps in the flowchart and / or timing diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions make the computer, programmable data processing device, and / or other equipment work in a specific way, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / steps specified in one or more steps in the flowchart and / or timing diagram.
[0110] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / steps specified in one or more steps in the flowchart and / or timing diagram.
[0111] The flowchart and timing diagram in the accompanying drawings show the possible architecture, functions and operations of the equipment, methods and computer program products according to multiple embodiments of the present application. In this regard, each step in the flowchart or timing diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative embodiments, the functions marked in the steps can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each step in the timing diagram and / or the flowchart, and the combination of the steps in the timing diagram and / or the flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0112] The above description is only an implementation method of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of protection involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the technical concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other.
Claims
1. An application performance evaluation method, characterized in that: include: Extract and display key frames of the operation video of the application under test; Determine a start key frame and an end key frame in the key frames according to a detected marking operation of the user on the key frames; as well as The performance of the application to be tested is evaluated according to the start key frame and the end key frame.
2. The method according to claim 1, wherein: Extracting the key frame includes: Performing masking processing on the video frames of the operation video according to a preset masking rule; and The masked video frame is identified to obtain the key frame in the operation video.
3. The method according to claim 1, wherein: The method further comprises: Sending operation instructions in sequence according to the instruction sequence script to the test device installed with the application to be tested; and A screen recording video of the test device is obtained as the operation video.
4. The method according to claim 3, wherein: The evaluating the performance of the application to be tested according to the start key frame and the end key frame comprises: Determining the response time of each of the operation instructions according to the start key frame and the end key frame corresponding to each of the operation instructions; and The performance of the application to be tested is evaluated according to the response time of each of the operation instructions.
5. The method according to claim 4, wherein: The method further comprises: Displaying an instruction identifier of the operation instruction on the operation interface; The determining, according to the detected marking operation of the user on the key frame, the start key frame and the end key frame in the key frame comprises: In response to detecting a first marking operation on any of the key frames, determining a currently selected instruction identifier, and determining the operated key frame as the start key frame of the operation instruction corresponding to the selected instruction identifier; or, In response to detecting a second marking operation on any of the key frames, a currently selected instruction identifier is determined, and the operated key frame is determined as the end key frame of the operation instruction corresponding to the selected instruction identifier.
6. The method according to claim 3, wherein: Obtaining the screen recording video of the test device includes: Sending a start recording instruction to a camera device, so that the camera device performs screen recording of the test device to obtain the screen recording video; and The screen recording video is obtained from the camera device.
7. The method according to claim 3, wherein: The method further comprises: According to the order of the currently sent operation instruction among all the operation instructions indicated by the instruction sequence script, the evaluation progress of the application to be tested is determined and fed back.
8. The method according to claim 3, wherein: The instruction sequence script includes at least one or more of: an opening instruction of the application to be tested, a click instruction for simulating clicking a control of the application to be tested, a sliding instruction for simulating sliding an operation interface of the application to be tested, and a closing instruction of the application to be tested.
9. An electronic device, characterized in that: include: at least one processor; as well as, A memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor so as to enable the at least one processor to execute the application evaluation method as described in any one of claims 1 to 8.
10. An application performance evaluation system, characterized in that: include: A test device, which is installed with the application to be tested, to execute the detected operation instructions; as well as An evaluation platform comprises a processor, wherein the processor is configured to: in response to the test device executing the operation instruction, obtain an operation video of the test device executing the operation instruction, and execute the application evaluation method according to any one of claims 1 to 8 based on the operation video.
11. The system according to claim 10, wherein: The system further comprises: A camera device has a screen shooting angle of the test device and is used to record the screen of the test device to obtain a screen recording video in response to receiving a start recording instruction; and transmit the screen recording video to the evaluation platform, and the screen recording video is determined to be the operation video.
12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the application evaluation method according to any one of claims 1 to 8 is implemented.
