A performance testing method, apparatus, device, and storage medium

By using the distributed soft bus connection and simulation tools of the HarmonyOS system, the performance testing of screenless HarmonyOS devices has been simplified, solving the problem of cumbersome testing in existing technologies and improving testing efficiency and result generation capabilities.

CN116614413BActive Publication Date: 2026-03-13深圳开鸿数字产业发展有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-12
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

The existing performance testing process for HarmonyOS devices is cumbersome and not conducive to improving the efficiency of performance testing, especially for screenless HarmonyOS devices, where manual testing is labor-intensive and resource-intensive.

Method used

The system connects to HarmonyOS devices on the same local area network via the HarmonyOS distributed soft bus, obtains device information, determines whether the device is screenless, acquires test scenarios and metrics, uses simulation tools to send data packets to record parameter values, and generates test results based on performance scoring standards.

Benefits of technology

It simplifies the performance testing process for HarmonyOS devices, improves testing efficiency, and generates performance test results based on the parameter values ​​of test indicators, meeting the testing needs of screenless devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116614413B_ABST
    Figure CN116614413B_ABST
Patent Text Reader

Abstract

This application discloses a performance testing method, apparatus, device, and storage medium. The method includes: connecting to other HarmonyOS devices on the same local area network via the HarmonyOS distributed soft bus, and obtaining device information for each HarmonyOS device; determining whether a HarmonyOS device is a screenless HarmonyOS device based on the device information, wherein a screenless HarmonyOS device is a device without a screen and running the HarmonyOS system; if the HarmonyOS device is a screenless HarmonyOS device, obtaining the test scenario for the screenless HarmonyOS device; obtaining multiple test indicators corresponding to the test scenario for the screenless HarmonyOS device; sending a preset data packet to the screenless HarmonyOS device through a preset simulation tool, and recording the parameter value of each test indicator in the log information of the screenless HarmonyOS device; determining the performance score of the parameter value of each test indicator; and generating the performance test result of the screenless HarmonyOS device based on the performance score of the parameter value of each test indicator. This application is beneficial to improving the efficiency of performance testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, and in particular to a performance testing method, apparatus, device, and storage medium. Background Technology

[0002] With the widespread application of Bluetooth Low Energy (BLE), both manufacturers and developers need a testing method to test the performance of HarmonyOS devices and quickly obtain information about their performance.

[0003] However, the existing performance testing process for HarmonyOS devices is cumbersome, hindering the improvement of testing efficiency. This is because many HarmonyOS devices lack screens. If the performance of each screenless HarmonyOS device were tested manually by connecting it to real third-party devices, the workload would be enormous, the testing time would be long, and it would consume significant human, equipment, and time resources. Therefore, the existing performance testing process for HarmonyOS devices is cumbersome and does not contribute to improving testing efficiency. Summary of the Invention

[0004] This application provides a performance testing method, apparatus, device, and storage medium to address the cumbersome performance testing process of existing HarmonyOS devices, which is not conducive to improving performance testing efficiency.

[0005] In a first aspect, embodiments of this application provide a performance testing method, the performance testing method comprising:

[0006] Connect to other HarmonyOS devices on the same local area network via the HarmonyOS distributed soft bus to obtain device information for each HarmonyOS device;

[0007] Based on the device information of the HarmonyOS device, determine whether the HarmonyOS device is a screenless HarmonyOS device. The screenless HarmonyOS device is a device without a screen that is equipped with the HarmonyOS system.

[0008] If the HarmonyOS device is a screenless HarmonyOS device, then obtain the test scenario of the screenless HarmonyOS device;

[0009] Obtain multiple test indicators corresponding to the test scenarios of the screenless HarmonyOS device;

[0010] A preset data packet is sent to the screenless HarmonyOS device using a preset simulation tool, and the parameter value of each test indicator is recorded in the log information of the screenless HarmonyOS device.

[0011] Based on the preset performance scoring criteria, determine the performance score of the parameter value of each test indicator;

[0012] Based on the performance score of the parameter value of each of the test indicators, the performance test results of the screenless HarmonyOS device are generated.

[0013] As an optional implementation, if the HarmonyOS device is a screenless HarmonyOS device, then the test scenario of the screenless HarmonyOS device is obtained, specifically as follows:

[0014] If the HarmonyOS device is a screenless HarmonyOS device, match the device type of the screenless HarmonyOS device with the preset type;

