Statistical method and device for video playback browsing interface time consumption and playback success rate
Through the preset test script automatically calls the video equipment video background release interface, the statistical video recovery release interface consumption and success rate, solve the problem of low statistical efficiency in existing technology, and achieve efficient and human statistical methods.
Patent Information
- Application Number
- CN202411651256.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-01-28
AI Technical Summary
In the prior art, the video playback browsing interface is time-consuming and playback success rate statistical efficiency is low, time-consuming and labor-intensive, and has low efficiency.
Through the preset test script, call the video device video playback browse interface for the video device videos in the preset interface request mode for the video playback, obtain the recording background results, and statistics the success consumption and response success rate of the response of each interface according to the results.
It has significantly improved statistics, reduced statistics, saves manpower, and understands the stability of video equipment through the replacement power. It can conduct in -depth analysis of failure requests.
Smart Images

Figure CN119383336A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of video monitoring technology, and in particular to a method, device, equipment and computer-readable storage medium for counting video playback browsing interface time consumption and playback success rate. Background Art
[0002] In user stores, video monitoring of the store environment is required through video recording equipment. When users need to replay video information, they can replay the video by calling the video playback browsing interface. Therefore, the time consumption and playback success rate of the video playback browsing interface will affect the user's experience of video information playback, so it is necessary to collect statistics on the time consumption and playback success rate of the video playback browsing interface.
[0003] The current method of counting the time consumption and playback success rate of the video playback browsing interface is to manually test the video playback. When there are many channels that need to be played back, it is necessary to obtain the time consumption information and interface return information through the front-end console after each request. The counting of the time consumption and playback success rate of the video playback browsing interface is time-consuming and labor-intensive, and has low efficiency.
[0004] In summary, how to effectively solve the problems of time-consuming video playback browsing interface and time-consuming and labor-intensive playback success rate statistics, and low efficiency, is an urgent problem that technicians in this field need to solve. Summary of the invention
[0005] The purpose of this application is to provide a method for counting the time consumption of a video playback browsing interface and the playback success rate, which greatly improves the statistical efficiency, reduces the statistical time consumption, and saves manpower; another purpose of this application is to provide a device, equipment and computer-readable storage medium for counting the time consumption of a video playback browsing interface and the playback success rate.
[0006] In order to solve the above technical problems, this application provides the following technical solutions:
[0007] A method for counting the time consumption and playback success rate of a video playback browsing interface, comprising:
[0008] Get the preset interface request mode;
[0009] Calling the video playback browsing interface of the video recording device according to the preset interface request mode through a preset test script to perform video playback and obtain the video playback result;
[0010] The successful response time and response success rate of each interface are counted according to the video playback results.
[0011] In a specific implementation of the present application, calling the video playback browsing interface of the video recording device to play back the video according to the preset interface request mode through a preset test script includes:
[0012] When the preset interface request mode is that multiple channels connected to the recording device perform interface calls at random times every day for a preset number of consecutive days, the preset test script is used to call the recording device's video playback browsing interface for video playback according to the interface request mode of multiple channels connected to the recording device for a preset number of consecutive days at random times every day.
[0013] In a specific implementation of the present application, calling the video playback browsing interface of the video recording device to play back the video according to the preset interface request mode through a preset test script includes:
[0014] When the preset interface request mode specifies the first preset number of times a day for multiple channels connected to the video recording device to perform interface calls, the preset test script is used to call the video playback browsing interface of the video recording device to perform video playback in accordance with the interface request mode specified for the first preset number of times a day for multiple channels connected to the video recording device; wherein the calling time of each interface call for each channel is random.
[0015] In a specific implementation of the present application, calling the video playback browsing interface of the video recording device to play back the video according to the preset interface request mode through a preset test script includes:
[0016] When the preset interface request mode specifies the second preset number of times a day for interface call for the preset channel connected to the recording device, the preset test script is used to call the recording device's video playback browsing interface for video playback in accordance with the interface request mode specified the second preset number of times a day for the preset channel connected to the recording device.
[0017] In a specific implementation of the present application, calling the video playback browsing interface of the video recording device to play back the video according to the preset interface request mode through a preset test script includes:
[0018] Read the unique serial number of the video recording device to be tested from the unique serial number table of the video recording device to be tested;
[0019] Determine the store identification number of the video recording device to be tested, the system identification number in the system, and the device name according to the unique serial number;
[0020] The preset test script is used to call the video playback browsing interface of the video recording device for video playback according to the store identification number, the system identification number, and the device name in accordance with the preset interface request mode.
[0021] In a specific implementation of the present application, after counting the successful response time and response success rate of each interface according to the video playback result, the method further includes:
[0022] When it is determined based on the response success rate that there is a video playback browsing interface request for a video recording device that has failed to respond, the interface request parameters and request time point corresponding to the video playback browsing interface request for the video recording device that has failed to respond are recorded; wherein the interface request parameters include the store identification number of the video recording device to be tested corresponding to the video playback browsing interface request for the video recording device that has failed to respond, the system identification number in the system, and the device name.
[0023] In a specific implementation of the present application, after recording the interface request parameters and request time point corresponding to the video playback browsing interface request of the video recording device that failed to respond, the method further includes:
[0024] Reproduce and troubleshoot the cause of the exception based on the interface request parameters and request time point.
[0025] A device for counting the time consumption and playback success rate of a video playback browsing interface, comprising:
[0026] A request mode acquisition module is used to obtain a preset interface request mode;
[0027] The video playback result obtaining module is used to call the video playback browsing interface of the video recording device according to the preset interface request mode through a preset test script to perform video playback and obtain the video playback result;
[0028] The time consumption and success rate statistics module is used to count the successful response time consumption and response success rate of each interface according to the video playback result.
[0029] A device for counting the time consumption and playback success rate of a video playback browsing interface, comprising:
[0030] Memory for storing computer programs;
[0031] The processor is used to implement the steps of the method for calculating the time consumption and playback success rate of the video playback browsing interface as described above when executing the computer program.
[0032] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described above are implemented.
[0033] The method for counting the time consumption and playback success rate of the video playback browsing interface provided in the present application obtains a preset interface request mode; calls the video playback browsing interface of the video recording device according to the preset interface request mode through a preset test script to perform video playback and obtain the video playback result; and counts the time consumption and response success rate of each interface based on the video playback result.
[0034] It can be seen from the above technical solution that by pre-setting the interface request mode, and pre-setting the test script for automatically testing the video playback browsing interface time consumption and playback success rate. Obtain the preset interface request mode, and call the video playback browsing interface of the video recording device according to the preset interface request mode through the preset test script to play back the video, obtain the video playback result, and count the successful response time consumption and response success rate of each interface according to the video playback result. Automatically test the successful response time consumption and response success rate of each interface through the preset test script, which greatly improves the statistical efficiency, reduces the statistical time consumption, and saves manpower compared to manual testing of video playback. The stability of the video recording device related to playback and streaming can be understood through the playback success rate, and in-depth analysis can be conducted on failed requests to determine whether there is room for optimization and improvement, and to eliminate potential problems.
[0035] Correspondingly, the present application also provides a video playback browsing interface time consumption and playback success rate statistics device, equipment and computer-readable storage medium corresponding to the above-mentioned video playback browsing interface time consumption and playback success rate statistics method, which has the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] FIG1 is a flowchart of an implementation of a method for counting video playback browsing interface time consumption and playback success rate in an embodiment of the present application;
[0038] FIG2 is another implementation flow chart of a method for counting the time consumption and playback success rate of a video playback browsing interface in an embodiment of the present application;
[0039] 3 is a structural block diagram of a device for counting video playback browsing interface time consumption and playback success rate in an embodiment of the present application;
[0040] 4 is a structural block diagram of a device for counting video playback browsing interface time consumption and playback success rate in an embodiment of the present application;
[0041] FIG. 5 is a schematic diagram of the specific structure of a device for counting video playback browsing interface time consumption and playback success rate provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0043] Referring to FIG. 1 , FIG. 1 is a flowchart of a method for counting the time consumption and playback success rate of a video playback browsing interface in an embodiment of the present application. The method may include the following steps:
[0044] S101: Obtain a preset interface request mode.
[0045] Pre-set the interface request mode for the time consumption and playback success rate statistics of the video playback browsing interface. For example, three interface request modes can be pre-set, one is to request the playback of all channels under the video recording device for multiple consecutive days (settable); another is to request the playback of all channels under the video recording device for a specified number of times in a specified day; and another is to request the playback of a specified number of times in a specified day of a specified channel under the video recording device; through multiple interface request modes, the relevant playback data of the video recording device is obtained, which is convenient for analyzing the performance of the device and troubleshooting potential problems.
[0046] S102: Calling the video playback browsing interface of the video recording device according to the preset interface request mode through the preset test script to perform video playback and obtain the video playback result.
[0047] A test script is pre-set for automatically calling the video playback browsing interface of the video recording device for video playback. After obtaining the preset interface request mode, the video playback browsing interface of the video recording device is called according to the preset interface request mode through the preset test script to play back the video and obtain the video playback result.
[0048] S103: Counting the successful response time and response success rate of each interface according to the video playback result.
[0049] After obtaining the video playback results, the successful response time and response success rate of each interface are counted according to the video playback results.
[0050] It can be seen from the above technical solution that by pre-setting the interface request mode, and pre-setting the test script for automatically testing the video playback browsing interface time consumption and playback success rate. Obtain the preset interface request mode, and call the video playback browsing interface of the video recording device according to the preset interface request mode through the preset test script to play back the video, obtain the video playback result, and count the successful response time consumption and response success rate of each interface according to the video playback result. Automatically test the successful response time consumption and response success rate of each interface through the preset test script, which greatly improves the statistical efficiency, reduces the statistical time consumption, and saves manpower compared to manual testing of video playback. The stability of the video recording device related to playback and streaming can be understood through the playback success rate, and in-depth analysis can be conducted on failed requests to determine whether there is room for optimization and improvement, and to eliminate potential problems.
[0051] It should be noted that, based on the above embodiment, the embodiment of the present application also provides corresponding improved solutions. In the subsequent embodiments, the same steps or corresponding steps as those in the above embodiment can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, which will not be repeated one by one in the following improved embodiments.
[0052] In a specific implementation of the present application, calling the video playback browsing interface of the video recording device to play back the video according to the preset interface request mode through a preset test script may include the following steps:
[0053] When the preset interface request mode is that multiple channels connected to the recording device make interface calls at random times every day for a preset number of consecutive days, the recording playback browsing interface of the recording device is called to play back the recording through the preset test script in accordance with the interface request mode of multiple channels connected to the recording device for a preset number of consecutive days at random times every day.
[0054] When the preset interface request mode is that multiple channels connected to the video recording device perform interface calls at random times every day for consecutive preset days, the preset test script is used to call the video playback browsing interface of the video recording device for video playback according to the interface request mode of multiple channels connected to the video recording device for consecutive preset days at random times every day. By taking into account the storage characteristics of the hard disk, the video information with a short storage time in the hard disk is stored in the upper layer of the hard disk, and the video information with a long storage time in the hard disk is stored in the lower layer of the hard disk. The time spent on calling the video information stored in the upper layer of the hard disk is relatively shorter, and the time spent on calling the video information stored in the lower layer of the hard disk is relatively longer. Therefore, by performing interface calls at random times every day for consecutive preset days, and averaging the time spent on successful responses of each interface, the average time spent for consecutive preset days is obtained, so that the average time spent obtained by the test is more representative and the accuracy of the average time spent obtained by the test is improved.
[0055] A time range can be set, such as July 1st to July 30th. The unique serial number of one or more registered video recording devices can be used to randomly request the playback of a video recording at a time point every day from July 1st to July 30th for each sub-device under each video recording device. Each time a sub-device is requested, the time consumption of the interface will be printed and recorded, and it will be determined whether there is a request failure or anomaly. If there is a failure or anomaly, the count will be accumulated, and the parameters and request time points of the interface request during the failure and anomaly will be printed, so as to facilitate the subsequent reproduction and investigation of the cause of the anomaly. Each sub-device is requested only once, and the average printing time is calculated after all sub-devices are looped through, that is, the interface time consumption of each successfully requested sub-device playback is summed up to obtain the total time consumption, and the total time consumption is divided by the number of successful times to obtain the average time consumption, and then other video recording devices are tested until the unique serial numbers of all registered video recording devices are tested.
[0056] In a specific implementation of the present application, calling the video playback browsing interface of the video recording device to play back the video according to the preset interface request mode through a preset test script may include the following steps:
[0057] When the preset interface request mode specifies the first preset number of times a day for interface calls for multiple channels connected to the recording device, the recording playback browsing interface of the recording device is called to play back the recording according to the preset test script in accordance with the interface request mode specified for the first preset number of times a day for multiple channels connected to the recording device; wherein the calling time of each interface call for each channel is random.
[0058] When the preset interface request mode specifies the first preset number of times a day for multiple channels connected to the video recording device to perform interface calls, the preset test script is used to call the video playback browsing interface of the video recording device for video playback according to the interface request mode of the first preset number of times a day for multiple channels connected to the video recording device, and the calling time of each interface call of each channel is random. By calling each channel connected to the video recording device for the first preset number of times a day, an effective test of the current performance of the video recording device is achieved.
[0059] The number of tests for each sub-device under each recording device can be set, such as 100 times. Through the unique serial numbers of one or more registered recording devices, 100 video playback requests are randomly made for each sub-device under each recording device on a set day (such as July 1st). The start playback time of each request is a random value. The request parameters (such as the start and end time of the playback) are printed at the beginning of each request. At the end of the request, the current execution number, the time point of the request and the time taken for this request are printed. If there is an interface failure or abnormal test, the time point of the abnormal request and the accumulated number of failures are printed. After testing a sub-device, the total number of failures in the 100 requests is printed, and the time consumption of all successful requests and the average time consumption (that is, the sum of the interface time consumption of the number of successful times / the number of successful times) are recorded. After traversing all channels under a recording device, the next recording device is started.
[0060] In a specific implementation of the present application, calling the video playback browsing interface of the video recording device to play back the video according to the preset interface request mode through a preset test script may include the following steps:
[0061] When the preset interface request mode specifies the second preset number of times a day for the preset channel connected to the recording device to perform an interface call, the recording device's video playback browsing interface is called to perform video playback according to the preset test script in accordance with the interface request mode specified the second preset number of times a day for the preset channel connected to the recording device.
[0062] When the preset interface request mode specifies the second preset number of times a day for the preset channel connected to the video recording device to perform an interface call, the preset test script is used to call the video playback browsing interface of the video recording device to perform video playback according to the interface request mode of the second preset number of times a day for the preset channel connected to the video recording device. By calling the preset number of times a day for the preset channel connected to the video recording device, an effective test of the current performance of the sub-device in the preset channel connected to the video recording device is achieved.
[0063] For example, specify channel 0, and then each recording device requests the playback of channel 0 at a random time point for a total of 100 times, and then traverse all the recording devices that need to be tested.
[0064] It should be noted that the first preset number of times and the second preset number of times can be set and adjusted according to actual conditions, and the embodiments of the present application do not limit this.
[0065] Referring to FIG. 2 , FIG. 2 is another implementation flow chart of a method for counting the time consumption and playback success rate of a video playback browsing interface in an embodiment of the present application. The method may include the following steps:
[0066] S201: Obtain a preset interface request mode.
[0067] S202: Read the unique serial number of the video recording device to be tested from the unique serial number table of the video recording device to be tested.
[0068] You can create a new execl table in the specified path as the unique serial number table of the video recording device to be tested. Enter the unique serial number (mac) of the video recording device to be tested in each row of the first column of the table. Read the unique serial number of the video recording device to be tested from the unique serial number table of the video recording device to be tested.
[0069] S203: Determine the store identification number of the video recording device to be tested, the system identification number in the system, and the device name according to the unique serial number.
[0070] Preset the correspondence between the unique serial number, the store identification number, the system identification number, and the device name. After reading the unique serial number of the video recording device to be tested, determine the store identification number of the video recording device to be tested, the system identification number in the system, and the device name according to the unique serial number.
[0071] S204: Using a preset test script, according to the store identification number, system identification number, and device name, the video playback browsing interface of the video recording device is called according to the preset interface request mode to perform video playback and obtain a video playback result.
[0072] After determining the store identification number of the video device to be tested, the system identification number in the system, and the device name, the preset test script is used to call the video playback browsing interface of the video device according to the store identification number, system identification number, and device name, and the preset interface request mode to play back the video, and obtain the video playback result. By calling the video playback browsing interface of the video device according to the store identification number, system identification number, and device name to play back the video, accurate retrieval of the video information is achieved.
[0073] S205: Counting the successful response time and response success rate of each interface according to the video playback result.
[0074] S206: When it is determined according to the response success rate that there is a video recording device video playback browsing interface request that fails to respond, the interface request parameters and request time point corresponding to the video recording device video playback browsing interface request that fails to respond are recorded.
[0075] The interface request parameters include the store identification number of the video device to be tested corresponding to the video playback browsing interface request of the video device that failed to respond, the system identification number in the system, and the device name.
[0076] After obtaining the time consumption and response success rate of each interface response, determine whether there is a video playback browsing interface request of the video recording device that fails to respond according to the response success rate. When it is determined that there is a video playback browsing interface request of the video recording device that fails to respond according to the response success rate, record the interface request parameters and request time point corresponding to the video playback browsing interface request of the video recording device that fails to respond. The recorded interface request parameters may include the store identification number of the video recording device to be tested corresponding to the video playback browsing interface request of the video recording device that fails to respond, the system identification number in the system, and the device name.
[0077] S207: Reproduce and troubleshoot the cause of the exception based on the interface request parameters and the request time point.
[0078] After recording the interface request parameters such as the request time point and the store identification number, the system identification number in the system, and the device name, the abnormal cause can be reproduced and checked according to the interface request parameters and the request time point. For example, the reason for the response failure can be determined based on the request time point to determine whether the recording is missing at the request time point. The time taken by the business platform to send the recording device playback browsing interface call request to the signaling platform can also be recorded, and the time taken by the signaling platform to forward the recording device playback browsing interface call request to the recording device can also be recorded. According to the time taken for the successful interface response, it can be checked whether the business platform takes a long time to send the recording device playback browsing interface call request to the signaling platform, or whether the signaling platform takes a long time to forward the recording device playback browsing interface call request to the recording device, thereby reproducing and checking the abnormal cause, and realizing accurate troubleshooting of the abnormal cause of the response.
[0079] Corresponding to the above method embodiments, the present application also provides a device for counting the time consumption and playback success rate of a video playback browsing interface. The device for counting the time consumption and playback success rate of a video playback browsing interface described below and the method for counting the time consumption and playback success rate of a video playback browsing interface described above can refer to each other.
[0080] Referring to FIG. 3 , FIG. 3 is a structural block diagram of a device for counting video playback browsing interface time consumption and playback success rate in an embodiment of the present application. The device may include:
[0081] The request mode acquisition module 31 is used to acquire a preset interface request mode;
[0082] The video playback result obtaining module 32 is used to call the video playback browsing interface of the video recording device according to the preset interface request mode through the preset test script to perform video playback and obtain the video playback result;
[0083] The time consumption and success rate statistics module 33 is used to count the successful response time consumption and response success rate of each interface according to the video playback result.
[0084] It can be seen from the above technical solution that by pre-setting the interface request mode, and pre-setting the test script for automatically testing the video playback browsing interface time consumption and playback success rate. Obtain the preset interface request mode, and call the video playback browsing interface of the video recording device according to the preset interface request mode through the preset test script to play back the video, obtain the video playback result, and count the successful response time consumption and response success rate of each interface according to the video playback result. Automatically test the successful response time consumption and response success rate of each interface through the preset test script, which greatly improves the statistical efficiency, reduces the statistical time consumption, and saves manpower compared to manual testing of video playback. The stability of the video recording device related to playback and streaming can be understood through the playback success rate, and in-depth analysis can be conducted on failed requests to determine whether there is room for optimization and improvement, and to eliminate potential problems.
[0085] In a specific embodiment of the present application, the video playback result obtaining module 32 is specifically a module that calls the video playback browsing interface of the video recording device for video playback according to the preset test script according to the interface request mode of multiple channels connected to the video recording device for consecutive preset days at random times every day.
[0086] In a specific embodiment of the present application, the video playback result acquisition module 32 is specifically a module that calls the video playback browsing interface of the video recording device for video playback according to the interface request mode specified by the first preset number of times a day for multiple channels connected to the video recording device through a preset test script when the preset interface request mode specifies the first preset number of times a day for multiple channels connected to the video recording device to perform interface calls; wherein the calling time of each interface call for each channel is random.
[0087] In a specific embodiment of the present application, the video playback result obtaining module 32 is specifically a module that calls the video playback browsing interface of the video recording device for video playback according to the preset test script according to the preset test script when the preset interface request mode specifies the second preset number of times a day for the preset channel connected to the video recording device to perform an interface call.
[0088] In a specific implementation of the present application, the video playback result obtaining module 32 includes:
[0089] The unique serial number reading submodule is used to read the unique serial number of the video recording device to be tested from the unique serial number table of the video recording device to be tested;
[0090] The identification number and name determination submodule is used to determine the store identification number of the video recording device to be tested, the system identification number in the system, and the device name according to the unique serial number;
[0091] The video playback submodule is used to call the video playback browsing interface of the video device for video playback according to the preset interface request mode through the preset test script based on the store identification number, system identification number, and device name.
[0092] In a specific embodiment of the present application, the device may further include:
[0093] A recording module is used to record the successful response time and response success rate of each interface according to the video playback result, and when it is determined according to the response success rate that there is a video playback browsing interface request of the video device that failed to respond, the interface request parameters and request time point corresponding to the video playback browsing interface request of the video device that failed to respond are recorded; wherein the interface request parameters include the store identification number of the video device to be tested corresponding to the video playback browsing interface request of the video device that failed to respond, the system identification number in the system, and the device name.
[0094] In a specific embodiment of the present application, the device may further include:
[0095] The exception cause troubleshooting module is used to reproduce and troubleshoot the exception cause based on the interface request parameters and request time point.
[0096] Corresponding to the above method embodiment, referring to FIG. 4 , FIG. 4 is a schematic diagram of a device for counting the time consumption and playback success rate of a video playback browsing interface provided by the present application, and the device may include:
[0097] A memory 332, for storing computer programs;
[0098] The processor 322 is used to implement the steps of the method for counting the video playback browsing interface time consumption and playback success rate in the above method embodiment when executing the computer program.
[0099] Specifically, please refer to FIG. 5, which is a schematic diagram of the specific structure of a video playback browsing interface time consumption and playback success rate statistics device provided in this embodiment. The video playback browsing interface time consumption and playback success rate statistics device may have relatively large differences due to different configurations or performances, and may include a processor (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, and the memory 332 stores one or more computer programs 342 or data 344. Among them, the memory 332 can be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data processing device. Furthermore, the processor 322 can be configured to communicate with the memory 332, and execute a series of instruction operations in the memory 332 on the video playback browsing interface time consumption and playback success rate statistics device 301.
[0100] The video playback browsing interface time consumption and playback success rate statistics device 301 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input and output interfaces 358, and / or one or more operating systems 341.
[0101] The steps in the method for counting the time consumption of the video playback browsing interface and the playback success rate described above can be implemented by the structure of the device for counting the time consumption of the video playback browsing interface and the playback success rate.
[0102] Corresponding to the above method embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:
[0103] Obtain a preset interface request mode; call the video playback browsing interface of the video recording device according to the preset interface request mode through a preset test script to perform video playback and obtain the video playback result; and count the successful response time and response success rate of each interface according to the video playback result.
[0104] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0105] For an introduction to the computer-readable storage medium provided in this application, please refer to the above method embodiment, and this application will not go into details here.
[0106] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0107] Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the technical solution and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.
Claims
1. A method for counting the time consumption and playback success rate of a video playback browsing interface, characterized in that: include: Get the preset interface request mode; Calling the video playback browsing interface of the video recording device according to the preset interface request mode through a preset test script to perform video playback and obtain the video playback result; The successful response time and response success rate of each interface are counted according to the video playback results.
2. The method for counting the time consumption and playback success rate of the video playback browsing interface according to claim 1 is characterized in that: The video playback browsing interface of the video recording device is called according to the preset interface request mode through the preset test script to perform video playback, including: When the preset interface request mode is that multiple channels connected to the recording device perform interface calls at random times every day for a preset number of consecutive days, the preset test script is used to call the recording device's video playback browsing interface for video playback according to the interface request mode of multiple channels connected to the recording device for a preset number of consecutive days at random times every day.
3. The method for counting the time consumption and playback success rate of the video playback browsing interface according to claim 1 is characterized in that: The video playback browsing interface of the video recording device is called according to the preset interface request mode through the preset test script to perform video playback, including: When the preset interface request mode specifies the first preset number of times a day for multiple channels connected to the video recording device to perform interface calls, the preset test script is used to call the video playback browsing interface of the video recording device to perform video playback in accordance with the interface request mode specified for the first preset number of times a day for multiple channels connected to the video recording device; wherein the calling time of each interface call for each channel is random.
4. The method for counting the time consumption and playback success rate of the video playback browsing interface according to claim 1 is characterized in that: The video playback browsing interface of the video recording device is called according to the preset interface request mode through the preset test script to perform video playback, including: When the preset interface request mode specifies the second preset number of times a day for interface call for the preset channel connected to the recording device, the preset test script is used to call the recording device's video playback browsing interface for video playback in accordance with the interface request mode specified the second preset number of times a day for the preset channel connected to the recording device.
5. The method for counting the time consumption and playback success rate of the video playback browsing interface according to claim 1 is characterized in that: The video playback browsing interface of the video recording device is called according to the preset interface request mode through the preset test script to perform video playback, including: Read the unique serial number of the video recording device to be tested from the unique serial number table of the video recording device to be tested; Determine the store identification number of the video recording device to be tested, the system identification number in the system, and the device name according to the unique serial number; The preset test script is used to call the video playback browsing interface of the video recording device for video playback according to the store identification number, the system identification number, and the device name in accordance with the preset interface request mode.
6. The method for counting the time consumption and playback success rate of the video playback browsing interface according to claim 5 is characterized in that: After counting the successful response time and response success rate of each interface according to the video playback result, the method further includes: When it is determined based on the response success rate that there is a video playback browsing interface request for a video recording device that has failed to respond, the interface request parameters and request time point corresponding to the video playback browsing interface request for the video recording device that has failed to respond are recorded; wherein the interface request parameters include the store identification number of the video recording device to be tested corresponding to the video playback browsing interface request for the video recording device that has failed to respond, the system identification number in the system, and the device name.
7. The method for counting the time consumption and playback success rate of the video playback browsing interface according to claim 1, characterized in that: After recording the interface request parameters and request time point corresponding to the video playback browsing interface request of the video recording device that failed to respond, the method further includes: Reproduce and troubleshoot the cause of the exception based on the interface request parameters and request time point.
8. A device for counting the time consumption and playback success rate of a video playback browsing interface, characterized in that: include: A request mode acquisition module is used to obtain a preset interface request mode; The video playback result obtaining module is used to call the video playback browsing interface of the video recording device according to the preset interface request mode through a preset test script to perform video playback and obtain the video playback result; The time consumption and success rate statistics module is used to count the successful response time consumption and response success rate of each interface according to the video playback result.
9. A device for counting the time consumption and playback success rate of a video playback browsing interface, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the method for counting the time consumption and playback success rate of the video playback browsing interface as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for counting the time consumption and playback success rate of the video playback browsing interface as described in any one of claims 1 to 7.