CN110493812A - Processing method, device, system, processor and the main control device of distribution test - Google Patents

Processing method, device, system, processor and the main control device of distribution test Download PDF

Info

Publication number
CN110493812A
CN110493812A CN201910786345.7A CN201910786345A CN110493812A CN 110493812 A CN110493812 A CN 110493812A CN 201910786345 A CN201910786345 A CN 201910786345A CN 110493812 A CN110493812 A CN 110493812A
Authority
CN
China
Prior art keywords
test
distribution
module device
case
distribution test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910786345.7A
Other languages
Chinese (zh)
Other versions
CN110493812B (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

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

Abstract

The invention discloses processing method, device, system, processor and the main control devices of a kind of distribution test.This method comprises: loading configuration file, wherein configuration file includes: multiple test cases, and each test case in multiple test cases is used to distribution test;Multiple test cases are run, and distinguish controlling terminal and module device execution distribution test operation in each test case, obtain distribution test result.The present invention solves provided Soft-AP distribution test mode in the related technology, and Yi Zengjia test labor cost, time cost and test complexity are also easy to the technical issues of fault caused by artifact occur.

Description

Processing method, device, system, processor and the main control device of distribution test
Technical field
The present invention relates to distribution testing field, in particular to a kind of processing method of distribution test, device, system, Processor and main control device.
Background technique
Match currently, generalling use manually triggering module device for Soft-AP distribution test in the related technology and entering Net mode.Such as: using the physical button for manually clicking module device.Then again using in terminal application (APP) and Module device is carried out with net operation, and judges test result by visually.In addition it is also necessary to manually record test result And length of testing speech.Since distribution stability takes a long time, manual operation is easy to appear fatigue, thus increase test manually at Originally, time cost and test complexity, reduce testing efficiency, while can not also form the test report of standard.
It can be seen that Soft-AP distribution test mode provided by the related technology is primarily present following problems:
(1) used artificial distribution strategy needs artificial mould group of constantly intervening to set always during stability test Standby to be tested, whole process needs artificial participation, can include but is not limited to: triggering module device enters distribution mode → opening APP → input router password → the sequence of operations such as verification information integrality and correctness, thereby increase test manually at Originally, time cost and test complexity.Moreover, in the process, inevitably will appear since the vision and spirit of tester are tired Unnecessary fault caused by labor, dispersion attention.
(2) during artificial statistical test result, mistake of statistics or omission are equally easy to appear.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The present invention at least partly embodiment provides processing method, device, system, processor and the master of a kind of distribution test Control equipment, at least solve in the related technology provided by Soft-AP distribution test mode, Yi Zengjia test labor cost, when Between cost and test complexity, be also easy to the technical issues of fault caused by artifact occur.
A wherein embodiment according to the present invention provides a kind of processing method of distribution test, comprising:
Loading configuration file, wherein configuration file includes: multiple test cases, each test in multiple test cases Use-case is used to distribution test;Multiple test cases are run, and distinguish controlling terminal and module device in each test case Distribution test operation is executed, distribution test result is obtained.
Optionally, loading configuration file includes: loaded cycle testing time;Multiple tests are determined based on loop test number The pending quantity of use-case;Multiple test cases are copied under the test case catalogue of source according to pending quantity, and will be multiple Test case is stored to nominative testing use-case catalogue.
Optionally, multiple test cases are run, and distinguish controlling terminal and module device execution in each test case Distribution test operation, obtaining distribution test result includes: obtaining step, obtains the test case that current lookup arrives;Step is executed, Current lookup to test case operational process in, send and control command and pass through to module device via preset interface Testing tool controlling terminal and module device execute distribution test operation, wherein control command is for controlling module device entrance Distribution mode;Judgment step judges whether multiple test cases have run and finishes, if it is not, then obtaining step is gone to, if It is then to terminate distribution test, obtains distribution test result.
Optionally, executing distribution test operation by testing tool controlling terminal and module device includes: by testing work Tool controlling terminal is connected to the first WLAN that module device generates after entering distribution mode;It is controlled by testing tool The link information of router is sent to module device via WLAN by terminal, so that module device is connect using link information Enter the second WLAN generated by router;The distribution survey from module device is received by testing tool controlling terminal Test result.
Optionally, multiple test cases are being run, and controlling terminal is held with module device respectively in each test case Row distribution test operation, after obtaining distribution test result, further includes: statistics and analysis processing is carried out to distribution test result, Generate distribution test report.
A wherein embodiment according to the present invention additionally provides a kind of processing unit of distribution test, comprising:
Loading module is used for loading configuration file, wherein configuration file includes: multiple test cases, multiple test cases In each test case be used to distribution test;Processing module, for running multiple test cases, and in each test case Middle controlling terminal respectively and module device execute distribution test operation, obtain distribution test result.
Optionally, loading module includes: loading unit, is used for loaded cycle testing time;Determination unit is followed for being based on Ring test number determines the pending quantity of multiple test cases;Processing unit is used for testing according to pending quantity from source Multiple test cases are copied under example catalogue, and multiple test cases are stored to nominative testing use-case catalogue.
Optionally, processing module includes: acquiring unit, the test case arrived for obtaining current lookup;Execution unit is used In current lookup to test case operational process in, send control command and logical to module device via preset interface Cross testing tool controlling terminal and module device and execute distribution test operation, wherein control command for control module device into Enter distribution mode;Judging unit judges whether multiple test cases have run and finishes, if it is not, then going to acquiring unit, such as Fruit is then to terminate distribution test, obtains distribution test result.
Optionally, execution unit is entering distribution mode for being connected to module device by testing tool controlling terminal The first WLAN generated afterwards;The link information of router is sent out via WLAN by testing tool controlling terminal It send to module device, so that module device accesses the second WLAN generated by router using link information;And it is logical The reception of testing tool controlling terminal is crossed from the distribution test result of module device.
Optionally, above-mentioned apparatus further include: generation module, for carrying out statistics and analysis processing to distribution test result, Generate distribution test report.
A wherein embodiment according to the present invention, additionally provides a kind of storage medium, computer journey is stored in storage medium Sequence, wherein computer program is arranged to execute the processing method of the distribution test in any of the above-described when operation.
A wherein embodiment according to the present invention additionally provides a kind of processor, and processor is for running program, wherein journey Sequence is arranged to execute the processing method of the distribution test in any of the above-described when operation.
A wherein embodiment according to the present invention, additionally provides a kind of main control device, including memory and processor, memory In be stored with computer program, processor is arranged to run computer program to execute the test of the distribution in any of the above-described Processing method.
A wherein embodiment according to the present invention additionally provides a kind of processing system of distribution test, which includes: above-mentioned Main control device, terminal, router and module device.
In the present invention at least partly embodiment, using loading configuration file, which includes: that multiple tests are used Example, each test case in multiple test cases are used to the mode of distribution test, by run multiple test cases and Controlling terminal and module device execute distribution test operation to obtain distribution test result respectively in each test case, reach To complete the stability test between the APP in module device and terminal, manual operation is substituted using process control and is carried out certainly The purpose of dynamic distribution stability test improves testing efficiency, reduces testing cost, reduces caused by human factor to realize The technical effect of error probability, and then solve provided Soft-AP distribution test mode in the related technology, easily increase test Cost of labor, time cost and test complexity, are also easy to the technical issues of fault caused by artifact occur.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the processing system of the distribution test of a wherein embodiment according to the present invention;
Fig. 2 is the flow chart of the processing method of the distribution test of a wherein embodiment according to the present invention;
Fig. 3 is the structural block diagram of the processing unit of the distribution test of a wherein embodiment according to the present invention;
Fig. 4 is the structural block diagram of the processing unit of the distribution test of a wherein alternative embodiment according to the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
A wherein embodiment according to the present invention provides a kind of embodiment of the processing method of distribution test, needs to illustrate , step shown in the flowchart of the accompanying drawings can hold in a computer system such as a set of computer executable instructions Row, although also, logical order is shown in flow charts, and it in some cases, can be to be different from sequence herein Execute shown or described step.
This method embodiment can execute in the processing system that distribution is tested.Fig. 1 is a wherein implementation according to the present invention The schematic diagram of the processing system of the distribution test of example, as shown in Figure 1, the processing system of distribution test includes: main control device, end End, router and module device.The processing system of distribution test is for the distribution between the APP and module device in terminal Stability test.It is bridged by router as WLAN between terminal and module device.In distribution test process, eventually End, router and the mutual distance of module device need to control within the scope of pre-determined distance (such as: within 1 meter of range).
The main control device can be laptop.The terminal can be smart phone or tablet computer.The module device Used mould group can include but is not limited to: EMW3080V2, EMW3083.The application scenarios of the module device may include but It is not limited to: intelligent socket, the wireless intelligent gateway of Internet of Things wireless telecommunications scene, identification scene in Intelligent household scene Gate inhibition's reading card device, the industrial control equipment of Industry Control scene and the intelligent remote controller of control of intelligent terminal scene.
The inside subject structure of above-mentioned main control device, terminal and module device is similar.By taking main control device as an example, master control is set Standby may include that (processor can include but is not limited to central processing unit (CPU), graphics processor to one or more processors (GPU), the processing unit of Digital Signal Processing (DSP) chip, microprocessor (MCU) or programmable logic device (FPGA) etc.) Memory for storing data.Optionally, above-mentioned main control device can also include the wireless telecommunications group for communication function Part and display.It will appreciated by the skilled person that above structure description is only to illustrate, not to above-mentioned master control The structure of equipment causes to limit.For example, main control device may also include than above structure describe more perhaps less component or With describing different configurations from above structure.
Memory can be used for storing computer program, for example, the software program and module of application software, such as present invention are real Apply the corresponding computer program of processing method of the distribution test in example, the calculating that processor is stored in memory by operation Machine program realizes the processing method of above-mentioned distribution test thereby executing various function application and data processing.Memory May include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory, Or other non-volatile solid state memories.In some instances, memory can further comprise remotely setting relative to processor The memory set, these remote memories can pass through network connection to main control device.The example of above-mentioned network includes but unlimited In internet, intranet, local area network, mobile radio communication and combinations thereof.
Wireless communication assembly is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of main control device provide.In an example, wireless communication assembly includes a Network adaptation Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to It can be communicated with internet.In an example, wireless communication assembly can be Wireless Fidelity (Wi-Fi) module, bluetooth (Bluetooth) module or purple honeybee (ZigBee) module, are used to wirelessly be communicated with internet.
Display can such as touch-screen type liquid crystal display (LCD) and touch display (also referred to as " touch screen " Or " touch display screen ").The liquid crystal display aloows user and the user interface of main control device to interact.Some In embodiment, above-mentioned main control device has graphical user interface (GUI), and user can be connect by touching the finger on touch sensitive surface Touching and/or gesture to carry out human-computer interaction with GUI, and human-computer interaction function herein optionally includes following interaction: building distribution Stability test environment, transmission distribution testing and control order, reception distribution test result etc..For executing above-mentioned human-computer interaction function The executable instruction of energy is configured/is stored in the executable computer program product or readable storage medium of one or more processors In matter.
A kind of processing method of distribution test for running on above-mentioned main control device is provided in the present embodiment, and Fig. 2 is root According to the flow chart of the processing method of the distribution test of a wherein embodiment of the invention, as shown in Fig. 2, this method includes following step It is rapid:
Step S22, loading configuration file, wherein configuration file includes: multiple test cases, in multiple test cases Each test case is used to distribution test;
Step S24 runs multiple test cases, and controlling terminal and module device execution are distinguished in each test case Distribution test operation obtains distribution test result.
Through the above steps, loading configuration file can be used, which includes: multiple test cases, multiple surveys Each test case in example on probation is used to the mode of distribution test, by running multiple test cases and using in each test Controlling terminal and module device execute distribution test operation to obtain distribution test result respectively in example, have reached to complete mould group The stability test between APP in equipment and terminal is substituted the automatic distribution of manual operation progress using process control and stablized Property test purpose, improve testing efficiency to realize, reduce testing cost, reduce error probability caused by human factor Technical effect, and then solve provided Soft-AP distribution test mode in the related technology, Yi Zengjia test labor cost, Time cost and test complexity, are also easy to the technical issues of fault caused by artifact occur.
Optionally, in step S22, loading configuration file may include step performed below:
Step S221, loaded cycle testing time;
Step S222 determines the pending quantity of multiple test cases based on loop test number;
Step S223 copies multiple test cases according to pending quantity under the test case catalogue of source, and will be multiple Test case is stored to nominative testing use-case catalogue.
Main control device by load master file (such as: the loop test number in config.ini), then according to circulation Testing time, the item that test case is copied under source test case (Source_Testcase) catalogue count to specified test Under use-case (TestCase) catalogue, such as: when loop test number is 10,000 times, main control device can be automatically multiple by program Produce 10,000 identical test cases.
Optionally, in step s 24, multiple test cases are run, and in each test case distinguish controlling terminal with Module device executes distribution test operation, and obtaining distribution test result may include step performed below:
Step S241 obtains the test case that current lookup arrives;
Step S242, current lookup to test case operational process in, via preset interface to module device send out It send control command and distribution test operation is executed by testing tool controlling terminal and module device, wherein control command is used Enter distribution mode in control module device;
Step S243 judges whether multiple test cases have run and finishes, if it is not, then step S241 is gone to, if It is then to terminate distribution test, obtains distribution test result.
After configuration file load is completed, test case is loaded into unittest unit testing frame by main control device In, it can be automatically according to test catalogue start_dir matched and searched test case text by discover () method below such Part (test*.py), and the test case found is assembled into protos test suite PROTOS, therefore, main control device can directly pass through run () method executes the test case that discover is arrived.Current lookup to test case operational process in, main control device is logical It crosses serial ports and is connected to module device, control command is then sent to by module device by serial ports again, held with triggering module device Row initialization operation enters distribution mode.Distribution mode is entered using command triggers module device as a result, is quickly and easily replaced In generation, artificial triggering module device entered distribution mode, and then improved accuracy and the testing efficiency of distribution test.In addition, master control is set It is standby call automated test tool (such as: Uiautomation2 tool) be automatically brought into operation APP in terminal (such as: smart home APP the page) carries out distribution, automatic identification test result, when so as to main control device programming count test result and recording distribution It is long, to generate test report, thus improve distribution testing efficiency.By calling in Uiautomation2 tool open terminal APP, APP can be performed the following operations: addition module device → automatically selecting the module device for needing distribution → automatically enters Wi- Fi password → automatically clicking " next step " enters distribution mode.
Main control chip can carry out distribution loop test using each test case one by one according to above-mentioned loop test number. The test case finished after tested will not participate in distribution test again.And not yet participate in distribution test test case need according to The sequencing being searched successively executes distribution test, until all test cases are all finished.Such as: when circulation is surveyed When examination number is 10,000 times, main control chip copies 10,000 identical test cases by program automatically.Firstly, main control chip is looked into It finds test case 1 and starts to carry out distribution test to test case 1;Secondly, searching the test for not yet participating in distribution test again Use-case 2 simultaneously starts to carry out distribution test to test case 2;Then, it then searches the test case 3 for not yet participating in distribution test and opens Begin to carry out distribution test to test case 3;And so on, until all test cases are all finished.
Optionally, in step S242, executing distribution test operation by testing tool controlling terminal and module device can To include step performed below:
Step S2421 is connected to that module device generates after entering distribution mode by testing tool controlling terminal One WLAN;
The link information of router is sent to by testing tool controlling terminal via WLAN by step S2422 Module device, so that module device accesses the second WLAN generated by router using link information;
Step S2423 receives the distribution test result from module device by testing tool controlling terminal.
In distribution test process, module device enter distribution mode after can be generated the first WLAN (such as: Wireless network A).At this point, module device enters access points (AP) mode.Main control device is moved back by testing tool controlling terminal Out router generate the second WLAN (such as: wireless network B), and access wireless network A.Secondly, main control device is logical Testing tool controlling terminal is crossed via wireless network A by the link information of router (such as: the username and password of Wi-Fi) hair It send to module device, so that module device accesses wireless network B, while main control device disconnection of wireless network A using link information And wireless network B is accessed again.Then, module device can be attempted to access wireless network B using link information, and return to terminal Distribution test result (such as: binding success or Bind Failed).
After distribution test operation finishes, the APP in terminal can be prompted on interface: binding success, and will test As a result it is recorded in test log.Fail in case of distribution, then main control device can intercept the distribution failure prompted on APP Then picture is saved under corresponding picture directory again.
Optionally, in step S24, multiple test cases are run, and distinguish controlling terminal and mould in each test case Group equipment executes distribution test operation, can also include step performed below after obtaining distribution test result:
Step S25 carries out statistics and analysis processing to distribution test result, generates distribution test report.
After distribution test operation finishes, main control device can count survey by hypertext markup language (HTML) mode Test result, and form test report.The content of the test report can include but is not limited to: test report title, number of run, Number of pass times, the frequency of failure, errors number, distribution duration, failure screenshot and run-time error shot image information.As test report An optional example, test report entitled ALP-AL00 automatic test report, number of run is 10000 times, by secondary Number is 9827 times, the frequency of failure is 0 time, errors number is 173 times, distribution duration is about 7 days half.Failure screenshot and run-time error Shot image information be mainly used for search test errors reason, such as: find continuous 115 distributions failure the reason of be: by APP It is caused to remove background application operation.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Additionally provide a kind of processing unit of distribution test in the present embodiment, the device for realizing above-described embodiment and Preferred embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module " The combination of the software and/or hardware of energy.It is hard although device described in following embodiment is preferably realized with software The realization of the combination of part or software and hardware is also that may and be contemplated.
Fig. 3 is the structural block diagram of the processing unit of the distribution test of a wherein embodiment according to the present invention, as shown in figure 3, The device includes: loading module 10, is used for loading configuration file, wherein configuration file includes: multiple test cases, multiple surveys Each test case in example on probation is used to distribution test;Processing module 20, for running multiple test cases, and each Controlling terminal is distinguished in test case and module device executes distribution test operation, obtains distribution test result.
Optionally, loading module 10 includes: loading unit (not shown), is used for loaded cycle testing time;It determines Unit (not shown), for determining the pending quantity of multiple test cases based on loop test number;Processing unit (figure In be not shown), for copying multiple test cases under the test case catalogue of source according to pending quantity, and by multiple tests Under use case storage to nominative testing use-case catalogue.
Optionally, processing module 20 includes: acquiring unit (not shown), is used for obtaining the test that current lookup arrives Example;Execution unit (not shown), for current lookup to test case operational process in, via preset interface to Module device sends control command and executes distribution test operation by testing tool controlling terminal and module device, wherein Control command enters distribution mode for controlling module device;Judging unit (not shown) judges that multiple test cases are No run finishes, if it is not, then going to acquiring unit, if it is, terminating distribution test, obtains distribution test result.
Optionally, execution unit (not shown) exists for being connected to module device by testing tool controlling terminal The first WLAN generated after into distribution mode;By testing tool controlling terminal via WLAN by router Link information be sent to module device so that module device accesses the second wireless office for being generated by router using link information Domain net;And the distribution test result from module device is received by testing tool controlling terminal.
Optionally, Fig. 4 is the structural block diagram of the processing unit of the distribution test of a wherein alternative embodiment according to the present invention, As shown in figure 4, the device is in addition to including all modules shown in Fig. 3, and above-mentioned apparatus further include: generation module 30, for matching Net test result carries out statistics and analysis processing, generates distribution test report.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S1, loading configuration file, wherein configuration file includes: multiple test cases, each survey in multiple test cases Example on probation is used to distribution test;
S2 runs multiple test cases, and controlling terminal and module device execution distribution are distinguished in each test case Test operation obtains distribution test result.
Optionally, storage medium is also configured to store the computer program for executing following steps: loaded cycle is surveyed Try number;The pending quantity of multiple test cases is determined based on loop test number;It tests and uses from source according to pending quantity Multiple test cases are copied under example catalogue, and multiple test cases are stored to nominative testing use-case catalogue.
Optionally, storage medium is also configured to store the computer program for executing following steps: obtaining step obtains Take the test case that current lookup arrives;Execute step, current lookup to test case operational process in, connect via default Mouth sends control command to module device and executes distribution test operation by testing tool controlling terminal and module device, In, control command enters distribution mode for controlling module device;Judgment step, judges whether multiple test cases have run It finishes, if it is not, then going to obtaining step, if it is, terminating distribution test, obtains distribution test result.
Optionally, storage medium is also configured to store the computer program for executing following steps: by testing work Tool controlling terminal is connected to the first WLAN that module device generates after entering distribution mode;It is controlled by testing tool The link information of router is sent to module device via WLAN by terminal, so that module device is connect using link information Enter the second WLAN generated by router;The distribution survey from module device is received by testing tool controlling terminal Test result.
Optionally, storage medium is also configured to store the computer program for executing following steps: testing distribution As a result statistics and analysis processing is carried out, distribution test report is generated.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1, loading configuration file, wherein configuration file includes: multiple test cases, each survey in multiple test cases Example on probation is used to distribution test;
S2 runs multiple test cases, and controlling terminal and module device execution distribution are distinguished in each test case Test operation obtains distribution test result.
Optionally, in the present embodiment, above-mentioned processor may be also configured to execute following step by computer program It is rapid: loaded cycle testing time;The pending quantity of multiple test cases is determined based on loop test number;According to pending number Amount copies multiple test cases under the test case catalogue of source, and multiple test cases are stored to nominative testing use-case catalogue Under.
Optionally, in the present embodiment, above-mentioned processor may be also configured to execute following step by computer program Rapid: obtaining step obtains the test case that current lookup arrives;Step is executed, in the operation for the test case that current lookup arrives Cheng Zhong sends control command to module device via preset interface and is executed by testing tool controlling terminal and module device Distribution test operation, wherein control command enters distribution mode for controlling module device;Judgment step judges multiple tests Whether use-case, which has run, finishes, if it is not, then going to obtaining step, if it is, terminating distribution test, obtains distribution test As a result.
Optionally, in the present embodiment, above-mentioned processor may be also configured to execute following step by computer program It is rapid: the first WLAN that module device generates after entering distribution mode is connected to by testing tool controlling terminal;It is logical It crosses testing tool controlling terminal and the link information of router is sent to module device via WLAN, so that module device The second WLAN generated by router is accessed using link information;It is received by testing tool controlling terminal from mould The distribution test result of group equipment.
Optionally, in the present embodiment, above-mentioned processor may be also configured to execute following step by computer program It is rapid: statistics and analysis processing being carried out to distribution test result, generates distribution test report.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (14)

1. a kind of processing method of distribution test characterized by comprising
Loading configuration file, wherein the configuration file includes: each of multiple test cases, the multiple test case Test case is used to distribution test;
The multiple test case is run, and distinguishes controlling terminal and module device execution distribution test in each test case Operation, obtains distribution test result.
2. the method according to claim 1, wherein loading the configuration file and including:
Loaded cycle testing time;
The pending quantity of the multiple test case is determined based on the loop test number;
The multiple test case is copied under the test case catalogue of source according to the pending quantity, and by the multiple survey It tries under use case storage to nominative testing use-case catalogue.
3. the method according to claim 1, wherein running the multiple test case, and being used in each test The terminal is controlled in example respectively and the module device executes distribution test operation, obtaining the distribution test result includes:
Obtaining step obtains the test case that current lookup arrives;
Execute step, the current lookup to test case operational process in, set via preset interface to the mould group Preparation send control command and controls the terminal and module device execution distribution test operation by testing tool, In, the control command enters distribution mode for controlling the module device;
Judgment step judges whether the multiple test case has run and finishes, if it is not, then the obtaining step is gone to, If it is, terminating distribution test, the distribution test result is obtained.
4. according to the method described in claim 3, it is characterized in that, controlling the terminal and the mould by the testing tool Group equipment executes distribution test operation
The terminal, which is controlled, by the testing tool is connected to what the module device generated after entering the distribution mode First WLAN;
The terminal is controlled by the testing tool, and the link information of router is sent to institute via the WLAN Module device is stated, so that the module device accesses the second wireless local area generated by the router using the link information Net;
The terminal reception is controlled from the distribution test result of the module device by the testing tool.
5. the method according to claim 1, wherein running the multiple test case, and in each test The terminal and the module device are controlled in use-case respectively and executes distribution test operation, obtain the distribution test result it Afterwards, further includes:
Statistics and analysis processing is carried out to the distribution test result, generates distribution test report.
6. a kind of processing unit of distribution test characterized by comprising
Loading module is used for loading configuration file, wherein the configuration file includes: multiple test cases, the multiple test Each test case in use-case is used to distribution test;
Processing module, for running the multiple test case, and in each test case, controlling terminal is set with mould group respectively It is standby to execute distribution test operation, obtain distribution test result.
7. device according to claim 6, which is characterized in that the loading module includes:
Loading unit is used for loaded cycle testing time;
Determination unit, for determining the pending quantity of the multiple test case based on the loop test number;
Processing unit, for copying the multiple test case under the test case catalogue of source according to the pending quantity, And the multiple test case is stored to nominative testing use-case catalogue.
8. device according to claim 6, which is characterized in that the processing module includes:
Acquiring unit, the test case arrived for obtaining current lookup;
Execution unit, for the current lookup to test case operational process in, via preset interface to the mould Group equipment sends control command and controls the terminal and module device execution distribution test operation by testing tool, Wherein, the control command enters distribution mode for controlling the module device;
Judging unit judges whether the multiple test case has run and finishes, if it is not, then the acquiring unit is gone to, If it is, terminating distribution test, the distribution test result is obtained.
9. device according to claim 8, which is characterized in that the execution unit, for passing through the testing tool control It makes the terminal and is connected to the first WLAN that the module device generates after entering the distribution mode;By described Testing tool controls the terminal and the link information of router is sent to the module device via the WLAN, with The module device is set to access the second WLAN generated by the router using the link information;And pass through institute It states testing tool and controls the terminal reception from the distribution test result of the module device.
10. device according to claim 6, which is characterized in that described device further include:
Generation module generates distribution test report for carrying out statistics and analysis processing to the distribution test result.
11. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute the processing method of the test of distribution described in any one of claim 1 to 5 when operation.
12. a kind of processor, which is characterized in that the processor is for running program, wherein described program is arranged to run The processing method of the test of distribution described in any one of claim 1 to 5 described in Shi Zhihang.
13. a kind of main control device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor is arranged to run the computer program is matched described in any one of claim 1 to 5 with executing Net the processing method of test.
14. a kind of processing system of distribution test, which is characterized in that the system comprises: master control described in claim 13 is set Standby, terminal, router and module device.
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 true CN110493812A (en) 2019-11-22
CN110493812B 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)

