CN113704101B - Distributed system compatibility testing method based on gateway asynchronous replication - Google Patents
Distributed system compatibility testing method based on gateway asynchronous replication Download PDFInfo
- Publication number
- CN113704101B CN113704101B CN202110969809.5A CN202110969809A CN113704101B CN 113704101 B CN113704101 B CN 113704101B CN 202110969809 A CN202110969809 A CN 202110969809A CN 113704101 B CN113704101 B CN 113704101B
- Authority
- CN
- China
- Prior art keywords
- original
- message
- new
- gateway
- request message
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3676—Test management for coverage 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)
- Data Exchanges In Wide-Area Networks (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention relates to the technical field of a distributed system compatibility test method, in particular to a distributed system compatibility test method based on gateway asynchronous replication. The invention does not need to consider complex test scenes and case designs, the scene coverage is more comprehensive, a large amount of test and verification cost is saved, the coverage of transaction verification is fully ensured, the response message data structures and the service characteristics of the original system and the new system are compared by adopting a transaction message asynchronous copying method, the backward compatibility characteristic of the new system to the original system is analyzed, and the test effect is more ensured.
Description
Technical Field
The invention relates to the technical field of a distributed system compatibility test method, in particular to a distributed system compatibility test method based on gateway asynchronous replication.
Background
A distributed system is a loosely coupled system of hardware or software components distributed across different network computers that communicate and coordinate with each other solely by messaging. Typical distributed systems have the characteristics of distributed deployment, support of multiple paths of concurrency, unification of communication protocols and the like;
The gateway is a barrier designed for protecting internal services in the distributed system, is the only external entrance of the distributed system, encapsulates the internal architecture of the system, and enables all clients and consumers to access micro services through a unified gateway, and all non-business functions are processed by the gateway layer, so that developers of application services can conveniently and externally provide services without considering the problems of safety control, flow control, audit logs and the like, and the safety authentication, the flow control, the audit logs, the black-white list and the like are uniformly realized at the gateway layer;
Backward compatibility: the application using the old system or the old interface can normally run in the new system or interface environment;
in the process of implementing migration or replacement engineering operation of a large-scale distributed system, how to ensure backward compatibility of a new system after engineering implementation to all online interface functions of an original system (old system) is a key check point in engineering implementation process.
In the prior art, two modes of manually testing all functional scenes of an original system and verifying the interface functions of the original system by means of a third-party automatic testing tool are generally adopted:
1. all functional scenes of original system by adopting manual test
All business function scenes of the original system are manually and gradually executed by testers in a test environment of the new system, all activities are performed and whether each step is successfully completed is observed, and the method mainly comprises walking, examination and formal review;
2. Verification of original system interface functionality by means of a third-party automated test tool
Automated testing is a process that converts human-driven testing behavior into machine execution. After the test cases of the original system are designed and pass through the review, a tester executes the test step by step in a new system test environment according to the rules described in the test cases, and the actual result is compared with the expected result.
Both of the above methods have some drawbacks:
1. manual testing of all functional scenes of original system
The manual test can only verify whether the main functional scene meets the expected requirement from the man-machine interface level, and can not verify the message difference of the system interface level;
2. verifying shortcomings of original system interface functions by means of third-party automated test tools
The third-party automatic testing tool can only cover the designed test cases, and the full-scene case coverage is difficult to achieve in the aspect of interface testing.
Accordingly, one skilled in the art provides a distributed system compatibility testing method based on gateway asynchronous replication to solve the above-mentioned problems in the background art.
Disclosure of Invention
The invention aims to provide a distributed system compatibility testing method based on gateway asynchronous replication, which aims to solve the problems in the background technology.
In order to achieve the above purpose, the present invention provides the following technical solutions: a distributed system compatibility testing method based on gateway asynchronous replication includes: the method comprises the steps that an original system and a new system are connected, a response message data structure and service characteristics of the original system and the new system are compared by adopting a transaction message asynchronous copying method, and backward compatibility characteristics of the new system to the original system are analyzed;
original system: the system consists of an original system client, an original system gateway, an old line message center and an old line service layer;
the new system: the system consists of a virtual client, a new system gateway and a new line message center which are connected with each other by a new line service layer;
As a further aspect of the present invention: the original system client comprises a Web browser, an APP, a WeChat public number and a third party system.
As a further aspect of the present invention: the specific steps of the transaction message asynchronous replication are as follows:
S1: after receiving the request message, the original system gateway checks the configuration switch to judge whether the request message is copied, copies the original request message through an asynchronous thread after the request message passes the check and sends the original request message to an old line message center;
s2: after the original request message is controlled by the original system gateway, the original request message is normally forwarded to the old line service layer, after the response message of the old line service layer is received, the configuration switch is checked, after the check is passed, the original response message is copied by an asynchronous thread and is sent to the new line message center, and the request and response flow of the old line service layer are not affected by the process;
S3: after receiving the request message from the new line message center, the virtual client analyzes the message content and restores the original request message, simulates the original system client to send a virtual request to the new system gateway and receives a response result;
S4: after receiving the response message and the original response message from the new line message center, the virtual client compares the response message data structures and service characteristics of the original system and the new system, and analyzes the backward compatibility characteristic of the new system to the original system.
Compared with the prior art, the invention has the beneficial effects that: the invention does not need to consider complex test scenes and case designs, the scene coverage is more comprehensive, a large amount of test and verification cost is saved, the coverage of transaction verification is fully ensured, the response message data structures and the service characteristics of the original system and the new system are compared by adopting a transaction message asynchronous copying method, the backward compatibility characteristic of the new system to the original system is analyzed, and the test effect is more ensured.
Drawings
FIG. 1 is a schematic block diagram of a distributed system compatibility test method based on gateway asynchronous replication;
fig. 2 is a flow chart of a distributed system compatibility testing method based on gateway asynchronous replication.
Detailed Description
Referring to fig. 1 to 2, in an embodiment of the present invention, a distributed system compatibility testing method based on gateway asynchronous replication includes: the method comprises the steps that an original system is connected with a new system, a response message data structure and service characteristics of the original system and the new system are compared by adopting a transaction message asynchronous copying method, and backward compatibility characteristics of the new system to the original system are analyzed;
original system: the system consists of an original system client, an original system gateway, an old line message center and an old line service layer;
the new system: the system consists of a virtual client, a new system gateway and a new line message center which are connected with each other by a new line service layer;
Further, the original system client comprises a Web browser, an APP, a WeChat public number and a third party system.
Further, the specific steps of asynchronous copying of the transaction message are as follows:
S1: after receiving the request message, the original system gateway checks the configuration switch to judge whether the request message is copied, copies the original request message through an asynchronous thread after the request message passes the check and sends the original request message to an old line message center;
s2: after the original request message is controlled by the original system gateway, the original request message is normally forwarded to the old line service layer, after the response message of the old line service layer is received, the configuration switch is checked, after the check is passed, the original response message is copied by an asynchronous thread and is sent to the new line message center, and the request and response flow of the old line service layer are not affected by the process;
S3: after receiving the request message from the new line message center, the virtual client analyzes the message content and restores the original request message, simulates the original system client to send a virtual request to the new system gateway and receives a response result;
S4: after receiving the response message and the original response message from the new line message center, the virtual client compares the response message data structures and service characteristics of the original system and the new system, and analyzes the backward compatibility characteristic of the new system to the original system.
To sum up: the invention does not need to consider complex test scenes and case designs, the scene coverage is more comprehensive, a large amount of test and verification cost is saved, the coverage of transaction verification is fully ensured, the response message data structures and the service characteristics of the original system and the new system are compared by adopting a transaction message asynchronous copying method, the backward compatibility characteristic of the new system to the original system is analyzed, and the test effect is more ensured.
The foregoing description is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art, who is within the scope of the present invention, should make equivalent substitutions or modifications according to the technical solution of the present invention and the inventive concept thereof, and should be covered by the scope of the present invention.
Claims (2)
1. A distributed system compatibility testing method based on gateway asynchronous replication is characterized by comprising the following steps: the method comprises the steps that an original system and a new system are connected, a response message data structure and service characteristics of the original system and the new system are compared by adopting a transaction message asynchronous copying method, and backward compatibility characteristics of the new system to the original system are analyzed;
original system: the system consists of an original system client, an original system gateway, an old line message center and an old line service layer;
the new system: the system consists of a virtual client, a new system gateway and a new line message center which are connected with each other by a new line service layer;
The specific steps of the transaction message asynchronous replication are as follows:
S1: after receiving the request message, the original system gateway checks the configuration switch to judge whether the request message is copied, copies the original request message through an asynchronous thread after the request message passes the check and sends the original request message to an old line message center;
s2: after the original request message is controlled by the original system gateway, the original request message is normally forwarded to the old line service layer, after the response message of the old line service layer is received, the configuration switch is checked, after the check is passed, the original response message is copied by an asynchronous thread and is sent to the new line message center, and the request and response flow of the old line service layer are not affected by the process;
S3: after receiving the request message from the new line message center, the virtual client analyzes the message content and restores the original request message, simulates the original system client to send a virtual request to the new system gateway and receives a response result;
S4: after receiving the response message and the original response message from the new line message center, the virtual client compares the response message data structures and service characteristics of the original system and the new system, and analyzes the backward compatibility characteristic of the new system to the original system.
2. The method for testing the compatibility of the distributed system based on the gateway asynchronous replication according to claim 1, wherein the original system client comprises a Web browser, an APP, a WeChat public number and a third party system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110969809.5A CN113704101B (en) | 2021-08-23 | 2021-08-23 | Distributed system compatibility testing method based on gateway asynchronous replication |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110969809.5A CN113704101B (en) | 2021-08-23 | 2021-08-23 | Distributed system compatibility testing method based on gateway asynchronous replication |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113704101A CN113704101A (en) | 2021-11-26 |
| CN113704101B true CN113704101B (en) | 2024-06-14 |
Family
ID=78654179
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110969809.5A Active CN113704101B (en) | 2021-08-23 | 2021-08-23 | Distributed system compatibility testing method based on gateway asynchronous replication |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113704101B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114936137A (en) * | 2022-03-14 | 2022-08-23 | 中国人寿保险股份有限公司 | Production environment performance test method and system |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9430228B2 (en) * | 2013-12-16 | 2016-08-30 | International Business Machines Corporation | Verification of backward compatibility of software components |
| US9892024B2 (en) * | 2015-11-02 | 2018-02-13 | Sony Interactive Entertainment America Llc | Backward compatibility testing of software in a mode that disrupts timing |
| CN108628728B (en) * | 2017-03-15 | 2021-07-16 | 华为技术有限公司 | Detection method and device |
| CN107229566B (en) * | 2017-06-07 | 2020-04-07 | 携程旅游网络技术(上海)有限公司 | Method and system for maintaining functional consistency of SOA service conversion language |
| CN109918061B (en) * | 2019-02-13 | 2022-06-14 | 福建星网智慧软件有限公司 | Cross-platform interface middleware implementation method and device based on android system |
| CN110601983A (en) * | 2019-10-15 | 2019-12-20 | 南京信息职业技术学院 | Method and system for forwarding routing without sensing source of protocol |
| CN112148591A (en) * | 2020-08-28 | 2020-12-29 | 南京轩世琪源软件科技有限公司 | Office software compatibility test system and method |
| CN112130952A (en) * | 2020-09-30 | 2020-12-25 | 腾讯科技(深圳)有限公司 | Multilingual display method, device, equipment and product |
| CN113110995B (en) * | 2021-04-19 | 2024-06-21 | 中国工商银行股份有限公司 | System migration testing method and device |
-
2021
- 2021-08-23 CN CN202110969809.5A patent/CN113704101B/en active Active
Non-Patent Citations (2)
| Title |
|---|
| Backward Compatible Connectors for Next Generation PCIe Electrical I/O;Lei Shan等;《2018 IEEE 68th Electronic Components and Technology Conference (ECTC)》;第1798 - 1804页 * |
| 基于docker的多电商综合推荐的设计与实现;孙聪;《cnki优秀硕士学位论文全文库 信息科技辑》(第10期);第I138-958页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113704101A (en) | 2021-11-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111092786B (en) | Network equipment safety authentication service reliability enhancing system | |
| CN110119350A (en) | Software Development Kit test method, device and equipment and computer storage medium | |
| Bass et al. | Eliciting operations requirements for applications | |
| CN111404736A (en) | API gateway-based government and enterprise service application integration method and gateway monitoring platform | |
| CN113590440A (en) | Pressure testing method, device, equipment and medium for bank core system | |
| CN113704101B (en) | Distributed system compatibility testing method based on gateway asynchronous replication | |
| CN119149422A (en) | Micro-service chaos test method and device based on Istio and link tracking | |
| CN105975333B (en) | The method and device of application program operation control | |
| Banerjee et al. | Leveraging architectural models to inject trust into software systems | |
| CN111737130B (en) | Public cloud multi-tenant authentication service testing method, device, equipment and storage medium | |
| CN111552610A (en) | Full link monitoring method and device | |
| CN108366040B (en) | Programmable firewall logic code detection method and device and electronic equipment | |
| Lovrek et al. | Improving software maintenance by using agent-based remote maintenance shell | |
| CN105930273A (en) | Mobile application automation security testing platform | |
| CN117290255A (en) | Batch interface performance test method based on Python and Locut frameworks | |
| CN110032879B (en) | User behavior security authentication and log audit method and system | |
| CN116795689A (en) | Method and device for testing tool kit, computer equipment and storage medium | |
| CN111385249B (en) | A Vulnerability Detection Method | |
| CN115390861A (en) | Resource deployment method, device and equipment and storage medium | |
| Logean et al. | On applying formal techniques to the development of hybrid services: Challenges and directions | |
| CN113094689B (en) | Configuration-based single sign-on method and system in government affair system | |
| CN119938532A (en) | A method for integrating WeChat applet with third-party system | |
| Babenko et al. | Modeling replay and integrity violations attacks for cryptographic protocols source codes verification of e-voting system based on blind intermediaries | |
| CN109067956B (en) | Method and device for detecting terminal for police system and police system | |
| Simser et al. | Supervision of real-time software systems using optimistic path prediction and rollbacks |
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 | ||
| CB03 | Change of inventor or designer information |
Inventor after: Chen Bichao Inventor after: Chen Zipei Inventor after: Wang Yi Inventor before: Chen Dianyin Inventor before: Zhang Dequan |
|
| CB03 | Change of inventor or designer information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |