Multi-environment testing method, system and equipment and storage medium

The multi-environment routing server realizes the connection between multiple internal environments and the external environment, solving the problems of low multi-environment testing efficiency and high maintenance costs caused by the limitation of the number of external system test environments, and realizing a complete closed loop of multiple environments connecting to external test systems at the same time. testing, improving testing efficiency and reducing maintenance costs.

CN118535476APending Publication Date: 2024-08-23PING AN PAY ELECTRONIC PAYMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410726362.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In software projects, due to the limit on the number of external system test environments, multiple versions of software testing need to be switched at an agreed time period, resulting in low efficiency of multi-environment testing and high maintenance costs.

Method used

Obtain the calling environment request of the external test system through the multi-environment routing server, determine the internal system environment, and route the request to the corresponding environment for resource response, realizing multiple environments to connect to the external test system at the same time, and completing a complete closed-loop test of the function.

Benefits of technology

It reduces the testing time of multi-environment testing, improves testing efficiency, and reduces maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535476A
    Figure CN118535476A
Patent Text Reader

Abstract

The invention provides a multi-environment testing method, system and device and a storage medium. The method comprises the steps that a calling environment request of an external testing system is obtained through a multi-environment routing server; the multi-environment routing server determines at least one environment according to the environment calling request; and routing the call environment request to the at least one environment for environment resource response. According to the method and the device, the butt joint of multiple internal environments and the external environment is realized by building the multi-environment routing service, the complete closed-loop test of the whole function is realized by simultaneously butt joint of the multiple environments and the external test system, the test time of the multi-environment test is reduced, the test efficiency is greatly improved, and the maintenance cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of software testing technology, and specifically, relates to a multi-environment testing method, system, device and storage medium. Background Art

[0002] With the clear division of software service responsibilities and the introduction of cloud services, the implementation of a software will rely on services provided by other external systems or external manufacturers. At the same time, with the promotion of agile delivery of software projects, multiple versions will inevitably appear in parallel during the project process, and multiple versions need to be tested at the same time. Multiple test environments will be built internally for testing, but due to the limited number of external system test environments, conflicts are bound to occur during use. We can only agree on time periods and switch to meet the use of multiple internal environments. This results in low efficiency and difficulty in maintenance of current multi-environment testing. Summary of the invention

[0003] The multi-environment testing method, system, device and storage medium proposed in the present invention can enable multiple environments to simultaneously connect to an external testing system to achieve a complete closed-loop test of the entire function, thereby reducing the testing time of the multi-environment testing, greatly improving its testing efficiency and reducing maintenance costs.

[0004] According to a first aspect of an embodiment of the present application, a multi-environment testing method is provided, comprising the following steps: The multi-environment routing server obtains the calling environment request of the external test system; The multi-environment routing server determines at least one environment of the internal system according to the calling environment request; and routes the calling environment request to at least one environment of the internal system for environmental resource response.

[0005] In some embodiments of the present application, it also includes: The multi-environment routing server obtains a business request of at least one environment of the internal system; The multi-environment routing server forwards the service request of at least one environment to the external test system for testing.

[0006] In some embodiments of the present application, after the multi-environment routing server obtains the business request of at least one environment of the internal system, it also includes: the multi-environment routing server matches multiple external test systems according to the business request and determines an external test system for testing.

[0007] In some implementations of the present application, the service request includes an environment identifier and a service request message; the multi-environment testing method further includes: The multi-environment routing server extracts historical custom environment features based on historical business request messages; The historical custom environment features are mapped one by one with the historical environment identifiers to form a first mapping rule; the first mapping rule is used to determine the environment identifier according to the custom environment features.

[0008] In some implementations of the present application, the calling environment request includes an environment request message; and the multi-environment testing method further includes: The multi-environment routing server extracts historical custom routing features based on historical environment request messages; The historical custom routing features are mapped one by one with the historical custom environment features to form a second mapping rule; the second mapping rule is used to determine the corresponding custom environment features according to the custom routing features.

