CN114978360A - Automatic testing method and device for communication equipment, electronic equipment and storage medium - Google Patents

Automatic testing method and device for communication equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN114978360A
CN114978360A CN202210532545.1A CN202210532545A CN114978360A CN 114978360 A CN114978360 A CN 114978360A CN 202210532545 A CN202210532545 A CN 202210532545A CN 114978360 A CN114978360 A CN 114978360A
Authority
CN
China
Prior art keywords
switching frequency
target
switch frame
frequency parameter
acquiring
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
CN202210532545.1A
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.)
Ziguang Computer Technology Co Ltd
Original Assignee
Ziguang Computer Technology 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 Ziguang Computer Technology Co Ltd filed Critical Ziguang Computer Technology Co Ltd
Priority to CN202210532545.1A priority Critical patent/CN114978360A/en
Publication of CN114978360A publication Critical patent/CN114978360A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides an automatic testing method and device of communication equipment, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring an instruction for switching to a target position, wherein the target position is a position corresponding to a communication equipment switch frame contained in a setting interface of a terminal operating system; acquiring a target coordinate corresponding to a target position and acquiring a switching frequency parameter of a switch frame where the target coordinate is located; and performing automatic test operation of opening or closing on the switch frame where the target coordinate is located according to the switching frequency parameter. Through the application, the problems that time and labor are wasted due to manual control and the batch processing cannot give consideration to/effectively guarantee the switching frequency in the scheme of manually switching on/off keys in the related technology are solved.

Description

