CN110493812B - Distribution network test processing method, device and system, processor and master control equipment - Google Patents

Distribution network test processing method, device and system, processor and master control equipment Download PDF

Info

Publication number
CN110493812B
CN110493812B CN201910786345.7A CN201910786345A CN110493812B CN 110493812 B CN110493812 B CN 110493812B CN 201910786345 A CN201910786345 A CN 201910786345A CN 110493812 B CN110493812 B CN 110493812B
Authority
CN
China
Prior art keywords
test
distribution network
module
terminal
cases
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.)
Active
Application number
CN201910786345.7A
Other languages
Chinese (zh)
Other versions
CN110493812A (en
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.)
Shanghai Mxchip Information Technology Co Ltd
Original Assignee
Shanghai Mxchip Information 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 Shanghai Mxchip Information Technology Co Ltd filed Critical Shanghai Mxchip Information Technology Co Ltd
Priority to CN201910786345.7A priority Critical patent/CN110493812B/en
Publication of CN110493812A publication Critical patent/CN110493812A/en
Application granted granted Critical
Publication of CN110493812B publication Critical patent/CN110493812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • 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/06Testing, supervising or monitoring using simulated traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a processing method, a device, a system, a processor and a master control device for distribution network testing. The method comprises the following steps: loading a configuration file, wherein the configuration file comprises: each test case in the plurality of test cases is used for distribution network testing; and operating a plurality of test cases, and respectively controlling the terminal and the module equipment to execute distribution network test operation in each test case to obtain a distribution network test result. The invention solves the technical problems that the Soft-AP distribution network test mode provided by the related technology is easy to increase the test labor cost, time cost and test complexity, and is easy to have errors caused by artificial factors.

Description

