CN113438126B - Distributed online test system applied to block chain domain name system - Google Patents

Distributed online test system applied to block chain domain name system Download PDF

Info

Publication number
CN113438126B
CN113438126B CN202110673414.0A CN202110673414A CN113438126B CN 113438126 B CN113438126 B CN 113438126B CN 202110673414 A CN202110673414 A CN 202110673414A CN 113438126 B CN113438126 B CN 113438126B
Authority
CN
China
Prior art keywords
test
end server
user
nodes
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110673414.0A
Other languages
Chinese (zh)
Other versions
CN113438126A (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.)
Computer Network Information Center of CAS
Original Assignee
Computer Network Information Center of CAS
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 Computer Network Information Center of CAS filed Critical Computer Network Information Center of CAS
Priority to CN202110673414.0A priority Critical patent/CN113438126B/en
Publication of CN113438126A publication Critical patent/CN113438126A/en
Application granted granted Critical
Publication of CN113438126B publication Critical patent/CN113438126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Abstract

The invention relates to a distributed online test system applied to a block chain domain name system, wherein the distributed architecture comprises: the method comprises the steps of testing a node group, a rear-end server and a front-end server; the system comprises: the system comprises a user and user group management module, a menu and authority management module, a test node management module, a test item management module and a result display module. The invention solves the problem that the tester executes the test script in the distributed environment by means of centralized management and calling, is not limited by the influence factors of an operating system, a network environment, a geographical position and the like of the test terminal, and provides platform support for the tester to test and browse the project results of common users.

Description