[0009] In some implementations of the present application, determining at least one environment according to the calling environment request includes: Determine the current custom routing characteristics based on the calling environment request; Determine the current custom environment characteristics according to the current custom routing characteristics and the second mapping rule; According to the current customized environment feature and the first mapping rule, at least one current environment identifier is determined, and then at least one current environment is determined.

[0010] In some embodiments of the present application, the custom routing feature includes a routing feature attribute and a custom feature type; the custom environment feature includes an environment feature attribute and a custom feature type; the routing feature attribute and the environment feature attribute include an order number field, an order quantity field or an order IP field determined from the message; Mapping historical custom routing features with historical custom environment features one by one to form a second mapping rule includes: mapping historically defined routing features with the same custom feature type with historical custom environment features one by one to form a second mapping rule.

[0011] According to a second aspect of an embodiment of the present application, a multi-environment testing system is provided, including: An external test system is used to generate a call environment request; A multi-environment routing server is used to obtain a call environment request from an external test system; determine at least one environment of an internal system according to the call environment request; and route the call environment request to at least one environment of the internal system for an environmental resource response.

[0012] According to a third aspect of an embodiment of the present application, a multi-environment testing device is provided, including: Memory: used to store executable instructions; and Processor: used to connect with the memory to execute executable instructions to complete the multi-environment testing method.

[0013] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored; the computer program is executed by a processor to implement a multi-environment testing method.

[0014] The multi-environment testing method, system, device and storage medium of the present application are adopted to obtain the call environment request of the external test system through the multi-environment routing server; the multi-environment routing server determines at least one environment according to the call environment request; and the call environment request is routed to the at least one environment for environmental resource response. The present application realizes the connection between multiple internal environments and external environments by building a multi-environment routing service, realizes the connection of multiple environments to the external test system at the same time to realize the complete closed-loop test of the entire function, reduces the test time of multi-environment testing, greatly improves its test efficiency and reduces maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 A schematic diagram of an existing test environment system is shown in FIG. Figure 2 Another schematic diagram of an existing test environment system is shown in FIG. Figure 3 A schematic diagram of the steps of the multi-environment testing method according to an embodiment of the present application is shown in FIG. Figure 4 A schematic diagram of the steps of a multi-environment testing method according to another embodiment of the present application is shown in FIG. Figure 5 : shows a schematic diagram of the principle of the multi-environment testing method according to an embodiment of the present application; Figure 6 A schematic diagram of the steps of determining at least one environment according to a calling environment request according to an embodiment of the present application is shown in FIG. Figure 7 : shows a schematic diagram of the implementation process of the multi-environment testing method according to an embodiment of the present application; Figure 8 A schematic diagram of the structure of a multi-environment testing system according to an embodiment of the present application is shown in FIG. Fig. 9 Schematic diagram of the structure of a multi-environment testing device according to an embodiment of the present application is shown in FIG. DETAILED DESCRIPTION

[0016] In the process of implementing the present application, the inventors found that with the promotion of agile delivery of software projects, multiple versions will inevitably appear in parallel during the project process, and multiple versions need to be tested simultaneously. Multiple sets of test environments will be built internally for testing, but due to the limitation on the number of external system test environments, conflicts are bound to occur during use. Only time periods can be agreed upon and multiple internal environments can be used through switching. This results in low efficiency and difficulty in maintenance of current multi-environment testing.

[0017] Figure 1 A schematic diagram of an existing test environment system is shown in FIG.

[0018] like Figure 1 As shown in the figure, the test environment is used as follows: the current environment INNER_A is agreed to be the internal environment that connects to the outside, and the environment INNER_A and the environment OUTER can call each other normally. However, other environments such as the environment INNER_B and the environment INNER_N can only use the internal call external service, and the external and internal can only connect to INNER_A. At the same time, only one environment can realize the complete closed-loop test of the entire function.

[0019] Figure 2 Another schematic diagram of an existing test environment system is shown in FIG.

