CN115622643A - Wireless communication function test method, device and storage medium - Google Patents

Wireless communication function test method, device and storage medium Download PDF

Info

Publication number
CN115622643A
CN115622643A CN202211214341.XA CN202211214341A CN115622643A CN 115622643 A CN115622643 A CN 115622643A CN 202211214341 A CN202211214341 A CN 202211214341A CN 115622643 A CN115622643 A CN 115622643A
Authority
CN
China
Prior art keywords
log information
target
test case
wireless communication
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211214341.XA
Other languages
Chinese (zh)
Inventor
唐礼伟
时文龙
许之一杰
刘童
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kaihong Digital Industry Development Co Ltd
Original Assignee
Shenzhen Kaihong Digital Industry Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kaihong Digital Industry Development Co Ltd filed Critical Shenzhen Kaihong Digital Industry Development Co Ltd
Priority to CN202211214341.XA priority Critical patent/CN115622643A/en
Publication of CN115622643A publication Critical patent/CN115622643A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/15Performance testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/29Performance testing

Abstract

The application relates to the field of electronic equipment testing, and provides a wireless communication function testing method, wireless communication function testing equipment and a wireless communication function testing storage medium, wherein the method comprises the following steps: acquiring a target test case; acquiring reference log information corresponding to each target test case; testing the wireless communication function of the equipment to be tested based on the target test case to obtain target log information corresponding to the target test case; and determining a test result of the equipment to be tested according to the target test case, the reference log information and the target log information based on a preset log information analysis model. Target log information is obtained by executing the target test case, and the target log information is analyzed by the log analysis model, so that the test period of the wireless communication function of the electronic equipment is shortened, the test efficiency is improved, and the test cost is reduced.

Description

