CN111090587A - Method, device and equipment for testing production point service and storage medium - Google Patents

Method, device and equipment for testing production point service and storage medium Download PDF

Info

Publication number
CN111090587A
CN111090587A CN201911268206.1A CN201911268206A CN111090587A CN 111090587 A CN111090587 A CN 111090587A CN 201911268206 A CN201911268206 A CN 201911268206A CN 111090587 A CN111090587 A CN 111090587A
Authority
CN
China
Prior art keywords
service
point
isolation
environment
production
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
CN201911268206.1A
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.)
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN201911268206.1A priority Critical patent/CN111090587A/en
Publication of CN111090587A publication Critical patent/CN111090587A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method, a device, equipment and a storage medium for testing a production point service, and relates to the technical field of development and testing. According to the invention, by receiving the transaction message sent by the client corresponding to the production point, determining the target isolation group corresponding to the production point in the preset isolation environment according to the identification information in the transaction message, and then forwarding the transaction message according to the test environment indicated by the target isolation group, the transaction flow of the test environment can be introduced from various channels of different production points, and development and test work can be carried out in parallel according to the plans of different production points. The test environment indicated by the target isolation group comprises a first service assembly and a second service assembly, the second service assembly is a virtual service assembly generated according to the identification information, and the virtual service assembly points to corresponding services in a preset public basic environment, so that the construction cost of the test environment can be effectively reduced.

Description

