CN113411226A - Router distributed automatic test method, system, storage medium and computer equipment thereof - Google Patents

Router distributed automatic test method, system, storage medium and computer equipment thereof Download PDF

Info

Publication number
CN113411226A
CN113411226A CN202010181854.XA CN202010181854A CN113411226A CN 113411226 A CN113411226 A CN 113411226A CN 202010181854 A CN202010181854 A CN 202010181854A CN 113411226 A CN113411226 A CN 113411226A
Authority
CN
China
Prior art keywords
task
distributed
router
message queue
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010181854.XA
Other languages
Chinese (zh)
Inventor
过一峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN202010181854.XA priority Critical patent/CN113411226A/en
Publication of CN113411226A publication Critical patent/CN113411226A/en
Pending legal-status Critical Current

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/50Testing arrangements

Landscapes

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

Abstract

The invention is suitable for the technical field of firewall router testing, and provides a router distributed automatic testing method, which is used for acquiring at least one piece of case information to be executed of a user; storing a task for executing the use case information into a message queue; the distributed execution unit applies for the executable tasks from the message queue and executes and distributes the acquired tasks; generating result data according to the execution of the task. A router distributed automated testing system, a storage medium for storing a computer program for executing the method and a computer device for implementing the method are also provided. Therefore, the invention can be synchronously executed, improves the automation efficiency, has clear and easily-expanded structure, separates and manages the projects, is independent from each other and has no influence; the method supports webpage operation and can be used by all people; the system architecture is stronger.

Description

