IPTV system testing method, device, storage medium and testing equipment
By generating a test instruction set for simulating multi-user use and equipment failure scenarios, and combining it with the host computer to conduct comprehensive performance testing of the IPTV system, the existing problems of long IPTV system test time and incomplete results in the existing technology are solved, and IPTV A comprehensive assessment of system performance.
Patent Information
- Application Number
- CN202410961735.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-18
AI Technical Summary
When testing each functional module of the IPTV system, the existing technology uses each testing tool to test each function of the IPTV system individually, which takes a long time and the test results cannot fully reflect the performance of the IPTV system.
An IPTV system testing method is provided. By generating a first test instruction set for simulating multi-user usage scenarios and a second test instruction set for equipment failure scenarios, the IPTV system is combined with a host computer to conduct a comprehensive performance test to generate comprehensive performance test results. .
By simulating multi-user usage and equipment failure scenarios, a comprehensive performance test of the IPTV system is achieved, saving test time, fully reflecting the performance of the IPTV system, and solving the problems of long time and incomplete results caused by individual testing.
Smart Images

Figure CN118519841B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of system testing, and in particular to an IPTV system testing method, device, storage medium and testing equipment. Background Art
[0002] IPTV system can be divided into the following functional modules: video playback module, channel management module, user account module and recommendation system module. The video playback module has the functions of playing videos of different resolutions, switching channels, and checking video quality. The channel management module has the functions of displaying channel lists, searching channels, and subscribing to channels. The user account module has the functions of user login, account information modification, and program package subscription. The recommendation system module has the functions of personalized recommendation, popular recommendation, and content recommendation.
[0003] At present, the test tools for testing IPTV systems include IPTV test boxes, video quality analyzers, audio testers, network testers, EPG test tools, etc. When testing the various functional modules of the IPTV system, each test tool is generally used to test each function of the IPTV system separately, which takes a long time and the test results cannot fully reflect the performance of the IPTV system. Summary of the invention
[0004] The main purpose of the present application is to provide an IPTV system testing method, device, storage medium and testing equipment, aiming to solve the technical problem that when testing the various functional modules of the IPTV system, each test tool is generally used to test each function of the IPTV system separately, the test time is long, and the test results cannot fully reflect the performance of the IPTV system.
[0005] To achieve the above-mentioned objectives, the present application provides an IPTV system testing method, comprising: in response to a first test request, generating a first test instruction set for simulating a scenario of multiple users using an IPTV system, wherein the first test instruction set includes a page opening test instruction, a video quality test instruction, an audio quality test instruction, and a security test instruction; testing the IPTV system according to the first test instruction set and obtaining a first performance test data set; in response to a second test request, generating a second test instruction set for simulating at least one device failure scenario, wherein the second test instruction set includes any one of the first test instruction set; testing the IPTV system according to the second test instruction set and obtaining a second performance test data set; in response to a third test request, obtaining a comprehensive performance test result of the IPTV system based on the first performance test data set and the second performance test data set.
[0006] Optionally, before generating a first test instruction set for simulating multi-user use in response to the first test request, the method further includes:
[0007] Based on the test request, determine the network environment information, test equipment information and the first test instruction set involved in the IPTV system test, wherein the network environment information includes the network equipment and the configuration information of the network equipment, the test equipment information includes the IPTV playback equipment and the configuration information of the IPTV playback equipment, and the IPTV server equipment and the configuration information of the IPTV server equipment.
[0008] Optionally, in response to the third test request, a comprehensive performance test result of the IPTV system is obtained based on the first performance test data set and the second performance test data set, including: recording the first performance test data set and the second performance test data set respectively; analyzing the recorded first performance test data set to generate a comprehensive performance test report of the IPTV system; analyzing the recorded second performance test data set to generate a single performance test report of the IPTV system; and determining the comprehensive performance test result of the IPTV system based on the comprehensive performance test report and the single performance test report.
[0009] Optionally, testing the IPTV system according to the first test instruction set and obtaining a first performance test data set includes: using a page opening test instruction to open an IPTV user page to obtain page loading test data; using a video quality test instruction to simulate playing videos of different resolutions to obtain video quality test data; using a program playing test instruction to simulate channel switching and program loading to obtain program playing test data; using an audio quality test instruction to simulate playing different audio data to obtain audio quality test data; using a security test instruction to simulate multi-user login to obtain security test data; using a user operation test instruction set to simulate multi-user operation to obtain user operation test data; obtaining the first performance test data set based on the page loading test data, video quality test data, audio quality test data, security test data and user operation test data.
[0010] Optionally, the video quality test instruction is used to simulate the playback of videos with different resolutions to obtain video quality test data, including: detecting the resolution, width and height of the video playback to obtain clarity data and detail performance data of the video playback; detecting the frame rate of the video playback to obtain smoothness data of the video playback; detecting the bit rate of the video to obtain smoothness data of the video; using image processing technology to evaluate the picture of the video playback to obtain color accuracy data, contrast data and brightness data of the video; obtaining the video quality test data based on the clarity data, detail performance data, smoothness data, color accuracy data, contrast data and brightness data.
[0011] Optionally, the separately recording the first performance test data set and the second performance test data set includes: calling a file operation API, performing a write operation, and writing the first performance test data set and the second performance test data set into a designated file, respectively, wherein the designated file includes a text file or a CVS file; or calling a database operation API, executing an SQL statement, and writing the first performance test data set and the second performance test data set into a database table of a database, respectively, wherein the database includes a relational database and a non-relational database.
[0012] Optionally, the analysis and record of the first performance test data set generates a comprehensive performance test report for the IPTV system, including: processing the first performance test data set using a statistical algorithm to obtain fault data of all functional modules of the IPTV system; the analysis and record of the second performance test data set generates a single performance test report for the IPTV system, including: processing the second test data set using a machine learning algorithm to obtain fault prediction analysis data of each functional module of the IPTV system.
[0013] In addition, to achieve the above purpose, the present application also provides an IPTV system testing device, including:
[0014] A first instruction generation module, configured to generate, in response to a first test request, a first test instruction set for simulating a scenario in which multiple users use an IPTV system;
[0015] A first data generating module, configured to test the IPTV system according to the first test instruction set and obtain a first performance test data set;
[0016] A second instruction generation module, configured to generate, in response to a second test request, a second test instruction set for simulating at least one device failure scenario;
[0017] A second data generating module, used for testing the IPTV system according to the second test instruction set and obtaining a second performance test data set;
[0018] The test result generating module is used to obtain the comprehensive performance test result of the IPTV system based on the first performance test data set and the second performance test data set in response to the third test request.
[0019] In addition, to achieve the above objectives, the present application also provides a computer-readable storage medium, which includes instructions, and when the instructions are executed on a computer, the computer executes any of the IPTV system testing methods described above.
[0020] In addition, to achieve the above-mentioned purpose, the present application also provides a testing device, which includes:
[0021] at least one processor, memory, and input-output unit;
[0022] The memory is used to store a computer program, and the processor is used to call the computer program stored in the memory to execute any one of the above-mentioned IPTV system testing methods.
[0023] The beneficial effects that can be achieved by this application.
[0024] The present application proposes an IPTV system testing method, device, storage medium and testing equipment, which generates a first test instruction set for simulating a scenario of multiple users using an IPTV system in response to a first test request; tests the IPTV system according to the first test instruction set and obtains a first performance test data set; generates a second test instruction set for simulating at least one device failure scenario in response to a second test request; tests the IPTV system according to the second test instruction set and obtains a second performance test data set; and obtains a comprehensive performance test result of the IPTV system based on the first performance test data set and the second performance test data set in response to a third test request. The first test instruction set is used to simulate a scenario of multiple users using an IPTV system. The first test instruction set integrates an instruction set dedicated to the test of the IPTV system for multiple users. Under the instruction of the first test instruction set, the host computer drives all modules to complete the task of testing the IPTV system from all angles at one time. By executing the first test instruction on the host computer, the test time is saved and the purpose of comprehensive performance testing is achieved. In response to the second test request, a second test instruction set is generated for simulating at least one device failure scenario; the second test instruction set is used to simulate the scenario of users using the IPTV system when one or more devices fail. The second test instruction set integrates the instruction set for testing the IPTV system in this usage scenario. Through the host computer testing of each function of the IPTV system, the single test indicators of each function of the IPTV system are obtained, so that the performance of each module of the IPTV can be understood. Finally, based on the first performance test data set and the second performance test data set, the comprehensive performance test results of the IPTV system are obtained, which solves the technical problem that when testing each functional module of the IPTV system, each test tool is generally used to test each function of the IPTV system separately, the test time is long, and the test results cannot fully reflect the performance of the IPTV system, and the purpose of fully testing the IPTV system is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A network topology diagram of an IPTV system testing method provided in an embodiment of the present application;
[0026] Figure 2 A flowchart of an IPTV system testing method provided in an embodiment of the present application;
[0027] Figure 3 A structural block diagram of an IPTV system testing device provided in an embodiment of the present application;
[0028] Figure 4 A structural block diagram of a test result generation module provided in an embodiment of the present application;
[0029] Figure 5 A structural block diagram of a first data generation module provided in an embodiment of the present application;
[0030] Figure 6 A schematic diagram of the structure of a storage medium provided in one embodiment of the present application;
[0031] Figure 7 A schematic diagram of the structure of a testing device provided in one embodiment of the present application.
[0032] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0033] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0034] Figure 1 A network topology diagram of an IPTV system testing method provided in an embodiment of the present application, see Figure 1 The network topology includes: an IPTV playback device 1001, a user terminal device 1002, a host computer 1003, a router 1004, a switch 1005, an IPTV server device 1006, and a content server 1007. The IPTV playback device 1001 is connected to the router 1004 through the switch 1005, the router 1004 is connected to the IPTV server device 1006, the user terminal device 1002 is connected to the switch module 1005, the host computer 1003 is connected to the switch 1005, and the IPTV playback device 1001 is connected to the content server 1007. Among them, the IPTV playback device 1001 is installed with an IPTV system, and the host computer 1003 is installed with various test modules. During the test, the host computer 1003 acts as the host computer and the initiator, the IPTV playback device 1001 acts as the tested end and the target end, the IPTV playback device 1001 obtains the playback content from the content server 1007, the IPTV system running on the host computer 1003 is the client, the IPTV server device 1006 acts as the server, and the connection media includes but is not limited to twisted pair cables, optical fibers, etc.
[0035] Figure 2 This is a flowchart of an IPTV system testing method provided by an embodiment of the present application, refer to Figure 2 The IPTV system testing method can be run on the host computer 1003 or on the IPTV server device 1006. The specific implementation steps of the IPTV system testing method include:
[0036] S10, in response to the first test request, generating a first test instruction set for simulating a scenario where multiple users use the IPTV system;
[0037] Wherein, the first test instruction is used to characterize the first test instruction set, and the first test instruction set is used to simulate the scenario of multiple users using the IPTV system. The first test instruction set integrates an instruction set dedicated to the test of the IPTV system for multiple users, wherein the instruction set can be a script program or an application program. Under the instruction of the first test instruction set, the host computer 1003 drives all modules to complete the task of testing the IPTV system from all angles at one time, and by executing the first test instruction on the host computer 1003, the test time is saved and the purpose of comprehensive performance testing is achieved.
[0038] S20, testing the IPTV system according to the first test instruction set and obtaining a first performance test data set of the IPTV system;
[0039] In this embodiment, the specific implementation steps of S20 may include:
[0040] S21, using the page opening test instruction to open the IPTV user page, and obtain the page loading test data;
[0041] Among them, the host computer 1003 can simulate the operation of multiple users opening the user interface by calling the open_user_interface() function, record the user interface loading time by calling the record_load_time() function, and perform various menu operations by calling the simulate_menu_operation() function and record the operation response time and accuracy.
[0042] S22, using the video quality test instruction to simulate playing videos with different resolutions to obtain video quality test data;
[0043] Among them, the host computer 1003 can play the video of the specified resolution and record the loading time and the playback quality by calling the play_video(resolution) function. The resolution specified by this function can include 720p, 1080p, etc. According to the passed resolution parameter, the video file of the corresponding resolution is loaded, and the decoded video data is transmitted to the display device to realize the video playback. During the playback process, the host computer 1003 can call the check_video_quality() function to record various data of the video playback.
[0044] In an exemplary embodiment, the specific implementation steps of step S22 may include:
[0045] S221, detecting the resolution, width and height of the video playback, and obtaining the clarity data and detail performance data of the video playback;
[0046] S222, detecting the frame rate of the video playback, and obtaining the smoothness data of the video playback;
[0047] S223, detecting the bit rate of the video to obtain video fluency data;
[0048] S224: Evaluate the video playback image using image processing technology to obtain color accuracy data, contrast data, and brightness data of the video.
[0049] Among them, the upper computer 1003 uses the video quality test instruction to execute S221-S224 to simulate multiple users playing videos of different resolutions, and obtains video quality test data, so as to obtain the clarity data of the video. The upper computer 1003 compares the obtained clarity data with the clarity data of the built-in picture to obtain a value. If the values are close, the clarity value of the built-in picture refers to the clarity value of the currently playing video; the upper computer 1003 further specifies the frame rate of the playing video, that is, the number of frames displayed per second, to obtain dynamic data of the video playback.
[0050] Specifically, the video quality test instruction can refer to the dynamic data of the video playback by the number of frames displayed per second during actual playback; the video quality test instruction can also specify the video playback bit rate, that is, the amount of data transmitted per unit time, to obtain the clarity data of the video playback. Furthermore, the video quality test instruction can refer to the clarity data of the video playback by the bit rate during actual playback; further, the video quality test instruction can also perform quality assessment on the video picture through image processing technology to obtain the color accuracy data, contrast data, and brightness data of the video.
[0051] S23, using the program play test instruction to simulate channel switching and program loading to obtain program play test data;
[0052] Among them, the host computer 1003 can call the channel_switch() function to perform channel switching, then record the channel switching response time and success rate, and check the channel switching stability. The specified program is automatically loaded through the load_program() function, and the start time and end time are recorded during the loading process. The loading time data and the picture clarity data and sound quality data during the loading process are recorded. By analyzing the loading time data, load_program() can calculate the average loading time, maximum loading time and other data.
[0053] S24, using the audio quality test instruction to simulate the playback of different audio data to obtain audio quality test data;
[0054] Among them, the host computer 1003 can call the play_audio() function to play different audio contents and record the audio playback quality and clarity, check the audio playback delay, and check the sound delay, clarity, distortion rate, etc. during the playback process.
[0055] Specifically, the sound clarity can be represented by excellent, good, and poor, corresponding to evaluation values 0, 1, and 2 respectively. The unit of the sound delay data is expressed in milliseconds, and the sound distortion rate is expressed as the average value of the ratio of the actual playback frequency at all time points to the frequency of the source playback file.
[0056] S25, using security test instructions to simulate multi-user logins to obtain security test data;
[0057] Among them, the host computer 1003 can simulate multiple users calling the security_test() function, which is a function for performing security testing. The security_test() function can specifically include the function authenticate_user() for identity authentication, the function encrypt_data_transmission() for data transmission, the function scan_for_vulnerabilities() for vulnerability scanning, the function test_permission_control() for permission control, and the function monitor_security_logs() for security log monitoring. The security_test() function can simulate unauthorized users trying to use the system to obtain the number of user identity authentication failures; the security_test() function can also simulate the encryption mechanism in the process of monitoring data transmission to obtain the failure ratio of data transmission; the security_test() function can further simulate the use of a security scanner to scan the system for vulnerabilities to obtain the number of security vulnerabilities in the system; the security_test() function can further simulate users with different permissions trying to use the system to obtain the number of effective permission control times of the system; the security_test() function obtains the number of abnormal behaviors and security events discovered by monitoring the security log records of the system.
[0058] S26, using the user operation test instruction set to simulate multi-user operations to obtain user operation test data;
[0059] Among them, the upper computer 1003 can call the simulate_menu_operation() function to perform various menu operations and record the operation response time and accuracy to simulate the user's pause, fast forward, rewind and other operations. During the operation, the simulate_menu_operation() function can also call the corresponding audio or video player interface. When simulating user operations, the operation start timestamp and end timestamp can be recorded, and the response time can be calculated.
[0060] S27. Obtain a first performance test data set according to the page loading test data, the video quality test data, the audio quality test data, the security test data, and the user operation test data.
[0061] S30, in response to the second test request, generating a second test instruction set for simulating at least one device failure scenario;
[0062] The second test request is used to characterize the second test instruction set, and the second test instruction set is used to simulate the scenario of a user using the IPTV system when one or more devices fail. The second test instruction set integrates an instruction set for testing the IPTV system under the usage scenario. The second test instruction set is a single test, and the host computer 1003 tests each function of the IPTV system to obtain a single test index of each function of the IPTV system, so that the performance of each module of the IPTV can be understood.
[0063] S40, testing the IPTV system according to the second test instruction set and obtaining a second performance test data set of the IPTV system;
[0064] S50. In response to the third test request, obtain a comprehensive performance test result of the IPTV system based on the first performance test data set and the second performance test data set.
[0065] The third test request can represent a data report output mode, which can be based on the data of the first performance test data set and the second performance test data set, so as to obtain a comprehensive performance test result report.
[0066] Specifically, the host computer 1003 can use the analyze_results() function to comprehensively analyze the video quality test data, audio quality test data, program playback test data, security test data and user operation test data obtained under the specified test time, test frequency and test mode, and obtain the stability and comprehensive performance test results of the IPTV system.
[0067] In this embodiment, the specific execution steps of S50 may include:
[0068] S51, recording a first performance test data set and a second performance test data set respectively;
[0069] Specifically, the host computer 1003 can call a file operation API to perform a write operation to write the first performance test data set and the second performance test data set into a specified file, respectively. The specified file includes a text file or a CVS file; or, the host computer 1003 can call a database operation API to execute an SQL statement to write the first performance test data set and the second performance test data set into a database table of a database, respectively. The database includes a relational database and a non-relational database.
[0070] Among them, the host computer 1003 uses the record_test_result(result) function to save the obtained first performance test data set and the second performance test data set to a file or a database. After the record_test_result(result) function saves the test results to a file or a database, it can facilitate subsequent analysis and generate a test report. The storage method of this function is flexible. record_test_result(result) demonstrates the flexibility and scalability of recording test results by saving data to a file or a database.
[0071] S52, analyzing the recorded first performance test data set to generate a comprehensive performance test report of the IPTV system;
[0072] Specifically, the host computer 1003 may process the first test data set using a statistical algorithm to obtain fault data of all functional modules of the IPTV system.
[0073] Among them, by using a statistical algorithm to process the first test data set, the average value, standard deviation, maximum value and minimum value of video quality test data, audio quality test data, program playback test data, security test data and user operation test data can be obtained. Among them, the statistical algorithm can select the K-nearest neighbor method or the decision tree algorithm.
[0074] S53, analyzing the recorded second performance test data set to generate a single performance test report for the IPTV system;
[0075] Specifically, the host computer 1003 can use a machine learning algorithm to process the second test data set to obtain fault prediction analysis data of each functional module of the IPTV system, and the machine learning algorithm can be selected.
[0076] Among them, machine learning algorithms can be used to perform pattern recognition, predictive analysis, etc. on data to extract hidden information. Machine learning algorithms can choose support vector machine algorithms or neural network algorithms.
[0077] S54. Based on the comprehensive performance test report and the individual performance test reports, determine the overall performance test results of the IPTV system.
[0078] This exemplary embodiment provides an IPTV system testing method, which generates a first test instruction set for simulating a scenario of multiple users using an IPTV system in response to a first test request; tests the IPTV system according to the first test instruction set and obtains a first performance test data set; generates a second test instruction set for simulating at least one device failure scenario in response to a second test request; tests the IPTV system according to the second test instruction set and obtains a second performance test data set; and obtains a comprehensive performance test result of the IPTV system based on the first performance test data set and the second performance test data set in response to a third test request. The first test instruction set is used to simulate a scenario of multiple users using an IPTV system. The first test instruction set integrates an instruction set dedicated to multiple users participating in the IPTV system test. Under the instruction of the first test instruction set, the host computer 1003 drives all modules to complete the task of testing the IPTV system from all angles at one time. By executing the first test instruction on the host computer 1003, the test time is saved and the purpose of comprehensive performance testing is achieved. In response to the second test request, a second test instruction set is generated for simulating at least one device failure scenario; the second test instruction set is used to simulate the scenario of users using the IPTV system when one or more devices fail. The second test instruction set integrates the instruction set for testing the IPTV system under this usage scenario. Through the host computer 1003, each function of the IPTV system is tested, and the single test index of each function of the IPTV system is obtained, so that the performance of each module of the IPTV can be understood. Finally, the comprehensive performance test result of the IPTV system is obtained based on the first performance test data set and the second performance test data set, which solves the technical problem that when testing each functional module of the IPTV system, each test tool is generally used to test each function of the IPTV system separately, the test time is long, and the test result cannot fully reflect the performance of the IPTV system, and the purpose of fully testing the IPTV system is achieved.
[0079] In an exemplary embodiment, before step S10, the IPTV system testing method may further perform the following steps:
[0080] S60. Based on the test request, determine the network environment information, test equipment information and the first test instruction set involved in the IPTV system test, wherein the network environment information includes the network equipment and the configuration information of the network equipment, the test equipment information includes the IPTV playback equipment and the configuration information of the IPTV playback equipment, and the IPTV server equipment and the configuration information of the IPTV server equipment.
[0081] Specifically, when the host computer 1003 receives the test request, it needs to determine the network environment information involved in the test, where the network environment information may include the network devices and test devices involved in the test, and the network devices may include the user terminal device 1002, the host computer 1003, the router 1004 and the switch 1005 in the network topology.
[0082] In an exemplary embodiment, the network environment information may also include model information, port information, and IP address information of each network device. The test device information may include a test device, and the test device may include an IPTV server device 1006, an IPTV playback device 1001, and a content server 1007. In addition, the test device information may also include the type of operating system preinstalled on the IPTV playback device 1001 and the IPTV server device 1006, the software version number, etc., wherein the operating system type may be, for example, Android, Windows, Mac, and Linux, etc. This step is to determine the preparations for the test, and the devices and networks used in the test can be automatically configured by the host computer 1003.
[0083] After determining the network environment information and the test equipment information, the host computer 1003 can automatically select the required equipment in the current network. The selection process can determine the equipment involved in the test based on the IP address and MAC address, and can select the test module of the IPTV system according to the script.
[0084] Specifically, the host computer 1003 first configures the network bandwidth of the test network. After the host computer 1003 determines the bandwidth of the transmission network, it can call the network test function to measure the network delay and network jitter. It should be noted that the bandwidth has a great relationship with the IPTV data transmission rate. When the bandwidth is different, the data transmission rate is also different, and the test results are also different. Configuring different bandwidths has a great impact on the test results. The host computer 1003 can configure the interface parameters of the IPTV playback device. The interface parameters can specifically include: a first IP address and a first port number. The host computer 1003 can determine the entry and exit of the routing of the data packet according to the first IP address and the first port number of the IPTV playback device. The entry and exit as a configuration content directly determines which IPTV playback device the data is transmitted on. Even if it is transmitted on a certain IPTV playback device, different ports have very different transmission rates. Therefore, determining the IP address and port number is an important configuration content of the host computer 1003. Then the parameters of the host computer 1003 can be configured. The parameters of the host computer 1003 may include test mode, test frequency, second IP address, and second port number. The test frequency determines the number of tests per unit time, and the second port number and second IP address determine the entrance and exit of the data routing of the host computer 1003. Finally, the parameters of each function need to be configured. The parameters of each function include: the parameters of the play_video(resolution) function, specifically, the parameters of the play_video(resolution) function include: resolution, frame rate; the parameters of the play_audio() function, the parameters of the play_audio() function may include: volume, frequency response; the parameters of the channel_switch() function, the parameters of the channel_switch() function may include: the start time of the program, the end time of the program, and the channel number.
[0085] In an exemplary embodiment, before step S40, the IPTV system testing method may further include the following steps:
[0086] S70: Set at least one of the network device, the IPTV playback device, or the IPTV server device as an abnormal device.
[0087] Among them, the host computer 1003 can first set various fault scenarios before testing the single performance of the IPTV system. Under these fault scenarios, the host computer 1003 can test each test module separately, and analyze the test data using the test results, thereby obtaining the performance of each module under various fault scenarios. In addition, in addition to setting various fault scenarios, the host computer 1003 can also set a test scenario in which multiple users use IPTV simultaneously. It should be noted that the test scenario in which multiple users use IPTV simultaneously is suitable for comprehensive testing of IPTV.
[0088] Based on the above embodiments, the present application also provides an IPTV system testing device. Figure 3 The structural block diagram of the IPTV system test device provided in one embodiment of the present application is shown in FIG. Figure 3 The IPTV system test device 1000 may include a first instruction generation module 100, a first data generation module 200, a second instruction generation module 300, a second data generation module 400 and a test result generation module 500. The first instruction generation module 100 may be used to generate a first test instruction set for simulating a scenario of multiple users using an IPTV system in response to a first test request; the first data generation module 200 may be used to test the IPTV system according to the first test instruction set and obtain a first performance test data set of the IPTV system; the second instruction generation module 300 may be used to generate a second test instruction set for simulating at least one device failure scenario in response to a second test request; the second data generation module 400 may be used to test the IPTV system according to the second test instruction set and obtain a second performance test data set of the IPTV system; the test result generation module 500 may be used to obtain a comprehensive performance test result of the IPTV system based on the first performance test data set and the second performance test data set in response to a third test request.
[0089] like Figure 3 As shown, the first test instruction set can simulate the scenario of multiple users using the IPTV system, and the first test instruction set of the first data generation module 200 is used to instruct the host computer 1003 to drive all modules to complete the task of testing the IPTV system from all angles at one time. By executing the first test instruction on the host computer 1003, the test time is saved, and the purpose of comprehensive performance testing is achieved. The second test instruction set of the second instruction generation module 300 can simulate the scenario of users using the IPTV system when one or more devices fail. The second test instruction set integrates the instruction set for testing the IPTV system under this usage scenario. Through the host computer 1003 testing each function of the IPTV system, the single test index of each function of the IPTV system is obtained, so that the performance of each module of the IPTV can be understood. Finally, the comprehensive performance test results of the IPTV system are obtained based on the first performance test data set and the second performance test data set, which solves the technical problems that when testing each functional module of the IPTV system, each test tool is generally used to test each function of the IPTV system separately, the test time is long, and the test results cannot fully reflect the performance of the IPTV system, and the purpose of fully testing the IPTV system is achieved.
[0090] In this embodiment, the IPTV system test device further includes a configuration module 600. The configuration module 600 can be used to determine the network environment information, test device information and the first test instruction set involved in the IPTV system test based on the test request, wherein the network environment information includes the network device and the configuration information of the network device, the test device information includes the IPTV playback device and the configuration information of the IPTV playback device, and the IPTV server device and the configuration information of the IPTV server device.
[0091] The configuration module 600 can configure the network environment information, test equipment information, etc. of the test network to prepare the environment for the personalized test.
[0092] In this embodiment, Figure 4 This is a structural block diagram of a test result generation module provided in an embodiment of the present application, refer to Figure 4 The test result generation module 500 specifically includes a recording module 501, a first analysis module 502, a second analysis module 503 and a report generation module 504, wherein the recording module 501 can be used to record the first performance test data set and the second performance test data set respectively; the first analysis module 502 can be used to analyze the first performance test data set to generate a comprehensive performance test report of the IPTV system; the second analysis module 503 can be used to analyze the second performance test data set to generate a single performance test report of the IPTV system; the report generation module 504 can be used to determine the comprehensive performance test results of the IPTV system based on the comprehensive performance test report and the single performance test report.
[0093] The test result generation module 500 can record, analyze and generate a comprehensive test report.
[0094] In this embodiment, Figure 5 This is a structural block diagram of a first data generation module provided in an embodiment of the present application, refer to Figure 5The first data generation module 200 may specifically include a page loading test unit 201, a video quality test unit 202, a program playback test unit 203, an audio quality test unit 204, a security test unit 205, a user operation test unit 206 and a data set generation unit 207. Among them, the page loading test unit 201 can be used to open the IPTV user page using the page opening test instruction to obtain page loading test data; the video quality test unit 202 can be used to simulate multiple users playing videos of different resolutions using the video quality test instruction to obtain video quality test data; the program playback test unit 203 is used to simulate multiple users performing channel switching and program loading using the program playback test instruction to obtain program playback test data; the audio quality test unit 204 can be used to simulate multiple users playing different audio data using the audio quality test instruction to obtain audio quality test data; the security test unit 205 can be used to simulate multiple users logging into the IPTV system using the security test instruction to obtain security test data; the user operation test unit 206 can be used to simulate multiple users operating the IPTV system using the user operation test instruction set to obtain user operation test data; the data set generation unit 207 can be used to obtain the first performance test data set based on the page loading test data, the video quality test data, the audio quality test data, the security test data and the user operation test data.
[0095] The first data generating module 200 is used to generate a first performance test data set after simulating multiple users accessing the IPTV system.
[0096] In an embodiment, the video quality test unit 202 can be specifically used to detect the resolution, width and height of the video playback to obtain the clarity data and detail performance data of the video playback; the video quality test unit 202 can specifically detect the frame rate and bit rate of the video playback to obtain the smoothness data of the video playback; the video quality test unit 202 can also use image processing technology to evaluate the picture of the video playback to obtain the color accuracy data, contrast data and brightness data of the video; the video quality test unit 202 can specifically obtain the video quality test data based on the clarity data, the detail performance data, the smoothness data, the color accuracy data, the contrast data and the brightness data.
[0097] The video quality test unit 202 of the host computer 1003 can simulate multiple users playing videos of different resolutions. When obtaining video quality test data, the test unit 202 can obtain the clarity data of the video. The clarity data can be compared with the built-in picture to obtain a value. If the clarity is very similar, the clarity value of the built-in picture is used to refer to the clarity value of the currently playing video; the test unit 202 can specify the frame rate of the played video, that is, the number of frames displayed per second, to obtain dynamic data of the video playback. Specifically, the test unit 202 can refer to the dynamic data of the video playback with the number of frames displayed per second during actual playback; the test unit 202 can specify the video playback bit rate, that is, the amount of data transmitted per unit time, to obtain the clarity data of the video playback. Specifically, the test unit 202 can refer to the clarity data of the video playback with the bit rate during actual playback; the test unit 202 can evaluate the quality of the video picture through image processing technology to obtain the color accuracy data, contrast data, and brightness data of the video.
[0098] In an embodiment, the recording module 501 is specifically used to call a file operation API, perform a write operation, and write the first performance test data set and the second performance test data set into a specified file, respectively, and the specified file includes a text file or a CVS file; or call a database operation API, execute an SQL statement, and write the first performance test data set and the second performance test data set into a database table of a database, respectively, and the database includes a relational database and a non-relational database.
[0099] The recording module 501 can improve the flexibility of data storage through different data storage methods.
[0100] In the embodiment, the first analysis module 502 is specifically configured to process the first performance test data set using a statistical algorithm to obtain performance evaluation data of all functional modules of the IPTV system.
[0101] Among them, the statistical algorithm can obtain statistical data such as the maximum, minimum, and average values of video quality test data, audio quality test data, program playback test data, security test data, and user operation test data of all functional modules, thereby obtaining comprehensive performance data of all modules.
[0102] In an embodiment, the second analysis module 503 is specifically configured to process the second test data set using a machine learning algorithm to obtain performance evaluation data of each functional module of the IPTV system.
[0103] Among them, machine learning algorithms can perform pattern recognition, fault identification and hidden information mining of individual modules.
[0104] In an embodiment, the IPTV system testing device further includes a fault setting module 700, wherein the fault setting module 700 can be specifically used to set at least one of the network device, the IPTV playback device or the IPTV server device as an abnormal device.
[0105] The fault setting module 700 can be used to test the performance of a single IPTV module.
[0106] Based on the above embodiments, the present application also provides a computer-readable storage medium, referring to Figure 6 , the computer-readable storage medium shown is a CD 50, on which a computer algorithm, i.e., an algorithm product, is stored. When the computer algorithm is executed by the processor, the steps recorded in the above method implementation are implemented, for example, in response to a first test request, a first test instruction set is generated for simulating a multi-user use of an IPTV system scenario, wherein the first test instruction set includes a page opening test instruction, a video quality test instruction, an audio quality test instruction, and a security test instruction; the IPTV system is tested according to the first test instruction set and a first performance test data set is obtained; in response to a second test request, a second test instruction set is generated for simulating at least one device failure scenario, wherein the second test instruction set includes any one of the first test instruction set; the IPTV system is tested according to the second test instruction set and a second performance test data set is obtained; in response to a third test request, a comprehensive performance test result of the IPTV system is obtained based on the first performance test data set and the second performance test data set. The specific implementation method of each step will not be repeated here.
[0107] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0108] In addition, based on the above embodiment, the embodiment of the present application also provides a testing device, Figure 7 A block diagram of an exemplary test device 60 suitable for implementing the embodiments of the present application is shown. The test device 60 may be a computer system or a server. Figure 7 The testing device 60 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0109] refer to Figure 7, the components of the test device 60 may include, but are not limited to: one or more processors or processing units 601 , a system memory 602 , and a bus 603 connecting different system components (including the system memory 602 and the processing unit 601 ).
[0110] The test device 60 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the test device 60, including volatile and non-volatile media, removable and non-removable media.
[0111] The system memory 602 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 6021 and / or cache memory 6022. The test device 60 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the ROM 6023 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 is not shown in the Figure 7 As shown in the figure, a disk drive for reading and writing a removable non-volatile disk (such as a "floppy disk") and an optical disk drive for reading and writing a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical media) can be provided. In these cases, each drive can be connected to a bus 603 connecting different system components through one or more data medium interfaces. The system memory 602 may include at least one algorithm product, which has a set (such as at least one) algorithm module, which is configured to perform the functions of each embodiment of the present application.
[0112] An algorithm / utility 6025 having a set (at least one) of algorithm modules 6024 may be stored, for example, in system memory 602, and such algorithm modules 6024 include, but are not limited to: an operating system, one or more application algorithms, other algorithm modules, and algorithm data, each of which or some combination may include an implementation of a network environment. Algorithm modules 6024 generally perform the functions and / or methods of the embodiments described herein.
[0113] The test device 60 may also communicate with one or more external devices 604 (e.g., a keyboard, a pointing device, a display, etc.). Such communication may be performed via an input / output (I / O) interface 605. Furthermore, the test device 60 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 606. Figure 7As shown, the network adapter 606 communicates with other modules (such as the processing unit 601, etc.) of the test device 60 via the bus 603 that connects different system components. It should be understood that although Figure 7 Not shown, other hardware and / or software program modules may be used in conjunction with the testing device 60 .
[0114] The processing unit 601 executes various functional applications and data processing by running the algorithm stored in the system memory 602. For example, in response to the first test request, a first test instruction set is generated for simulating a multi-user use of the IPTV system scenario, wherein the first test instruction set includes a page opening test instruction, a video quality test instruction, an audio quality test instruction, and a security test instruction; the IPTV system is tested according to the first test instruction set and a first performance test data set is obtained; in response to the second test request, a second test instruction set is generated for simulating at least one device failure scenario, wherein the second test instruction set includes any one of the first test instruction set; the IPTV system is tested according to the second test instruction set and a second performance test data set is obtained; in response to the third test request, a comprehensive performance test result of the IPTV system is obtained based on the first performance test data set and the second performance test data set. The specific implementation of each step is not repeated here. It should be noted that although several units / modules or sub-units / sub-modules of the motion trajectory processing device of the robot are mentioned in the above detailed description, this division is only exemplary and not mandatory. In fact, according to the embodiment of the present application, the features and functions of two or more units / modules described above can be concretized in one unit / module. On the contrary, the features and functions of one unit / module described above may be further divided into multiple units / modules to be embodied.
[0115] In the description of the present application, it should be noted that the terms "first", "second" and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0116] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0117] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0118] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0120] If the function is implemented in the form of a software program functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software program product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store algorithm codes.
[0121] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
[0122] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0123] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. An IPTV system testing method, characterized in that: include: In response to the first test request, generating a first test instruction set for simulating a scenario where multiple users use the IPTV system, wherein the first test instruction set includes a page opening test instruction, a video quality test instruction, a program playing test instruction, an audio quality test instruction, and a security test instruction; Testing the IPTV system according to the first test instruction set and obtaining a first performance test data set; In response to a second test request, generating a second test instruction set for simulating at least one device failure scenario, wherein the second test instruction set includes any one of the first test instruction sets; Testing the IPTV system according to the second test instruction set and obtaining a second performance test data set; In response to a third test request, obtaining a comprehensive performance test result of the IPTV system based on the first performance test data set and the second performance test data set; Before generating, in response to the first test request, a first test instruction set for simulating a scenario where multiple users use the IPTV system, the method further includes: Based on the test request, the network environment information, test equipment information and the first test instruction set involved in the IPTV system test are determined, wherein the network environment information includes the network equipment and the configuration information of the network equipment, the test equipment information includes the IPTV playback equipment and the configuration information of the IPTV playback equipment, and the IPTV server equipment and the configuration information of the IPTV server equipment.
2. An IPTV system testing method as claimed in claim 1, characterized in that: The step of obtaining, in response to the third test request, a comprehensive performance test result of the IPTV system based on the first performance test data set and the second performance test data set comprises: Recording the first performance test data set and the second performance test data set respectively; Analyzing the first performance test data set to generate a comprehensive performance test report of the IPTV system; Analyze the second performance test data set to generate a single performance test report of the IPTV system; Based on the comprehensive performance test report and the individual performance test reports, the overall performance test result of the IPTV system is determined.
3. An IPTV system testing method as claimed in claim 2, characterized in that: The step of testing the IPTV system according to the first test instruction set and obtaining a first performance test data set includes: Using the page opening test instruction to open the IPTV user page, obtain page loading test data; Using the video quality test instruction to simulate multiple users playing videos with different resolutions to obtain video quality test data; Using the program play test instruction to simulate multiple users to perform channel switching and program loading, to obtain program play test data; Using the audio quality test instruction to simulate multiple users playing different audio data to obtain audio quality test data; Using the security test instruction to simulate multiple users logging into the IPTV system to obtain security test data; Using the user operation test instruction set to simulate multiple users operating the IPTV system to obtain user operation test data; The first performance test data set is obtained according to the page loading test data, the video quality test data, the audio quality test data, the security test data and the user operation test data.
4. An IPTV system testing method as claimed in claim 3, characterized in that: The method of using the video quality test instruction to simulate multiple users playing videos with different resolutions to obtain video quality test data includes: Detect the resolution, width and height of the video playback to obtain the video playback clarity data and detail performance data; Detect the frame rate and bit rate of video playback to obtain the smoothness data of video playback; Using image processing technology to evaluate the video playback picture, and obtain color accuracy data, contrast data and brightness data of the video; The video quality test data is obtained according to the clarity data, the detail expression data, the smoothness data, the color accuracy data, the contrast data and the brightness data.
5. An IPTV system testing method as claimed in claim 2, characterized in that: The recording of the first performance test data set and the second performance test data set respectively includes: Calling a file operation API to perform a write operation to write the first performance test data set and the second performance test data set into a specified file, respectively, where the specified file includes a text file or a CVS file; or A database operation API is called to execute SQL statements to write the first performance test data set and the second performance test data set into database tables of a database, respectively. The database includes a relational database and a non-relational database.
6. An IPTV system testing method as claimed in claim 2, characterized in that: The step of analyzing the first performance test data set to generate a comprehensive performance test report for the IPTV system includes: Processing the first performance test data set using a statistical algorithm to obtain performance evaluation data of all functional modules of the IPTV system; Analyzing the second performance test data set to generate a single performance test report for the IPTV system includes: using a machine learning algorithm to process the second test data set to obtain performance evaluation data of each functional module of the IPTV system.
7. An IPTV system testing device, characterized in that: include: A first instruction generation module, configured to generate, in response to a first test request, a first test instruction set for simulating a scenario in which multiple users use an IPTV system; A first data generating module, configured to test the IPTV system according to the first test instruction set and obtain a first performance test data set; A second instruction generation module, configured to generate, in response to a second test request, a second test instruction set for simulating at least one device failure scenario; A second data generating module, used for testing the IPTV system according to the second test instruction set and obtaining a second performance test data set; a test result generating module, configured to obtain, in response to a third test request, a comprehensive performance test result of the IPTV system based on the first performance test data set and the second performance test data set; A configuration module is used to determine the network environment information, test equipment information and a first test instruction set involved in the IPTV system test based on a test request, wherein the network environment information includes a network device and configuration information of the network device, the test equipment information includes an IPTV playback device and configuration information of the IPTV playback device, and an IPTV server device and configuration information of the IPTV server device.
8. A computer-readable storage medium, characterized in that: The method comprises instructions, which, when executed on a computer, enable the computer to execute the IPTV system testing method according to any one of claims 1 to 6.
9. A testing device, characterized in that: The test equipment includes: at least one processor, memory, and input-output unit; The memory is used to store a computer program, and the processor is used to call the computer program stored in the memory to execute the IPTV system testing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and system for automatically testing EPG (Electronic Program Guide) pages and programs of intelligent set top box
CN114374836A