Distributed online test system applied to block chain domain name system
Technical Field
The invention relates to an online testing technology of a distributed architecture, in particular to a distributed online testing system applied to a block chain domain name system.
Background
In the existing system testing scheme, a testing program or a testing script is generally run on a single node, and testing needs to be performed in different operating system platforms, network environments and geographic positions, for example, when performing domain name resolution performance and block chain system performance testing, performance of different operating systems in network environments of multiple operators at various locations throughout the country needs to be tested, and after all data testing is completed, statistical analysis is performed.
Existing system test schemes have a great deal of repeatability and alternatives, such as repeated execution of the same test item, statistical analysis and visualization of test results, and the like. When multiple performance tests are performed, each test item needs to be tested independently, the operation is complex, and the workload is multiplied.
Disclosure of Invention
The invention aims to solve the technical problems of the existing system test scheme.
In order to achieve the above object, the present invention provides a distributed online test system applied to a block chain domain name system, where the distributed architecture includes: the method comprises the steps of testing a node group, a rear-end server and a front-end server; the system comprises: the system comprises a user and user group management module, a menu and authority management module, a test node management module, a test item management module and a result display module; wherein the content of the first and second substances,
the user and user group management module is used for realizing user login and returning different menu items according to the authority of a login user; creating, editing and deleting user groups; modifying the user group where the user is currently located, adding and editing; deleting users and allocating user groups.
The menu and authority management module is used for rendering the menu route to a webpage according to the returned menu route; and add, edit, and delete menu items; realizing an infinite-grade separable menu module; editing menu items accessible to the user groups.
The test node management module is used for deploying related programs on the test nodes, running commands from a back-end server, and adding, editing, checking and deleting the nodes; and uploading the related script to a back-end server by an editor, and distributing the script to the specified node by the back-end server.
And the test item management module is used for adding and editing test items by an administrator and an editor, wherein the test items comprise test item names, introduction, types, script uploading and calling commands, and the user can return an operation result and an operation log by clicking a test item execution button.
And the result display module is used for displaying the operation condition of the project, the statistics of the test project, the display of the test nodes, the construction diagram of the project and the display of the related result modules.
The invention integrates three frameworks of an online website, a back-end server and a test node group, uploads a test program or script to different test nodes, can run and collect test results in batch during execution, supports the functions of performance statistics, visual analysis and the like, and greatly reduces the workload and complexity of testing by testers. In addition, the online website module supports real-time system performance monitoring, can monitor project system performance, can count load conditions of all test nodes, and provides system performance parameters for system maintenance personnel. The back-end server module supports the dynamic management of the test node group, provides support for the test nodes to connect in and exit from the test system, and is not limited by the operating system, the network environment and the geographical position of the test nodes; the method supports the collection and statistics of test results and provides data support for the online website.
Drawings
Fig. 1 is a schematic diagram of a distributed architecture applied to a distributed online test system applied to a block chain domain name system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a distributed online test system applied to a block chain domain name system according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a user's online test item management process using the system shown in FIG. 2.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic diagram of a distributed architecture applied to a distributed online test system applied to a block chain domain name system according to an embodiment of the present invention. As shown in fig. 1, a distributed architecture applied by an online test system provided by an embodiment of the present invention includes three parts: the system comprises a test node group, a back-end server and a front-end server, wherein the front-end server and the back-end server are respectively provided with the online test system of the embodiment of the invention. The front-end server supports the output of test results, system performance monitoring, visual analysis, result display and the like; the back-end server is responsible for user account management, user authority distribution, test script distribution, test node management and sending execution commands; the test node group is a test terminal deployed in various network environments (such as IPv4/v6, mobile Internet, Internet of things and the like) and is responsible for executing test scripts and returning test results.
The front-end server deploys Nginx software which automatically forwards the user request to the front-end or back-end server, and the front-end server can also access the service deployed on the back-end server through the network request.
All test nodes in the test node group are accessed through SSH connection, and after the access is successful, the back-end server can store the relevant information of the nodes and perform unified coordination management on the connection, such as: enable/disable, connect/disconnect, modify working directory, etc. When the test node is disconnected passively (network disconnection or shutdown and the like) due to other reasons, the back-end server tries to reconnect periodically until the connection is recovered.
When a tester uploads a test script, a back-end server can print a timestamp of the current time before the name of a script file, after the tester clicks to determine that a test item is updated, the back-end server can distribute a file with the largest timestamp to each test node, inquire whether a renamed file exists under the current directory or not, rename the test file after deleting if an old script file exists, and rename the test file directly if the renamed file does not exist.
Fig. 2 is a schematic structural diagram of a distributed online test system applied to a block chain domain name system according to an embodiment of the present invention. As shown in FIG. 2, the in-line test system 20 includes five modules: a user and user group management module 21; a menu and rights management module 22; a test node management module 23; a test item management module 24 and a result presentation module 25.
The user and user group management module 21 is used for realizing user login and returning different menu items according to the authority of the login user; creating, editing and deleting user groups; modifying the user group where the user is currently located; adding, editing and deleting users and assigning user groups.
A menu and authority management module 22 for rendering to the web page according to the returned menu route; add, edit, and delete menu items; realizing an infinite-grade separable menu module; editing menu items accessible to the user groups.
The test node management module 23 is configured to deploy a relevant program on a test node and run a command from a back-end server; adding, editing, checking and deleting nodes; and uploading the related script to a back-end server by an editor, and distributing the script to the specified node by the back-end server. As shown in fig. 3, the steps of adding, editing, executing, and deleting nodes of the test node management module 23 are as follows:
adding nodes: and uploading the test items and the test scripts to a back-end server by an editor through the front-end server, adding the test items to the database by the back-end server, and deploying the test scripts to the test nodes.
Editing nodes: and uploading the test items and the test scripts to a back-end server by an editor through the front-end server, updating the test items in the database by the back-end server, and re-deploying the test scripts to the test nodes.
And a node executing step: the tester uploads the ID of the test item, the operation parameters and the test nodes to the back-end server through the front-end server, the back-end server sends execution commands and parameters to all the nodes, and the test node group operates the test script and returns a test result.
And a node deleting step: and uploading the ID of the test item to a back-end server by an editor through the front-end server, deleting the test item in the database by the back-end server, and deleting the test script on the test node.
The test item management module 24 is used for adding and editing test items by an administrator and an editor, and comprises test item names, introduction, types, script uploading and calling commands; the user can return the operation result (success, failure and error) and the operation log by clicking the test item execution button.
And a result display module 25, a home page, is used for displaying the operation condition of the project, the statistics of the test project, the display of the test nodes and the construction diagram of the project. And a related result module: the method is divided into module display of system performance, report, thesis, standard, patent and the like.
The online test system 20 of the embodiment of the invention sets three roles of an administrator, an editor and an accessor.
The administrator authority comprises account registration, deletion and user group distribution; user group addition, deletion and management; maintaining the addition, deletion and management of the test nodes; adding, deleting and managing a maintenance menu; maintaining access rights of the user group; and adding, editing and deleting a result display module.
The editor authority includes a menu item to maintain a specified menu (a menu item assigned maintainable by the administrator); test items under a specified menu are created, edited, deleted, and run.
The visitor authority comprises browsing project running state (data access amount, server state and the like), project related results (papers, standards and patents) and the like; the script parameters can be modified, and the test nodes are appointed to run the test items.
In one embodiment, an administrator or editor adds test items, fills in test item information, uploads test scripts, specifies script deployment nodes and saves through an online test system installed in a front-end server, all user roles can access test items authorized to be accessed (the authorization granularity is a menu level), and specifies one or more nodes in a test node group within the deployment range of the test items to run the test items. After the test is finished, the test result of the test item on each test node can be checked.
And maintaining the information of the test nodes by an administrator, and supporting the connection of Linux and Windows operating systems. And an SSH Server (Secure Shell Server) service is operated on the test node, and the back-end Server is connected to the test node by adopting an SSH protocol, so that file management on the test node and test script operation are realized, and a script execution result is returned to the back-end Server.
The administrator realizes the setting of menu attributes, the addition or deletion of menu items and the adjustment of the logic relationship among menus by configuring a menu tree, and joint user group authority management can distribute accessible and editable menu items of each user group. The menu tree is stored and analyzed through the JSON format, a user edits menu attributes and logic relations at a webpage end, data in the JSON format of a bottom layer can be modified in real time, when the user finishes modification click storage, a browser compares changes (including attribute changes and logic changes) between a new menu tree and an original menu tree and uploads the new changes to a front-end server, the front-end server passes authority verification and then transmits the changes to a back-end server, and the back-end server stores the data in a database.
The embodiment of the invention integrates three architectures of an online website, a back-end server and a test node group, and uploads a test program or a script to different test nodes; during execution, the test system can run and collect test results in batches, and supports functions such as performance statistics, visual analysis and the like, so that the workload and the complexity of testing by testers are greatly reduced. The online website module supports real-time system performance monitoring, can monitor project system performance, can count load conditions of all test nodes, and provides system performance parameters for system maintenance personnel. The back-end server module supports the dynamic management of the test node group, provides support for the test nodes to connect in and exit from the test system, and is not limited by the operating system, the network environment and the geographical position of the test nodes; the method supports the collection and statistics of test results and provides data support for online websites.
In addition, the test items and the test nodes are uniformly managed in an online website mode, so that test personnel can conveniently maintain test data. The test nodes compatible with a multi-platform operating system, various network environments and global distribution are connected into the system, dynamic access of the test nodes and exit from a test node group are supported, and the test nodes can be used without being greatly changed. And uniformly collecting test results, returning statistical information to the user, and supporting the user to define test parameters for testing. And realizing the infinite menu, and enabling the authorized user to create and edit the infinite menu and display the infinite menu to the user in a menu tree mode.
In an embodiment, the embodiment of the present invention is applied to a domain name system test based on a block chain technology as an example, since the domain name system test is widely deployed in a global network, in order to test resolution delays in different regions, performance indexes of the block chain system are tested, such as: TPS, confirmation time delay and the like, test nodes need to be widely deployed in various regions and various network environments, after the embodiment of the invention is used, an administrator can dynamically adjust the operations of access, deletion, connection, disconnection and the like of the test nodes according to the actual conditions of the test nodes, after a tester writes a relevant test script, the script is uploaded to the platform and can be deployed on the specified test nodes in real time, and after the test script is deployed, all users can start the test by one key and check the test result after the test is completed.
The embodiment of the invention reduces a large amount of repeated work of testers, such as: deployment, iteration, starting and the like of the test scripts help operation and maintenance personnel to uniformly manage the test node groups, provide visual test results for users, and help the users to understand test items.
It will be obvious that many variations of the invention described herein are possible without departing from the true spirit and scope of the invention. Accordingly, all changes which would be obvious to one skilled in the art are intended to be included within the scope of this invention as defined by the appended claims. The scope of the invention is only limited by the claims.