Router distributed automatic test method, system, storage medium and computer equipment thereof
Technical Field
The invention relates to the technical field of firewall router testing, in particular to a router distributed automatic testing method, a system, a storage medium and computer equipment thereof.
Background
With the rapid development of network information, the functional applications of routers are increasing day by day, and the testing of routers in the prior art is performed by setting the testing sequence of testing tasks, which obviously needs to test the functions of routers one by one in sequence, and thus the work efficiency is low, which is not favorable for testing a large number of testing items. The background configuration page of the existing router is complex, which is not beneficial to centralized automatic processing of a plurality of test items, so that the user often has no trouble in testing the router, and the use difficulty of the user is increased. As can be seen, the conventional method has many problems in practical use, and therefore, needs to be improved.
Disclosure of Invention
Aiming at the defects, the invention aims to provide a distributed automatic testing method of a router, a system, a storage medium and computer equipment thereof, which can be synchronously and simultaneously executed, improve the automation efficiency, have a clear and easily-expanded structure, perform separate management on projects, are independent from each other and cannot influence the projects; the method supports webpage operation and can be used by all people; the system architecture is stronger.
In order to achieve the above object, the present invention provides a distributed automatic testing method for a router, comprising:
acquiring at least one to-be-executed use case information of a user;
storing a task for executing the use case information into a message queue;
the distributed execution unit applies for the executable tasks from the message queue and executes and distributes the acquired tasks;
generating result data according to the execution of the task.
The step of obtaining at least one use case information to be executed by the user further comprises:
receiving an execution request of the use case information input by a user on an access page of the router;
and filtering and formatting the execution request through a gateway interface of a World Wide Web (global area network) server.
The step of storing the task for executing the use case information into a message queue further comprises:
skipping the formatted execution request through a secondary route;
and storing the corresponding task into the message queue according to the execution request.
The distributed execution unit applies for the executable task from the message queue, and the step of executing and distributing the acquired task further comprises:
and the distributed execution unit searches whether the executable task exists in the message queue in sequence, selects to execute the task if the executable task exists in the message queue, and continuously waits otherwise.
Also provided is a router distributed automated testing system, comprising:
the acquiring unit is used for acquiring at least one piece of case information to be executed of a user;
the storage unit is used for storing the task for executing the use case information into a message queue;
the distributed execution unit is used for applying the executable tasks to the message queue and executing and distributing the acquired tasks;
a result generation unit for generating result data according to the execution of the task.
The acquisition unit further includes:
the request receiving subunit is used for receiving the execution request of the use case information input by the user on the access page of the router;
and the filtering format subunit is used for filtering and formatting the execution request through a gateway interface of the Web server.
The memory cell further includes:
the jump subunit is used for jumping the formatted execution request through a secondary route;
and the task storage subunit is used for storing the corresponding task into the message queue according to the execution request.
The distributed execution unit is specifically configured to sequentially search whether the executable task exists in the message queue, select to execute the task if the executable task exists in the message queue, and otherwise, continuously wait.
In addition, a storage medium and a computer device are provided, the storage medium is used for storing a computer program for executing the router distributed automation testing method.
The computer device comprises a storage medium, a processor and a computer program which is stored on the storage medium and can run on the processor, wherein the processor realizes the router distributed automatic testing method when executing the computer program.
The router distributed automatic test method can be asynchronously and concurrently executed through distribution, improves the automation efficiency, has a clear and easily-expanded structure, separately manages the projects, and executes the projects independently without influence; the method supports webpage operation and can be used by all people; the system architecture is stronger.
Drawings
FIG. 1 is a flowchart illustrating the steps of the method for testing the distributed automation of a router according to the preferred embodiment of the present invention;
FIG. 2 is a block diagram of a distributed automated testing system for routers in accordance with a preferred embodiment of the present invention;
FIG. 3 is a block diagram of a distributed automated testing system for routers according to a preferred embodiment of the present invention;
fig. 4 is a block diagram illustrating a connection structure between the message queue and the distributed execution unit of the distributed automation test method for a router according to the preferred embodiment of the present invention;
fig. 5 is a block diagram of a structure of a user performing a test request in the router distributed automation test method according to the preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that references in the specification to "one embodiment," "an example embodiment," etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not intended to refer to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to effect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
Moreover, where certain terms are used throughout the description and following claims to refer to particular components or features, those skilled in the art will understand that manufacturers may refer to a component or feature by different names or terms. This specification and the claims that follow do not intend to distinguish between components or features that differ in name but not function. In the following description and in the claims, the terms "include" and "comprise" are used in an open-ended fashion, and thus should be interpreted to mean "include, but not limited to. In addition, the term "connected" as used herein includes any direct and indirect electrical connection. Indirect electrical connection means include connection by other means.
Fig. 1 shows a router distributed automation test method according to a preferred embodiment of the present invention, which includes:
s101: and acquiring at least one to-be-executed use case information of the user.
The use case information comprises a use case ID (Identity document), a use case name and a verification target; the case information refers to the relevant information of the test case to be executed, and specifically, the case information to be executed can be actively selected by the user, so that the request selected to be executed by the user is obtained for subsequent processing.
S102: and storing the task for executing the use case information into a message queue.
Specifically, a plurality of tasks corresponding to the request execution can be stored in the message queue according to the request of the user for executing the use case information, and the tasks are in a persistence sequence in the message queue.
S103: and the distributed execution unit applies for the executable tasks from the message queue and executes and distributes the acquired tasks.
Referring to fig. 4, the distributed execution unit includes more than two distributed execution units, and each execution unit applies for the executable task from the message queue and executes the task allocated by the application.
S104: generating result data according to the execution of the task.
Optionally, the step S101 further includes:
and receiving the execution request of the use case information input by the user on the access page of the router. The access page is a task management page of the test platform, and specifically, corresponding use case information selection items are set on the network access page, and corresponding execution requests are generated through selection of a user on the page.
And filtering and formatting the execution request through a gateway interface of the Web server. By filtering the network data request and formatting it, it is convenient for the following modules to call.
Optionally, the method further includes:
and reversely proxy the execution request according to a configuration policy to map the data transmission of the 8080 port to the 80 port. By the reverse proxy, stable performance is provided, and a forwarding function flexible in configuration can be provided.
Optionally, the step S102 further includes:
and skipping the formatted execution request through a secondary route. Namely, the formatted execution request is transmitted to the router system for distribution, and the two-stage routing skip is carried out, so that the condition that one platform (message queue) supports a plurality of items (tasks) is compatible.
And storing the corresponding task into the message queue according to the execution request.
Optionally, the step S103 further includes:
and the distributed execution unit searches whether the executable task exists in the message queue in sequence, selects to execute the task if the executable task exists in the message queue, and continuously waits otherwise. The execution units search whether the executable tasks exist in the message queue one by one, and if so, the found task is executed; if one execution unit is not found, continuously waiting for a new task to appear; and the execution unit of the task is found to immediately execute the task.
Optionally, after the step S104, the method further includes:
and updating a website database of the router according to the result data, and drawing and generating a result analysis histogram. And a more intuitive structural analysis is presented to the user by updating the website database and establishing a result analysis histogram, and if a problem occurs, the source of the corresponding problem is indicated, and the like.
Optionally, in another embodiment, the step S103 further includes:
and the distributed execution unit applies for and/or executes the task at regular time according to a preset timing strategy. Such as: polling policy (executed every X days/hours/minutes/seconds/milliseconds), time policy (X days X points X minutes X seconds started execution), expiration date (X days X points X minutes X seconds task expired), whether it is a one-time task, etc.
Optionally, after the step S104, the method includes:
and analyzing the result data to generate analysis information, and sending the analysis information to a preset mailbox. If the result data has problems, the analysis information indicates the problems and is sent to a preset mailbox for prompting.
Fig. 2 shows a distributed automated testing system 100 of a router according to a preferred embodiment, which includes an obtaining unit 10, a storage unit 20, a distributed execution unit 30, and a result generation unit 40, and this embodiment is preferably deployed on a linux (multi-user, multi-task, multi-thread and multi-CPU supporting operating system) platform, and can be adapted to support more components; wherein:
the obtaining unit 10 is configured to obtain at least one piece of use case information to be executed by a user. The use case information comprises a use case ID, a use case name and a verification target; the case information refers to the relevant information of the test case to be executed, and specifically, the case information to be executed can be actively selected by the user, so that the request selected to be executed by the user is obtained for subsequent processing.
The storage unit 20 is configured to store the task of executing the use case information into a message queue. Specifically, a plurality of tasks corresponding to the request execution can be stored in the message queue according to the request of the user for executing the use case information, and the tasks are in a persistence sequence in the message queue. The memory unit 20 is preferably a scheduling tool Celery for asynchronous tasks (a simple, flexible and reliable distributed system handling large amounts of messages). Celery is a distributed task queue that determines the existence of multiple execution units and indicates that it is asynchronous.
The distributed execution unit 30 is configured to apply for the executable task from the message queue, and execute and distribute the acquired task. The distributed execution unit 30 includes a plurality of execution units arranged in a distributed manner, and each execution unit applies for the executable task from the message queue and executes the task allocated due to the application. The business is a standard production consumer model, and after receiving a task, the task is stored in a RabbitMQ (an open source message agent software for realizing Advanced Message Queuing Protocol (AMQP), also called message-oriented middleware) and distributed as a message queue; the distributed execution unit 30 is started on the task work machine, and in this embodiment, preferably, the execution end of the cell obtains the task currently cached in the queue from the RabbitMQ, and consumes the task to execute locally.
The result generation unit 40 is used to generate result data according to the execution of the task. And when all the tasks are executed, generating result data according to the execution result.
Referring to fig. 3, optionally, the obtaining unit 10 includes a request receiving subunit 101 and a filtering format subunit 102; wherein:
the request receiving subunit 101 is configured to receive an execution request of the use case information input by a user on an access page of the router; the filtering format subunit 102 is configured to filter and format the execution request via the Web server gateway interface.
The storage unit 20 comprises a jump subunit 201 and a task storage subunit 202; wherein:
the jump subunit 201 is configured to jump the formatted execution request via a secondary route; the task storage subunit 202 is configured to store the corresponding task into the message queue according to the execution request.
The access page is a task management page of the test platform, and specifically, corresponding use case information selection items are set on the network access page, and corresponding execution requests are generated through selection of a user on the page; by filtering the network data request and formatting it, it is convenient for the following modules to call. The corresponding website is mainly developed by applying a django (Web application framework of an open source code) framework, a django MTV (model M, view V and template T) mode and a background management system; the request generated by the operation of a user on a webpage is filtered by a gateway interface of a Web server, formatted and transmitted to a router system for distribution, and secondary routing skip is designed in the router system for the purpose of being compatible with the condition that one platform supports a plurality of items.
The distributed execution unit 30 is specifically configured to sequentially search whether the executable task exists in the message queue, select one of the tasks to execute if the executable task exists in the message queue, and otherwise, continuously wait. A plurality of execution units sequentially search whether the executable tasks exist in the message queue, if so, one task is distributed and obtained and immediately executed; and meanwhile, the next execution unit starts to search whether the executable task exists in the message queue, if so, a task is distributed and obtained and immediately executed, and the process is repeated until a certain execution unit does not find the executable task in the message queue, and then the process is continuously waited. And after the routing distribution is completed, jumping to a view module of the django MTV, executing the task, and executing the corresponding task through functional logic.
In another embodiment, it is further preferable that the apparatus further comprises a reverse proxy unit, and the reverse proxy unit is configured to reverse proxy the execution request according to a configuration policy, so as to map data transmission of 8080 ports to 80 ports. The 8080 port is used for WWW proxy service, can realize web browsing, and is added with the port number of 8080 when a certain website is accessed or a proxy server is used; the 80 port is opened for http (hypertext transfer protocol), which is a protocol used for surfing the internet most frequently and is mainly used for the protocol of the world wide web for transmitting information. By the reverse proxy, stable performance is provided, and a forwarding function flexible in configuration can be provided. The reverse unit is preferably a nginnx, which is a lightweight Web server/reverse proxy server and email (IMAP/POP3) proxy server, and is distributed under the BSD-like (berkeley software release) protocol. Its advantages are less memory occupied and high concurrency. Referring to fig. 5, a plurality of users may access a corresponding website to enter a configuration interface to issue execution case information, and after a generated execution request passes through a reverse proxy unit, data transmission of an 8080 port is mapped to an 80 port; the user request is firstly processed by Nginx, and whether the IP is 10.18.131.23 or not and the port is 80 are judged; and Nginx returns to the foreground page according to the configuration strategy. When all data of the 80 port is accessed, Nginx will go to the 8080 port to request, and return to the user after the data is taken out.
Optionally, the method further includes:
and the updating and drawing unit is used for updating the website database of the router according to the result data and drawing and generating a result analysis histogram. And the updating and drawing unit updates the website database according to the result data and draws and generates a result analysis histogram. Specifically, a result analysis histogram is obtained by adopting database data operation and html (HyperText Markup Language) webpage element rendering technology, and then a final result is returned to a foreground and displayed to a user; and a more intuitive structural analysis is presented to the user by updating the website database and establishing a result analysis histogram, and if a problem occurs, the source of the corresponding problem is indicated, and the like.
Optionally, the distributed execution unit 30 is further configured to apply for and/or execute the task at regular time according to a preset timing policy. Such as: polling policy (executed every X days/hours/minutes/seconds/milliseconds), time policy (X days X points X minutes X seconds started execution), expiration date (X days X points X minutes X seconds task expired), whether it is a one-time task, etc.
Optionally, in other embodiments, the system further includes a result analysis unit, where the result analysis unit is configured to analyze the result data to generate analysis information, and send the analysis information to a preset mailbox. If the result data has problems, the analysis information indicates the problems and is sent to a preset mailbox for prompting.
The overall business process of the method of the invention comprises the following steps:
1. when a user inputs a website address to access a website login page, the user request is processed by a reverse proxy unit, namely Nginx, and whether the IP is 10.18.131.23 or not is judged, and a port is 80.Nginx, and the user request is returned to a foreground page according to a configuration strategy. When all data of the 80 port is accessed, Nginx will go to the 8080 port to request, and return to the user after the data is taken out.
2. And inputting a user name and a password which are allocated to the user by an administrator for logging in. And the background judges whether the user logs in according to whether the user name and the password are correct.
3. And after logging in and entering the homepage, entering a project test case interface. And checking the test cases to be executed and clicking to execute. At this time, the obtaining unit 10 returns the use case information selected by the user to be executed to the background in an object mode through the Web server gateway interface. The information content of the method comprises ID, case name, running state, verification target, result and completion time.
4. and (3) the admin background (background management system) analyzes the returned message, preferentially checks whether the returned message is legal, then judges the case according to the ID, transmits the task to a view module of the django MTV after the judgment is finished, and invokes the cell.
5. The memory unit 20, i.e., Celery, places the task in a RabbitMQ, which persists the sequence, waiting for consumption by the distributed execution unit 30.
6. After the distributed execution unit 30 is started, a TCP (Transmission Control Protocol) link is established with the RabbitMQ, whether a task exists in the queue is found, if so, the RabbitMQ sends the task to the execution unit through a channel for consumption, and if not, the RabbitMQ continuously waits; the worker receiving the task immediately starts executing the task.
7. After the execution of the distributed execution unit 30 is completed, the result generation unit 40 is configured to generate result data according to the execution of the task; when all tasks are executed, generating result data according to the execution result; the Mysql (a relational database management system) database table is further updated, and after the django is rendered through a graph, the graph is displayed in a case data module. And will send an email indicating where the problem, if any, is.
8. If the timing task is executed, a timing strategy needs to be configured on the page. Such as: polling strategy (executed once every X days/hours/minutes/seconds/milliseconds), timing strategy (X days X points X minutes X seconds start execution), expiration date (X days X points X minutes X seconds task failure), whether it is a one-time task, etc.
9. And starting the server timing task scheduler, and performing timing execution according to the time strategy.
The website page configuration of the user comprises the following steps: firstly, main page: the system comprises a project management module, a user management module and a planning task management module; II, project use case: the functions of adding, modifying, deleting, checking, executing, filtering, searching and the like are supported; displaying the case ID, the case name, the execution state, the execution result and the execution time; the execution state includes (not started, in progress, completed, stopped) the execution result includes (pass, fail); thirdly, user management: modification may be added to delete view users/groups of users and add permissions to users/groups of users. The platform access needs to perform user login authentication; fourthly, planning a task strategy: different execution policies may be customized. A polling strategy (executed once every X days/hour/minute/second/millisecond) timing strategy (X days, X points, X minutes and X seconds for execution), and an expiration period (X days, X points, X minutes and X seconds for task failure); and fifthly, displaying data, and counting the execution result of the use case. The system is a B/S (Browser/Server Architecture) Architecture, which can be used by people who can communicate with the network.
The present invention also provides a storage medium for storing a computer program of the distributed automated testing method for routers as described in fig. 1. Such as computer program instructions, which when executed by a computer, may invoke or otherwise provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on fixed or removable storage media and/or transmitted via a data stream over a broadcast or other signal-bearing medium and/or stored on a storage medium of a computer device operating in accordance with the program instructions. Here, according to an embodiment of the present application, a computer device of a router distributed automated testing system as shown in fig. 2 to 3 is included, and the computer device preferably includes a storage medium for storing a computer program and a processor for executing the computer program, wherein when the computer program is executed by the processor, the computer device is triggered to execute a method and/or a technical solution based on the foregoing embodiments.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the above steps or functions. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
The method according to the invention can be implemented on a computer as a computer-implemented method, or in dedicated hardware, or in a combination of both. Executable code for the method according to the invention or parts thereof may be stored on a computer program product. Examples of computer program products include memory devices, optical storage devices, integrated circuits, servers, online software, and so forth. Preferably, the computer program product comprises non-transitory program code means stored on a computer readable medium for performing the method according to the invention when said program product is executed on a computer.
In a preferred embodiment, the computer program comprises computer program code means adapted to perform all the steps of the method according to the invention when the computer program is run on a computer. Preferably, the computer program is embodied on a computer readable medium.
In conclusion, the router distributed automatic testing method and the system thereof can perform centralized management through a website, have simplified and visualized configuration, and reduce the skill requirements of users. Through the distributed asynchronous high-concurrency execution, the automation efficiency is improved, the structure is clear and easy to expand, the projects are separately managed, and the projects are mutually independent and cannot be influenced. The timing task can achieve the full automation of the whole process, and the degree of human participation is completely not needed.
The present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof, and it should be understood that various changes and modifications can be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.
The invention also discloses A1 and a router distributed automatic testing method, which comprises the following steps:
acquiring at least one to-be-executed use case information of a user;
storing a task for executing the use case information into a message queue;
the distributed execution unit applies for the executable tasks from the message queue and executes and distributes the acquired tasks;
generating result data according to the execution of the task.
A2, according to the router distributed automated testing method of A1, the step of obtaining at least one case information to be executed by the user further includes:
receiving an execution request of the use case information input by a user on an access page of the router;
and filtering and formatting the execution request through a gateway interface of the Web server.
A3, according to the router distributed automation test method of A2, the step of storing the task of executing the use case information into a message queue further includes:
skipping the formatted execution request through a secondary route;
and storing the corresponding task into the message queue according to the execution request.
A4, according to the router distributed automation test method described in A3, the distributed execution unit applying for the executable task from the message queue, and the step of executing and distributing the acquired task further includes:
and the distributed execution unit searches whether the executable task exists in the message queue in sequence, selects to execute the task if the executable task exists in the message queue, and continuously waits otherwise.
A5, the router distributed automated testing method according to A2, further comprising:
and reversely proxy the execution request according to a configuration policy to map the data transmission of the 8080 port to the 80 port.
A6, the method for distributed automated testing of routers according to A1, further comprising after the step of generating result data according to the execution of the task:
and updating a website database of the router according to the result data, and drawing and generating a result analysis histogram.
A7, according to the router distributed automation test method described in a1, the distributed execution unit applying for the executable task from the message queue, and the step of executing and distributing the acquired task further includes:
and the distributed execution unit applies for and/or executes the task at regular time according to a preset timing strategy.
A8, the method for distributed automated testing of routers according to A1, the step of generating result data according to execution of the task being followed by:
and analyzing the result data to generate analysis information, and sending the analysis information to a preset mailbox.
A9, the router distributed automation test method according to A1, characterized in that, the case information includes a case ID, a case name and a verification target.
B10, a router distributed automated testing system, comprising:
the acquiring unit is used for acquiring at least one piece of case information to be executed of a user;
the storage unit is used for storing the task for executing the use case information into a message queue;
the distributed execution unit is used for applying the executable tasks to the message queue and executing and distributing the acquired tasks;
a result generation unit for generating result data according to the execution of the task.
B11, the router distributed automated testing system according to B10, the obtaining unit further includes:
the request receiving subunit is used for receiving the execution request of the use case information input by the user on the access page of the router;
and the filtering format subunit is used for filtering and formatting the execution request through a gateway interface of the Web server.
B12, the router distributed automated testing system according to B11, the storage unit further comprising:
the jump subunit is used for jumping the formatted execution request through a secondary route;
and the task storage subunit is used for storing the corresponding task into the message queue according to the execution request.
B13, according to the router distributed automated testing system of B12, the distributed execution unit is specifically configured to sequentially find whether the task that can be executed exists in the message queue, select one to execute the task if the task exists, and otherwise continue to wait.
B14, the router distributed automated testing system according to B11, further comprising:
and the reverse proxy unit is used for performing reverse proxy on the execution request according to the configuration policy so as to map the data transmission of the 8080 port to the 80 port.
B15, the router distributed automated testing system according to B10, further comprising:
and the updating and drawing unit is used for updating the website database of the router according to the result data and drawing and generating a result analysis histogram.
B16, the router distributed automated testing system according to B10, the distributed execution unit is further used for applying for and/or executing the task at regular time according to a preset timing strategy.
B17, the router distributed automated testing system according to B10, further comprising:
and the result analysis unit is used for analyzing the result data to generate analysis information and sending the analysis information to a preset mailbox.
B18, according to the router distributed automation test system of B10, the case information comprises a case ID, a case name and a verification target.
C19, a storage medium storing a computer program for executing the method for distributed automated testing of routers according to any of claims a1 to a 9.
D20, a computer device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, the processor implementing the router distributed automated testing method of any one of claims a 1-a 9 when executing the computer program.