Automatic testing method and device for communication equipment, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer product testing, and in particular, to an automated testing method and apparatus for a communication device, an electronic device, and a storage medium.
Background
At present, in the field of computer product testing, communication equipment, such as pressure testing of a circulating switch of bluetooth and WIFI, is usually required to be tested, and some companies adopt manual testing by manually clicking a network or a small window of a bluetooth switch in computer system setting, so that manual time and labor are wasted; or the batch processing file is used for modifying the registry parameters to realize the circular switching of the on/off keys of the equipment, wherein the batch processing still cannot give consideration to/effectively ensure the switching frequency under the condition of realizing the automatic switching of the on/off keys.
In summary, in the related art, the scheme of manually switching the on/off key is time-consuming and labor-consuming due to manual control, and batch processing has a problem that switching frequency cannot be considered/effectively guaranteed.
Disclosure of Invention
The application provides an automatic testing method and device of communication equipment, a storage medium and electronic equipment, and aims to at least solve the problems that in the related art, due to the fact that a scheme of manually switching on/off keys exists, time and labor are wasted due to manual control, batch processing cannot be achieved, and switching frequency cannot be guaranteed effectively.
According to an aspect of an embodiment of the present application, there is provided an automated testing method for a communication device, the method including:
acquiring an instruction for switching to a target position, wherein the target position is a position corresponding to a communication equipment switch frame contained in a setting interface of a terminal operating system;
acquiring a target coordinate corresponding to the target position and acquiring a switching frequency parameter of a switch frame where the target coordinate is located;
and executing automatic test operation of opening or closing on the switch frame where the target coordinate is located according to the switching frequency parameter.
According to another aspect of the embodiments of the present application, there is also provided an automatic testing apparatus for a communication device, the apparatus including:
the terminal comprises a first acquisition module, a second acquisition module and a switching module, wherein the first acquisition module is used for acquiring an instruction for switching to a target position, and the target position is a position corresponding to a communication equipment switch frame contained in a setting interface of a terminal operating system;
the second acquisition module is used for acquiring a target coordinate corresponding to the target position and acquiring a switching frequency parameter of a switch frame where the target coordinate is located;
and the execution module is used for executing the opening or closing automatic test operation on the switch frame where the target coordinate is located according to the switching frequency parameter.
Optionally, the second obtaining module includes:
the determining unit is used for automatically determining the target coordinates corresponding to the target position under the condition of receiving a first input instruction;
and the writing unit is used for writing the target coordinates into a first area of the configuration document.
Optionally, the second obtaining module includes:
the receiving unit is used for receiving the switching frequency parameter input in a second area of the configuration document;
and the control unit is used for controlling the switching interval of the switch key in the switch frame based on the switching frequency parameter.
Optionally, the execution module includes:
and the execution unit is used for circularly executing the on-off automatic test operation on the switch frame where the target coordinate is located according to the switching frequency parameter under the condition that a second input instruction is received, and ending the automatic test operation under the condition that a third input instruction is received.
Optionally, the apparatus further comprises:
a third obtaining module, configured to obtain system log information generated after performing an automatic test operation after performing the automatic test operation according to the switching frequency parameter;
and the analysis module is used for analyzing the system log information and determining abnormal information.
Optionally, the analysis module comprises:
the generating unit is used for sending the abnormal information to the user terminal under the condition that the abnormal information is contained in the system log information;
alternatively, the first and second electrodes may be,
and the storage unit is used for storing the current automatic test result to a database under the condition that the abnormal information is not contained in the system log information.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory communicate with each other through the communication bus; wherein the memory is used for storing the computer program; a processor for performing the method steps in any of the above embodiments by running the computer program stored on the memory.
According to a further aspect of an embodiment of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the method steps in any of the above embodiments when the computer program is executed.
In the embodiment of the application, an instruction for switching to a target position is obtained, wherein the target position is a position corresponding to a communication equipment switch frame contained in a setting interface of a terminal operating system; acquiring a target coordinate corresponding to a target position and acquiring a switching frequency parameter of a switch frame where the target coordinate is located; and executing opening or closing automatic test operation on the switch frame where the target coordinate is located according to the switching frequency parameter. Because the embodiment of the application can accurately identify the coordinates of the space position after the space position is switched to the target position, and input any set switching frequency parameter, and finish the automatic on-off operation of the communication equipment based on the set switching frequency parameter, the automation of the switch test of the communication equipment (such as WIFI, Bluetooth and the like) and the freedom of the switching frequency setting of the switch are realized, and further the scheme of manually switching on/off keys in the related technology is solved, the time and labor are wasted due to manual control, and the problem that the switching frequency cannot be considered/effectively guaranteed in batch processing.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an alternative method for automated testing of a communication device according to an embodiment of the present application;
FIG. 2 is a schematic overall flow chart of an alternative automated testing of a communication device according to an embodiment of the present application;
FIG. 3 is a block diagram of an alternative automated test equipment for communication devices according to an embodiment of the present application;
fig. 4 is a block diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, 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 only some embodiments of the present application, and not all embodiments. 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.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Currently, two ways are adopted for the cycle switch pressure test of some communication devices, such as WIFI and bluetooth: and (3) manual testing: manually clicking a network or a Bluetooth switch small window in the setting of a computer system to manually test; batch testing: the batch file modification registry parameters are applied to effect a cyclic switching of the on/off keys of these devices. However, the scheme of manually switching the on/off keys wastes time and labor due to manual control, and batch processing cannot give consideration to/effectively ensure the switching frequency. In order to solve the above problem, an embodiment of the present application provides an automated testing method for a communication device, as shown in fig. 1, where the method runs on a control software server, and the method includes:
step S101, acquiring an instruction for switching to a target position, wherein the target position is a position corresponding to a communication equipment switch frame contained in a setting interface of a terminal operating system;
step S102, acquiring a target coordinate corresponding to a target position and acquiring a switching frequency parameter of a switch frame where the target coordinate is located;
and step S103, executing opening or closing automatic test operation on the switch frame where the target coordinate is located according to the switching frequency parameter.
Optionally, in the embodiment of the present application, a control software for automatically opening a setting interface of a computer operating system and automatically locking a switch interface frame (i.e., a switch frame) is written in the C language. Therefore, as long as the control software is started, the setting interface of the terminal operating system is automatically opened, the interfaces of the communication devices (Bluetooth, WIFI and other network internet devices) contained in the setting interface are opened, and the switching frame is automatically locked to obtain the target position corresponding to the switching frame.
And (3) accurately identifying the coordinates of each space in the interface of the communication equipment by utilizing the simulation positioning software matched with the control software. Thus, the control software can obtain the target coordinate (which may be coordinate (x, y), such as (50, 60)) corresponding to the target position, and obtain the switching frequency parameter of the on/off key in the switch frame. It should be noted that, the manner of acquiring the switching frequency parameter may be to acquire a parameter value input by the user in a certain designated area of the interface of the communication device.
And the control software executes the automatic test operation of turning on or off the on/off key in the switch frame based on the set switching frequency parameter.
In the embodiment of the application, an instruction for switching to a target position is obtained, wherein the target position is a position corresponding to a communication equipment switch frame contained in a setting interface of a terminal operating system; acquiring a target coordinate corresponding to a target position and acquiring a switching frequency parameter of a switch frame where the target coordinate is located; and executing opening or closing automatic test operation on the switch frame where the target coordinate is located according to the switching frequency parameter. Because the embodiment of the application can accurately identify the coordinates of the space position after the space position is switched to the target position, and input any set switching frequency parameter, and finish the automatic on-off operation of the communication equipment based on the set switching frequency parameter, the automation of the switch test of the communication equipment (such as WIFI, Bluetooth and the like) and the freedom of the switching frequency setting of the switch are realized, and further the scheme of manually switching on/off keys in the related technology is solved, the time and labor are wasted due to manual control, and the problem that the switching frequency cannot be considered/effectively guaranteed in batch processing.
As an alternative embodiment, the obtaining the target coordinates corresponding to the target position includes:
under the condition of receiving a first input instruction, automatically determining a target coordinate corresponding to a target position;
the target coordinates are written to a first area of the configuration document.
Acquiring the switching frequency parameter of the switch frame where the target coordinate is located comprises the following steps:
receiving a switching frequency parameter input in a second area of the configuration document;
and controlling the switching interval of the switch key in the switch frame based on the switching frequency parameter.
Optionally, in the embodiment of the application, the user presses the external keyboard to issue some instructions, so that the control software executes a series of operations based on the received instructions. In particular, when the control software receives a first input instruction, the determined target coordinates (x, y) are filled in a first area of the configuration document, see fig. 2. The first input instruction may be a command triggered by pressing the peripheral key F9.
As shown in fig. 2, the user can input the currently required switching cycle switching frequency parameter in the event delay box of the control software according to actual needs. At this time, the control software will obtain some data inputted in the second area of the configuration document, take these data as the switching frequency parameters, and then subsequently control the switching interval of the on/off keys in the switch frame based on these switching frequency parameters. The switching frequency parameter may be in units of milliseconds, and the switching frequency parameter may be 15000 milliseconds.
In the embodiment of the application, the control software is successfully introduced into the computer, so that the test automation can be realized, the test efficiency is improved, and meanwhile, the switching frequency can be set randomly according to the requirement.
As an alternative embodiment, the automatic test operation of performing on/off operation on the switch frame where the target coordinate is located according to the switching frequency parameter includes:
and under the condition of receiving a second input instruction, circularly executing the on-off automatic test operation on the switch frame where the target coordinate is located according to the switching frequency parameter until the third input instruction is received, and finishing the automatic test operation.
Alternatively, as shown in fig. 2, when the control software receives a second input instruction input by the external key (e.g., F10), the control software may cyclically execute an automatic test operation of turning on or off the switch frame where the target coordinate is located according to the switching frequency parameter, for example, switching the bluetooth or WIFI switch every 15000 milliseconds, and continuing to cyclically switch until the control software receives a third input instruction input by the external key (e.g., F11), and ending the automatic test operation.
As an alternative embodiment, after performing an automatic test operation of turning on or off the switch frame where the target coordinate is located according to the switching frequency parameter, the method further includes:
acquiring system log information generated after the automatic test operation is executed;
and analyzing the system log information to determine abnormal information.
Optionally, after performing an automated testing operation (e.g., after receiving a third input instruction), generating system log information, and generating the system log information into a log folder under the C-packing directory.
The log information is used for recording whether Bluetooth occurs in the midway of the test, the WIFI equipment is lost, the problems such as abnormity and the like are solved, the system log information is analyzed, and whether the abnormal information is contained is determined.
According to the embodiment of the application, the system logs can be quickly checked to intercept WIFI in the test process, and the Bluetooth equipment is lost or abnormal.
As an alternative embodiment, analyzing the system log information, and determining the abnormal information includes:
under the condition that the system log information contains abnormal information, sending the abnormal information to the user terminal;
alternatively, the first and second electrodes may be,
and under the condition that the system log information does not contain abnormal information, storing the current automatic test result into a database.
Optionally, as shown in fig. 2, the abnormal information of the test result is determined by the system log information, and if it is determined that the test result of the system log information includes the abnormal information, the abnormal information is sent to the fault detection personnel terminal, the fault detection personnel is notified to analyze, and the test result of this time is recorded; and if the test result of the system log information does not contain abnormal information, directly storing the automatic test result.
According to the embodiment of the application, the generated system log information is utilized, the test result is automatically recorded, and the test result is traceable.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, an optical disk) and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the methods of the embodiments of the present application.
According to another aspect of the embodiment of the present application, there is also provided an automatic testing apparatus for a communication device, which is used for implementing the automatic testing method for a communication device. Fig. 3 is a block diagram of an alternative automated testing apparatus for communication devices according to an embodiment of the present application, and as shown in fig. 3, the apparatus may include:
the first obtaining module 301 is configured to obtain an instruction for switching to a target position, where the target position is a position corresponding to a communication device switch box included in a setting interface of a terminal operating system;
a second obtaining module 302, configured to obtain a target coordinate corresponding to a target position and a switching frequency parameter of a switch frame where the target coordinate is located;
and the execution module 303 is configured to execute an automatic test operation of turning on or off the switch frame where the target coordinate is located according to the switching frequency parameter.
It should be noted that the first obtaining module 301 in this embodiment may be configured to execute the step S101, the second obtaining module 302 in this embodiment may be configured to execute the step S102, and the executing module 303 in this embodiment may be configured to execute the step S103.
Through the module, according to the coordinate that can accurately discern this spatial position after switching to the target position, and input the arbitrary switching frequency parameter that sets up, and accomplish the automatic operation of opening or closing to communication equipment based on the switching frequency parameter that sets up, the automation of the switch test of communication equipment (like WIFI, bluetooth etc.) and the liberalization of the switching frequency setting of switch have been realized, and then the scheme that adopts artifical switching on/off key that exists among the correlation technique has been solved, can lead to wasting time and energy because of artificial manual control, and batch processing exists the problem that can't compromise/effectively guarantee switching frequency again.
As an alternative embodiment, the second obtaining module includes:
the determining unit is used for automatically determining target coordinates corresponding to the target position under the condition of receiving the first input instruction;
and the writing unit is used for writing the target coordinates into the first area of the configuration document.
As an alternative embodiment, the second obtaining module includes:
the receiving unit is used for receiving the switching frequency parameter input in the second area of the configuration document;
and the control unit is used for controlling the switching interval of the on-off key in the switch frame based on the switching frequency parameter.
As an alternative embodiment, the execution module includes:
and the execution unit is used for circularly executing the on-off automatic test operation on the switch frame where the target coordinate is located according to the switching frequency parameter under the condition of receiving the second input instruction, and ending the automatic test operation under the condition of receiving a third input instruction.
As an alternative embodiment, the apparatus further comprises:
the third acquisition module is used for acquiring system log information generated after the automatic test operation is executed after the automatic test operation of opening or closing the switch frame where the target coordinate is located is executed according to the switching frequency parameter;
and the analysis module is used for analyzing the system log information and determining abnormal information.
As an alternative embodiment, the analysis module comprises:
the system comprises a generating unit, a processing unit and a sending unit, wherein the generating unit is used for sending abnormal information to a user terminal under the condition that the abnormal information is determined to be contained in the system log information;
alternatively, the first and second electrodes may be,
and the storage unit is used for storing the current automatic test result to the database under the condition that the system log information is determined not to contain the abnormal information.
According to another aspect of the embodiments of the present application, there is also provided an electronic device for implementing the automated testing method of the communication device, where the electronic device may be a server, a terminal, or a combination thereof.
Fig. 4 is a block diagram of an alternative electronic device according to an embodiment of the present application, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 communicate with each other through the communication bus 404, where,
a memory 403 for storing a computer program;
the processor 401, when executing the computer program stored in the memory 403, implements the following steps:
acquiring an instruction for switching to a target position, wherein the target position is a position corresponding to a communication equipment switch frame contained in a setting interface of a terminal operating system;
acquiring a target coordinate corresponding to a target position and acquiring a switching frequency parameter of a switch frame where the target coordinate is located;
and executing opening or closing automatic test operation on the switch frame where the target coordinate is located according to the switching frequency parameter.
Alternatively, in the present embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The memory may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
As an example, as shown in fig. 4, the memory 403 may include, but is not limited to, a first obtaining module 301, a second obtaining module 302, and an executing module 303 in an automatic testing apparatus of the communication device. In addition, the present invention may further include, but is not limited to, other module units in the automatic testing apparatus of the communication device, which are not described in detail in this example.
The processor may be a general-purpose processor, and may include but is not limited to: a CPU (Central Processing Unit), an NP (Network Processor), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In addition, the electronic device further includes: and the display is used for displaying the automatic test result of the communication equipment.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration, and the device implementing the automatic testing method of the communication device may be a terminal device, and the terminal device may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 4 is a diagram illustrating a structure of the electronic device. For example, the terminal device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 4, or have a different configuration than shown in FIG. 4.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.
According to still another aspect of an embodiment of the present application, there is also provided a storage medium. Alternatively, in this embodiment, the storage medium may be used to execute a program code of an automated testing method of a communication device.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
acquiring an instruction for switching to a target position, wherein the target position is a position corresponding to a communication equipment switch frame contained in a setting interface of a terminal operating system;
acquiring a target coordinate corresponding to a target position and acquiring a switching frequency parameter of a switch frame where the target coordinate is located;
and executing opening or closing automatic test operation on the switch frame where the target coordinate is located according to the switching frequency parameter.
Optionally, the specific example in this embodiment may refer to the example described in the above embodiment, which is not described again in this embodiment.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, a ROM, a RAM, a removable hard disk, a magnetic disk, or an optical disk.
According to yet another aspect of an embodiment of the present application, there is also provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium; the processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the steps of the automated testing method of the communication device in any of the embodiments described above.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions used for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the automated testing method for the communication device of the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, and may also be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for automated testing of a communication device, the method comprising:
acquiring an instruction for switching to a target position, wherein the target position is a position corresponding to a communication equipment switch frame contained in a setting interface of a terminal operating system;
acquiring a target coordinate corresponding to the target position and acquiring a switching frequency parameter of a switch frame where the target coordinate is located;
and executing automatic test operation of opening or closing on the switch frame where the target coordinate is located according to the switching frequency parameter.
2. The method of claim 1, wherein the obtaining target coordinates corresponding to the target position comprises:
under the condition that a first input instruction is received, automatically determining the target coordinate corresponding to the target position;
and writing the target coordinates into a first area of a configuration document.
3. The method of claim 2, wherein the obtaining of the switching frequency parameter of the switch frame in which the target coordinate is located comprises:
receiving the switching frequency parameter input in a second area of the configuration document;
and controlling the switching interval of the on-off key in the switch frame based on the switching frequency parameter.
4. The method of claim 3, wherein the performing the automatic test operation of turning on or off the switch frame where the target coordinate is located according to the switching frequency parameter comprises:
and under the condition of receiving a second input instruction, circularly executing the on-off automatic test operation on the switch frame where the target coordinate is located according to the switching frequency parameter, and under the condition of receiving a third input instruction, finishing the automatic test operation.
5. The method according to any one of claims 1 or 3, wherein after the automatic test operation of turning on or off the switch frame where the target coordinates are located according to the switching frequency parameter is performed, the method further comprises:
acquiring system log information generated after the automatic test operation is executed;
and analyzing the system log information to determine abnormal information.
6. The method of claim 5, wherein analyzing the system log information to determine anomaly information comprises:
under the condition that the system log information is determined to contain the abnormal information, the abnormal information is sent to a user terminal;
alternatively, the first and second electrodes may be,
and under the condition that the system log information does not contain the abnormal information, storing the current automatic test result into a database.
7. An apparatus for automated testing of communication devices, the apparatus comprising:
the terminal comprises a first acquisition module, a second acquisition module and a switching module, wherein the first acquisition module is used for acquiring an instruction for switching to a target position, and the target position is a position corresponding to a communication equipment switch frame contained in a setting interface of a terminal operating system;
the second acquisition module is used for acquiring a target coordinate corresponding to the target position and acquiring a switching frequency parameter of a switch frame where the target coordinate is located;
and the execution module is used for executing the opening or closing automatic test operation on the switch frame where the target coordinate is located according to the switching frequency parameter.
8. The apparatus of claim 7, wherein the second obtaining module comprises:
the determining unit is used for automatically determining the target coordinates corresponding to the target position under the condition of receiving a first input instruction;
and the writing unit is used for writing the target coordinates into a first area of the configuration document.
9. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein said processor, said communication interface and said memory communicate with each other via said communication bus,
the memory for storing a computer program;
the processor for performing the method steps of any one of claims 1 to 6 by running the computer program stored on the memory.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN202210532545.1A 2022-05-10 2022-05-10 Automatic testing method and device for communication equipment, electronic equipment and storage medium Pending CN114978360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210532545.1A CN114978360A (en) 2022-05-10 2022-05-10 Automatic testing method and device for communication equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210532545.1A CN114978360A (en) 2022-05-10 2022-05-10 Automatic testing method and device for communication equipment, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114978360A true CN114978360A (en) 2022-08-30