Method, device and equipment for testing production point service and storage medium
Technical Field
The invention relates to the technical field of development and testing, in particular to a method, a device, equipment and a storage medium for testing a production point service.
Background
The large distributed system service generally comprises Web application, middleware, a database and a plurality of background business systems, and a set of operable full-link pipeline environment forms an ecosystem. In large-scale distributed system service, one set of test environment can only reluctantly ensure that a medium and small-scale system is developed, tested and put into production according to a normal delivery life cycle, but the system is difficult to have the capability of constructing and supporting parallel development, testing and putting into production of multiple putting-into-production points under the condition of low resource cost and management cost, and cannot meet the requirement of quick iteration and quick putting-into-production.
In the prior art, generally, a plurality of sets of full-link pipeline environments are established, each set of pipeline independently bears test tasks of different production points, and each environment is orderly used according to different stages of development, assembly, application assembly, user acceptance and the like, so as to solve the problem of parallel multi-test tasks.
However, in the method for solving the problem of the parallelism of multiple test tasks by establishing multiple sets of full-link pipeline environments, one full-link pipeline environment needs to be added every time one parallel test production point is added, and the whole of the equipment cost, the operation and maintenance cost and the management cost which need to be borne is linearly increased on the premise that the complexity of the system is not changed, so that the construction cost of the test environment is high.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for testing a production point service, which can realize that the transaction flow of a test environment can be introduced from various channels of different production points and can carry out development and test work in parallel according to the plans of the different production points.
In a first aspect, an embodiment of the present invention provides a method for testing a service of a production point, where the method includes:
receiving a transaction message sent by a client corresponding to a production point, wherein the transaction message comprises identification information corresponding to the production point, and the identification information is used for indicating an isolation group corresponding to the production point corresponding to the identification information in a preset isolation environment; the system comprises an isolation environment, a test environment and a control system, wherein a plurality of isolation groups which correspond to different production points one by one are preset in the isolation environment, and each isolation group is used for indicating the test environment of the corresponding production point; the test environment comprises a first service assembly and a second service assembly, the second service assembly is a virtual service assembly generated according to the identification information, and the virtual service assembly points to corresponding services in a preset public basic environment; determining a target isolation group corresponding to a production point in a preset isolation environment according to the identification information in the transaction message; and forwarding the transaction message according to the test environment indicated by the target isolation group.
Optionally, the identification information is a global tracking number, and determining a target isolation group corresponding to the production point in a preset isolation environment according to the identification information in the transaction message includes: determining corresponding production point information according to the global tracking number in the transaction message; and determining a target isolation group corresponding to the production point in a preset isolation environment according to the production point information.
Optionally, before receiving the transaction message sent by the client corresponding to the commissioning point, the method further includes: respectively constructing a public basic environment and an isolation environment formed by a plurality of isolation groups.
Optionally, the constructing an isolation environment composed of a plurality of isolation groups includes: determining a first service assembly and a second service assembly corresponding to each production point according to service test requirements corresponding to each production point; generating an isolation group corresponding to each production point according to the first service assembly and the second service assembly corresponding to each production point; and generating an isolation environment according to the isolation group corresponding to each production point.
Optionally, the global tracking number is a combined code of application node information, time information, and a serial number corresponding to the transaction packet.
Optionally, the method further comprises: and recording message information of the transaction messages sent by the client corresponding to each production point.
Optionally, the method further comprises: and collecting the transaction messages corresponding to the production points according to different production points.
In a second aspect, an embodiment of the present invention provides a device for testing a service of a production site, where the device includes:
the receiving module is used for receiving a transaction message sent by a client corresponding to a production point, wherein the transaction message comprises identification information corresponding to the production point, and the identification information is used for indicating an isolation group corresponding to the production point corresponding to the identification information in a preset isolation environment; the system comprises an isolation environment, a test environment and a control system, wherein a plurality of isolation groups which correspond to different production points one by one are preset in the isolation environment, and each isolation group is used for indicating the test environment of the corresponding production point; the test environment comprises a first service assembly and a second service assembly, the second service assembly is a virtual service assembly generated according to the identification information, and the virtual service assembly points to corresponding services in a preset public basic environment; the determining module is used for determining a target isolation group corresponding to the production point in a preset isolation environment according to the identification information in the transaction message; and the forwarding module is used for forwarding the transaction message according to the test environment indicated by the target isolation group.
Optionally, the identification information is a global tracking number, and the determining module includes: the first determining submodule is used for determining corresponding production point information according to the global tracking number in the transaction message; and the second determining submodule is used for determining a target isolation group corresponding to the production point in a preset isolation environment according to the production point information.
Optionally, the apparatus further comprises: and the construction module is used for respectively constructing a public basic environment and an isolation environment formed by a plurality of isolation groups before the receiving module receives the transaction message sent by the client corresponding to the production point.
Optionally, the building module is specifically configured to determine, according to a service test requirement corresponding to each commissioning point, a first service component and a second service component corresponding to each commissioning point; generating an isolation group corresponding to each production point according to the first service assembly and the second service assembly corresponding to each production point; and generating an isolation environment according to the isolation group corresponding to each production point.
Optionally, the global tracking number is a combined code of application node information, time information, and a serial number corresponding to the transaction packet.
Optionally, the apparatus further comprises: and the recording module is used for recording the message information of the transaction message sent by the client corresponding to each production point.
Optionally, the apparatus further comprises: and the acquisition module is used for acquiring the transaction messages corresponding to the production points according to different production points.
In a third aspect, an embodiment of the present invention provides a production point service test device, including: the system comprises a processor, a storage medium and a bus, wherein the storage medium stores machine readable instructions executable by the processor, when the production point service test device runs, the processor and the storage medium communicate through the bus, and the processor executes the machine readable instructions to execute the production point service test method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, where the storage medium stores a computer program, and the computer program is executed by a processor to perform the production point service testing method according to the first aspect.
The invention has the beneficial effects that:
according to the embodiment of the invention, by receiving the transaction message sent by the client corresponding to the production point, determining the target isolation group corresponding to the production point in the preset isolation environment according to the identification information in the transaction message, and then forwarding the transaction message according to the test environment indicated by the target isolation group, the transaction flow of the test environment can be introduced from various channels of different production points, and development and test work can be carried out in parallel according to the plans of different production points. The test environment indicated by the target isolation group comprises a first service assembly and a second service assembly, the second service assembly is a virtual service assembly generated according to the identification information, and the virtual service assembly points to corresponding services in a preset public basic environment, so that compared with a multi-test task parallel mode in which a full-link pipeline environment needs to be added every time a parallel test production point is added in the prior art, the method and the device have the advantages that the equipment cost, the operation and maintenance cost and the management cost are lower, and the construction cost of the test environment is effectively reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flow chart illustrating a method for testing a service of a production point according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a testing environment provided by an embodiment of the invention;
FIG. 3 is a schematic flow chart of a method for testing a point of delivery service according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a transaction packet forwarding scheme according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating an isolation gateway according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a client according to an embodiment of the present invention;
fig. 7 is a message format diagram of a transaction message according to an embodiment of the present invention;
FIG. 8 is a schematic flow chart of a method for testing a point of delivery service according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a production site service test apparatus according to an embodiment of the present invention;
FIG. 10 is a schematic structural diagram of a determination module provided in an embodiment of the present invention;
FIG. 11 is a schematic structural diagram of a production site service test apparatus according to an embodiment of the present invention;
FIG. 12 is a schematic structural diagram of a production site service test apparatus according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram illustrating a production site service test apparatus according to an embodiment of the present invention;
fig. 14 shows a schematic structural diagram of a production point service test device provided by an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. In the description of the present invention, it should also be noted that the terms "first", "second", "third", and the like are used for distinguishing the description, and are not intended to indicate or imply relative importance.
The embodiment of the invention provides a method for testing the service of a production point, which can realize that the transaction flow of a test environment can be introduced from various channels of different production points, and development and test work can be carried out in parallel according to the plans of different production points. The execution subject of the method may be a server, e.g., a data server in a large distributed system.
Fig. 1 is a schematic flow chart of a method for testing a service of a production point according to an embodiment of the present invention, and as shown in fig. 1, the method for testing a service of a production point may include:
s101, receiving a transaction message sent by a client corresponding to a production point.
The client can be a computer and can access services of different production points according to different requirements of users. The transaction message sent by the client may include identification information corresponding to the commissioning point, and the identification information may be used to indicate an isolation group corresponding to the commissioning point corresponding to the identification information in a preset isolation environment.
Optionally, a plurality of isolation groups corresponding to different production points one to one may be preset in the isolation environment, and each isolation group may be used to indicate a test environment of a corresponding production point. For example, the test environment may be a development environment, an application assembly test environment, a user acceptance test environment, a version verification test environment, a non-functional test environment, and the like, which is not limited by the present invention. The test environment can comprise a first service component and a second service component; the first service component may refer to a specific service component that the current user wants to test; the second service component may be a virtual service component generated according to the identification information, and the virtual service component points to a corresponding service in a preset public base environment. Where the common base environment may be a set of full link pipeline environments that typically run a relatively stable version of the service, for example, may be a version of the service as currently produced.
That is, in the embodiment of the present invention, the isolation environment may be a virtual environment, and may include a plurality of isolation groups according to different production points, and each isolation group may generate an independent and complete set of test environments for its corresponding production point. In the test environment generated by each isolation group, the first service component is a specific service component which the current user wants to test, and the second service component is a virtual service component generated according to the identification information and points to a corresponding service in the public basic environment.
Fig. 2 is a schematic diagram of a test environment provided by an embodiment of the present invention, and as shown in fig. 2, a test environment of a production point corresponding to a certain isolated group in an isolated environment is taken as an example: the common basic environment can be a set of full-link pipeline environment formed by A, B, C, D four service components in sequence; the test environment corresponding to the isolated group may be sequentially composed of four service components a1, B1, C1, and D1, where a1, B1, and D1 are specific service components that a current user wants to test, i.e., the first service component, and C1 is a virtual service component generated according to the identification information, i.e., the second service component, which may point to a service corresponding to the service component C in the common basic environment.
Optionally, before receiving a transaction message sent by a client corresponding to a commissioning point, the commissioning point service testing method may further include: respectively constructing a public basic environment and an isolation environment formed by a plurality of isolation groups.
Fig. 3 is another schematic flow chart of a method for testing a service of a production point according to an embodiment of the present invention.
Optionally, as shown in fig. 3, the step of constructing an isolation environment formed by a plurality of isolation groups may specifically include:
s301, determining a first service assembly and a second service assembly corresponding to each production point according to service test requirements corresponding to each production point.
S302, generating an isolation group corresponding to each production point according to the first service assembly and the second service assembly corresponding to each production point.
And S303, generating an isolation environment according to the isolation group corresponding to each production point.
It should be noted that the service that the second service component can provide is a default background service provided by the public base environment; and the background service address and the port information corresponding to the first service component can be manually maintained, namely, the first service component can be updated in time according to the test requirement.
After receiving the transaction message sent by the client corresponding to the commissioning point in the step S101, the following step S102 may be executed:
s102, determining a target isolation group corresponding to the production point in a preset isolation environment according to the identification information in the transaction message.
As described above, the transaction message may include identification information corresponding to the commissioning point, and the identification information may be used to indicate an isolation group corresponding to the commissioning point corresponding to the identification information in a preset isolation environment, so that matching may be performed in multiple isolation groups in the isolation environment according to the identification information in the transaction message, and a target isolation group corresponding to the identification information is determined, so that the target isolation group corresponding to the commissioning point may be determined.
S103, forwarding the transaction message according to the test environment indicated by the target isolation group.
Taking the test environment corresponding to the commissioning point shown in fig. 2 as an example, after receiving the transaction message sent by the client corresponding to the commissioning point and determining that the test environment corresponding to the commissioning point is sequentially composed of four service components, i.e., a1, B1, C1(C1 is a virtual service component generated according to the identification information and points to a service corresponding to the service component C in the public basic environment), and D1, the process of forwarding the transaction message may be: and in the isolation environment, the transaction messages are sequentially forwarded according to the sequence of A1, B1, C1 and D1 for service testing, and when entering a virtual service component C1, the service component C in the public basic environment can be called to perform corresponding service testing.
The following describes a method for testing a production point service according to an embodiment of the present invention in a specific implementation manner:
a multi-commissioning point component management platform may be established for recording the basic information of the common basic environment and the basic information of the isolated environment, respectively. The common base environment is a set of full-link pipeline environments, and generally runs a relatively stable service version, such as a service version on current production. The isolated environment is a virtual environment, and may include a plurality of isolated groups according to different production points, and each isolated group may generate an independent and complete test environment for its corresponding production point, but actually, except for a specific service component that a current user wants to test, other service components may be virtually generated according to identification information of a transaction message and point to a service corresponding to a public basic environment.
In a public basic environment and an isolation environment, transaction messages sent by all service components can be forwarded through an isolation gateway, the isolation gateway can identify information to judge corresponding production points and acquire a target isolation group corresponding to the production points from the isolation environment, so that a test environment corresponding to the production points is known, and the transaction messages can be accurately forwarded. Therefore, when the service test of the production points is carried out, the transaction flow of the test environment is only required to be introduced into the isolation gateway from various channels representing different production points, and the isolation gateway constructs a plurality of full-link logic pipelines respectively corresponding to different production points according to the forwarding mode of the transaction message based on the isolation group, so that the parallel service test of the multiple production points can be realized.
Fig. 4 shows a schematic diagram of transaction packet forwarding according to an embodiment of the present invention.
As shown in fig. 4, for the transaction message 1 corresponding to the commissioning point 1, the test environment indicated by the isolated group 1 acquired from the multi-commissioning-point component management platform may be sequentially composed of service components a1, B1, and C, D, E, F, where a1 and B1 are specific service components that the current user wants to test, and C, D, E, F is a virtual service component pointing to a service corresponding to the common basic environment. For the transaction packet 2 corresponding to the commissioning point 2, the test environment indicated by the isolated group 2 acquired from the multi-commissioning-point component management platform may be sequentially composed of service components A, B2 and C, D, E, F, where B2 is a specific service component that the current user wants to test, and A, C, D, E, F is a virtual service component and points to a service corresponding to the common basic environment. For the transaction message 3 corresponding to the commissioning point 3, the test environment indicated by the isolated group 3 acquired from the multi-commissioning point component management platform may be sequentially composed of the service components A, B, C3, D3, and E, F, where C3 and D3 are specific service components that the current user wants to test, and A, B, E, F is a virtual service component pointing to a service corresponding to the common basic environment.
Optionally, the multi-production-point component management platform may be specifically developed by a Spring cluster, and is composed of three main parts: 1) transaction code data acquisition: all available application service information can be automatically synchronized through the service registration center; 2) recording the resource identifier: according to the development and test requirements of different production points, a user records the information of a resource address, a port, a service state, retriable times and the like of a required service at a certain production point; 3) recording channel identification: according to the development and test requirements of different production points, a user records information such as channel component resource addresses, ports, production points, server identifications and the like used by the required service at the different production points.
Fig. 5 shows a schematic diagram of an isolation gateway according to an embodiment of the present invention.
As shown in fig. 5, taking a large distributed system as an example, the isolation gateway may be specifically designed in the following manner: firstly, a large-scale distributed system needs to be subjected to service management, and a service registration center is built for realizing automatic registration and discovery of each service instance. For example, service registration and discovery can be performed using a service discovery framework (Spring Cloud Eureka). Secondly, a new isolation gateway can be developed and built for the second time based on the SpringCloud Zuul, and the transactions sent by various service components are forwarded through the isolation gateway. The default routing rules and service instances for the quarantine gateway are provided by the service registry. For a multi-production-point parallel test task, each component may deploy an independent application for each production point, and node information deployed for the production points needs to be registered to the multi-production-point component management platform. The isolation gateway can add a new routing rule for the service with the production task component according to the production point, and can request to carry out pre-filtering before forwarding the transaction message so as to judge which routing forwarding rule is matched. The flow of the caller initiating the service call may be as follows:
(1) selecting a certain production point client to initiate a transaction to a channel service component;
(2) the channel service component sends the transaction message to an isolation gateway;
(3) the front-end route filter of the isolation gateway acquires the information of the production point according to the identification information in the transaction message, and then inquires the address and the port of the next hop of the transaction by combining the requested service;
(4) the isolation gateway forwards the transaction message to a component service address and a port of a corresponding production point; when no production point information exists, forwarding the information to the public basic environment according to a default route;
(5) the transaction message can be collected in a centralized manner according to different production points.
Optionally, the client may access services of different production points according to different requirements of a user, and may be deployed on a windows system, and the core technology may use a batch file (bat) script and a switching system file (SwitchHosts) to perform real-time resolution of the local domain name.
Fig. 6 shows a schematic diagram of a client according to an embodiment of the present invention.
As shown in fig. 6, in order to distinguish the test tasks of different production points when a transaction is initiated from a client, a channel service component is required to deploy a corresponding application component for each production point and mark the application component on a multi-production-point component management platform; the channel service component node information deployed for each delivery point needs to be registered to the multi-delivery-point component management platform for subsequent isolation gateways to form an isolation environment. The channel component generates unique identification information for each transaction request, and the identification information of each transaction message is unchanged on a service component calling link formed by each transaction. The client initiates transactions to the channel component, all transactions need to be carried out through the appointed domain name, and the domain name is locally analyzed at the client. For example, a client may select a page, and generate a delivery point service test option supported by the current test environment according to information on the multi-delivery point component management platform, and when a user selects a certain delivery point for testing, the user may synchronize a corresponding address and port from the delivery point component management platform to the local domain name resolution service.
As described above, in the embodiment of the present invention, by receiving a transaction message sent by a client corresponding to a commissioning point, determining a target isolation group corresponding to the commissioning point in a preset isolation environment according to identification information in the transaction message, and then forwarding the transaction message according to a test environment indicated by the target isolation group, it is possible to implement that test environment transaction traffic can be introduced from various channels of different commissioning points, and development and test work can be performed in parallel according to plans of different commissioning points. The test environment indicated by the target isolation group comprises a first service assembly and a second service assembly, the second service assembly is a virtual service assembly generated according to the identification information, and the virtual service assembly points to corresponding services in a preset public basic environment, so that compared with a multi-test task parallel mode in which a full-link pipeline environment needs to be added every time a parallel test production point is added in the prior art, the method and the device have the advantages that the equipment cost, the operation and maintenance cost and the management cost are lower, and the construction cost of the test environment is effectively reduced.
In addition, the method for testing the service of the production points, provided by the embodiment of the invention, can effectively track the transaction based on the identification information and ensure that the application of each production point operates independently without influencing each other.
Optionally, interface message specifications, message formats, filling rules of common fields, and the like may be made clear before development of a large distributed system. The message field can contain the identification information, the identification information is globally unique, a service component calling link of a transaction request can be completely restored according to the identification information, and the identification information runs through all the transactions.
In some embodiments, the identification information may be a global tracking number generated by the channel service component, for example, the global tracking number may be a combined code of application node information, time information, and a serial number corresponding to the transaction packet.
Fig. 7 is a message format diagram of a transaction message according to an embodiment of the present invention.
As shown in fig. 7, the application node information may include: english abbreviation of application name and machine classification number in the same application. The time information may be information such as year, month, day, hour, minute and second expressed by an integer; the sequence number may be a transaction message sequence number generated by the machine itself. The English abbreviation of the application name can be defined by each project, and letters and numbers can be compatible; the machine classification number in the same application can be arranged by a responsible party obtaining the application name, and the rules of taking the number priority and allowing the letter are adopted; both the time information and the serial number may be composed of pure numbers. For example, the global tracking number may be a combined code composed of 6-bit application name english abbreviation, 3-bit in-the-same-application machine classification number, 10-bit time information, and 6-bit sequence number shown in fig. 7 in sequence. The first 9 bit combination code composed of 6 bit application name English abbreviation and 3 bit same machine classification number in application can uniquely identify the application node information of a certain service.
Fig. 8 is a schematic flow chart of a method for testing a service of a production point according to an embodiment of the present invention.
Optionally, as shown in fig. 8, the step of determining, in the step S102, a target isolation group corresponding to the production point in a preset isolation environment according to the identification information in the transaction message may specifically include:
s801, determining corresponding production point information according to the global tracking number in the transaction message.
S802, according to the information of the production points, determining a target isolation group corresponding to the production points in a preset isolation environment.
Optionally, the commissioning point service test may further include: and recording message information of the transaction messages sent by the client corresponding to each production point so as to facilitate the investigation and reproduction of subsequent problems.
Optionally, the commissioning point service testing method may further include: and collecting the transaction messages corresponding to the production points according to different production points.
Based on the method for testing the service of the production point described in the foregoing method embodiment, an embodiment of the present invention further provides a device for testing the service of the production point, and fig. 9 shows a schematic structural diagram of the device for testing the service of the production point provided in the embodiment of the present invention.
As shown in fig. 9, the commissioning point service testing apparatus may include: the receiving module 10 is configured to receive a transaction message sent by a client corresponding to a commissioning point, where the transaction message includes identification information corresponding to the commissioning point, and the identification information is used to indicate an isolation group corresponding to the commissioning point corresponding to the identification information in a preset isolation environment. The system comprises an isolation environment, a test environment and a control system, wherein a plurality of isolation groups which correspond to different production points one by one are preset in the isolation environment, and each isolation group is used for indicating the test environment of the corresponding production point; the test environment comprises a first service assembly and a second service assembly, wherein the second service assembly is a virtual service assembly generated according to the identification information, and the virtual service assembly points to corresponding services in a preset public basic environment. And the determining module 20 is configured to determine, according to the identification information in the transaction message, a target isolation group corresponding to the production point in a preset isolation environment. And the forwarding module 30 is configured to forward the transaction message according to the test environment indicated by the target isolation group.
Fig. 10 is a schematic structural diagram of a determination module according to an embodiment of the present invention.
Alternatively, the identification information may be a global tracking number, as shown in fig. 10, and the determining module 20 may include: and the first determining submodule 21 is used for determining corresponding production point information according to the global tracking number in the transaction message. And the second determining submodule 22 is configured to determine, according to the information of the production points, a target isolation group corresponding to the production points in a preset isolation environment.
Fig. 11 is a schematic structural diagram illustrating a production site service test apparatus according to an embodiment of the present invention.
Optionally, as shown in fig. 11, the commissioning point service testing apparatus may further include: the building module 40 is configured to respectively build a common basic environment and an isolation environment formed by a plurality of isolation groups before the receiving module 10 receives a transaction message sent by a client corresponding to a production point.
Optionally, the building module 40 may be specifically configured to determine, according to a service test requirement corresponding to each commissioning point, a first service component and a second service component corresponding to each commissioning point; generating an isolation group corresponding to each production point according to the first service assembly and the second service assembly corresponding to each production point; and generating an isolation environment according to the isolation group corresponding to each production point.
Optionally, the global tracking number is a combined code of application node information, time information, and a serial number corresponding to the transaction packet.
Fig. 12 is a schematic structural diagram illustrating a production site service test apparatus according to an embodiment of the present invention.
Optionally, as shown in fig. 12, the commissioning point service testing apparatus may further include: the recording module 50 is configured to record message information of a transaction message sent by a client corresponding to each commissioning point.
Fig. 13 is a schematic structural diagram illustrating a production site service test apparatus according to an embodiment of the present invention.
Optionally, as shown in fig. 13, the commissioning point service testing apparatus may further include: and the acquisition module 60 is configured to acquire the transaction messages corresponding to the different production points according to the different production points.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process of the method in the foregoing method embodiment, and is not described in detail herein.
The device for testing a service of a production point provided in the embodiments of the present invention, corresponding to the method for testing a service of a production point described in the embodiments of the foregoing method, has all the advantages of the method for testing a service of a production point described in the embodiments of the present invention, and further description thereof is omitted here.
An embodiment of the present invention further provides a commissioning point service test device, and fig. 14 shows a schematic structural diagram of the commissioning point service test device provided in the embodiment of the present invention.
As shown in fig. 14, the commissioning point service test apparatus may include: the system comprises a processor 100, a storage medium 200 and a bus (not shown), wherein the storage medium 200 stores machine-readable instructions executable by the processor 100, when the point of production service test device is operated, the processor 100 communicates with the storage medium 200 through the bus, and the processor 100 executes the machine-readable instructions to execute the point of production service test method as described in the foregoing method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
For ease of illustration, only one processor is depicted in the above-described point of commissioning service test equipment. However, it should be noted that the production site service test device in the present invention may also include a plurality of processors, and thus the steps performed by one processor described in the present invention may also be performed by a plurality of processors in combination or individually. For example, the processor of the electronic device executes step a and step B, it should be understood that step a and step B may also be executed by two different processors together or separately in one processor. For example, a first processor performs step a and a second processor performs step B, or the first processor and the second processor perform steps a and B together, etc.
In some embodiments, a processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). Merely by way of example, a Processor may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), an Application Specific Instruction Set Processor (ASIP), a Graphics Processing Unit (GPU), a Physical Processing Unit (PPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), a Programmable Logic Device (PLD), a controller, a microcontroller Unit, a Reduced Instruction Set computer (Reduced Instruction Set computer), a microprocessor, or the like, or any combination thereof.
An embodiment of the present invention further provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the method for testing a service of a production point as described in the foregoing method embodiments is executed. The specific implementation and technical effects are similar, and are not described herein again.
Alternatively, the storage medium may be a U disk, a removable hard disk, a ROM, a RAM, a magnetic or optical disk, or the like.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for commissioning point service testing, the method comprising:
receiving a transaction message sent by a client corresponding to a production point, wherein the transaction message comprises identification information corresponding to the production point, and the identification information is used for indicating an isolation group corresponding to the production point corresponding to the identification information in a preset isolation environment; the isolation environment is preset with a plurality of isolation groups which correspond to different production points one by one, and each isolation group is used for indicating a test environment of the corresponding production point; the test environment comprises a first service assembly and a second service assembly, the second service assembly is a virtual service assembly generated according to the identification information, and the virtual service assembly points to corresponding services in a preset public basic environment;
determining a target isolation group corresponding to the production point in a preset isolation environment according to the identification information in the transaction message;
and forwarding the transaction message according to the test environment indicated by the target isolation group.
2. The method according to claim 1, wherein the identification information is a global tracking number, and determining the target isolated group corresponding to the commissioning point in a preset isolated environment according to the identification information in the transaction message comprises:
determining corresponding production point information according to the global tracking number in the transaction message;
and determining a target isolation group corresponding to the production point in a preset isolation environment according to the production point information.
3. The method according to claim 2, wherein before receiving the transaction message sent by the client corresponding to the commissioning point, the method further comprises:
respectively constructing a public basic environment and an isolation environment formed by a plurality of isolation groups.
4. The method of claim 3, wherein constructing an isolation environment of a plurality of isolation groups comprises:
determining a first service assembly and a second service assembly corresponding to each production point according to service test requirements corresponding to each production point;
generating an isolation group corresponding to each production point according to the first service assembly and the second service assembly corresponding to each production point;
and generating the isolation environment according to the isolation group corresponding to each production point.
5. The method according to any one of claims 2-4, wherein the global tracking number is a combined code of application node information, time information, and a serial number corresponding to the transaction packet.
6. The method according to any one of claims 1-4, further comprising:
and recording message information of the transaction messages sent by the client corresponding to each production point.
7. The method according to any one of claims 1-4, further comprising:
and collecting the transaction messages corresponding to the production points according to different production points.
8. A point-of-delivery service testing apparatus, the apparatus comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a transaction message sent by a client corresponding to a production point, the transaction message comprises identification information corresponding to the production point, and the identification information is used for indicating an isolation group corresponding to the production point corresponding to the identification information in a preset isolation environment; the isolation environment is preset with a plurality of isolation groups which correspond to different production points one by one, and each isolation group is used for indicating a test environment of the corresponding production point; the test environment comprises a first service assembly and a second service assembly, the second service assembly is a virtual service assembly generated according to the identification information, and the virtual service assembly points to corresponding services in a preset public basic environment;
the determining module is used for determining a target isolation group corresponding to the production point in a preset isolation environment according to the identification information in the transaction message;
and the forwarding module is used for forwarding the transaction message according to the test environment indicated by the target isolation group.
9. A point-of-delivery service test apparatus, comprising: a processor, a storage medium and a bus, the storage medium storing machine readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the point of commissioning service test device is run, the processor executing the machine readable instructions to perform the point of commissioning service test method of any of claims 1 to 7.
10. A storage medium having stored thereon a computer program for executing the method of commissioning point service testing according to any one of claims 1 to 7 when executed by a processor.
CN201911268206.1A 2019-12-11 2019-12-11 Method, device and equipment for testing production point service and storage medium Pending CN111090587A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911268206.1A CN111090587A (en) 2019-12-11 2019-12-11 Method, device and equipment for testing production point service and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911268206.1A CN111090587A (en) 2019-12-11 2019-12-11 Method, device and equipment for testing production point service and storage medium