Wireless communication function test method, device and storage medium
Technical Field
The present disclosure relates to the field of electronic device testing, and in particular, to a method, a device, and a storage medium for testing wireless communication functions.
Background
Before the electronic device leaves a factory, it is usually necessary to test the short-range wireless communication function of the electronic device, for example, the bluetooth function, through auxiliary test software. However, when the wireless communication function of the electronic device is tested through the existing auxiliary test software, once a problem occurs, human intervention is often required to examine the log information of the electronic device, so that the reason and the solution of the problem are determined, and a large amount of time cost and labor cost are occupied. How to simplify the test procedure of the wireless communication function and shorten the test period becomes a problem which needs to be solved urgently.
Disclosure of Invention
The present application provides a method, an apparatus, and a computer storage medium for testing wireless communication functions, which are used to shorten the testing period of the wireless communication functions of electronic devices, improve the testing efficiency, and reduce the testing cost.
In a first aspect, the present application provides a method for testing wireless communication functions, where the method for testing wireless communication functions includes the following steps:
acquiring a target test case;
acquiring reference log information corresponding to each target test case;
testing the wireless communication function of the equipment to be tested based on the target test case to obtain target log information corresponding to the target test case;
and determining a test result of the equipment to be tested according to the target test case, the reference log information and the target log information based on a preset log information analysis model.
In a second aspect, the present application also provides a wireless communication function test apparatus, including:
a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the wireless communication functionality testing method as described above.
In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements the wireless communication function testing method as described above.
The application provides a wireless communication function test method, equipment and a computer storage medium, and a target test case is obtained; acquiring reference log information corresponding to each target test case; testing the wireless communication function of the equipment to be tested based on the target test case to obtain target log information corresponding to the target test case; and determining a test result of the equipment to be tested according to the target test case, the reference log information and the target log information based on a preset log information analysis model. Because the wireless communication function of the equipment to be tested is tested based on the preset target test case, and the target log information obtained by executing the target test case is automatically analyzed based on the log analysis model, the labor cost and the time cost of the wireless communication function test are reduced, the test period of the wireless communication function of the electronic equipment is shortened, and the test efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for testing wireless communication functions according to an embodiment of the present disclosure;
fig. 2 is a usage scenario diagram of a method for testing wireless communication functions according to an embodiment of the present application;
fig. 3 is a flow chart illustrating sub-steps of a method for testing wireless communication functions according to an embodiment of the present application;
fig. 4 is a flowchart illustrating sub-steps of a method for testing wireless communication functions according to an embodiment of the present application;
FIG. 5 is a schematic block diagram of a log information analysis model according to an embodiment of the present application;
FIG. 6 is a schematic block diagram of a log information analysis model provided in an embodiment of the present application;
fig. 7 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a wireless communication function testing method, computer equipment and a computer readable storage medium.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments and features of the embodiments described below can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for testing wireless communication functions according to an embodiment of the present disclosure. The wireless communication function testing method can be used in equipment to be tested to test the wireless communication function of the terminal equipment or the server, and the equipment to be tested can be the terminal equipment or the server. The terminal equipment can be electronic equipment such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and wearable equipment; the server may be an independent server, a server cluster, or a cloud server.
The operating system of the device to be tested is at least one of a Hongmon system, an android system and an iOS.
Referring to fig. 2, fig. 2 is a usage scenario diagram according to an embodiment of the present application. As shown in fig. 2, the device under test executes the target test case to obtain target log information, and analyzes the target log information based on the log information analysis model. Optionally, the target test case can be adjusted according to the test result obtained by the log information analysis model.
For example, the wireless communication function testing method may be applied to a client device requesting a service, and may also be applied to a server device providing a service, that is, the device under test may be a client device or a server device. Specifically, the device to be tested may be an electronic device with a short-distance wireless communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a bluetooth headset, a bluetooth speaker, a bluetooth mouse, and the like. Certainly, the wireless communication function testing method may be executed by the device to be tested, or may be executed by a server other than the device to be tested, for example, the device to be tested sends the target log information to a preset server, and the server outputs the test result to the device to be tested, which is not limited herein.
As shown in fig. 1, the method for testing wireless communication function includes steps S101 to S104.
S101, obtaining a target test case.
For example, the target test case may be selected by a user according to a requirement of the wireless communication function test, selected from at least one test case, or preconfigured according to a characteristic of the device under test, which is not limited herein.
Illustratively, a user selects a target test case for performing a wireless communication function test from at least one test case, so that the flexibility of the wireless communication function test is improved, and the user can specifically select the target test case, for example, by selecting the same target test case for multiple times, the user can test one function for multiple times, so that the interference of accidental factors in the test process is avoided, and the accuracy of the wireless communication function test is improved.
Referring to fig. 3, fig. 3 is a flow chart illustrating sub-steps of a method for testing wireless communication functions according to an embodiment of the present application.
As shown in fig. 3, in some embodiments, the obtaining the target test case includes: step S1011, determining the equipment attribute of the equipment to be tested, wherein the equipment attribute comprises a client and/or a server; step S1012, acquiring a preset basic test case according to the equipment attribute; and S1013, determining the target test case according to the basic test case.
Illustratively, the client refers to a terminal device requesting a service, and the server refers to a terminal device providing a service. The method for testing the wireless communication function provided by the embodiment can be used for testing the wireless communication function of the client device and/or the server device. For the same function, the client device and the server device typically need to perform different operations. Therefore, the target test cases for performing the wireless communication function test are different for the devices to be tested with different device attributes. It can be understood that the devices under test with different device attributes may also correspond to the same target test case, which is not limited herein.
For example, if the electronic device provides a service to the smart phone through the bluetooth function, the electronic device providing the service is a server device, and the smart phone is a client device. For example, the bluetooth thermometer is connected with the smart phone through a bluetooth function to provide a "temperature" data service for the smart phone, so that the bluetooth thermometer is a server device and the smart phone is a client device.
Illustratively, the target test case is obtained by combining at least one basic test case.
Due to the fact that target test cases corresponding to the client device and the server device are different, basic test cases preset for the client device and the server device are also different.
Taking the bluetooth function as an example, when bluetooth connection is performed between electronic devices, operations performed by the client device and the server device are different. For example, when the server device performs bluetooth connection, it needs to initiate broadcast, and when the client device performs bluetooth connection, it needs to perform bluetooth scanning. Therefore, for the bluetooth function test of the server device, it is necessary to test whether the server device can normally initiate broadcast and stop broadcast, that is, the basic test case corresponding to the server device may include initiating broadcast and stopping broadcast; for the bluetooth function test of the client device, it is required to test whether the client device can normally initiate a bluetooth scanning procedure and stop the bluetooth scanning, that is, the basic test case corresponding to the client device may include initiating the bluetooth scanning procedure and stopping the bluetooth scanning procedure.
For example, for the bluetooth function of the server device, the basic test case may include: creating a GATT server instance, acquiring Bluetooth device identification connected with a device to be tested, initiating and stopping broadcasting, replying read-write requests of client devices, subscribing and unsubscribing at least one of Bluetooth device connection state change events, subscribing and unsubscribing characteristic value read request events, subscribing and unsubscribing characteristic value write request events, subscribing and unsubscribing descriptor read request events and subscribing and unsubscribing descriptor write request events.
For example, for the bluetooth function of the server device, the basic test case may include: the method comprises the steps of creating a GATT client instance, initiating and stopping a Bluetooth device scanning process, subscribing and unsubscribing a Bluetooth device discovery reporting event, initiating and disconnecting a connection with a Bluetooth device, subscribing and unsubscribing a Bluetooth device connection state change event, reading a characteristic value of a Bluetooth device specific service, reading a descriptor contained in a Bluetooth device specific characteristic, writing a specific characteristic value into the Bluetooth device, and subscribing and unsubscribing a characteristic value change event of the Bluetooth device.
The target test case also comprises an adjustable use case containing adjustable parameters, and a user can adjust at least a part of the parameters in the adjustable use case in the process of testing the wireless communication function. Specifically, for the bluetooth function of the server device, the user can adjust the broadcast transmission interval, the broadcast transmission frequency, the broadcast connectability; for a bluetooth device of a client device, a user may adjust the device scan frequency, the scan mode, for example, to adjust the scan mode to any one of a low power mode, an equalization mode, a low latency mode.
And S102, acquiring the reference log information corresponding to each target test case.
Illustratively, target log information is obtained by comparing each target test case through preset reference log information so as to evaluate the wireless communication function of the device to be tested.
Illustratively, the benchmark log information includes benchmark parameters for comparison with key parameters in the target log information. For example, the reference parameter may be a parameter in log information when the wireless communication function of the device under test is operating normally. Specifically, the reference parameter may be a numerical value or a numerical range, and is not limited herein.
For example, the benchmark log information may be determined according to a base test case constituting the target test case. For example, the base log information corresponding to the target test case is obtained according to the base log information corresponding to each base test case constituting the target test case. Of course, the reference log information is not limited to this, and may be set for each target test case, which is not limited herein.
S103, testing the wireless communication function of the equipment to be tested based on the target test case to obtain target log information corresponding to the target test case.
For example, a system of a device under test may generate Log information during an operation, where the Log information may be, for example, log files of different types.
For example, if the operating system of the device under test is an Open Harmony OS (OHOS), the log information generated during the operation of the device under test is a HiLog log file. The data in the HiLog log file comprise debug, info, war, error, fatal and other designated levels, and the operation executed by the equipment system to be tested can be determined by analyzing the information in the HiLog log file.
Illustratively, monitoring an execution process of a target test case, and capturing log information in the device to be tested when the target test case is executed. Specifically, the ending of the execution of the target test case may refer to the completion of the execution of the target test case, or may refer to an occurrence of an abnormality in the process of executing the target test case, so that the execution process of the target test case cannot be continued.
In some embodiments, the testing the wireless communication function of the device under test based on the target test case to obtain target log information corresponding to the target test case includes: executing the target test case to obtain original log information interacted with the target equipment; and preprocessing the original log information to obtain the target log information.
For example, because the log information is generally unstructured data information, the original log information generated by the system is preprocessed to obtain target log information containing structured log information, and the accuracy of the log analysis model for analyzing the log information is improved.
Referring to fig. 4, fig. 4 is a schematic flow chart illustrating sub-steps of a method for testing wireless communication functions according to an embodiment of the present disclosure.
As shown in fig. 4, in some embodiments, the preprocessing the original log information to obtain the target log information includes: step S1031, determining key parameters in the original log information based on the reference parameters in the reference log information; step S1032 determines a preset step in the original log information based on a preset step identification rule.
Illustratively, the original log information includes a key parameter for comparing with a reference parameter.
Illustratively, according to a reference parameter in the reference log information, a key parameter corresponding to the reference parameter is marked in the target log information, so that the log information analysis model compares and analyzes the reference parameter and the key parameter.
For example, the key parameter may be determined according to a preset log key. Of course, the key parameter may also be determined according to the location of the parameter in the target log information, and is not limited herein.
Illustratively, in the wireless communication function test, the various steps may have interdependent or interacting relationships. For example, if the signal strength in the scanning step is low, the file sending step may fail to send the file. Therefore, the preset steps that may affect other steps or the preset steps that may be affected by other steps are determined in the original log information, so that the log information analysis model analyzes the relationship between the preset steps.
Illustratively, the preset step in the original log information is identified according to a preset log keyword. Specifically, the presetting step may include: a data reading and writing step, a data interaction step, and the like, which are not limited herein.
The key parameters and the preset steps in the original log information are determined, so that the key parameters and the preset steps can be analyzed by a subsequent log information analysis model, and the efficiency of log information analysis and the accuracy of test results are improved.
In some embodiments, the preprocessing the original log information to obtain the target log information further includes: step S1033, obtaining an electromagnetic environment parameter of the target test case executed by the device under test, and associating the electromagnetic environment parameter with corresponding original log information.
Illustratively, the operation of the wireless communication functionality is related to the electromagnetic environment in which the electronic device is located. Taking bluetooth function as an example, the temperature, humidity, and spaciousness of the environment may all affect the attenuation measurement of bluetooth signals, and the electromagnetic interference existing in the environment may also limit the performance of bluetooth function tests. Therefore, in order to prevent the electromagnetic environment information as a variable of the test from affecting the accuracy of the wireless communication function test, the electromagnetic environment parameter is associated with the corresponding original log information, and the electromagnetic environment parameter is recorded in the target log information.
And recording electromagnetic environment parameters when the target test case is executed in the target log information so as to eliminate the interference of environmental factors and improve the accuracy of the wireless communication function test.
In some embodiments, the obtaining the electromagnetic environment parameter of the target test case executed by the device under test, and associating the electromagnetic environment parameter with the corresponding original log information includes: and acquiring electromagnetic environment parameters when alarm information appears in the original log information, and associating the electromagnetic environment parameters with the alarm information.
For example, the electromagnetic environment parameter may be obtained when an abnormal condition occurs in the wireless communication function test, so that the obtained electromagnetic environment parameter is more targeted to the abnormal condition in the wireless communication function test, and the reason for the abnormal condition is conveniently analyzed.
S104, determining a test result of the equipment to be tested according to the target test case, the reference log information and the target log information based on a preset log information analysis model.
Illustratively, by means of a preset log information analysis model, reference log information and target log information are compared, the target log information is analyzed, and a test result of the device to be tested for the target test case is obtained by combining with the target test case used in the test.
Illustratively, the test result comprises at least one of a device test level, use case reference information and parameter reference information. Specifically, the device test level is used for reflecting the rating of the wireless communication function of the device to be tested, and a high device test level of the device to be tested indicates that the robustness of the wireless communication function of the device to be tested is high and that an abnormality may occur only under a severe condition, whereas a low device test level of the device to be tested indicates that the robustness of the wireless communication function of the device to be tested is low; the case reference information is used for determining a test case which is possibly abnormal under the current condition of the equipment to be tested according to the target log information of the executed target test case, so that a user can carry out wireless communication function test according to the case reference information; the parameter reference information is used for determining a reference value of an adjustable parameter, so that a user can conduct wireless communication function test after adjusting the adjustable parameter in the target test case.
In some embodiments, the determining, based on a preset log information analysis model, a test result of the device under test according to the target test case, the reference log information, and the target log information includes: determining the test result according to the case grade of the target test case, the key parameters in the target log information, the electromagnetic environment parameters and the reference parameters in the reference log information based on the log information analysis model, wherein the test result comprises: at least one of a device test level, use case reference information, and parameter reference information; the case reference information is used for adjusting the obtained target test case, and the parameter reference information is used for adjusting adjustable parameters in the target test case.
For example, since the reference log information includes a reference parameter used for comparing with a key parameter in the target log information, by comparing the key parameter with the reference parameter, it can be determined whether the target log information is abnormal, and thus it is determined whether the target test case is abnormal in execution. For example, if the reference parameter is a numerical value and the numerical values of the key parameter and the reference parameter are not consistent, the target log information is not matched with the reference log information, which indicates that there is an exception in the execution of the target test case; and if the reference parameter is in a numerical range and the numerical value of the key parameter is not in the numerical range of the reference parameter, the target log information is not matched with the reference log information, and the target test case is indicated to be abnormal in execution. Of course, the present invention is not limited thereto, and is not limited thereto.
Illustratively, each target test case corresponds to a preset case level, and the log analysis model determines the equipment test level according to the case level of the target test case selected by the user, the reference log information and the target log information; if the target log information corresponding to the target test case with the lower case level has the abnormality such as mismatching with the reference log information, the wireless communication function completion degree of the equipment to be tested is lower, and the corresponding equipment test level is also lower; on the contrary, if no abnormality occurs in the target log information corresponding to the target test case with a lower case level, but the target log information corresponding to the target test case with a higher case level is not matched with the reference log information, it is indicated that the wireless communication function of the device to be tested has a higher completion degree, and the corresponding device test level is also higher.
Illustratively, the log information analysis model determines a test that the wireless communication function may be abnormal according to the reference parameters in the target log information, and outputs case reference information used for suggesting a user to test the device to be tested through a reference case in the case reference information, so as to ensure the comprehensiveness of the test.
Illustratively, when the key parameters in the target log information are not matched with the benchmark parameters in the benchmark log information, the log information analysis model can output parameter reference information, and advise the user to test again after adjusting the adjustable parameters in the target test case. Of course, the log information analysis model is not limited to this, and the log information analysis model may also include use case reference information and parameter reference information at the same time, which is not limited herein.
Illustratively, by outputting the device test level, a user can clearly and intuitively know the completion degree of the wireless communication function of the current device to be tested; through the output case reference information, the wireless communication function of the device to be tested can be comprehensively tested, and the problem of difficulty is solved; by outputting the parameter reference information, the user can adjust the adjustable parameters and quickly troubleshoot possible reasons for problems in the test.
In some embodiments, before the determining, based on the preset log information analysis model, the test result of the device under test according to the target test case, the reference log information, and the target log information, the method further includes: training the log information analysis model through a preset abnormal target log sample and a preset normal target log sample so that the log information analysis model can determine at least one of equipment test level, case reference information and parameter reference information according to the input reference log information and the target log information; the abnormal target log sample is target log information with an abnormal test result, and the normal target log information is target log information with a normal test result.
Illustratively, the preset log information analysis model is trained by a labeled target log sample. Wherein the target log samples comprise normal target log samples and abnormal target log samples.
For example, the parameters in the abnormal target log sample and the normal target log sample may be marked in advance. For example, the device test level corresponding to the target log sample is marked. For another example, the factor causing the test result to be abnormal in the abnormal target log sample may be marked, specifically, the factor may be a numerical value of an adjustable parameter that causes the test result to be abnormal, or may be an electromagnetic environment parameter that causes the test result to be abnormal, which is not limited herein. For another example, the dependency relationship between each step in the abnormal target log sample and the normal target log sample is marked, so that the log information analysis model can analyze the preset step in the target log information.
For example, the log information analysis model may analyze parameters and steps in the abnormal target log sample and the normal target log sample through a machine learning algorithm, so that the log information analysis model can determine at least one of a device test level, use case reference information and parameter reference information according to the input benchmark log information and the target log information.
Referring to fig. 5 and fig. 6, fig. 5 is a schematic block diagram of a log information analysis model according to an embodiment of the present application; fig. 6 is a schematic block diagram of a log information analysis model according to an embodiment of the present application.
Illustratively, sub-models of the log information analysis model are trained separately for sub-functions of the wireless communication functions of the server device and the client device.
As shown in fig. 5, for the bluetooth function of the server device, the log information analysis model includes: at least one of a broadcast sending submodel, a service modification submodel, a reply function submodel and a subscription modification submodel;
as shown in fig. 6, for the bluetooth function of the client device, the log information analysis model includes: a connection function sub-model, a scanning function sub-model, a signal intensity sub-model and a broadcast reading sub-model.
In some embodiments, according to the selected target test case, the submodel corresponding to the target test case is determined, so that target log information obtained by executing the target test case is analyzed according to the corresponding submodel, and the accuracy of log information analysis is improved.
According to the wireless communication function testing method, a target test case is obtained; acquiring reference log information corresponding to each target test case; testing the wireless communication function of the equipment to be tested based on the target test case to obtain target log information corresponding to the target test case; and determining a test result of the equipment to be tested according to the target test case, the reference log information and the target log information based on a preset log information analysis model. The wireless communication function of the equipment to be tested is tested based on the preset target test case, and the target log information obtained by executing the target test case is automatically analyzed based on the log analysis model, so that the labor cost and the time cost of the wireless communication function test are reduced, the test period of the wireless communication function of the electronic equipment is shortened, and the test efficiency is improved.
Referring to fig. 7, fig. 7 is a schematic block diagram illustrating a structure of a computer device according to an embodiment of the present disclosure. The computer device may be a server or a terminal.
As shown in fig. 7, the computer device includes a processor, a memory, and a network interface connected by a system bus, wherein the memory may include a storage medium and an internal memory.
The storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any one of the wireless communication function testing methods.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for the execution of a computer program on a storage medium, which, when executed by the processor, causes the processor to perform any one of the wireless communication function testing methods.
The network interface is used for network communication, such as sending assigned tasks. It will be appreciated by those skilled in the art that the configuration shown in fig. 7 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute the computer program stored in the memory to perform the steps of:
acquiring a target test case;
acquiring reference log information corresponding to each target test case;
testing the wireless communication function of the equipment to be tested based on the target test case to obtain target log information corresponding to the target test case;
and determining a test result of the equipment to be tested according to the target test case, the reference log information and the target log information based on a preset log information analysis model.
In an embodiment, when the processor implements the testing of the wireless communication function of the device under test based on the target test case to obtain the target log information corresponding to the target test case, the processor is configured to implement:
executing the target test case to obtain original log information of the target test case;
and preprocessing the original log information to obtain the target log information.
In one embodiment, when the processor performs the preprocessing on the original log information to obtain the target log information, the processor is configured to:
determining key parameters in the original log information based on the reference parameters in the reference log information;
determining a preset step in the original log information based on a preset step identification rule;
wherein the target log information comprises the key parameter and/or the preset step.
In one embodiment, when the processor performs the preprocessing on the original log information to obtain the target log information, the processor is configured to:
and acquiring the electromagnetic environment parameters of the target test case executed by the equipment to be tested, and associating the electromagnetic environment parameters with the corresponding original log information.
In an embodiment, when the processor implements the preset log information analysis model and determines the test result of the device under test according to the target test case, the reference log information, and the target log information, the processor is configured to implement:
determining the test result according to the key parameter in the target log information, the electromagnetic environment parameter and the reference parameter in the reference log information based on the log information analysis model, wherein the test result comprises: using case reference information and/or parameter reference information;
the case reference information is used for adjusting the obtained target test case, and the parameter reference information is used for adjusting adjustable parameters in the target test case.
In an embodiment, before the processor implements the preset log information analysis model and determines the test result of the device under test according to the target test case, the reference log information, and the target log information, the processor is configured to implement:
training the log information analysis model through a preset abnormal target log sample and a preset normal target log sample so that the log information analysis model can determine use case reference information and/or parameter reference information according to the input reference log information and the target log information;
the abnormal target log sample is target log information with abnormal test results, and the normal target log information is target log information with normal test results.
In one embodiment, when the obtaining the target test case is implemented, the processor is configured to implement:
determining the equipment attribute of the equipment to be tested, wherein the equipment attribute comprises a client and/or a server;
acquiring a preset basic test case according to the equipment attribute;
and determining the target test case according to the basic test case.
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the wireless communication function test described above may refer to the corresponding process in the foregoing embodiment of the wireless communication function test control method, and is not described herein again.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and a method implemented when the program instructions are executed may refer to the various embodiments of the wireless communication function testing method of the present application. The computer program, loaded by a processor for example, may perform the following steps:
acquiring a target test case; acquiring reference log information corresponding to each target test case; testing the wireless communication function of the equipment to be tested based on the target test case to obtain target log information corresponding to the target test case; and determining a test result of the equipment to be tested according to the target test case, the reference log information and the target log information based on a preset log information analysis model.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the computer device.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments. The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for testing wireless communication functionality, the method comprising:
acquiring a target test case;
acquiring reference log information corresponding to each target test case;
testing the wireless communication function of the equipment to be tested based on the target test case to obtain target log information corresponding to the target test case;
and determining a test result of the equipment to be tested according to the target test case, the reference log information and the target log information based on a preset log information analysis model.
2. The method according to claim 1, wherein the testing a wireless communication function of a device under test based on the target test case to obtain target log information corresponding to the target test case includes:
executing the target test case to obtain original log information for executing the target test case;
and preprocessing the original log information to obtain the target log information.
3. The method for testing wireless communication function according to claim 2, wherein the preprocessing the original log information to obtain the target log information comprises:
determining key parameters in the original log information based on the reference parameters in the reference log information;
determining a preset step in the original log information based on a preset step identification rule;
wherein the target log information comprises the key parameter and/or the preset step.
4. The method for testing wireless communication function according to claim 2, wherein the preprocessing the original log information to obtain the target log information further comprises:
and acquiring the electromagnetic environment parameters of the target test case executed by the equipment to be tested, and associating the electromagnetic environment parameters with the corresponding original log information.
5. The method according to claim 4, wherein the determining a test result of the device under test according to the target test case, the reference log information, and the target log information based on a preset log information analysis model includes:
determining the test result according to the case grade of the target test case, the key parameters in the target log information, the electromagnetic environment parameters and the reference parameters in the reference log information based on the log information analysis model, wherein the test result comprises: at least one of a device test level, use case reference information, and parameter reference information;
the case reference information is used for adjusting the obtained target test case, and the parameter reference information is used for adjusting adjustable parameters in the target test case.
6. The method according to claim 5, wherein before determining the test result of the device under test according to the target test case, the reference log information, and the target log information based on the preset log information analysis model, the method further comprises:
training the log information analysis model through a preset abnormal target log sample and a preset normal target log sample so that the log information analysis model can determine at least one of equipment test level, case reference information and parameter reference information according to the input reference log information and the target log information;
the abnormal target log sample is target log information with an abnormal test result, and the normal target log information is target log information with a normal test result.
7. The method according to any one of claims 1 to 5, wherein the obtaining of the target test case includes:
determining the equipment attribute of the equipment to be tested, wherein the equipment attribute comprises a client and/or a server;
acquiring a preset basic test case according to the equipment attribute;
and determining the target test case according to the basic test case.
8. The wireless communication test method according to any one of claims 1 to 5, wherein the operating system of the device under test is at least one of a Hongmon system, an android system, and an iOS.
9. A wireless communication function testing device, characterized in that the wireless communication function testing device comprises a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, carries out the steps of the wireless communication function testing method according to any of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when being executed by a processor, carries out the steps of the method for wireless communication functionality testing according to any one of claims 1 to 7.
CN202211214341.XA 2022-09-30 2022-09-30 Wireless communication function test method, device and storage medium Pending CN115622643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211214341.XA CN115622643A (en) 2022-09-30 2022-09-30 Wireless communication function test method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211214341.XA CN115622643A (en) 2022-09-30 2022-09-30 Wireless communication function test method, device and storage medium