Family

ID=82982721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210532545.1A Pending CN114978360A (en) 2022-05-10 2022-05-10 Automatic testing method and device for communication equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114978360A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079240A (en) * 2021-03-24 2021-07-06 深圳市亿道数码技术有限公司 Performance pressure testing method and system for intelligent equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461900A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 User interface testing method, center control server, test terminal and system
CN106897225A (en) * 2017-02-27 2017-06-27 网易(杭州)网络有限公司 Record method, device and the electronic equipment of test script
CN109669831A (en) * 2018-12-26 2019-04-23 无锡睿勤科技有限公司 A kind of test method and electronic equipment
US20200356465A1 (en) * 2018-01-23 2020-11-12 Netease (Hangzhou) Network Co.,Ltd. Automatic testing method and apparatus, storage medium and electronic device
CN112363187A (en) * 2020-12-01 2021-02-12 重庆芯讯通无线科技有限公司 Automatic testing method and system for communication module GNSS sensitivity
WO2021088724A1 (en) * 2019-11-05 2021-05-14 深圳前海微众银行股份有限公司 Testing method and apparatus
CN113138925A (en) * 2021-04-23 2021-07-20 闻泰通讯股份有限公司 Function test method and device of application program, computer equipment and storage medium
US20210318945A1 (en) * 2020-04-13 2021-10-14 The Toronto-Dominion Bank System and Method for Testing Applications

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461900A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 User interface testing method, center control server, test terminal and system
CN106897225A (en) * 2017-02-27 2017-06-27 网易(杭州)网络有限公司 Record method, device and the electronic equipment of test script
US20200356465A1 (en) * 2018-01-23 2020-11-12 Netease (Hangzhou) Network Co.,Ltd. Automatic testing method and apparatus, storage medium and electronic device
CN109669831A (en) * 2018-12-26 2019-04-23 无锡睿勤科技有限公司 A kind of test method and electronic equipment
WO2021088724A1 (en) * 2019-11-05 2021-05-14 深圳前海微众银行股份有限公司 Testing method and apparatus
US20210318945A1 (en) * 2020-04-13 2021-10-14 The Toronto-Dominion Bank System and Method for Testing Applications
CN112363187A (en) * 2020-12-01 2021-02-12 重庆芯讯通无线科技有限公司 Automatic testing method and system for communication module GNSS sensitivity
CN113138925A (en) * 2021-04-23 2021-07-20 闻泰通讯股份有限公司 Function test method and device of application program, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079240A (en) * 2021-03-24 2021-07-06 深圳市亿道数码技术有限公司 Performance pressure testing method and system for intelligent equipment