[0020] Or Figure 2 As shown, in Figure 1 In order to support multiple environments, we will apply for multiple sets of external system test environments and match them with the internal ones one by one, so as to achieve the effect of simultaneous use without affecting each other. However, this solution requires the configuration of multiple sets of external system environments, which requires a lot of resources and costs.

[0021] Based on this, this application calls communication between internal and external systems through a unified gateway system and external docking, and then adds a front-end system-multi-environment routing service to the gateway system, thereby acting as a proxy bridge and completing the docking of multiple environments.

[0022] Specifically, the multi-environment testing method, system, device and storage medium of the present application obtain a call environment request from an external testing system through a multi-environment routing server; the multi-environment routing server determines at least one environment based on the call environment request; and routes the call environment request to the at least one environment for an environmental resource response.

[0023] This application realizes the connection between multiple internal environments and external environments by building a multi-environment routing service, and realizes that multiple environments are connected to the external test system at the same time to realize complete closed-loop testing of the entire function, reducing the testing time of multi-environment testing, greatly improving its testing efficiency and reducing maintenance costs.

[0024] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0025] Example 1 Figure 3 A schematic diagram of the steps of the multi-environment testing method according to an embodiment of the present application is shown in FIG.

[0026] like Figure 3 As shown, the multi-environment testing method of the embodiment of the present application includes the following steps: S1: The multi-environment routing server obtains a call environment request from an external test system; S2: The multi-environment routing server determines at least one environment of the internal system according to the call environment request; and routes the call environment request to at least one environment of the internal system for an environment resource response. The environment resource response includes calling resources of different environments for testing, specifically obtaining test case resources of different environments for testing.

[0027] By building a multi-environment routing service to achieve the connection between multiple internal environments and external environments, the external test system can directly call resources in different environments for testing through the multi-environment routing server.

[0028] Figure 4 FIG. 4 is a schematic diagram showing the steps of a multi-environment testing method according to another embodiment of the present application. Figure 4 As shown, it also includes: S3: the multi-environment routing server obtains the service request of at least one environment; S4: the multi-environment routing server forwards the service request of at least one environment to the external test system for testing. Optionally, in this embodiment, the service request of at least one environment can be forwarded to the external test system for testing at the same time, or the service request of at least one environment can be forwarded to the external test system one by one for testing.

[0029] Figure 5 Schematic diagram of the principle of the multi-environment testing method according to an embodiment of the present application is shown in FIG.

[0030] like Figure 5 As shown, the test environment of this application is used as follows: environment INNER_A, environment INNER_B and environment INNER_N can not only use internal and external services through the multi-service routing service to connect and call environment OUTER; environment OUTER can also call multiple internal environments normally through the multi-service routing service, and multiple environments can realize complete closed-loop testing of the entire function at the same time.

[0031] Finally, the embodiment of the present application realizes the connection between multiple internal environments and external environments by building a multi-environment routing service, and realizes that multiple environments are connected to the external test system at the same time to realize complete closed-loop testing of the entire function, thereby reducing the testing time of multi-environment testing, greatly improving its testing efficiency and reducing maintenance costs.

[0032] Specifically described, a business request includes an environment identifier and a business request message.

[0033] Therefore, the multi-environment testing method further includes: the multi-environment routing server extracts historical custom environment features according to historical service request messages; and maps the historical custom environment features to historical environment identifiers one by one to form a first mapping rule. The first mapping rule is used to determine the environment identifier according to the custom environment features.

[0034] In this process, the business request message of the internal environment is first obtained. The business request message includes different business features according to different business interface accesses, such as the order number field, the order quantity field or the order IP field, etc. One of the features can be customized as the custom environment feature. The custom environment feature includes the environment feature attribute and the custom feature type. The custom feature type can be customized and edited as the mapping search data. Finally, the custom environment features are mapped one by one to the environment identifier in the business request to form the first mapping rule.

[0035] In addition, the calling environment request includes an environment request message.