Publications (1)

Publication Number Publication Date
CN115622643A true CN115622643A (en) 2023-01-17

Family

ID=84860351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211214341.XA Pending CN115622643A (en) 2022-09-30 2022-09-30 Wireless communication function test method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115622643A (en)

Similar Documents

Publication Publication Date Title
US9213625B1 (en) Method and apparatus for performing automated user-interface layout testing
US9280451B2 (en) Testing device
CN108984389B (en) Application program testing method and terminal equipment
US10467590B2 (en) Business process optimization and problem resolution
US10824541B1 (en) System and method for test data fabrication
CN110808877A (en) Statistical analysis method and device based on interface response duration and computer equipment
CN107102937B (en) User interface testing method and device
KR20130107612A (en) Method for providing database management and the database management server there of
CN110889116B (en) Advertisement interception method and device and electronic equipment
CN113132522A (en) Test method, device, server and medium
CN112817869A (en) Test method, test device, test medium, and electronic apparatus
CN115622643A (en) Wireless communication function test method, device and storage medium
US9730038B2 (en) Techniques to manage platform migrations
CN111666201A (en) Regression testing method, device, medium and electronic equipment
CN115587041A (en) Mobile application delivery task processing method and device, electronic equipment and storage medium
KR102301293B1 (en) A method of measuring the performance of a user terminal that analyzes the degree of computer aging
CN114969175A (en) Method for butting insurance platform and external system and related equipment
CN114968696A (en) Index monitoring method, electronic equipment and chip system
CN113704114A (en) Automatic testing method, device, equipment and medium for functional interface
CN112363915A (en) Method and device for page performance test, terminal equipment and storage medium
CN112631929A (en) Test case generation method and device, storage medium and electronic equipment
RU2671999C1 (en) Method and system for diagnostics of mobile computer devices
CN115129575A (en) Code coverage result generation method and device
CN112306723A (en) Operation information acquisition method and device applied to small program
CN111813757B (en) Characteristic information storage method, device, equipment and readable storage medium

Legal Events

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