Claims (10)

1. A router distributed automation test method is characterized by comprising the following steps:
acquiring at least one to-be-executed use case information of a user;
storing a task for executing the use case information into a message queue;
the distributed execution unit applies for the executable tasks from the message queue and executes and distributes the acquired tasks;
generating result data according to the execution of the task.
2. The method according to claim 1, wherein the step of obtaining at least one use case information to be executed by the user further comprises:
receiving an execution request of the use case information input by a user on an access page of the router;
and filtering and formatting the execution request through a gateway interface of the Web server.
3. The method according to claim 2, wherein the step of storing the task of executing the use case information in a message queue further comprises:
skipping the formatted execution request through a secondary route;
and storing the corresponding task into the message queue according to the execution request.
4. The router distributed automation testing method of claim 3 wherein the distributed execution unit applies for the executable task from the message queue, and the step of executing and distributing the acquired task further comprises:
and the distributed execution unit searches whether the executable task exists in the message queue in sequence, selects to execute the task if the executable task exists in the message queue, and continuously waits otherwise.
5. A router distributed automation test system, comprising:
the acquiring unit is used for acquiring at least one piece of case information to be executed of a user;
the storage unit is used for storing the task for executing the use case information into a message queue;
the distributed execution unit is used for applying the executable tasks to the message queue and executing and distributing the acquired tasks;
a result generation unit for generating result data according to the execution of the task.
6. The router distributed automation test system as set forth in claim 5 wherein the obtaining unit further comprises:
the request receiving subunit is used for receiving the execution request of the use case information input by the user on the access page of the router;
and the filtering format subunit is used for filtering and formatting the execution request through a gateway interface of the Web server.
7. The router distributed automation test system of claim 6 wherein the storage unit further comprises:
the jump subunit is used for jumping the formatted execution request through a secondary route;
and the task storage subunit is used for storing the corresponding task into the message queue according to the execution request.
8. The router distributed automation test system of claim 7 wherein the distributed execution units are specifically configured to sequentially find whether the task is executable in the message queue, and if so, select to execute the task, otherwise, continue to wait.
9. A storage medium storing a computer program for executing the distributed automated testing method for a router of any of claims 1-4.
10. A computer device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the router distributed automated testing method of any one of claims 1 to 4 when executing the computer program.
CN202010181854.XA 2020-03-16 2020-03-16 Router distributed automatic test method, system, storage medium and computer equipment thereof Pending CN113411226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010181854.XA CN113411226A (en) 2020-03-16 2020-03-16 Router distributed automatic test method, system, storage medium and computer equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010181854.XA CN113411226A (en) 2020-03-16 2020-03-16 Router distributed automatic test method, system, storage medium and computer equipment thereof