Claims (10)

1. A distributed online test system applied to a blockchain domain name system, the distributed architecture comprising: the method comprises the steps of testing a node group, a rear-end server and a front-end server; characterized in that the system comprises: the system comprises a user and user group management module, a menu and authority management module, a test node management module, a test item management module and a result display module;
the user and user group management module is used for realizing user login and returning different menu items according to the authority of a login user; creating, editing and deleting user groups; modifying the user group where the user is currently located, adding and editing; deleting users and allocating user groups;
the menu and authority management module is used for rendering to a webpage according to a returned menu route; and add, edit, and delete menu items; a separable menu module is realized; editing menu items accessible to each user group;
the test node management module is used for deploying related programs on the test nodes, running commands from a back-end server, and adding, editing, checking and deleting the nodes; the editor uploads the related script to a back-end server, and the back-end server distributes the script to the designated node;
the test item management module is used for adding and editing test items by an administrator and an editor, wherein the test items comprise test item names, introduction, types, script uploading and calling commands, and a user can return an operation result and an operation log by clicking a test item execution button;
the achievement display module is used for displaying the operation condition of the project, testing project statistics, testing node display, project architecture diagram and related achievement module display.
2. The system of claim 1, wherein the front-end server deploys a Nginx software, wherein the Nginx software automatically forwards the user request to either the front-end or back-end server, and wherein the front-end server requests access to the service deployed on the back-end server via the network.
3. The system according to claim 1, wherein all test nodes in the test node group access through SSH connection, and after successful access, the backend server stores relevant information of the nodes and performs unified coordination management on the connection; when the test node is disconnected passively due to other reasons, the back-end server can try to reconnect periodically until the connection is recovered.
4. The system of claim 1, wherein when a tester uploads a test script, the backend server stamps a timestamp of the current time before the name of the script file, and after the tester clicks to determine to update the test item, the backend server distributes the file with the largest timestamp to each test node and queries whether there is a renamed file in the current directory, and if so, the backend server renames the file after deleting the file, and if not, the backend server renames the file directly.
5. The system of claim 1, wherein the front-end server supports output of test results, system performance monitoring, visual analysis and result display; the back-end server is responsible for user account management, user authority distribution, test script distribution, test node management and sending execution commands; the test node group is deployed at test terminals in various network environments and is responsible for executing test scripts and returning test results; and the back-end Server is connected to the test nodes by adopting an SSH protocol, so that file management on the test nodes and test script operation execution are realized, and a script execution result is returned to the back-end Server.
6. The system of claim 1, wherein the system is configured to,
and receiving the test items and the test scripts and uploading the test items and the test scripts to a back-end server, adding the test items to a database by the back-end server, and deploying the test scripts to the test nodes.
7. The system of claim 1, wherein the system is configured to,
and receiving the test items and the test scripts and uploading the test items and the test scripts to a back-end server, updating the test items in the database by the back-end server, and re-deploying the test scripts to the test nodes.
8. The system of claim 1, wherein the system is configured to,
and receiving the ID of the test item, the operation parameters and the test nodes, uploading the ID, the operation parameters and the test nodes to a back-end server, sending an execution command and parameters to each node by the back-end server, and operating the test script and returning a test result by the test node group.
9. The system of claim 1, wherein the system is configured to,
and receiving the ID of the test item, uploading the ID to a back-end server, deleting the test item in the database by the back-end server, and deleting the test script on the test node.
10. The system of claim 1, wherein the test items comprise test item IDs, item names, introductions, deployment nodes, run commands, and parameters.
CN202110673414.0A 2021-06-17 2021-06-17 Distributed online test system applied to block chain domain name system Active CN113438126B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110673414.0A CN113438126B (en) 2021-06-17 2021-06-17 Distributed online test system applied to block chain domain name system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110673414.0A CN113438126B (en) 2021-06-17 2021-06-17 Distributed online test system applied to block chain domain name system