Similar Documents

Publication Publication Date Title
CN108845930B (en) Interface operation test method and device, storage medium and electronic device
CN111026645B (en) User interface automatic test method and device, storage medium and electronic equipment
CN110493812B (en) Distribution network test processing method, device and system, processor and master control equipment
CN107436844B (en) Method and device for generating interface use case aggregate
CN110347085B (en) Automated test system, method, vehicle, and computer-readable medium
CN109726134B (en) Interface test method and system
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN105303112A (en) Component calling bug detection method and apparatus
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
CN114546738A (en) Server general test method, system, terminal and storage medium
CN112148607A (en) Interface testing method and device for service scene
CN114978360A (en) Automatic testing method and device for communication equipment, electronic equipment and storage medium
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN109067605B (en) Storage subsystem fault diagnosis method and device, terminal and storage medium
CN111400179A (en) Method and device for terminal application program interaction, computer equipment and storage medium
CN112965711A (en) Job test method and apparatus, electronic device, and storage medium
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
CN111381995A (en) Method and device for restoring user operation and computer
CN112416734A (en) Test method, device and storage medium
CN108563578B (en) SDK compatibility detection method, device, equipment and readable storage medium
CN115563775A (en) Power simulation method and device, electronic device and storage medium
CN113254332A (en) Multi-scenario testing method, system, terminal and storage medium for storage system
CN110941544B (en) Automatic testing method and framework
CN109240906B (en) Database configuration information adaptation method and device, computer equipment and storage medium
CN113127369A (en) Processing method and device for execution script

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