Distribution network test processing method, device and system, processor and master control equipment
Technical Field
The invention relates to the field of distribution network testing, in particular to a distribution network testing processing method, a distribution network testing processing device, a distribution network testing processing system, a distribution network testing processing processor and a main control device.
Background
At present, in the related art, for the Soft-AP distribution network test, a module device is triggered to enter a distribution network mode manually. For example: and manually clicking physical keys of the module equipment. Then adopt Application (APP) and module equipment on the terminal to carry out the distribution network operation to judge the test result through the naked eye. In addition, manual recording of test results and test duration is also required. Because the stability of the distribution network is long in time consumption, the manual operation is easy to generate fatigue, so that the labor cost, the time cost and the test complexity of the test are increased, the test efficiency is reduced, and meanwhile, a standard test report cannot be formed.
Therefore, the Soft-AP distribution network testing mode provided by the related technology mainly has the following problems:
(1) The manual distribution network strategy adopted in the stability test process always needs manual continuous intervention module equipment for testing, and the whole process needs manual participation, which can include but is not limited to: triggering module equipment to enter a distribution network mode → opening APP → inputting router passwords → verifying information integrity and correctness and the like, so that the test labor cost, time cost and test complexity are increased. Moreover, in this process, unnecessary errors due to visual and mental fatigue and distraction of the testers are inevitable.
(2) In the process of manually counting the test results, counting errors or omissions are also easy to occur.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
At least some embodiments of the present invention provide a processing method, an apparatus, a system, a processor, and a master control device for a distribution network test, so as to at least solve the technical problems that a Soft-AP distribution network test mode provided in the related art is easy to increase the test labor cost, time cost, and test complexity, and is also easy to cause errors due to human factors.
According to an embodiment of the present invention, a distribution network test processing method is provided, including:
loading a configuration file, wherein the configuration file comprises: each test case in the plurality of test cases is used for distribution network testing; and operating a plurality of test cases, and respectively controlling the terminal and the module equipment to execute distribution network test operation in each test case to obtain a distribution network test result.
Optionally, loading the configuration file comprises: loading cycle test times; determining the number of the test cases to be executed based on the cycle test times; and copying a plurality of test cases from the source test case directory according to the quantity to be executed, and storing the plurality of test cases to the specified test case directory.
Optionally, running a plurality of test cases, and respectively controlling the terminal and the module device to execute the distribution network test operation in each test case, and obtaining a distribution network test result includes: an obtaining step, obtaining the currently searched test case; an execution step, in the running process of the currently searched test case, sending a control command to the module equipment through a preset interface and executing distribution network test operation with the module equipment through a test tool control terminal, wherein the control command is used for controlling the module equipment to enter a distribution network mode; and a judging step, namely judging whether the plurality of test cases are operated completely, if not, turning to the obtaining step, and if so, ending the distribution network test to obtain a distribution network test result.
Optionally, executing the distribution network test operation through the test tool control terminal and the module device includes: the method comprises the steps that a test tool control terminal is connected to a first wireless local area network generated by module equipment after the module equipment enters a distribution network mode; sending the connection information of the router to the module equipment through the wireless local area network by the test tool control terminal so that the module equipment accesses a second wireless local area network generated by the router by adopting the connection information; and receiving a distribution network test result from the module equipment through the test tool control terminal.
Optionally, after the running of the plurality of test cases and the execution of the distribution network test operation by the terminal and the module device in each test case are respectively controlled, and a distribution network test result is obtained, the method further includes: and carrying out statistics and analysis processing on the distribution network test result to generate a distribution network test report.
According to an embodiment of the present invention, there is further provided a processing apparatus for distribution network testing, including:
a loading module, configured to load a configuration file, wherein the configuration file includes: each test case in the plurality of test cases is used for distribution network testing; and the processing module is used for operating a plurality of test cases, and respectively controlling the terminal and the module equipment to execute distribution network test operation in each test case to obtain a distribution network test result.
Optionally, the loading module includes: the loading unit is used for loading the cycle test times; the determining unit is used for determining the number of the test cases to be executed based on the cycle test times; and the processing unit is used for copying a plurality of test cases from the source test case directory according to the quantity to be executed and storing the plurality of test cases to the specified test case directory.
Optionally, the processing module comprises: the acquisition unit is used for acquiring the currently searched test case; the execution unit is used for sending a control command to the module equipment through the preset interface and executing distribution network test operation with the module equipment through the test tool control terminal in the running process of the currently searched test case, wherein the control command is used for controlling the module equipment to enter a distribution network mode; and the judging unit is used for judging whether the plurality of test cases are operated completely, if not, the obtaining unit is switched to, and if so, the distribution network test is ended to obtain a distribution network test result.
Optionally, the execution unit is configured to connect, through the test tool control terminal, to a first wireless local area network generated by the module device after entering the distribution network mode; sending the connection information of the router to the module equipment through the wireless local area network by the test tool control terminal so that the module equipment accesses a second wireless local area network generated by the router by adopting the connection information; and receiving a distribution network test result from the module equipment through the test tool control terminal.
Optionally, the apparatus further comprises: and the generating module is used for counting and analyzing the distribution network test result to generate a distribution network test report.
According to an embodiment of the present invention, there is further provided a storage medium, in which a computer program is stored, where the computer program is configured to execute the processing method for distribution network testing in any one of the foregoing methods when the computer program runs.
According to an embodiment of the present invention, there is further provided a processor, configured to execute the program, where the program is configured to execute the processing method for distribution network testing in any one of the foregoing embodiments.
According to an embodiment of the present invention, there is further provided a master control device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the distribution network test processing method in any one of the foregoing embodiments.
According to an embodiment of the present invention, there is further provided a distribution network test processing system, including: the main control equipment, the terminal, the router and the module equipment.
In at least some embodiments of the present invention, loading a configuration file is employed, where the configuration file includes: the system comprises a plurality of test cases, wherein each test case in the test cases is used for a distribution network test mode, the distribution network test operation is executed by operating the test cases and controlling a terminal and a module device to execute the distribution network test operation in each test case respectively to obtain a distribution network test result, the aim of automatically testing the stability of the distribution network for completing the stability test between the module device and an APP on the terminal is fulfilled by adopting program control to replace manual operation, and therefore the technical effects of improving the test efficiency, reducing the test cost and reducing the error probability caused by human factors are achieved, the Soft-AP distribution network test mode provided in the related technology is further solved, the test labor cost, the time cost and the test complexity are easily increased, and the technical problem of errors caused by the manual factors is easily solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of a processing system for distribution network testing according to one embodiment of the invention;
fig. 2 is a flowchart of a distribution network test processing method according to an embodiment of the present invention;
fig. 3 is a block diagram of a processing apparatus for distribution network testing according to an embodiment of the present invention;
fig. 4 is a block diagram of a processing apparatus for distribution network testing according to an alternative embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention 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 invention 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.
In accordance with one embodiment of the present invention, there is provided an embodiment of a method for processing distribution network tests, where the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions, and where a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that illustrated or described herein.
The method embodiment can be executed in a processing system for distribution network testing. Fig. 1 is a schematic diagram of a processing system for distribution network testing according to an embodiment of the present invention, and as shown in fig. 1, the processing system for distribution network testing includes: master control equipment, terminal, router and module equipment. The processing system for the distribution network test is used for the distribution network stability test between the APP on the terminal and the module equipment. The terminal and the module equipment are bridged as a wireless local area network through the router. In the distribution network testing process, the distance between the terminal, the router and the module equipment needs to be controlled within a preset distance range (for example, within 1 meter).
The master control device may be a notebook computer. The terminal may be a smartphone or a tablet computer. The module used by the module equipment can include but is not limited to: EMW3080V2, EMW3083. The application scenarios of the module device may include but are not limited to: the intelligent control system comprises an intelligent socket in an intelligent home scene, a wireless intelligent gateway in an Internet of things wireless communication scene, an entrance guard card reader in an identity recognition scene, industrial control equipment in an industrial control scene and an intelligent remote controller in an intelligent control terminal scene.
The main control equipment, the terminal and the module equipment are similar in internal main structure. Taking a master device as an example, the master device may include one or more processors (which may include, but are not limited to, a processing device such as a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), or a programmable logic device (FPGA)), and memory for storing data. Optionally, the main control device may further include a wireless communication component for communication function and a display. It will be understood by those skilled in the art that the foregoing structural description is illustrative only, and is not intended to limit the structure of the master device. For example, the master device may also include more or fewer components than described above, or have a different configuration than described above.
The memory may be configured to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the processing method for a distribution network test in the embodiment of the present invention, and the processor executes various functional applications and data processing by running the computer program stored in the memory, that is, implements the processing method for a distribution network test. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory remotely located from the processor, and these remote memories may be connected to the master device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The wireless communication component is used for receiving or sending data through a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the master device. In one example, the wireless communication component includes a Network adapter (NIC) that can be connected to other Network devices via a base station to communicate with the internet. In one example, the wireless communication component may be a wireless fidelity (Wi-Fi) module, a Bluetooth (Bluetooth) module, or a ZigBee (ZigBee) module for communicating with the internet by wireless means.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the master device. In some embodiments, the master device has a Graphical User Interface (GUI) with which a user can interact by touching finger contacts and/or gestures on a touch-sensitive surface, where the human-machine interaction function optionally includes the following interactions: the method comprises the steps of building a distribution network stability test environment, sending a distribution network test control command, receiving a distribution network test result and the like. Executable instructions for performing the above-described human-machine interaction functions are configured/stored in one or more processor-executable computer program products or readable storage media.
In this embodiment, a method for processing a distribution network test running on the above-mentioned master control device is provided, and fig. 2 is a flowchart of a method for processing a distribution network test according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
step S22, loading a configuration file, wherein the configuration file comprises: each test case in the plurality of test cases is used for distribution network testing;
and S24, operating a plurality of test cases, and respectively controlling the terminal and the module equipment to execute distribution network test operation in each test case to obtain a distribution network test result.
Through the above steps, a loading configuration file may be adopted, which includes: the system comprises a plurality of test cases, wherein each test case in the test cases is used for a distribution network test mode, the distribution network test operation is executed by operating the test cases and controlling a terminal and a module device to execute the distribution network test operation in each test case respectively to obtain a distribution network test result, the aim of automatically testing the stability of the distribution network for completing the stability test between the module device and an APP on the terminal is fulfilled by adopting program control to replace manual operation, and therefore the technical effects of improving the test efficiency, reducing the test cost and reducing the error probability caused by human factors are achieved, the Soft-AP distribution network test mode provided in the related technology is further solved, the test labor cost, the time cost and the test complexity are easily increased, and the technical problem of errors caused by the manual factors is easily solved.
Optionally, in step S22, loading the configuration file may include performing the steps of:
step S221, loading the cycle test times;
step S222, determining the number of the test cases to be executed based on the cycle test times;
step S223, copying a plurality of test cases from the source test case catalog according to the quantity to be executed, and storing the plurality of test cases in the specified test case catalog.
The main control device copies the number of test cases from the Source test case (Source _ Testcase) directory to the specified test case (Testcase) directory by loading the cycle test times in the main file (e.g. config. Ini), and then according to the cycle test times, for example: when the number of the cycle tests is 1 ten thousand, the main control device can automatically copy 1 ten thousand of the same test cases through the program.
Optionally, in step S24, running a plurality of test cases, and respectively controlling the terminal and the module device to execute the distribution network test operation in each test case, and obtaining the distribution network test result may include the following steps:
step S241, obtaining the currently searched test case;
step S242, in the running process of the currently searched test case, sending a control command to the module equipment through a preset interface and executing distribution network test operation with the module equipment through a test tool control terminal, wherein the control command is used for controlling the module equipment to enter a distribution network mode;
and step S243, judging whether the plurality of test cases are operated completely, if not, turning to step S241, and if so, ending the distribution network test to obtain a distribution network test result.
After the configuration file is loaded, the main control equipment loads the test cases into a unit test framework, the test case files (test x, py) can be automatically searched according to the test catalog start _ dir matching through a discover () method below the type, and the searched test cases are assembled into a test suite, so that the main control equipment can directly execute the test cases obtained by discover through a run () method. In the running process of the currently searched test case, the main control equipment is connected to the module equipment through the serial port, and then the control command is sent to the module equipment through the serial port so as to trigger the module equipment to execute initialization operation and enter a distribution network mode. Therefore, the command is adopted to trigger the module equipment to enter the distribution network mode, manual triggering of the module equipment is quickly and conveniently replaced, and the distribution network mode is entered, so that the accuracy and the testing efficiency of distribution network testing are improved. In addition, the main control equipment calls an automatic testing tool (such as a Uiautomation2 tool) to automatically operate a page of an APP (such as an intelligent home APP) on the terminal to carry out distribution, and automatically identifies a test result, so that the main control equipment automatically counts the test result and records the distribution time length to generate a test report, and the distribution network testing efficiency is improved. By calling the Uiautomation2 tool to open the APP on the terminal, the APP can perform the following operations: adding module equipment → automatically selecting module equipment needing distribution network → automatically inputting Wi-Fi password → automatically clicking 'next step' to enter a distribution network mode.
And the main control chip adopts each test case one by one to carry out distribution network cycle test according to the cycle test times. The tested test case can not participate in the distribution network test. And the test cases which do not participate in the distribution network test need to execute the distribution network test in sequence according to the searched sequence until all the test cases are completely executed. For example: when the number of the circulating tests is 1 ten thousand, the main control chip automatically copies 1 ten thousand same test cases through a program. Firstly, the main control chip finds the test case 1 and starts to carry out distribution network test on the test case 1; secondly, searching a test case 2 which does not participate in the distribution network test, and starting to perform the distribution network test on the test case 2; then, searching a test case 3 which does not participate in the distribution network test, and starting to carry out the distribution network test on the test case 3; and repeating the steps until all the test cases are completely executed.
Optionally, in step S242, the performing, by the test tool control terminal and the module device, the distribution network test operation may include performing the following steps:
step S2421, connecting the test tool control terminal to a first wireless local area network generated after the module equipment enters a distribution network mode;
step S2422, the connection information of the router is sent to the module equipment through the test tool control terminal via the wireless local area network, so that the module equipment can access a second wireless local area network generated by the router by adopting the connection information;
and step S2423, receiving a distribution network test result from the module equipment through the test tool control terminal.
In the process of distribution network testing, the module device can generate a first wireless local area network (for example, a wireless network A) after entering a distribution network mode. At this time, the module apparatus enters an Access Point (AP) mode. The main control device controls the terminal to exit the second wireless local area network (for example, wireless network B) generated by the router through the test tool, and access the wireless network A. Secondly, the main control device sends the connection information (such as a user name and a password of Wi-Fi) of the router to the module device through the wireless network A through the test tool control terminal, so that the module device accesses the wireless network B by adopting the connection information, and meanwhile, the main control device disconnects the wireless network A and accesses the wireless network B again. Then, the module device will try to access the wireless network B by using the connection information, and return a distribution network test result (for example, binding success or binding failure) to the terminal.
After the distribution network test operation is finished, the APP on the terminal prompts on an interface: the binding is successful and the test result is recorded into the test log. If the distribution network fails, the main control equipment can intercept the picture of the distribution network failure prompted on the APP and then store the picture in the corresponding picture directory.
Optionally, in step S24, a plurality of test cases are run, and the terminal and the module device are respectively controlled to execute the distribution network test operation in each test case, so as to obtain a distribution network test result, the method may further include the following steps:
and S25, carrying out statistics and analysis processing on the distribution network test result to generate a distribution network test report.
After the distribution network test operation is finished, the main control equipment can count the test result in a hypertext markup language (HTML) mode and form a test report. The contents of the test report may include, but are not limited to: the test report name, the operation times, the passing times, the failure times, the error times, the distribution network duration, the failure screenshot and the screenshot information of the operation error. As an alternative example of the test report, the test report is named as an ALP-AL00 automatic test report, the running time is 10000 times, the passing time is 9827 times, the failure time is 0 time, the error time is 173 times, and the duration of the distribution network is about 7 days and half. The failure screenshot and the screenshot information of the operation error are mainly used for searching the cause of the test error, for example: the reason for finding out that the distribution network fails for 115 times in succession is as follows: the inability to clear background application operations caused by APP.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may 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 invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a processing device for a distribution network test is further provided, where the processing device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a configuration network test processing apparatus according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes: a loading module 10, configured to load a configuration file, where the configuration file includes: each test case in the plurality of test cases is used for distribution network testing; and the processing module 20 is configured to run multiple test cases, and control the terminal and the module device to execute a distribution network test operation in each test case, so as to obtain a distribution network test result.
Optionally, the loading module 10 includes: a loading unit (not shown in the figure) for loading the number of test cycles; a determining unit (not shown in the figure) for determining the number of the plurality of test cases to be executed based on the number of loop tests; and the processing unit (not shown in the figure) is used for copying a plurality of test cases from the source test case directory according to the quantity to be executed and storing the plurality of test cases to the specified test case directory.
Optionally, the processing module 20 comprises: an obtaining unit (not shown in the figure) for obtaining the currently found test case; an execution unit (not shown in the figure), configured to send a control command to the module device through a preset interface and execute a distribution network test operation with the module device through the test tool control terminal in an operation process of the currently found test case, where the control command is used to control the module device to enter a distribution network mode; and the judging unit (not shown in the figure) judges whether the plurality of test cases are operated completely, if not, the network distribution test is finished, and if so, the network distribution test is finished to obtain a network distribution test result.
Optionally, an execution unit (not shown in the figure) is configured to connect, through the test tool control terminal, to a first wireless local area network generated by the module device after entering the distribution network mode; sending the connection information of the router to the module equipment through the wireless local area network by the test tool control terminal so that the module equipment accesses a second wireless local area network generated by the router by adopting the connection information; and receiving a distribution network test result from the module equipment through the test tool control terminal.
Optionally, fig. 4 is a block diagram of a configuration network test processing apparatus according to an optional embodiment of the present invention, and as shown in fig. 4, the apparatus includes, in addition to all modules shown in fig. 3: and the generating module 30 is configured to perform statistics and analysis processing on the distribution network test result to generate a distribution network test report.
It should be noted that the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, loading a configuration file, wherein the configuration file comprises: each test case in the plurality of test cases is used for distribution network testing;
and S2, operating a plurality of test cases, and respectively controlling the terminal and the module equipment to execute distribution network test operation in each test case to obtain a distribution network test result.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of: loading cycle test times; determining the number of the test cases to be executed based on the cycle test times; and copying a plurality of test cases from the source test case directory according to the quantity to be executed, and storing the plurality of test cases to the specified test case directory.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of: an obtaining step, obtaining the currently searched test case; an execution step, in the running process of the currently searched test case, sending a control command to the module equipment through a preset interface and executing distribution network test operation with the module equipment through a test tool control terminal, wherein the control command is used for controlling the module equipment to enter a distribution network mode; and a judging step, namely judging whether the plurality of test cases are operated completely, if not, turning to the obtaining step, and if so, ending the distribution network test to obtain a distribution network test result.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of: the method comprises the steps that a test tool control terminal is connected to a first wireless local area network generated by module equipment after the module equipment enters a distribution network mode; sending the connection information of the router to the module equipment through the wireless local area network by the test tool control terminal so that the module equipment accesses a second wireless local area network generated by the router by adopting the connection information; and receiving a distribution network test result from the module equipment through the test tool control terminal.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of: and carrying out statistics and analysis processing on the distribution network test result to generate a distribution network test report.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, loading a configuration file, wherein the configuration file comprises: each test case in the plurality of test cases is used for distribution network testing;
and S2, operating a plurality of test cases, and respectively controlling the terminal and the module equipment to execute distribution network test operation in each test case to obtain a distribution network test result.
Optionally, in this embodiment, the processor may be further configured to execute, by the computer program, the following steps: loading cycle test times; determining the number of the test cases to be executed based on the cycle test times; and copying a plurality of test cases from the source test case directory according to the quantity to be executed, and storing the plurality of test cases to the specified test case directory.
Optionally, in this embodiment, the processor may be further configured to execute, by the computer program, the following steps: an obtaining step, obtaining the currently searched test case; an execution step, in the running process of the currently searched test case, sending a control command to the module equipment through a preset interface and executing distribution network test operation with the module equipment through a test tool control terminal, wherein the control command is used for controlling the module equipment to enter a distribution network mode; and a judging step, namely judging whether the plurality of test cases are operated completely, if not, turning to the obtaining step, and if so, ending the distribution network test to obtain a distribution network test result.
Optionally, in this embodiment, the processor may be further configured to execute, by the computer program, the following steps: the method comprises the steps that a test tool control terminal is connected to a first wireless local area network generated after a module device enters a distribution network mode; sending the connection information of the router to the module equipment through the wireless local area network by the test tool control terminal so that the module equipment accesses a second wireless local area network generated by the router by adopting the connection information; and receiving a distribution network test result from the module equipment through the test tool control terminal.
Optionally, in this embodiment, the processor may be further configured to execute the following steps by a computer program: and carrying out statistics and analysis processing on the distribution network test result to generate a distribution network test report.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described in detail in a certain embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple 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, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention 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 integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (12)