Publications (2)

Publication Number Publication Date
CN113438126A CN113438126A (en) 2021-09-24
CN113438126B true CN113438126B (en) 2022-05-10

Family

ID=77756239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110673414.0A Active CN113438126B (en) 2021-06-17 2021-06-17 Distributed online test system applied to block chain domain name system

Country Status (1)

Country Link
CN (1) CN113438126B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114895956A (en) * 2022-04-14 2022-08-12 阿里巴巴(中国)有限公司 Menu configuration method, menu display method and device
CN115277638B (en) * 2022-09-30 2022-12-16 中国信息通信研究院 Performance test method, device, equipment and medium of block chain domain name resolution system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899134A (en) * 2015-04-29 2015-09-09 中国互联网络信息中心 Automatic domain name registration server testing system and method
CN112054941A (en) * 2020-09-07 2020-12-08 平安科技(深圳)有限公司 Automatic testing method, device and equipment for private domain name and storage medium
CN112506807A (en) * 2021-02-07 2021-03-16 上海洋漪信息技术有限公司 Automatic test system for interface serving multiple systems

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9552281B2 (en) * 2011-12-28 2017-01-24 Verisign, Inc. Utilizing a test automation tool in a test automation environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899134A (en) * 2015-04-29 2015-09-09 中国互联网络信息中心 Automatic domain name registration server testing system and method
CN112054941A (en) * 2020-09-07 2020-12-08 平安科技(深圳)有限公司 Automatic testing method, device and equipment for private domain name and storage medium
CN112506807A (en) * 2021-02-07 2021-03-16 上海洋漪信息技术有限公司 Automatic test system for interface serving multiple systems