[0036] Then, the multi-environment testing method further includes: the multi-environment routing server extracts historical custom routing features according to historical environment request messages; and maps historical custom routing features to historical custom environment features one by one to form a second mapping rule. The second mapping rule is used to determine the corresponding custom environment feature according to the custom routing feature.

[0037] Among them, the custom routing characteristics and the custom environment characteristics are mapped one by one to form a second mapping rule, including: first, the custom routing characteristics include routing characteristic attributes and custom characteristic types; the custom environment characteristics include environment characteristic attributes and custom characteristic types; then, the defined routing characteristics with the same custom characteristic type are mapped one by one to the custom environment characteristics to form a second mapping rule.

[0038] In this process, the environment request message of the external test system is first obtained, and the environment request message also includes multiple different business features, such as order number field, order quantity field or order IP field, etc. You can customize one of the features as a custom routing feature. The routing feature also includes feature attributes and feature types.

[0039] The custom feature type of the custom routing feature can be customized and edited as mapping search data, and searched and matched with the custom feature type of the custom environment feature. Therefore, the one-to-one mapping of the defined routing features and the custom environment features of the same custom feature type is essentially searched and matched through their respective custom feature types, forming the second mapping rule.

[0040] Figure 6 A schematic diagram of the steps of determining at least one environment according to a calling environment request according to an embodiment of the present application is shown.

[0041] like Figure 6 As shown, based on the above first mapping rule and the second mapping rule, S2 determines at least one environment according to the calling environment request, including: S21: determining the current custom routing characteristics according to the calling environment request; S22: determining the custom environment characteristics according to the current custom routing characteristics and the second mapping rule; S23: determining at least one current environment identifier according to the custom environment characteristics and the first mapping rule, and then determining at least one current environment.

[0042] In this process, first obtain the call environment request of the external test system, select a feature according to multiple features of the request message, and customize one of them as the custom routing feature, and the custom routing feature includes feature attributes and custom feature types. Then, through the second mapping rule, find the custom feature type of the custom routing feature, and determine the custom environment feature with the same custom feature type. Finally, through the first mapping rule, find the custom environment feature to determine the corresponding environment identifier, and then determine at least one environment. Among them, the routing feature attribute and the environment feature attribute include the order number field, the order number field or the order IP field determined from the message.

[0043] This makes it possible to connect multiple internal environments with external environments by building a multi-environment routing service, and to connect multiple environments to the external test system at the same time to achieve complete closed-loop testing of the entire function, reducing the testing time of multi-environment testing, greatly improving its testing efficiency and reducing maintenance costs.

[0044] In other embodiments, multiple external test systems, namely multiple environments OUTER, may be included. The corresponding test method also includes: the multi-environment routing server matches multiple external test systems according to the service request and determines one external test system for testing.

[0045] The business request includes not only the environment identifier and the request message, but also the identifier of the external test system to be connected.

[0046] The multi-environment testing environment of this application is described in detail below through specific implementation cases.

[0047] Figure 7 A schematic diagram of the implementation process of the multi-environment testing method according to an embodiment of the present application is shown in FIG.

[0048] like Figure 7 As shown, the mutual calling between environment INNER_A and the external system is taken as an example for explanation.

[0049] 1) First, the business system in environment INNER_A sends a business request to the multi-service routing service through the gateway. The business request here includes the environment identifier INNER_A and the specific request message.

[0050] During the call, the environment needs to be distinguished. Since internal and external communications are carried out through the HTTP protocol, other environment identifiers also support using the information in the HTTP header to distinguish the environment: A) x-env information is used to identify custom attributes. Gateway requests for multi-environment routing services are carried with high priority.

[0051] B) x-forwarded-for, X-Real-IP obtain the IP address of the internal gateway service as the environment identifier. If it is not obtained in A), the attribute value of this item is used as the environment identifier.

[0052] In the embodiment of the present application, INNER_A is passed as Header x-env to the multi-environment routing service as an environment identifier.