1. A processing method for distribution network testing is characterized by comprising the following steps:
loading a configuration file, wherein the configuration file comprises: each test case in the plurality of test cases is used for distribution network testing;
the plurality of test cases are operated, and the terminal and the module equipment are respectively controlled to execute distribution network test operation in each test case to obtain a distribution network test result;
wherein loading the configuration file comprises: loading cycle test times; determining the number of the plurality of test cases to be executed based on the cycle test times; copying the plurality of test cases from the source test case directory according to the quantity to be executed, and storing the plurality of test cases to a specified test case directory;
the operation of the plurality of test cases and the control of the terminal and the module equipment to execute the distribution network test operation in each test case respectively comprises the following steps:
and the main control chip adopts each test case one by one according to the cycle test times to carry out the distribution network cycle test, the test cases which are tested do not participate in the distribution network test any more, and the test cases which do not participate in the distribution network test execute the distribution network test in sequence according to the searched sequence until all the test cases are completely executed.
2. The method of claim 1, wherein the running of the plurality of test cases and the controlling of the terminal and the module device to execute the distribution network test operation in each test case respectively, and the obtaining of the distribution network test result comprises:
an obtaining step, obtaining the currently searched test case;
an executing step, in the running process of the currently searched test case, sending a control command to the module equipment through a preset interface and controlling the terminal and the module equipment to execute distribution network test operation through a test tool, wherein the control command is used for controlling the module equipment to enter a distribution network mode;
and a judging step, namely judging whether the plurality of test cases are operated completely, if not, turning to the acquiring step, and if so, ending the distribution network test to obtain the distribution network test result.
3. The method of claim 2, wherein controlling the terminal and the module device to perform distribution network test operations via the test tool comprises:
controlling the terminal to be connected to a first wireless local area network generated by the module equipment after entering the distribution network mode through the test tool;
controlling the terminal to send the connection information of the router to the module equipment through the wireless local area network by the test tool so that the module equipment accesses a second wireless local area network generated by the router by adopting the connection information;
and controlling the terminal to receive the distribution network test result from the module equipment through the test tool.
4. The method of claim 1, wherein after the running the plurality of test cases and the controlling the terminal and the module device to execute the distribution network test operation in each test case respectively to obtain the distribution network test result, the method further comprises:
and carrying out statistics and analysis processing on the distribution network test result to generate a distribution network test report.
5. A processing apparatus for distribution network testing, comprising:
a loading module, configured to load a configuration file, where the configuration file includes: each test case in the plurality of test cases is used for distribution network testing;
the processing module is used for operating the plurality of test cases, and respectively controlling the terminal and the module equipment to execute distribution network test operation in each test case to obtain a distribution network test result;
wherein, the load module includes: the loading unit is used for loading the cycle test times; the determining unit is used for determining the number of the test cases to be executed based on the cycle test times; the processing unit is used for copying a plurality of test cases from the source test case directory according to the quantity to be executed and storing the plurality of test cases to the specified test case directory;
wherein the processing module is further configured to: and the main control chip adopts each test case one by one according to the cycle test times to carry out the cycle test of the distribution network, the test cases which are tested do not participate in the distribution network test, and the test cases which do not participate in the distribution network test sequentially execute the distribution network test according to the searched sequence until all the test cases are completely executed.
6. The apparatus of claim 5, wherein the processing module comprises:
the acquisition unit is used for acquiring the currently searched test case;
the execution unit is used for sending a control command to the module equipment through a preset interface and controlling the terminal and the module equipment to execute distribution network test operation through a test tool in the running process of the currently searched test case, wherein the control command is used for controlling the module equipment to enter a distribution network mode;
and the judging unit is used for judging whether the plurality of test cases are operated completely, if not, the obtaining unit is switched to, and if so, the distribution network test is ended to obtain the distribution network test result.
7. The apparatus according to claim 6, wherein the execution unit is configured to control, through the testing tool, the terminal to connect to a first wireless local area network generated by the module device after entering the distribution network mode; controlling the terminal to send the connection information of the router to the module equipment through the wireless local area network by the test tool so that the module equipment accesses a second wireless local area network generated by the router by adopting the connection information; and controlling the terminal to receive the distribution network test result from the module equipment through the test tool.
8. The apparatus of claim 5, further comprising:
and the generation module is used for counting and analyzing the distribution network test result to generate a distribution network test report.
9. A storage medium, characterized in that the storage medium has a computer program stored therein, wherein the computer program is configured to execute the processing method for distribution network testing as claimed in any one of claims 1 to 4 when running.
10. A processor, characterized in that the processor is configured to execute a program, wherein the program is configured to execute the processing method of distribution network testing as claimed in any one of claims 1 to 4 when running.
11. A master device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the processing method for distribution network testing as claimed in any one of claims 1 to 4.
12. A processing system for distribution network testing, the system comprising: the master device, the terminal, the router, and the module device of claim 11.
CN201910786345.7A 2019-08-23 2019-08-23 Distribution network test processing method, device and system, processor and master control equipment Active CN110493812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910786345.7A CN110493812B (en) 2019-08-23 2019-08-23 Distribution network test processing method, device and system, processor and master control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910786345.7A CN110493812B (en) 2019-08-23 2019-08-23 Distribution network test processing method, device and system, processor and master control equipment