Also Published As

Publication number Publication date
CN113438126A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN113438126B (en) Distributed online test system applied to block chain domain name system
CN108667809B (en) Method for realizing synchronous management of account information of WEB interface of multi-system DAS
US6584507B1 (en) Linking external applications to a network management system
CN106021079B (en) It is a kind of based on the Web application performance test methods for being frequently visited by the user series model
CN101621405B (en) Distributed type management monitoring system, monitoring method and establishing method thereof
CN113206763B (en) Simulation test system and method suitable for Internet of things management platform
CN104639653A (en) Self-adaptive method and system based on cloud architecture
US20030200300A1 (en) Singularly hosted, enterprise managed, plural branded application services
CN106933729A (en) A kind of method of testing and system based on cloud platform
WO2001061890A1 (en) A system and method for remotely configuring testing laboratories
JP2013515315A (en) Apparatus and method for implementing web-based user interface of communication terminal
CN107528751B (en) A kind of system and its management method of dynamic distribution Zabbix monitoring data
CN103186444A (en) Performance testing method, platform and machine
CN115934680B (en) One-stop big data analysis processing system
CN100512158C (en) Network measuring system structure and realizing method thereof
CN111130922A (en) Airborne information safety automatic test method and test platform
CN110659202A (en) Client automatic testing method and device
CN109086213A (en) A kind of commercial vehicle network test management system and method based on distributed system
CN101765129A (en) Network access test system and method for data value-added service
CN113190286B (en) MES system, loading method, terminal and medium for dynamically and remotely loading functional plug-ins
CN112099803B (en) Incremental deployment method and system of ERP system
Cisco uOne Manager
CN112650815A (en) Method and device for synchronizing environmental data, storage medium and electronic device
CN109889574A (en) A kind of Expressway Mechanical & Electrical Project APP tool and mating web services end system
CN114817393B (en) Data extraction and cleaning method and device and storage medium

Legal Events

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