Publications (1)

Publication Number Publication Date
CN113411226A true CN113411226A (en) 2021-09-17

Family

ID=77676390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010181854.XA Pending CN113411226A (en) 2020-03-16 2020-03-16 Router distributed automatic test method, system, storage medium and computer equipment thereof

Country Status (1)

Country Link
CN (1) CN113411226A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915254A (en) * 2011-08-02 2013-02-06 中兴通讯股份有限公司 Task management method and device
CN107302475A (en) * 2017-07-06 2017-10-27 郑州云海信息技术有限公司 The method of testing and device of a kind of Based on Distributed storage cluster
CN108804320A (en) * 2018-05-30 2018-11-13 平安普惠企业管理有限公司 Automated testing method, device, computer equipment and storage medium
CN108829521A (en) * 2018-06-13 2018-11-16 平安科技(深圳)有限公司 Task processing method and device, computer equipment and storage medium
CN109076686A (en) * 2016-03-22 2018-12-21 卢特龙电子公司 To the seamless connection of multiple wireless controllers
CN109298951A (en) * 2018-08-21 2019-02-01 平安科技(深圳)有限公司 The execution method and terminal device of Celery task
CN109951559A (en) * 2019-03-27 2019-06-28 京东方光科技有限公司 Timed task configuration method, server, system and computer readable storage medium
CN110083544A (en) * 2019-05-07 2019-08-02 江苏满运软件科技有限公司 Distributed automatization test system, method, electronic equipment and storage medium
CN110351203A (en) * 2019-07-12 2019-10-18 苏州亿歌网络科技有限公司 A kind of message treatment method, device, system, server and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915254A (en) * 2011-08-02 2013-02-06 中兴通讯股份有限公司 Task management method and device
CN109076686A (en) * 2016-03-22 2018-12-21 卢特龙电子公司 To the seamless connection of multiple wireless controllers
CN107302475A (en) * 2017-07-06 2017-10-27 郑州云海信息技术有限公司 The method of testing and device of a kind of Based on Distributed storage cluster
CN108804320A (en) * 2018-05-30 2018-11-13 平安普惠企业管理有限公司 Automated testing method, device, computer equipment and storage medium
CN108829521A (en) * 2018-06-13 2018-11-16 平安科技(深圳)有限公司 Task processing method and device, computer equipment and storage medium
CN109298951A (en) * 2018-08-21 2019-02-01 平安科技(深圳)有限公司 The execution method and terminal device of Celery task
CN109951559A (en) * 2019-03-27 2019-06-28 京东方光科技有限公司 Timed task configuration method, server, system and computer readable storage medium
CN110083544A (en) * 2019-05-07 2019-08-02 江苏满运软件科技有限公司 Distributed automatization test system, method, electronic equipment and storage medium
CN110351203A (en) * 2019-07-12 2019-10-18 苏州亿歌网络科技有限公司 A kind of message treatment method, device, system, server and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘京义,: ""使用移动设备访问Lync平台"", 《网络安全信息化》, 5 May 2019 (2019-05-05), pages 1 *
李一风,: ""基于Celery和Django的分布式自动化测试系统设计"", 《信息技术》, no. 5, 22 May 2019 (2019-05-22), pages 97 - 100 *
王成;陈果;孙宸;欧阳纯萍;: "基于MySQL_MongoDB_Redis的Online Judge多数据库应用", 计算机时代, no. 09, 15 September 2018 (2018-09-15) *