[0053] 2) Then, customize the environment characteristics according to business requirements.

[0054] Customized environment features include environment feature attributes and customized feature types. First, define the environment feature attributes. In the internal and external communication data, customize the feature value attributes according to different business interfaces. The example is as follows: api / pay payment interface, message format: { "merchantNo": "90000000001", "orderNo": "N00000001", "amount": "100.00", "uid": "U001", "contractNo": "CN23000988921232323" } In the above, the orderNo order number field is used as the environment feature attribute, and the type order number FT_ORDER_NO is used as the custom feature type.

[0055] Therefore, the custom environment characteristics of the request message are defined as Table 1: Table 1

[0056] 3) Color the business request and map the custom environment features to the environment identifiers in the business request one by one.

[0057] The multi-environment routing service will store the request characteristics, characteristic values, and environment records according to the environment characteristic value definition of the interface; the data records are shown in Table 2: Table 2

[0058] At the same time as storage, the multi-environment routing service calls the test service of the external system according to the business request.

[0059] 4) On the other hand, the external system sends a call environment request to the multi-service routing service. The call environment request here includes the internal request message of the call.

[0060] Then, request custom routing characteristics based on the calling environment.

[0061] Customized routing features include routing feature attributes and customized feature types. First, define routing feature attributes. The example is as follows. The internal / pay / notify interface is called as follows: { "merchantNo": "90000000001", "merOrderNo": "N00000001", "status": "S" } In the above example, the merOrderNo order number field is used as the routing feature attribute, and the type order number FT_ORDER_NO is used as the custom feature type.

[0062] Therefore, the custom routing characteristics of the request message of the calling environment request are defined as Table 3: Table 3

[0063] 5) Finally, environment routing is performed. According to the routing feature attributes and corresponding values, the environment is matched, and the multi-environment routing service forwards the request to the corresponding environment.

[0064] Finally, the above five steps are used to realize the mapping and routing functions of the environment.

[0065] The multi-environment testing method of the present application is adopted to obtain the call environment request of the external test system through the multi-environment routing server; the multi-environment routing server determines at least one environment according to the call environment request; and the call environment request is routed to the at least one environment for environmental resource response. The present application realizes the connection between multiple internal environments and external environments by building a multi-environment routing service, realizes the connection of multiple environments to the external test system at the same time to realize the complete closed-loop test of the entire function, reduces the test time of multi-environment testing, greatly improves its test efficiency and reduces maintenance costs.

[0066] Example 2 This embodiment provides a multi-environment testing system. For details not disclosed in the multi-environment testing system of this embodiment, please refer to the specific implementation content of the multi-environment testing method in other embodiments.

[0067] Figure 8 A structural schematic diagram of a multi-environment testing system according to an embodiment of the present application is shown in FIG.

[0068] like Figure 8 As shown, the multi-environment testing system of an embodiment of the present application specifically includes an external testing system 10 and a multi-environment routing server 20.

[0069] Specifically, the external test system 10 is used to generate a call environment request; the multi-environment routing server 20 is used to obtain the call environment request of the external test system; determine at least one environment of the internal system according to the call environment request; and route the call environment request to at least one environment of the internal system for environmental resource response.

[0070] Further described, the multi-environment system is used to generate a service request of at least one environment. Then, the multi-environment routing server 20 is also used to obtain the service request of at least one environment; and then forward the service request of at least one environment to the external test system for testing simultaneously or sequentially.

[0071] Finally, the embodiment of the present application realizes the connection between multiple internal environments and external environments by building a multi-environment routing service, and realizes that multiple environments are connected to the external test system at the same time to realize complete closed-loop testing of the entire function, thereby reducing the testing time of multi-environment testing, greatly improving its testing efficiency and reducing maintenance costs.

[0072] Specifically described, a business request includes an environment identifier and a business request message.

