CN111176970A - Block chain test architecture and system - Google Patents
Block chain test architecture and system Download PDFInfo
- Publication number
- CN111176970A CN111176970A CN201811334068.8A CN201811334068A CN111176970A CN 111176970 A CN111176970 A CN 111176970A CN 201811334068 A CN201811334068 A CN 201811334068A CN 111176970 A CN111176970 A CN 111176970A
- Authority
- CN
- China
- Prior art keywords
- test
- blockchain
- block chain
- architecture
- component
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 151
- 238000012795 verification Methods 0.000 claims abstract description 21
- 230000006870 function Effects 0.000 claims abstract description 9
- 238000011056 performance test Methods 0.000 claims abstract description 3
- 238000011076 safety test Methods 0.000 claims abstract description 3
- 238000000034 method Methods 0.000 claims description 15
- 238000013515 script Methods 0.000 claims description 14
- 238000005516 engineering process Methods 0.000 claims description 5
- 238000007418 data mining Methods 0.000 claims description 4
- 238000013135 deep learning Methods 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 claims description 2
- 229940004975 interceptor Drugs 0.000 claims description 2
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a block chain test architecture and a system, wherein the block chain test architecture comprises: the block chain test interceptor comprises three parts, namely a block chain test actuator, a block chain test interceptor and a block chain test factory; the block chain test enabler receives the test tasks from the test factory and executes the test tasks, and sends the test results to the test factory. And the block chain test interceptor captures network data, analyzes and assembles the data and sends the data to a test factory. The test factory can analyze or diagnose the test results. The blockchain test enabler is deployed in each blockchain verification node, and the blockchain test interceptor is deployed on a network where the blockchain verification nodes are located. The invention can carry out various functions, performance and safety tests on the block chain system and the block chain application.
Description
Technical Field
The present invention relates to the field of block chain testing, and in particular, to a block chain testing architecture and system.
Background
In recent years, the blockchain test technology has not kept pace with the development of the blockchain technology, and the blockchain test is greatly different from the traditional software test, such as the test between nodes of the blockchain, the byzantine fault and the like, so that the traditional software test tool or method cannot be used for the blockchain test. The development cost of the blockchain is high, and a new testing system or method is urgently needed for the blockchain testing.
Disclosure of Invention
In view of the above, the present invention provides a block chain test architecture and system to solve the problem of current block chain test.
The method is characterized in that: as shown in fig. 1, comprises the following components:
(1) the block chain Test Agent is deployed in each block chain verification node and used for verifying all stage consistent functions of block chain consensus, including encryption, decryption and verification, and sending a result of collection Test to a block chain Test factory.
(2) The block chain Test Interceptor is deployed on a network where the block chain verification node is located, and one or more block chain Test interceptors may be provided on one block chain network. The block chain test interceptor supports various network transmission protocols, can capture all messages sent and received instantly between verification nodes, analyzes and assembles the captured messages, and sends the assembled data to a test factory.
(3) The block chain Test Factory (Blockchain Test Factory) comprises a Test script library, a Test controller, a Test executor and a Test result evaluator. The system and the method can perform various functions, performance and safety tests on the blockchain system and blockchain application and receive test results from the test enabler and the test interceptor.
For component (1), a blockchain test enabler is deployed in each blockchain verification node, which may be one or more blockchain test enablers in each blockchain verification node. The blockchain test handler verifies all phase consensus functions of blockchain consensus, verifies phases specified by the blockchain consensus protocol, and verifies whether each phase conforms to the consensus protocol.
For component (2), the blockchain test interceptor is deployed on the network where the blockchain validation node is located, and there may be one or more blockchain test interceptors on the blockchain network.
For component (3), the test factory may automatically generate test data and test scripts according to various blockchain test strategies, such as model checking and automated interfacing or manual addition to a test database. The test executor is capable of providing test data or test scripts to a test target for testing and collecting test results for comparison with expected results. The test controller may analyze the test fault signature based on data mining or deep learning techniques based on the test results. The test script library can provide operations of storing, modifying, inquiring, deleting and the like of the test script. The test result evaluator can evaluate and analyze the test result.
The core process of the system is shown in fig. 1. Comprises the following steps:
(1) the test factory can automatically generate test data and test scripts according to various block chain test strategies;
(2) the test executor can provide test data or test scripts to a test target for testing;
(3) the block chain test actuator verifies all stage consistency functions of block chain consensus, encrypts, decrypts and verifies block chain verification node consensus data, verifies stages specified by a block chain consensus protocol and verifies whether each stage meets the consensus protocol, and sends a result of collection test to a block chain test factory;
(4) the block chain test interceptor is deployed on a network where block chain verification nodes are located and used for capturing all messages sent and received instantly between the verification nodes and sending the captured messages to a test factory;
(5) the test controller collects data from the blockchain test enabler and the blockchain test interceptor;
(6) the test controller analyzes the test fault characteristics based on data mining or deep learning technology according to the test result;
(7) the test result evaluator can evaluate and analyze the test result.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Some specific embodiments of the invention will be described in detail hereinafter, by way of illustration and not limitation, with reference to the accompanying drawings; in the drawings, the same reference numerals designate the same or similar parts or portions; those skilled in the art will appreciate that the drawings are not necessarily drawn to scale; the objects and features of the present invention will become more apparent in view of the following description taken in conjunction with the accompanying drawings; in the drawings, there is shown in the drawings,
FIG. 1 is a schematic diagram of the system architecture of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following respectively describes the embodiments of the present invention, and the specific processes are as follows:
the process S1: the test factory a may automatically generate test data and test scripts according to various blockchain test strategies B.
The process S2: the test executor is capable of providing test data or test scripts to the test target for testing.
The process S3: the blockchain test actuator C verifies all stage consistency functions of blockchain consensus, encrypts, decrypts and verifies blockchain verification node consensus data, verifies stages specified by a blockchain consensus protocol and verifies whether each stage meets the consensus protocol, and sends a collection test result to a blockchain test center A.
The process S4: the block chain test interceptor D interceptor is deployed on a network where the block chain verification nodes are located, and is used for capturing all messages instantly sent and received between the verification nodes and sending the captured sent and received messages to a test factory.
The process S5: the test controller collects data from the blockchain test enabler and the blockchain test interceptor.
The process S6: and the test controller analyzes the test fault characteristics based on a data mining or deep learning technology according to the test result.
The process S7: the test result evaluator can evaluate and analyze the test result.
Claims (11)
1. A block chain test architecture and system, comprising the following components:
(1) the block chain testing Agent is deployed in each block chain verification node and used for verifying all stage consistent functions of block chain consensus, including encryption, decryption and verification, and sending a result of collection testing to a block chain testing factory;
(2) the block chain Test Interceptor is deployed on a network where block chain verification nodes are located and used for capturing all messages sent and received instantly between the verification nodes, analyzing and assembling the captured messages and sending the assembled data to a Test factory;
(3) a Blockchain Test factory (BC Layer Test Center) that includes a Test script library, a Test controller, a Test executor, and a Test result evaluator.
2. The system and the method can perform various functions, performance and safety tests on the blockchain system and blockchain application and receive test results from the test enabler and the test interceptor.
3. The architecture and system of claim 1, wherein: the blockchain test enablers in the component (1) are deployed in each blockchain verification node, and there may be one or more blockchain test enablers in each blockchain verification node.
4. The architecture and system of claim 1, wherein: the blockchain test enabler in the component (1) verifies the phases specified by the blockchain consensus protocol and verifies whether each phase conforms to the consensus protocol.
5. The architecture and system of claim 1, wherein: the blockchain test interceptor in the component (2) is deployed on a network where the blockchain verification node is located, and one or more blockchain test interceptors may be located on one blockchain network.
6. The architecture and system of claim 1, wherein: the block chain test interceptor in the component (2) supports various network transmission protocols and has the functions of intercepting, analyzing, assembling and the like network data.
7. The architecture and system of claim 1, wherein: the test factory in component (3) may automatically generate test data and test scripts according to various blockchain test strategies, such as model checking and automated interfacing or manual addition to a test database.
8. The architecture and system of claim 1, wherein: the test executor in the component (3) can provide test data or test scripts to a test target for testing, and collect test results and compare the test results with expected results.
9. The architecture and system of claim 1, wherein: the test controller in the component (3) can analyze the test fault characteristics based on data mining or deep learning technology according to the test result.
10. The architecture and system of claim 1, wherein: the test script library in the component (3) can provide operations of storing, modifying, inquiring, deleting and the like of the test script.
11. The architecture and system of claim 1, wherein: the test result evaluator in the component (3) can evaluate and analyze the test result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811334068.8A CN111176970A (en) | 2018-11-09 | 2018-11-09 | Block chain test architecture and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811334068.8A CN111176970A (en) | 2018-11-09 | 2018-11-09 | Block chain test architecture and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111176970A true CN111176970A (en) | 2020-05-19 |
Family
ID=70649888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811334068.8A Pending CN111176970A (en) | 2018-11-09 | 2018-11-09 | Block chain test architecture and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111176970A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486830A (en) * | 2020-06-24 | 2021-03-12 | 支付宝(杭州)信息技术有限公司 | Pressure testing method, device and system for block chain network |
CN114051027A (en) * | 2021-11-09 | 2022-02-15 | 中国联合网络通信集团有限公司 | Acquisition method of test instrument, protocol conversion node and instrument demand node |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4387423A (en) * | 1979-02-16 | 1983-06-07 | Honeywell Information Systems Inc. | Microprogrammed system having single microstep apparatus |
AU2017100426A4 (en) * | 2017-04-18 | 2017-06-15 | McAlister, Gary MR | New Islamic Banking Sharia Compliant Blockchain Innovation Patent that has no riba, usury or interest component for but not limited to savings, deposit, ethical loans, finance, stock share bond, Private Placement Programs, Digitally discover new mine deposits to franchise & new monetary system using blockchains POS proof of stake/secondary mining mine discovery process of assets and commodities for entities such as but not limited to Governments, treasuries, central banks, banks, financial institutions, monetary funds, judicial entities, profit-sharing blockchain franchise investments PSBFI's. |
AU2018100503A4 (en) * | 2018-04-10 | 2018-06-07 | Black Gold Coin, Inc. | Split data/split storage |
US20180225194A1 (en) * | 2016-05-16 | 2018-08-09 | Jpmorgan Chase Bank, N.A. | Method and system for implementing an automation software testing and packaging framework with entitlements |
WO2018157940A1 (en) * | 2017-03-03 | 2018-09-07 | Innogy Innovation Gmbh | Electric grid control system based on peer-to-peer network |
CN108647361A (en) * | 2018-05-21 | 2018-10-12 | 中国工商银行股份有限公司 | A kind of date storage method, apparatus and system based on block chain |
CN108763058A (en) * | 2018-04-24 | 2018-11-06 | 苏州同济区块链研究院有限公司 | A kind of block chain evaluation system |
CN111181797A (en) * | 2018-11-09 | 2020-05-19 | 北京天德科技有限公司 | Dynamic verification method and system for block chain consensus mechanism |
CN111181796A (en) * | 2018-11-09 | 2020-05-19 | 北京天德科技有限公司 | Block chain consensus protocol testing method and system based on enabler |
-
2018
- 2018-11-09 CN CN201811334068.8A patent/CN111176970A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4387423A (en) * | 1979-02-16 | 1983-06-07 | Honeywell Information Systems Inc. | Microprogrammed system having single microstep apparatus |
US20180225194A1 (en) * | 2016-05-16 | 2018-08-09 | Jpmorgan Chase Bank, N.A. | Method and system for implementing an automation software testing and packaging framework with entitlements |
WO2018157940A1 (en) * | 2017-03-03 | 2018-09-07 | Innogy Innovation Gmbh | Electric grid control system based on peer-to-peer network |
AU2017100426A4 (en) * | 2017-04-18 | 2017-06-15 | McAlister, Gary MR | New Islamic Banking Sharia Compliant Blockchain Innovation Patent that has no riba, usury or interest component for but not limited to savings, deposit, ethical loans, finance, stock share bond, Private Placement Programs, Digitally discover new mine deposits to franchise & new monetary system using blockchains POS proof of stake/secondary mining mine discovery process of assets and commodities for entities such as but not limited to Governments, treasuries, central banks, banks, financial institutions, monetary funds, judicial entities, profit-sharing blockchain franchise investments PSBFI's. |
AU2018100503A4 (en) * | 2018-04-10 | 2018-06-07 | Black Gold Coin, Inc. | Split data/split storage |
CN108763058A (en) * | 2018-04-24 | 2018-11-06 | 苏州同济区块链研究院有限公司 | A kind of block chain evaluation system |
CN108647361A (en) * | 2018-05-21 | 2018-10-12 | 中国工商银行股份有限公司 | A kind of date storage method, apparatus and system based on block chain |
CN111181797A (en) * | 2018-11-09 | 2020-05-19 | 北京天德科技有限公司 | Dynamic verification method and system for block chain consensus mechanism |
CN111181796A (en) * | 2018-11-09 | 2020-05-19 | 北京天德科技有限公司 | Block chain consensus protocol testing method and system based on enabler |
Non-Patent Citations (7)
Title |
---|
LUCIANNA KIFFER等: "A Better Method to Analyze Blockchain Consistency", 《CCS \'18: PROCEEDINGS OF THE 2018 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY》, 15 October 2018 (2018-10-15), pages 729, XP058701218, DOI: 10.1145/3243734.3243814 * |
MANOK: "基于区块链技术的性能测试", pages 1 - 7, Retrieved from the Internet <URL:https://blog.csdn.net/manok/article/details/82084852> * |
付凯等: "区块链面临六大安全问题 安全测试方案研究迫在眉睫", 《通信世界》, no. 28, 15 October 2018 (2018-10-15), pages 45 - 46 * |
李康震等: "区块链技术在侦查领域中的应用研究", 《信息资源管理学报》, no. 03, 30 July 2018 (2018-07-30), pages 81 - 92 * |
熊维祥: "基于区块链技术的学分认证系统研究", 《中国优秀硕士学位论文全文数据库(信息科技辑)》, no. 10, 15 October 2018 (2018-10-15), pages 138 - 386 * |
笔名辉哥: "如何做区块链项目测试?", pages 1 - 8, Retrieved from the Internet <URL:https://www.jianshu.com/p/5ccc1198dcfe> * |
韩璇等: "区块链技术中的共识机制研究", 《纺织学报》, no. 09, 30 September 2017 (2017-09-30), pages 147 - 152 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486830A (en) * | 2020-06-24 | 2021-03-12 | 支付宝(杭州)信息技术有限公司 | Pressure testing method, device and system for block chain network |
CN114051027A (en) * | 2021-11-09 | 2022-02-15 | 中国联合网络通信集团有限公司 | Acquisition method of test instrument, protocol conversion node and instrument demand node |
CN114051027B (en) * | 2021-11-09 | 2023-04-18 | 中国联合网络通信集团有限公司 | Acquisition method of test instrument, protocol conversion node and instrument demand node |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9122671B2 (en) | System and method for grammar based test planning | |
Voyiatzis et al. | A modbus/tcp fuzzer for testing internetworked industrial systems | |
US9654490B2 (en) | System and method for fuzzing network application program | |
US11262722B2 (en) | Monitoring and controlling unit for use in an autonomous system with self-x properties | |
CN110750458A (en) | Big data platform testing method and device, readable storage medium and electronic equipment | |
US20130322266A1 (en) | Network traffic monitoring | |
CN107947972B (en) | Detection method and detection device for sensing abnormal operation state of node | |
WO2018006702A1 (en) | Abnormality processing method, apparatus and system in automation test | |
CN111176970A (en) | Block chain test architecture and system | |
CN111290958A (en) | Method and device for debugging intelligent contract | |
US20080195752A1 (en) | Module diagnostic toolkit for client-server based protocols | |
CN110990289B (en) | Method and device for automatically submitting bug, electronic equipment and storage medium | |
CN111181796B (en) | Block chain consensus protocol testing method and system based on enabler | |
US11567489B2 (en) | Method and device for efficient fault analysis through simulated faults in a digital twin | |
CN109962823B (en) | Automatic testing system and method for network application scene | |
CN116097226A (en) | Apparatus and method for injecting faults into a distributed system | |
CN116383025A (en) | Performance test method, device, equipment and medium based on Jmeter | |
CN111181797B (en) | Block chain consensus mechanism verification method based on interceptor | |
Du et al. | High availability verification framework for OpenStack based on fault injection | |
CN113342650A (en) | Chaos engineering method and device for distributed system | |
Toll et al. | IoTreeplay: Synchronous Distributed Traffic Replay in IoT Environments | |
Moldovan et al. | A platform for run-time health verification of elastic cyber-physical systems | |
CN115065612B (en) | Testing method and device for full-link pressure measurement transformation | |
CN111800296B (en) | Method, system, equipment and storage medium for capturing and analyzing network data of real-time system | |
Berriri et al. | Extended finite state machine based test generation for an OpenFlow switch |
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 |