[0015] When a match is successful, the test scenario corresponding to the preset type will be determined as the test scenario for the screenless HarmonyOS device.

[0016] As an optional implementation, the acquisition of multiple test indicators corresponding to the test scenario of the screenless HarmonyOS device specifically includes:

[0017] The test scenario of the screenless HarmonyOS device is matched with the preset test scenario;

[0018] After successful matching, the preset test indicators corresponding to the preset test scenario will be used as multiple test indicators corresponding to the test scenario of the screenless HarmonyOS device.

[0019] As an optional implementation, the step of generating the performance test results of the screenless HarmonyOS device based on the performance score of the parameter value of each of the test indicators specifically includes:

[0020] Determine whether the performance score of the parameter value of each of the test indicators is greater than the preset score value;

[0021] When the performance score of each of the test indicators is greater than the preset score, a performance test pass message for the screenless HarmonyOS device is generated.

[0022] When the performance score of each of the test indicators is not greater than the preset score, a performance test failure message is generated for the screenless HarmonyOS device.

[0023] As an optional implementation, after generating the performance test results of the screenless HarmonyOS device based on the performance scores of the parameter values ​​of each of the test indicators, the method further includes:

[0024] Obtain the device identifier of the screenless HarmonyOS device, and upload the performance test results of the screenless HarmonyOS device and the device identifier of the screenless HarmonyOS device to a preset server.

[0025] As an optional implementation, the device information includes any one or a combination of device identifier, device name, device type, and screen information.

[0026] As an optional implementation, the test metrics include any one or a combination of connection latency, connection success rate, connection interruption rate, maximum number of connections, maximum throughput, transmission latency, and data packet loss rate.

[0027] Secondly, this application also provides a performance testing device, which includes a processor and a memory. The memory stores a computer program, and the processor executes the above-described performance testing method when it calls the computer program in the memory.

[0028] Thirdly, embodiments of this application also provide an apparatus, which includes the performance testing device as described above.

[0029] Fourthly, embodiments of this application also provide a storage medium for storing a computer program, which, when executed by a processor, enables the processor to implement the performance testing method described above.

[0030] This application provides a performance testing method, apparatus, device, and storage medium. The method includes: connecting other HarmonyOS devices on the same local area network via the HarmonyOS distributed soft bus, and obtaining device information for each HarmonyOS device; determining, based on the device information, whether the HarmonyOS device is a screenless HarmonyOS device, wherein a screenless HarmonyOS device is a device without a screen and equipped with the HarmonyOS system; if the HarmonyOS device is a screenless HarmonyOS device, obtaining the test scenario for the screenless HarmonyOS device; obtaining multiple test indicators corresponding to the test scenario for the screenless HarmonyOS device; sending a preset data packet to the screenless HarmonyOS device through a preset simulation tool, and recording the parameter value of each test indicator in the log information of the screenless HarmonyOS device; determining the performance score of the parameter value of each test indicator according to a preset performance scoring standard; and generating the performance test result of the screenless HarmonyOS device based on the performance score of the parameter value of each test indicator.

[0031] The beneficial effects of this application embodiment are twofold. On the one hand, it simplifies the performance testing process of HarmonyOS devices, which is conducive to improving the efficiency of performance testing. On the other hand, it generates the performance test results of the screenless HarmonyOS device based on the performance score of the parameter value of each test index, which is conducive to meeting the testing requirements of screenless HarmonyOS devices. Attached Figure Description

[0032] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 This is a flowchart illustrating the performance testing method provided in an embodiment of this application;

[0034] Figure 2 This is a flowchart of determining a test scenario provided in an embodiment of this application;

[0035] Figure 3 This is an application flowchart of the performance testing method provided in the embodiments of this application;

[0036] Figure 4 This is a schematic block diagram of the performance testing device provided in the embodiments of this application. Detailed Implementation

[0037] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0038] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features.

[0039] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in some embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0040] Furthermore, the technical solutions of the various embodiments can be combined with each other, but only if they are based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed in this application.

[0041] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the described order. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.

[0042] Please see Figure 1 , Figure 1 This is a flowchart illustrating the performance testing method provided in this application embodiment. The method can be applied to devices, which can be any of the following: mobile phone, camera, tablet computer, wearable device, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, personal computer (PC), netbook, personal digital assistant (PDA). No limitations are imposed in this application embodiment.

[0043] like Figure 1 As shown in the embodiments of this application, the performance testing method includes the following steps.