Publications (1)

Publication Number Publication Date
CN111090587A true CN111090587A (en) 2020-05-01

Family

ID=70394882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911268206.1A Pending CN111090587A (en) 2019-12-11 2019-12-11 Method, device and equipment for testing production point service and storage medium

Country Status (1)

Country Link
CN (1) CN111090587A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134764A (en) * 2020-09-27 2020-12-25 中国银行股份有限公司 Method and device for determining connectivity of test environment
CN112231231A (en) * 2020-11-16 2021-01-15 广州速威智能***科技有限公司 Method, system and device for debugging cloud service
CN112231217A (en) * 2020-10-21 2021-01-15 中国银行股份有限公司 Method and device for implementing function test in copy mode
CN113485651A (en) * 2021-07-28 2021-10-08 中国工商银行股份有限公司 Method and device for predicting storage capacity of large host after production
CN114219321A (en) * 2021-12-17 2022-03-22 中国建设银行股份有限公司 Information system production preparation method and device
CN114884855A (en) * 2022-07-11 2022-08-09 简单汇信息科技(广州)有限公司 Routing method and system under asynchronous communication
CN115082247A (en) * 2022-08-19 2022-09-20 建信金融科技有限责任公司 System production method, device, equipment, medium and product based on label library

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389256A (en) * 2015-11-11 2016-03-09 中国建设银行股份有限公司 Unit testing method and system
CN107979508A (en) * 2017-11-24 2018-05-01 深圳乐信软件技术有限公司 Micro services test method and device
CN108540674A (en) * 2018-03-22 2018-09-14 平安科技(深圳)有限公司 Automated testing method, device, computer equipment and storage medium
US20180329788A1 (en) * 2017-05-09 2018-11-15 Microsoft Technology Licensing, Llc Cloud Architecture for Automated Testing
CN109840211A (en) * 2019-02-15 2019-06-04 北京大米科技有限公司 Application testing method, system, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389256A (en) * 2015-11-11 2016-03-09 中国建设银行股份有限公司 Unit testing method and system
US20180329788A1 (en) * 2017-05-09 2018-11-15 Microsoft Technology Licensing, Llc Cloud Architecture for Automated Testing
CN107979508A (en) * 2017-11-24 2018-05-01 深圳乐信软件技术有限公司 Micro services test method and device
CN108540674A (en) * 2018-03-22 2018-09-14 平安科技(深圳)有限公司 Automated testing method, device, computer equipment and storage medium
CN109840211A (en) * 2019-02-15 2019-06-04 北京大米科技有限公司 Application testing method, system, device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张伟龙等: "APM助力银行企业级IT***测试", 《金融电子化》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134764A (en) * 2020-09-27 2020-12-25 中国银行股份有限公司 Method and device for determining connectivity of test environment
CN112231217A (en) * 2020-10-21 2021-01-15 中国银行股份有限公司 Method and device for implementing function test in copy mode
CN112231217B (en) * 2020-10-21 2023-09-22 中国银行股份有限公司 Method and device for implementing functional test in duplicate mode
CN112231231A (en) * 2020-11-16 2021-01-15 广州速威智能***科技有限公司 Method, system and device for debugging cloud service
CN112231231B (en) * 2020-11-16 2023-12-12 广州速威智能***科技有限公司 Cloud service debugging method, system and device
CN113485651A (en) * 2021-07-28 2021-10-08 中国工商银行股份有限公司 Method and device for predicting storage capacity of large host after production
CN114219321A (en) * 2021-12-17 2022-03-22 中国建设银行股份有限公司 Information system production preparation method and device
CN114884855A (en) * 2022-07-11 2022-08-09 简单汇信息科技(广州)有限公司 Routing method and system under asynchronous communication
CN115082247A (en) * 2022-08-19 2022-09-20 建信金融科技有限责任公司 System production method, device, equipment, medium and product based on label library