[0073] Therefore, the multi-environment testing method further includes: the multi-environment routing server extracts the custom environment features according to the service request message; and maps the custom environment features to the environment identifiers one by one to form a first mapping rule.

[0074] In this process, the business request message of the internal environment is first obtained. The business request message includes different business features according to different business interface accesses, such as the order number field, the order quantity field or the order IP field, etc. One of the features can be customized as the custom environment feature. The custom environment feature includes the environment feature attribute and the custom feature type. The custom feature type can be customized and edited as the mapping search data. Finally, the custom environment features are mapped one by one to the environment identifier in the business request to form the first mapping rule.

[0075] In addition, the calling environment request includes an environment request message.

[0076] Then, the multi-environment testing method also includes: the multi-environment routing server extracts the custom routing features according to the environment request message; and maps the custom routing features to the custom environment features one by one to form a second mapping rule.

[0077] Among them, the custom routing characteristics and the custom environment characteristics are mapped one by one to form a second mapping rule, including: first, the custom routing characteristics include routing characteristic attributes and custom characteristic types; the custom environment characteristics include environment characteristic attributes and custom characteristic types; then, the defined routing characteristics with the same custom characteristic type are mapped one by one to the custom environment characteristics to form a second mapping rule.

[0078] In this process, the environment request message of the external test system is first obtained, and the environment request message also includes multiple different business features, such as order number field, order quantity field or order IP field, etc. You can customize one of the features as a custom routing feature. The routing feature also includes feature attributes and feature types.

[0079] The custom feature type of the custom routing feature can be customized and edited as mapping search data, and searched and matched with the custom feature type of the custom environment feature. Therefore, the one-to-one mapping of the defined routing features and the custom environment features of the same custom feature type is essentially searched and matched through their respective custom feature types, forming the second mapping rule.

[0080] Refer to Figure 5As shown, the test environment of the system of the present application is used as follows: environment INNER_A, environment INNER_B and environment INNER_N can not only use internal and external services through the multi-service routing service to connect and call environment OUTER; environment OUTER can also call multiple internal environments normally through the multi-service routing service, and multiple environments can realize complete closed-loop testing of the entire function at the same time.

[0081] The multi-environment testing system of the present application is used to obtain a call environment request of an external testing system through a multi-environment routing server; the multi-environment routing server determines at least one environment according to the call environment request; and the call environment request is routed to the at least one environment for environmental resource response. The present application realizes the connection between multiple internal environments and external environments by building a multi-environment routing service, realizes the connection of multiple environments to the external testing system at the same time to realize a complete closed-loop test of the entire function, reduces the test time of multi-environment testing, greatly improves its test efficiency and reduces maintenance costs.

[0082] Example 3 This embodiment provides a multi-environment testing device. For details not disclosed in the multi-environment testing device of this embodiment, please refer to the specific implementation content of the multi-environment testing method or system in other embodiments.

[0083] Fig. 9 Schematic diagram of the structure of a multi-environment testing device 400 according to an embodiment of the present application is shown in FIG.

[0084] like Fig. 9 As shown, the multi-environment testing device 400 includes: Memory 402: used to store executable instructions; and Processor 401: used to connect with memory 402 to execute executable instructions to complete the multi-environment testing method.

[0085] Those skilled in the art will understand that Fig. 9 It is only an example of the multi-environment test device 400 and does not constitute a limitation of the multi-environment test device 400. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the multi-environment test device 400 may also include input and output devices, network access devices, buses, etc.

[0086] The so-called processor 401 (Central Processing Unit, CPU) can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor 401 can also be any conventional processor, etc. The processor 401 is the control center of the multi-environment test device 400, and uses various interfaces and lines to connect various parts of the entire multi-environment test device 400.

[0087] The memory 402 can be used to store computer-readable instructions. The processor 401 implements various functions of the multi-environment test device 400 by running or executing computer-readable instructions or modules stored in the memory 402 and calling data stored in the memory 402. The memory 402 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the multi-environment test device 400, etc. In addition, the memory 402 can include a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM) or other non-volatile / volatile storage devices.