[0044] S101, connect to other HarmonyOS devices on the same local area network through the distributed soft bus of the HarmonyOS system, and obtain device information of each HarmonyOS device;

[0045] This device connects to other HarmonyOS devices on the same local area network via the HarmonyOS distributed soft bus to obtain device information for each HarmonyOS device.

[0046] S102, based on the device information of the HarmonyOS device, determine whether the HarmonyOS device is a screenless HarmonyOS device. The screenless HarmonyOS device is a device without a screen that is equipped with the HarmonyOS system.

[0047] Specifically, based on the screen information in the device information of the HarmonyOS device, it is determined whether the HarmonyOS device is a screenless HarmonyOS device;

[0048] When the screen information in the device information of the HarmonyOS device contains a screenless identifier, the HarmonyOS device is determined to be a screenless HarmonyOS device.

[0049] If the screen information in the device information of the HarmonyOS device does not have a screenless identifier, the HarmonyOS device is determined to be a HarmonyOS device with a screen.

[0050] The "No Screen" flag is a preset flag that can be user-defined or set by the system. The value of the "No Screen" flag can be any string; there are no restrictions on its value.

[0051] This device is the transmitter. The screenless HarmonyOS device is the receiver.

[0052] S103, if the HarmonyOS device is the screenless HarmonyOS device, then obtain the test scenario of the screenless HarmonyOS device;

[0053] S104, Obtain multiple test indicators corresponding to the test scenario of the screenless HarmonyOS device;

[0054] The test metrics include any one or a combination of connection latency, connection success rate, connection interruption rate, maximum number of connections, maximum throughput, transmission latency, and data packet loss rate.

[0055] The testing methods for the test metrics are as follows:

[0056] 1. For the three metrics of connection latency, response latency, connection success rate, and connection interruption rate, the sending end should follow the testing order from complex business scenarios to simple business scenarios.

[0057] 2. Regarding the throughput metric, when testing the screenless HarmonyOS device as the sending end, we used a simulated Bluetooth tool to start sending a small amount of data, 1KB, and gradually increased it until the screenless HarmonyOS device could no longer process or receive it.

[0058] 3. Regarding the data packet loss rate metric, the sending end sends data using a simulation tool, and analyzes the keywords captured from the log information of the screenless HarmonyOS device to test whether the screenless HarmonyOS device completely receives the data from the device.

[0059] S105, a preset data packet is sent to the screenless HarmonyOS device through a preset simulation tool, and the parameter value of each test indicator is recorded in the log information of the screenless HarmonyOS device.

[0060] It should be noted that S105 specifically refers to:

[0061] A preset data packet is sent to the screenless HarmonyOS device using a preset simulation tool;

[0062] Obtain the storage directory of the simulation tool, and create the log information of the screenless HarmonyOS device in the storage directory;

[0063] Determine whether the data packet has been completely sent;

[0064] After the data packet is sent, the parameter value of each test indicator is recorded in the log information of the screenless HarmonyOS device.

[0065] The preset simulation tools include a Bluetooth simulation tool and a Wi-Fi simulation tool.

[0066] The simulation tool can be any existing tool, and there are no restrictions here.

[0067] S106, Determine the performance score of the parameter value of each test index according to the preset performance scoring standard;

[0068] It should be noted that S106 specifically refers to:

[0069] Compare the parameter values ​​of the test indicator with the preset values ​​of the test indicator;

[0070] If the parameter value of the test indicator is less than the preset value of the test indicator, then the performance score when the parameter value of the test indicator is less than the preset value of the test indicator is obtained from the performance scoring standard.

[0071] If the parameter value of the test indicator is equal to the preset value of the test indicator, then in the performance scoring standard, the performance score when the parameter value of the test indicator is equal to the preset value of the test indicator is obtained.

[0072] The performance scoring criteria can be user-defined or set to the system default; no restrictions are imposed here.

[0073] The performance scoring criteria can be any existing scoring criteria, and there are no restrictions here.

[0074] For ease of explanation, the following example is provided:

[0075] The performance scoring criteria include the preset value corresponding to the test indicator, the performance score when the parameter value of the test indicator is higher than the preset value corresponding to the test indicator, the performance score when the parameter value of the test indicator is equal to the preset value corresponding to the test indicator, and the performance score when the parameter value of the test indicator is less than the preset value corresponding to the test indicator.

[0076] When the test metric is connection latency, compare the connection latency parameter value with the preset connection latency value;