Cited By (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
CN112333057A (en) * 2020-08-21 2021-02-05 深圳Tcl新技术有限公司 Intelligent household equipment distribution network testing method and device, execution machine and storage medium
CN112566156A (en) * 2020-11-18 2021-03-26 深圳数联天下智能科技有限公司 Method for automatically testing compatibility of WiFi module and electronic equipment
CN113645655A (en) * 2021-08-09 2021-11-12 广州广电计量检测股份有限公司 Distribution network testing method, device and system for 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
CN114666255A (en) * 2022-03-16 2022-06-24 京东科技信息技术有限公司 Method for testing distribution network 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

Cited By (8)

* 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
CN112333057A (en) * 2020-08-21 2021-02-05 深圳Tcl新技术有限公司 Intelligent household equipment distribution network testing method and device, execution machine and storage medium
CN112566156A (en) * 2020-11-18 2021-03-26 深圳数联天下智能科技有限公司 Method for automatically testing compatibility of WiFi module and electronic equipment
CN113645655A (en) * 2021-08-09 2021-11-12 广州广电计量检测股份有限公司 Distribution network testing method, device and system for 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
CN114666255A (en) * 2022-03-16 2022-06-24 京东科技信息技术有限公司 Method for testing distribution network performance of Internet of things equipment and related equipment thereof
CN114666255B (en) * 2022-03-16 2024-04-05 京东科技信息技术有限公司 Method for testing network distribution performance of Internet of things equipment and related equipment thereof

Also Published As

Publication number Publication date
CN110493812B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN110493812A (en) Processing method, device, system, processor and the main control device of distribution test
CN104050076A (en) Testing method, device and system of application software on mobile terminal
CN109857668A (en) UI automated function test method, test device, test equipment and storage medium
CN104461903B (en) The method and apparatus of test client based on browser
CN106294120A (en) The test method of code, equipment and computer program
CN106095673A (en) Automated testing method based on WEB interface and system
CN110378749A (en) Appraisal procedure, device, terminal device and the storage medium of user data similitude
CN106155890A (en) platform test method and system
CN107018523A (en) WIFI module method of testing and device
CN110032507A (en) Applied program testing method, device, system, electronic equipment and storage medium
CN106897216A (en) The method and apparatus of test software
CN107741950A (en) Processing method, device, processor and the service end of data syn-chronization task
CN109947985A (en) Applied to the Processing with Neural Network method and device in on-line system
CN110413528A (en) Test environment intelligent configuration method and system
CN108664381A (en) test method and device
CN210016474U (en) Distribution network test control equipment and system
CN106528429A (en) UI testing method and device
CN109491890A (en) The interface scans method and terminal device of application program
CN111143223A (en) Server pressure testing method and device
CN110399723A (en) Leak detection method and device, storage medium and electronic device
CN106302011A (en) Method of testings based on multiterminal and terminal
CN104536745B (en) Task amending method and task modification device
CN106648895A (en) Data processing method and device, and terminal
CN109828910A (en) Method and device, the computer equipment, storage medium of monkey test
CN106528413A (en) Method and device for testing application program

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