Publications (2)

Publication Number Publication Date
CN110493812A CN110493812A (en) 2019-11-22
CN110493812B true CN110493812B (en) 2023-04-07

Family

ID=68553542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910786345.7A Active CN110493812B (en) 2019-08-23 2019-08-23 Distribution network test processing method, device and system, processor and master control equipment

Country Status (1)

Country Link
CN (1) CN110493812B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083017A (en) * 2019-12-31 2020-04-28 深圳Tcl新技术有限公司 Air conditioner distribution network testing method, air conditioner distribution network testing terminal and readable storage medium
CN111885679A (en) * 2020-07-29 2020-11-03 宁波方太厨具有限公司 Distribution network testing method and system of Internet of things equipment
CN112333057B (en) * 2020-08-21 2023-08-01 深圳Tcl新技术有限公司 Intelligent household equipment distribution network testing method and device, executive machine and storage medium
CN112566156B (en) * 2020-11-18 2023-12-08 深圳数联天下智能科技有限公司 Method for automatically testing WiFi module compatibility and electronic equipment
CN113645655B (en) * 2021-08-09 2024-04-26 广电计量检测集团股份有限公司 Distribution network testing method, device and system for internet of things (IoT) module and terminal
CN113890846A (en) * 2021-09-23 2022-01-04 深圳Tcl新技术有限公司 Distribution network detection method, device and system, storage medium and terminal equipment
CN114666255B (en) * 2022-03-16 2024-04-05 京东科技信息技术有限公司 Method for testing network distribution performance of Internet of things equipment and related equipment thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018523A (en) * 2017-04-13 2017-08-04 美的智慧家居科技有限公司 WIFI module method of testing and device
CN107154859A (en) * 2016-03-02 2017-09-12 美的集团股份有限公司 Intelligent electric appliance distribution method of testing, system and control terminal
CN107205239A (en) * 2017-05-26 2017-09-26 广东美的厨房电器制造有限公司 A kind of method and detection device for detecting wireless network connection
CN107766194A (en) * 2017-11-17 2018-03-06 深圳市泉眼网络科技有限公司 Method of testing, device, system, terminal device and computer-readable recording medium
CN108683563A (en) * 2018-05-18 2018-10-19 北京奇安信科技有限公司 A kind of distribution access performance test methods, apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107154859A (en) * 2016-03-02 2017-09-12 美的集团股份有限公司 Intelligent electric appliance distribution method of testing, system and control terminal
CN107018523A (en) * 2017-04-13 2017-08-04 美的智慧家居科技有限公司 WIFI module method of testing and device
CN107205239A (en) * 2017-05-26 2017-09-26 广东美的厨房电器制造有限公司 A kind of method and detection device for detecting wireless network connection
CN107766194A (en) * 2017-11-17 2018-03-06 深圳市泉眼网络科技有限公司 Method of testing, device, system, terminal device and computer-readable recording medium
CN108683563A (en) * 2018-05-18 2018-10-19 北京奇安信科技有限公司 A kind of distribution access performance test methods, apparatus and system