[0077] If the connection latency parameter value is less than the preset value of connection latency, then obtain the performance score in the performance scoring criteria when the connection latency parameter value is less than the preset value of connection latency;

[0078] If the connection latency parameter value is equal to the preset connection latency value, then in the performance scoring criteria, obtain the performance score when the connection latency parameter value is equal to the preset connection latency value;

[0079] If the connection latency parameter value is greater than the preset connection latency value, then obtain the performance score in the performance scoring criteria when the connection latency parameter value is greater than the preset connection latency value.

[0080] When the test metric is connection success rate, compare the parameter value of connection success rate with the preset value of connection success rate;

[0081] If the connection success rate parameter value is less than the preset value of the connection success rate, then obtain the performance score in the performance scoring criteria when the connection success rate parameter value is less than the preset value of the connection success rate.

[0082] If the connection success rate parameter value is equal to the preset value of the connection success rate, then in the performance scoring criteria, obtain the performance score when the connection success rate parameter value is equal to the preset value of the connection success rate.

[0083] If the connection success rate parameter value is greater than the preset value of the connection success rate, then obtain the performance score in the performance scoring criteria when the connection success rate parameter value is greater than the preset value of the connection success rate.

[0084] When the test metric is throughput, compare the throughput parameter value with the preset throughput value.

[0085] If the throughput parameter value is less than the preset throughput value, then obtain the performance score when the throughput parameter value is less than the preset throughput value in the performance scoring criteria.

[0086] If the throughput parameter value is equal to the default throughput value, then in the performance scoring criteria, obtain the performance score when the throughput parameter value is equal to the default throughput value.

[0087] If the throughput parameter value is greater than the preset throughput value, then obtain the performance score in the performance scoring criteria when the throughput parameter value is greater than the preset throughput value.

[0088] S107, Based on the performance score of the parameter value of each of the test indicators, generate the performance test result of the screenless HarmonyOS device.

[0089] The performance rating includes any one or a combination of performance score, performance level index, or performance rating.

[0090] Specifically, S104 is:

[0091] The test scenario of the screenless HarmonyOS device is matched with the preset test scenario;

[0092] After successful matching, the preset test indicators corresponding to the preset test scenario will be used as multiple test indicators corresponding to the test scenario of the screenless HarmonyOS device.

[0093] Specifically, S107 is:

[0094] Determine whether the performance score of the parameter value of each of the test indicators is greater than the preset score value;

[0095] When the performance score of each of the test indicators is greater than the preset score, a performance test pass message for the screenless HarmonyOS device is generated.

[0096] When the performance score of each of the test indicators is not greater than the preset score, a performance test failure message is generated for the screenless HarmonyOS device.

[0097] Following S107, the method further includes:

[0098] Obtain the device identifier of the screenless HarmonyOS device, and upload the performance test results of the screenless HarmonyOS device and the device identifier of the screenless HarmonyOS device to a preset server.

[0099] The device information includes any one or a combination of device identifier, device name, device type, and screen information.

[0100] The beneficial effects of this application embodiment are twofold. On the one hand, it simplifies the performance testing process of HarmonyOS devices, which is conducive to improving the efficiency of performance testing. On the other hand, it generates the performance test results of the screenless HarmonyOS device based on the performance score of the parameter value of each test index, which is conducive to meeting the testing requirements of screenless HarmonyOS devices.

[0101] Please see Figure 2 , Figure 2 This is a flowchart of determining a test scenario provided in an embodiment of this application, detailed below:

[0102] S201, If ​​the HarmonyOS device is the screenless HarmonyOS device, match the device type of the screenless HarmonyOS device with the preset type;

[0103] S201, When the matching is successful, the test scenario corresponding to the preset type is determined as the test scenario of the screenless HarmonyOS device.

[0104] In this application embodiment, determining the test scenario for screenless HarmonyOS devices is beneficial to improving the efficiency of performance testing.

[0105] Please see Figure 3 , Figure 3 The following is a flowchart illustrating the application of the performance testing method provided in this embodiment of the application, detailed below:

[0106] S301, Obtain data packets of different types and sizes for testing, and confirm the test scenario corresponding to the data packets;

[0107] S302, Based on the description of the test scenario, determine the operation steps;

[0108] S303, Use a simulation tool to perform the above operation steps to test the screenless HarmonyOS device and obtain log information;

[0109] S304. Analyze the performance test results based on the log information.