Similar Documents

Publication Publication Date Title
CN111090587A (en) Method, device and equipment for testing production point service and storage medium
CN103516746B (en) Method for pushing, the apparatus and system of service change message
CN107395674A (en) A kind of application system accesses the method and device of isomery block platform chain
CN104899134B (en) Domain name registration service device automatization test system and method
CN109634764A (en) Work-flow control method, apparatus, equipment, storage medium and system
US9542161B2 (en) Method and system for generating a source code for a computer program for execution and simulation of a process
CN111666097B (en) Capability domination method and device based on service scene
CN110636108A (en) Micro-service architecture for electric power metering and implementation method thereof
CN114866617A (en) Micro-service request processing method, device, equipment and medium
CN112328406B (en) Micro-service distributed transaction system based on TCC (TCC) and service processing method
CN112003743B (en) Service data processing method and device
Xia et al. 5G service based core network design
CN114996246A (en) Data cleaning method for checking multiple fields of table based on NiFi assembly
CN113630468B (en) Dynamic proxy method
Nakagawa et al. Foreword: towards reference architectures for systems-of-systems
CN114866628A (en) Message processing method, device, equipment and storage medium
CN115408407A (en) Service cooperative processing method, system, terminal and computer storage medium
CN112804313B (en) Data synchronization method, device, equipment and medium based on cross-domain edge node
CN110324425B (en) Hybrid cloud transaction route processing method and device
CN107479869A (en) Realize the method and system of Function Extension
CN106776756A (en) The method and apparatus of server end, client process weather resource data
CN113641400A (en) Method for sharing micro-service public resource by multi-version service, API gateway and management system
Wang et al. A state synchronization mechanism for orchestrated processes
CN113760301A (en) Micro-service application deployment method, device, equipment and storage medium
CN117149264B (en) Multi-lane research and development environment construction method, device, 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
TA01 Transfer of patent application right

Effective date of registration: 20220907

Address after: 12 / F, 15 / F, 99 Yincheng Road, Pudong New Area pilot Free Trade Zone, Shanghai, 200120

Applicant after: Jianxin Financial Science and Technology Co.,Ltd.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right