[0088] If the modules integrated in the multi-environment testing device 400 are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also instruct the relevant hardware to complete through computer-readable instructions. The computer-readable instructions can be stored in a computer-readable storage medium, and when the computer-readable instructions are executed by the processor, the steps of the above-mentioned various method embodiments can be implemented.

[0089] Example 4 This embodiment provides a computer-readable storage medium on which a computer program is stored; the computer program is executed by a processor to implement the multi-environment testing method in other embodiments.

[0090] The multi-environment testing device and storage medium of the embodiment of the present application obtain the call environment request of the external test system through the multi-environment routing server; the multi-environment routing server determines at least one environment according to the call environment request; and routes the call environment request to the at least one environment for environmental resource response. The present application realizes the connection between multiple internal environments and external environments by building a multi-environment routing service, realizes the connection of multiple environments to the external test system at the same time to realize the complete closed-loop test of the entire function, reduces the test time of multi-environment testing, greatly improves its test efficiency and reduces maintenance costs.

[0091] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0092] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0093] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0094] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0095] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0096] It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0097] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0098] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A multi-environment testing method, characterized in that: include: The multi-environment routing server obtains the calling environment request of the external test system; The multi-environment routing server determines at least one environment of the internal system according to the calling environment request; The call environment request is routed to at least one environment of the internal system for response of environment resources.

2. The multi-environment testing method according to claim 1, characterized in that: Also includes: The multi-environment routing server obtains a business request of at least one environment of the internal system; The multi-environment routing server forwards the service request of at least one environment to the external testing system for testing.

3. The multi-environment testing method according to claim 2, characterized in that: After the multi-environment routing server obtains the business request of at least one environment of the internal system, it also includes: the multi-environment routing server matches multiple external test systems according to the business request and determines an external test system for testing.

4. The multi-environment testing method according to claim 2, characterized in that: The service request includes an environment identifier and a service request message; The multi-environment testing method further includes: The multi-environment routing server extracts historical custom environment features based on historical business request messages; The historical custom environment features are mapped one by one with the historical environment identifiers to form a first mapping rule; the first mapping rule is used to determine the environment identifier according to the custom environment features.

5. The multi-environment testing method according to claim 4, characterized in that: The calling environment request includes an environment request message; the multi-environment testing method also includes: The multi-environment routing server extracts historical custom routing features based on historical environment request messages; The historical custom routing features are mapped one by one with the historical custom environment features to form a second mapping rule; the second mapping rule is used to determine the corresponding custom environment feature according to the custom routing feature.

6. The multi-environment testing method according to claim 5, characterized in that: The determining at least one environment according to the calling environment request comprises: Determine the current custom routing characteristics according to the calling environment request; Determining a current custom environment feature according to the current custom routing feature and the second mapping rule; According to the current customized environment feature and the first mapping rule, at least one current environment identifier is determined, and then at least one current environment is determined.

7. The multi-environment testing method according to claim 5, characterized in that: The custom routing feature includes a routing feature attribute and a custom feature type; the custom environment feature includes an environment feature attribute and a custom feature type; the routing feature attribute and the environment feature attribute include an order number field, an order quantity field or an order IP field determined from the message; The one-to-one mapping of the historical customized routing features to the historical customized environment features to form a second mapping rule includes: The historically defined routing features and the historically customized environment features having the same customized feature type are mapped one by one to form a second mapping rule.

8. A multi-environment testing system, characterized in that: include: An external test system is used to generate a call environment request; Multi-environment routing server, used to obtain call environment requests from external test systems; Determine at least one environment of the internal system according to the calling environment request; and route the calling environment request to the at least one environment of the internal system for environmental resource response.

9. A multi-environment testing device, comprising: Memory: used to store executable instructions; as well as Processor: used to connect to the memory to execute executable instructions to complete the multi-environment testing method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon; the computer program is executed by a processor to implement the multi-environment testing method as described in any one of claims 1-7.