Also Published As

Publication number Publication date
CN110493812A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN110493812B (en) Distribution network test processing method, device and system, processor and master control equipment
CN107402880B (en) Test method and electronic equipment
CN107562610B (en) Method, device, terminal and medium for acquiring page loading time
CN109597761A (en) A kind of automatic interface testing method based on Jmeter
CN107861862A (en) UI automated testing methods, device and computer-readable recording medium
CN106776294B (en) Automatic android mobile phone testing method and system
CN111240973B (en) Equipment testing method and system based on simulation and readable storage medium
CN110147320A (en) Interface test method, device and electronic equipment
CN110032507A (en) Applied program testing method, device, system, electronic equipment and storage medium
CN107102949B (en) Application program offline testing method and tool
CN110489324A (en) Method, apparatus that test page jumps, storage medium, electronic device
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
CN109688150A (en) A kind of multi-platform account interoperability methods and device
CN110515755A (en) Interface function verification method, device, equipment and computer readable storage medium
CN210016474U (en) Distribution network test control equipment and system
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN106528429A (en) UI testing method and device
CN113191114B (en) Method and apparatus for validating a system
CN105117340A (en) URL (Uniform Resource Locator) detection method and device used for quality evaluation of iOS browser application
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
CN112416734A (en) Test method, device and storage medium
CN110209572A (en) Ui testing method, ui testing system and terminal
CN112241356A (en) Page testing method, device, equipment and storage medium
CN110704307A (en) Application product testing method and device, user equipment and computer storage medium
CN114978360A (en) Automatic testing method and device for communication equipment, electronic equipment and 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
GR01 Patent grant
GR01 Patent grant