Similar Documents

Publication Publication Date Title
US8863266B1 (en) Dynamic throttling systems and services
US6829630B1 (en) Mechanisms for web-object event/state-driven communication between networked devices
US8156499B2 (en) Methods, systems and articles of manufacture for scheduling execution of programs on computers having different operating systems
US7133908B1 (en) Metrics and status presentation system and method using persistent template-driven web objects
US20030187672A1 (en) Method, system, and program for servicing customer product support requests
US11575772B2 (en) Systems and methods for initiating processing actions utilizing automatically generated data of a group-based communication system
US20140115046A1 (en) Stream processing using a client-server architecture
US20070047439A1 (en) Method and apparatus of supporting business performance management with active shared data spaces
CN108073625B (en) System and method for metadata information management
US7512619B2 (en) Real time work queue notification
US9497292B2 (en) Facilitating the operation of a client/server application while a client is offline or online
CN109739663A (en) Job processing method, device, equipment and computer readable storage medium
CN109656690A (en) Scheduling system, method and storage medium
US11210198B2 (en) Distributed web page performance monitoring methods and systems
US20130347004A1 (en) Correlating messages
US8694462B2 (en) Scale-out system to acquire event data
CN113342503B (en) Real-time progress feedback method, device, equipment and storage medium
CN107317788A (en) Real time data method for pushing and device
CN101562622B (en) Method for executing user request and corresponding server thereof
US20090234913A1 (en) Data structure for initiating multiple web sites
CN113411226A (en) Router distributed automatic test method, system, storage medium and computer equipment thereof
US20200327122A1 (en) Conflation of topic selectors
Yuan et al. Towards efficient deployment of cloud applications through dynamic reverse proxy optimization
CN109471709A (en) The dispatching method of flow tasks based on Apache Oozie frame processing big data
CN111625866B (en) Authority management method, system, 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