[0110] In this embodiment of the application, the user's testing needs can be met by analyzing the performance test results.

[0111] Please see Figure 4 , Figure 4 This is a schematic block diagram of the performance testing device provided in the embodiments of this application.

[0112] like Figure 4 As shown, the performance testing device 200 may include a processor 211 and a memory 212, which are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.

[0113] Specifically, the processor 211 can be a microcontroller unit (MCU), a central processing unit (CPU), or a digital signal processor (DSP), etc.

[0114] Specifically, the memory 212 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc. The memory 212 stores various computer programs for the processor 211 to execute.

[0115] The processor 211 is used to run a computer program stored in the memory processor 211, and performs the following steps when executing the computer program:

[0116] Connect to other HarmonyOS devices on the same local area network via the HarmonyOS distributed soft bus to obtain device information for each HarmonyOS device;

[0117] Based on the device information of the HarmonyOS device, determine whether the HarmonyOS device is a screenless HarmonyOS device. The screenless HarmonyOS device is a device without a screen that is equipped with the HarmonyOS system.

[0118] If the HarmonyOS device is a screenless HarmonyOS device, then obtain the test scenario of the screenless HarmonyOS device;

[0119] Obtain multiple test indicators corresponding to the test scenarios of the screenless HarmonyOS device;

[0120] A preset data packet is sent to the screenless HarmonyOS device using a preset simulation tool, and the parameter value of each test indicator is recorded in the log information of the screenless HarmonyOS device.

[0121] Based on the preset performance scoring criteria, determine the performance score of the parameter value of each test indicator;

[0122] Based on the performance score of the parameter value of each of the test indicators, the performance test results of the screenless HarmonyOS device are generated.

[0123] In some embodiments, processor 211 is configured to implement:

[0124] If the HarmonyOS device is a screenless HarmonyOS device, match the device type of the screenless HarmonyOS device with the preset type;

[0125] When a match is successful, the test scenario corresponding to the preset type will be determined as the test scenario for the screenless HarmonyOS device.

[0126] In some embodiments, processor 211 is configured to implement:

[0127] The test scenario of the screenless HarmonyOS device is matched with the preset test scenario;

[0128] After successful matching, the preset test indicators corresponding to the preset test scenario will be used as multiple test indicators corresponding to the test scenario of the screenless HarmonyOS device.

[0129] In some embodiments, processor 211 is configured to implement:

[0130] Determine whether the performance score of the parameter value of each of the test indicators is greater than the preset score value;

[0131] When the performance score of each of the test indicators is greater than the preset score, a performance test pass message for the screenless HarmonyOS device is generated.

[0132] When the performance score of each of the test indicators is not greater than the preset score, a performance test failure message is generated for the screenless HarmonyOS device.

[0133] In some embodiments, processor 211 is configured to implement:

[0134] Obtain the device identifier of the screenless HarmonyOS device, and upload the performance test results of the screenless HarmonyOS device and the device identifier of the screenless HarmonyOS device to a preset server.

[0135] In some embodiments, processor 211 is configured to implement:

[0136] The device information includes any one or a combination of device identifier, device name, device type, and screen information.

[0137] In some embodiments, processor 211 is configured to implement:

[0138] The test metrics include any one or a combination of connection latency, connection success rate, connection interruption rate, maximum number of connections, maximum throughput, transmission latency, and data packet loss rate.

[0139] The embodiments of this application also provide a device, the type of which includes, but is not limited to, mobile phones, cameras, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, personal computers (PCs), netbooks, personal digital assistants (PDAs), etc., and no limitations are made in the embodiments of this application.

[0140] The device includes a performance testing apparatus, which, exemplarily, can be the performance testing apparatus 200 described in the above embodiments. The device can execute any of the performance testing methods provided in the embodiments of this application, and therefore can achieve the beneficial effects achievable by any of the performance testing methods provided in the embodiments of this application, as detailed in the preceding embodiments, and will not be repeated here.

[0141] This application also provides a storage medium storing a computer program, which includes program instructions. The processor executes the program instructions to implement the steps of the performance testing method provided in the above embodiments. For example, when the computer program is loaded by the processor, it can perform the following steps:

[0142] Connect to other HarmonyOS devices on the same local area network via the HarmonyOS distributed soft bus to obtain device information for each HarmonyOS device;

[0143] Based on the device information of the HarmonyOS device, determine whether the HarmonyOS device is a screenless HarmonyOS device. The screenless HarmonyOS device is a device without a screen that is equipped with the HarmonyOS system.

[0144] If the HarmonyOS device is a screenless HarmonyOS device, then obtain the test scenario of the screenless HarmonyOS device;

[0145] Obtain multiple test indicators corresponding to the test scenarios of the screenless HarmonyOS device;

[0146] A preset data packet is sent to the screenless HarmonyOS device using a preset simulation tool, and the parameter value of each test indicator is recorded in the log information of the screenless HarmonyOS device.

[0147] Based on the preset performance scoring criteria, determine the performance score of the parameter value of each test indicator;

[0148] Based on the performance score of the parameter value of each of the test indicators, the performance test results of the screenless HarmonyOS device are generated.

[0149] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0150] The storage medium can be an internal storage unit of the performance testing device or equipment described in the foregoing embodiments, such as a hard drive or memory of the performance testing device or equipment. The storage medium can also be an external storage device of the performance testing device or equipment, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the performance testing device or equipment.

[0151] Since the computer program stored in the storage medium can execute any of the performance testing methods provided in the embodiments of this application, it can achieve the beneficial effects that any of the performance testing methods provided in the embodiments of this application can achieve, as detailed in the preceding embodiments, and will not be repeated here.

[0152] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A performance test method characterized by, The performance test method comprises: connecting other devices of the same local area network through a distributed software bus of the Hongmeng system to obtain device information of each device; determining whether the device is a screenless device according to whether the screen information in the device information of the device contains a screenless identifier, wherein the screenless device is a device without a screen and equipped with the Hongmeng system; if the device is the screenless device, obtaining a test scenario of the screenless device; obtaining a plurality of test indicators corresponding to the test scenario of the screenless device; sending a preset data packet to the screenless device through a preset simulation tool, and recording a parameter value of each test indicator in log information of the screenless device; determining a performance score of the parameter value of each test indicator according to a preset performance score standard; generating a performance test result of the screenless device according to the performance score of the parameter value of each test indicator. The method further comprises: obtaining data packets of different types and sizes for testing, and confirming a test scenario corresponding to the data packet; determining an operation step based on a description of the test scenario; testing the screenless device by performing the operation step with the aid of a simulation tool to obtain log information; analyzing a performance test result according to the log information.

2. The method of claim 1, wherein, If the device is the screenless device, the test scenario of the screenless device is obtained in the following manner: if the device is the screenless device, matching a device type of the screenless device with a preset type; when the matching is successful, determining a test scenario corresponding to the preset type as the test scenario of the screenless device.

3. The method of claim 1, wherein, The plurality of test indicators corresponding to the test scenario of the screenless device are obtained in the following manner: matching the test scenario of the screenless device with a preset test scenario; after the matching is successful, preset test indicators corresponding to the preset test scenario are used as the plurality of test indicators corresponding to the test scenario of the screenless device.

4. The method of claim 1, wherein, The performance test result of the screenless device is generated according to the performance score of the parameter value of each test indicator in the following manner: determining whether the performance score of the parameter value of each test indicator is greater than a preset score value; when the performance score of the parameter value of each test indicator is greater than the preset score value, generating a performance test pass message of the screenless device; when the performance score of the parameter value of each test indicator is not greater than the preset score value, generating a performance test fail message of the screenless device.

5. The method of claim 1, wherein, After the performance test result of the screenless device is generated according to the performance score of the parameter value of each test indicator, the method further comprises: obtaining a device identifier of the screenless device, and uploading the performance test result of the screenless device and the device identifier of the screenless device to a preset server.

6. The method of claim 1, wherein, The device information comprises any one or a combination of a device identifier, a device name, a device type, and screen information.

7. The method according to any one of claims 1 to 6, characterized in that, The test index includes any one or a combination of connection delay, connection success rate, connection interruption rate, maximum connection quantity, maximum throughput rate, transmission delay and data packet loss rate.

8. A performance testing apparatus characterized by comprising: The performance testing device includes a processor and a memory, the memory stores a computer program executable by the processor, and the computer program is executed by the processor to implement the performance testing method in any one of claims 1 to 7.

9. An apparatus, comprising: The device includes the performance testing device in claim 8.

10. A storage medium for computer-readable storage, characterized in that, The storage medium stores one or more programs executable by one or more processors to implement the steps of the performance testing method in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Gateway test method and storage medium

    CN111294255A

  • System reliability test method and device, equipment and storage medium

    CN115080397A