Scheduling method, device, equipment, storage medium and program product for joint debugging test

By automatically parsing and routing joint debugging test request messages, the problem of low manual scheduling efficiency in joint debugging tests between banking systems and partners is solved, efficient joint debugging environment scheduling and resource allocation are achieved, and R&D costs are reduced.

CN116340181BActive Publication Date: 2025-10-03INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310345685.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-03
Publication Date
2025-10-03
Estimated Expiration
2043-04-03

AI Technical Summary

Technical Problem

In the process of establishing financial scenario interconnection between banking systems and partners, the existing joint debugging and testing scheduling relies on manual participation, resulting in low testing efficiency.

Method used

By parsing the joint debugging test request message, the environment identification information of the target test environment is determined, and the joint debugging test request message is automatically distributed and routed based on the information, realizing automated joint debugging environment scheduling and reasonable resource allocation.

Benefits of technology

It improves the efficiency of joint debugging and testing, reduces communication and coordination between different units, and reduces R&D costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116340181B_ABST
    Figure CN116340181B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method for scheduling joint debugging tests, which relates to the field of software testing technology and can be applied to the field of financial technology. The method comprises: in response to a joint debugging test request, parsing a joint debugging test request message to determine a target test environment; and if it is determined that the environment identification information of the target test environment is ready, forwarding the joint debugging test request message to the target test environment based on the environment identification information, wherein the environment identification information is used to represent the state information and routing rule information of the test environment. The present disclosure also provides a scheduling device, equipment, and storage medium for joint debugging tests.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, specifically to the field of software testing technology, and more specifically to a scheduling method, apparatus, device, storage medium, and program product for joint debugging and testing. Background Art

[0002] In the process of establishing financial scenario interconnection between the banking system and its partners, joint debugging and testing between the partners and the bank is required.

[0003] In related technologies, scheduling joint debugging tests for different scenarios and stages requires manual participation, involving multiple parties communicating to schedule open time slots, enable firewalls, perform network switching, allocate traffic, and other issues. This manual scheduling method is inefficient and leads to low testing efficiency.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to ordinary technicians in the field. Summary of the Invention

[0005] In view of the above problems, the present disclosure provides a scheduling method, apparatus, device, storage medium and program product for joint debugging test to improve test efficiency.

[0006] According to a first aspect of the present disclosure, a scheduling method for a joint debugging test is provided, the method comprising:

[0007] In response to the joint debugging test request, parsing the joint debugging test request message to determine the target test environment; and

[0008] If it is determined that the environment identification information of the target test environment is ready, the joint debugging test request message is forwarded to the target test environment according to the environment identification information, wherein the environment identification information is used to represent the status information and routing rule information of the test environment.

[0009] According to an embodiment of the present disclosure, forwarding the joint debugging test request message to the target test environment according to the environment identification information includes:

[0010] Determining the state information, scheduling rules, and routing information of the target test environment according to the environment identification information; and

[0011] When it is determined that the status information of the target test environment is available, forwarding the joint debugging test request message to the target test environment according to the scheduling rule and the routing information; and

[0012] When it is determined that the status information of the target test environment is unavailable, the joint debugging test is suspended.

[0013] According to an embodiment of the present disclosure, the scheduling rule includes a time period allocation rule and an environment weight, and forwarding the joint debugging test request message to the target test environment according to the scheduling rule and routing information includes:

[0014] Determine a first weight according to the test period of the joint debugging test and the period allocation rule;

[0015] Determining a second weight according to the joint debugging test type and the environment weight;

[0016] determining a routing weight according to the first weight and the second weight;

[0017] Establishing a connection with the target test environment according to the routing weight and the routing information; and

[0018] Forward the joint debugging test request message to the target test environment.

[0019] According to an embodiment of the present disclosure, it further includes:

[0020] If it is determined that the environment identification information of the target test environment is not ready, collecting target test environment information; and

[0021] The test environment status and routing information are determined according to the test environment information to update the environment identification information.

[0022] According to an embodiment of the present disclosure, before receiving the joint debugging test request message, the method further includes:

[0023] In response to an access request from a joint testing environment, obtaining inventory information of the joint testing environment;

[0024] Verifying the joint testing environment according to the inventory information;

[0025] After determining that the verification passes, determining the environment identification information of the joint testing environment according to the routing information of the joint testing environment and a preset scheduling rule; and

[0026] The environment identification information of the joint testing environment is updated regularly.

[0027] According to an embodiment of the present disclosure, the inventory information includes a test environment status and routing information of the joint testing environment, and verifying the joint testing environment according to the inventory information includes:

[0028] After determining that the test network and environment of the joint test environment are available, a test environment connection test is performed according to the routing information.

[0029] A second aspect of the present disclosure provides a scheduling device for joint debugging test, the device comprising:

[0030] a parsing module, configured to respond to the joint debugging test request and parse the joint debugging test request message to determine the target test environment; and

[0031] The scheduling module is used to forward the joint debugging test request message to the target test environment according to the environment identification information if it is determined that the environment identification information of the target test environment is ready, wherein the environment identification information is used to represent the status information and routing rule information of the test environment.

[0032] According to an embodiment of the present disclosure, the scheduling module includes: a first determining submodule, a second determining submodule, and a third determining submodule.

[0033] A first determining submodule is configured to determine the state information, scheduling rules, and routing information of the target test environment according to the environment identification information; and

[0034] A second determining submodule is configured to forward the joint debugging test request message to the target test environment according to the scheduling rule and the routing information when determining that the status information of the target test environment is available; and

[0035] The third determining submodule is configured to suspend the joint debugging test when it is determined that the status information of the target test environment is unavailable.

[0036] According to an embodiment of the present disclosure, the scheduling rule includes a time period allocation rule and an environment weight, and the second determination submodule includes: a first determination unit, a second determination unit, a third determination unit, a connection unit, and a forwarding unit.

[0037] A first determining unit, configured to determine a first weight according to a test period of the joint debugging test and a time period allocation rule;

[0038] A second determining unit, configured to determine a second weight according to the joint debugging test type and the environment weight;

[0039] a third determining unit, configured to determine a routing weight according to the first weight and the second weight;

[0040] a connecting unit, configured to establish a connection with the target test environment according to the routing weight and the routing information; and

[0041] A forwarding unit is used to forward the joint debugging test request message to the target test environment.

[0042] According to an embodiment of the present disclosure, it further includes: an environment information collection module and an update module.

[0043] an environment information collection module, configured to collect target test environment information if it is determined that the environment identification information of the target test environment is not ready; and

[0044] The first updating module is configured to determine the test environment status and routing information according to the test environment information to update the environment identification information.

[0045] According to an embodiment of the present disclosure, the system further includes: an acquisition module, a verification module, a determination module and a second update module.

[0046] An acquisition module, configured to obtain inventory information of the joint testing environment in response to an access request from the joint testing environment;

[0047] A verification module, configured to verify the joint testing environment according to the inventory information;

[0048] a determination module, configured to determine, after determining that the verification has passed, environment identification information of the joint testing environment based on the routing information of the joint testing environment and a preset scheduling rule; and

[0049] The second updating module is configured to periodically update the environment identification information of the joint testing environment.

[0050] According to an embodiment of the present disclosure, the inventory information includes a test environment status and routing information of the joint test environment, and the verification module includes a test submodule.

[0051] The testing submodule is configured to perform a test environment connection test according to the routing information after determining that the test network and environment of the joint test environment are available.

[0052] The third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein, when the one or more programs are executed by the one or more processors, the one or more processors execute the scheduling method of the above-mentioned joint debugging test.

[0053] A fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the scheduling method for the above-mentioned joint debugging test.

[0054] A fifth aspect of the present disclosure further provides a computer program product, including a computer program, which implements the scheduling method of the above-mentioned joint debugging test when executed by a processor.

[0055] A scheduling method for joint debugging tests provided by an embodiment of the present invention determines the target test environment by parsing the joint debugging test request message, and automatically distributes and routes the joint debugging test request message according to the environment identification information of the target test environment. Compared with related technologies, the scheduling method for joint debugging tests provided by an embodiment of the present invention can realize automated joint debugging environment scheduling and reasonable joint debugging resource allocation in joint debugging tests, reduce communication and coordination between different units, improve development and testing efficiency, and thus reduce R&D costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0057] Figure 1 Schematically illustrates an application scenario diagram of a scheduling method, apparatus, device, storage medium, and program product for joint debugging and testing according to an embodiment of the present disclosure;

[0058] Figure 2 A schematic diagram of the system architecture of a scheduling device for joint debugging and testing provided in accordance with an embodiment of the present disclosure is shown;

[0059] Figure 3 A flowchart of a scheduling method for joint debugging test provided according to an embodiment of the present disclosure is schematically shown;

[0060] Figure 4 A flowchart of a method for forwarding the joint debugging test request message to a target test environment according to the environment identification information provided in accordance with an embodiment of the present disclosure is schematically shown;

[0061] Figure 5 A flowchart of a scheduling method for joint debugging test provided according to another embodiment of the present disclosure is schematically shown;

[0062] Figure 6 A flowchart of a scheduling method for joint debugging test provided according to another embodiment of the present disclosure is schematically shown;

[0063] Figure 7 A block diagram schematically illustrates a structure of a scheduling device for joint debugging and testing according to an embodiment of the present disclosure; and

[0064] Figure 8 A block diagram of an electronic device suitable for implementing a scheduling method for joint debugging tests according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0065] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0066] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0067] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0068] When expressions such as "at least one of A, B and C, etc." are used, they should generally be interpreted in accordance with the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0069] When establishing financial interconnection between banking systems and external partners, due to cost and complexity, the partners only provide one test environment. Internally, banking systems, based on production security considerations, divide version testing into multiple phases and scenarios. These phases include development, functional, simulation, and production, and the corresponding test environments include development, functional, simulation, and production. Current joint debugging and testing solutions rely on manual coordination between two or even multiple parties, scheduling the test environment based on the testing requirements of each scenario. This scheduling approach is often inefficient and impacts normal testing.

[0070] Based on the above technical problems, an embodiment of the present disclosure provides a scheduling method for joint debugging tests, the method comprising: in response to a joint debugging test request, parsing a joint debugging test request message to determine a target test environment; and if it is determined that the environment identification information of the target test environment is ready, forwarding the joint debugging test request message to the target test environment according to the environment identification information, wherein the environment identification information is used to characterize the status information and routing rule information of the test environment.

[0071] Figure 1 The application scenario diagram of the scheduling method, apparatus, device, storage medium and program product for joint debugging test according to the embodiment of the present disclosure is schematically shown.

[0072] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a joint debugging test scheduling scenario. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0073] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0074] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0075] Server 105 can be a scheduling server, which executes the scheduling method of the joint debugging test provided by the embodiment of the present disclosure, receives the joint debugging test request message initiated by the partner, parses the message to determine the target test environment, obtains the environment identification information of the target test environment, determines the status information and routing rule information of the test environment, and then forwards the joint debugging test request message.

[0076] It should be noted that the scheduling method for the joint debugging test provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the scheduling device for the joint debugging test provided in the embodiment of the present disclosure can generally be set in the server 105. The scheduling method for the joint debugging test provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the scheduling device for the joint debugging test provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0077] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0078] It should be noted that the scheduling method and device for joint debugging and testing determined in the embodiments of the present disclosure can be used in the field of software testing technology, the field of financial technology, and any field other than the financial field. The application field of the scheduling method and device for joint debugging and testing determined in the embodiments of the present disclosure is not limited.

[0079] Figure 2 The following schematically shows a system architecture diagram of a scheduling device for joint debugging and testing provided in accordance with an embodiment of the present disclosure. Figure 2 As shown, the scheduling method provided by the embodiment of the present disclosure is executed by a scheduling device M100, which includes a scheduling main control unit M101, a communication interaction unit M102, a monitoring unit M103, a computing unit M107, a persistence unit M108, and a human-computer interaction unit M109. Among them, the scheduling main control unit M101 is used to comprehensively coordinate the cooperative operation of each unit and analyze and process the request for the first connection of the partner test environment V102 received by the communication interaction unit M102, and according to the characteristics of the request message and the request type (such as: http message and post request, etc.), it coordinates the monitoring unit M103 and the operation unit M107 to determine the effective and available test environment and the routing information to reach the test environment, so as to achieve the purpose of test environment scheduling; the monitoring unit M103, including the timer unit M104, the health check unit M105, and the recording and playback unit M106, is mainly used for monitoring and information collection of the bank test environments V104 and V 105, to determine the status and routing information of the bank-side test environment in the test environment V 100, so as to ensure that the entire test environment V100 is actually available. The calculation unit M107 prioritizes and weights the relevant information submitted by the integrated monitoring unit M103 and the human-computer interaction unit M109, using algorithms such as minimum number of connections, rule priority, and randomization. The calculation results are then stored persistently in the persistence unit M108. The persistence unit M108 stores the final result set of the calculation unit M107's calculations based on the collected monitoring data. The human-computer interaction unit M109 is an operation unit for manually setting special rules. Through this unit, users can manually input relevant rules to control the scheduling main control unit M101 to set relevant special rules, thereby assisting in the control and scheduling of the joint testing environment.

[0080] The joint test environment V100 is connected to the bank test environment V104 and V105 by the partner test environment V102 through the network device V103. The bank side shields and deploys multiple sets of test environments V104 and V105 under the network device V103. The scheduling device M100 interacts with the joint test environment V100 through network communication. When the partner test environment V102 connects to the bank test environment through the network device V103, it will first check the environment identification information on the network device V103 to determine the routing status and mode of the test environment V104 and V105. If the test environment routing status and mode in the environment identification information are invalid (for example, the test environment network is unreachable or the environment is unavailable), the scheduling device M100 will be notified to re-acquire the status and routing information of the test environment V104 and V105, and then perform a connection test based on the acquired test environment routing information.

[0081] The following will be based on Figure 1 Describe the application scenarios and Figure 2 The system architecture, through Figures 3 to 6 The scheduling method of the joint debugging test in an embodiment of the present disclosure is described in detail.

[0082] Figure 3 The flowchart of a scheduling method for joint debugging test provided in accordance with an embodiment of the present disclosure is schematically shown. Figure 3 As shown, the scheduling method for the joint debugging test of this embodiment includes operations S210 to S220, and the method can be executed by a server or other computing devices.

[0083] Before executing operations S210 and S220, to achieve docking of the bank-side and partner-side test environments, it is first necessary to open up the partner's network to the bank, pre-configure the bank's network address, and activate the partner's network device firewall to the bank. The partner in this embodiment can be, for example, any organization other than a bank.

[0084] In operation S210 , in response to the joint debugging test request, the joint debugging test request message is parsed to determine a target test environment.

[0085] In operation S220 , if it is determined that the environment identification information of the target test environment is ready, the joint debugging test request message is forwarded to the target test environment according to the environment identification information.

[0086] According to an embodiment of the present disclosure, the environment identification information is used to represent status information and routing rule information of the test environment.

[0087] In one example, when a partner needs to conduct a joint debugging test, a partner message request is sent to the bank-side network device. The network device can be understood as a gateway, which is responsible for traffic routing and load distribution. The partner message request is sent to the bank-side network device, and the target test environment that the partner needs to connect to is determined based on the joint debugging test request message. When the partner test message flows to the network device, its environment identification information will be checked. The environment identification information mainly stores routing rule information, including traffic distribution of different test environments at different stages, equipment hardware resource distribution and weight ratio, etc., which is stored and maintained by the bank-side network device. The joint debugging test request message is further processed based on the environment identification information maintained in the bank-side network device. Specifically, when it is determined that the environment identification information of the target test environment is ready, a specific routing scheduling rule is determined based on the environment identification information, and the joint debugging test request message is forwarded to the target test environment based on the routing scheduling rule. For the specific process, please refer to Figure 4 Operations S221 to S223 are shown.

[0088] A scheduling method for joint debugging tests provided by an embodiment of the present invention determines the target test environment by parsing the joint debugging test request message, and automatically distributes and routes the joint debugging test request message according to the environment identification information of the target test environment. Compared with related technologies, the scheduling method for joint debugging tests provided by an embodiment of the present invention can realize automated joint debugging environment scheduling and reasonable joint debugging resource allocation in joint debugging tests, reduce communication and coordination between different units, improve development and testing efficiency, and thus reduce R&D costs.

[0089] The following will be combined Figure 4 The specific process of forwarding the joint debugging test request message to the target test environment according to the environment identification information provided in an embodiment of the present disclosure is introduced. Figure 4 A flowchart of a method for forwarding the joint debugging test request message to a target test environment according to the environment identification information provided in accordance with an embodiment of the present disclosure is schematically shown.

[0090] like Figure 4 As shown, operation S220 includes operations S221 to S223.

[0091] In operation S221 , the state information, scheduling rules, and routing information of the target test environment are determined according to the environment identification information.

[0092] According to an embodiment of the present disclosure, the scheduling rule includes a time period allocation rule and an environmental weight.

[0093] In one example, the test environment status information is used to indicate whether the current test environment is available. Scheduling rules include, for example, time period allocation rules and environment weight ratios, as well as device resource allocation rules, as shown in Tables 1 to 3 below. The status information, scheduling rules, and routing information of the current target test environment are determined based on the environment identification information.

[0094] Table 1 Time period allocation rules

[0095] Environment\Time Development Stage Functional stage Simulation stage Production stage Development Environment 100% 50% 20% 0% Functional Environment 0% 50% 30% 0% Simulation environment 0% 0% 50% 0% Production Environment 0% 0% 0% 100%

[0096] As shown in Table 1, the test environment is divided into the development phase, functional phase, simulation phase, and production phase according to the development lifecycle. The resource allocation ratio weights of different test environments in different phases are different.

[0097] Table 2 Equipment resource allocation rules

[0098]

[0099] Table 3 Environmental weight ratio

[0100] Environment\Weight Proportion Development Environment 10% Functional Environment 20% Simulation environment 30% Production Environment 40%

[0101] In operation S222 , when it is determined that the status information of the target test environment is available, the joint debugging test request message is forwarded to the target test environment according to the scheduling rule and the routing information.

[0102] According to an embodiment of the present disclosure, a first weight is determined based on the test period in which the joint debugging test is located and the period allocation rule; a second weight is determined based on the joint debugging test type and the environment weight; a routing weight is determined based on the first weight and the second weight; a connection is established with the target test environment based on the routing weight and the routing information; and the joint debugging test request message is forwarded to the target test environment.

[0103] In one example, when it is determined that the target test environment status information is available, the routing information and scheduling rules are determined according to the environment identification information. For example, the current time period is the simulation test stage, and the test environment is the functional environment. According to the time period allocation rule table in Table 1, the first weight is determined to be 30%, and then the second weight is determined to be 30% according to the environment weight in Table 3. The routing weight is 30%*30%=9%; for example, if the weight value of a certain environment is 50%, the proportion of the continued traffic allocation will be * 50% on the original allocation rule. For example, the functional environment allocates 50%*weight value 50%=25% of the traffic in the functional stage.

[0104] In operation S223 , when it is determined that the status information of the target test environment is unavailable, the joint debugging test is suspended.

[0105] In one example, when it is determined that the status information of the target test environment is unavailable, indicating that the joint debugging test cannot be performed currently, the partner is notified to suspend the joint debugging test.

[0106] The following will be combined Figures 5 and 6 This section describes the maintenance and update process of environmental identification information. Figure 5 The flowchart of the scheduling method of the joint debugging test provided in accordance with another embodiment of the present disclosure is schematically shown. Figure 5 As shown, it includes operations S310 to S340.

[0107] In operation S310 , in response to an access request of a joint testing environment, inventory information of the joint testing environment is acquired.

[0108] In operation S320, the joint testing environment is verified according to the inventory information.

[0109] According to an embodiment of the present disclosure, the inventory information includes the test environment status and routing information of the joint testing environment.

[0110] According to an embodiment of the present disclosure, after determining that the test network and environment of the joint test environment are available, a test environment connection test is performed according to the routing information.

[0111] In operation S330 , after it is determined that the verification is passed, the environment identification information of the joint testing environment is determined according to the routing information of the joint testing environment and a preset scheduling rule.

[0112] In operation S340 , the environment identification information of the joint testing environment is updated periodically.

[0113] In one example, when the scheduling device first receives a request for test environment status and routing information forwarded by the joint test environment through a network device, the scheduling device forwards the request information to the scheduling main control unit through the communication interaction unit. The scheduling main control unit parses and processes the request, queries whether there is any existing information about the test environment requested to be joined, and performs a health check on the test environment based on the existing information, including availability check and validity check.

[0114] In one example, the routing information of the test environment is determined based on the inventory information, and the test environment connection test is performed based on the routing information. If there is no inventory information or the inventory information is invalid, the monitoring unit is triggered to check the test environments V104 and V105, that is, the health check unit performs a health check on the bank test environments V104 and V105 and collects the corresponding inspection results; the recording and playback unit is triggered to determine the availability and validity of the test environment by replaying the transaction messages of the bank test environments V104 and V105 and collect the corresponding inspection results. If manual participation is required, the human-computer interaction unit M109 is used to add or modify the corresponding scheduling rules, such as test period arrangement, equipment resource allocation, and test traffic adjustment, without using the preset rules of the scheduling master control unit; then, the collected inspection results are calculated and analyzed by the calculation unit in combination with the manual scheduling rules, and the calculation and analysis results are stored by the persistence unit and transmitted to the network device V103 of the connected test environment V100 through the communication interaction unit to update its environment identification information.

[0115] In one example, a timer can also be used to regularly drive a health check unit to perform a health check on the bank test environment, and regularly drive a recording and playback unit to record and regularly replay the test messages of the bank test environment during the normal testing phase of the joint testing environment to determine whether the status of the bank test environment is normal, and regularly update the environment identification information.

[0116] Figure 6 The flowchart of the scheduling method of the joint debugging test provided in accordance with another embodiment of the present disclosure is schematically shown. Figure 6 As shown, it includes operation S410 and operation S420.

[0117] In operation S410 , if it is determined that the environment identification information of the target test environment is not ready, target test environment information is collected.

[0118] In operation S420, the test environment status and routing information are determined according to the test environment information to update the environment identification information.

[0119] In one example, if the target test environment's environmental identification information is determined to be unready, the bank's network equipment communicates with the dispatching device. Because the network device's environmental flag is unready, the dispatching device is notified. The dispatching device then intervenes and ultimately updates the network device's environmental flag, allowing the joint debugging test to continue. Specifically, the test environment status and routing information are calculated and stored, and the collected test environment information is processed to determine the test environment routing weight. The monitoring unit regularly collects the health status of the bank's test environment through the health monitoring unit, such as CPU and memory usage ratios, environment readiness status, and availability. Based on the collected inspection results, the weight value of the environment's allocable traffic is determined, and the weighting rules set for the environmental identification information in the network device are used to update.

[0120] The scheduling method for joint debugging tests provided by the embodiments of the present disclosure replaces the traditional manual maintenance of the joint testing environment with the automatic maintenance of environment identification information, thereby reducing the complexity of maintenance, automatically setting the network configuration and routing rules in the partner's joint testing environment, realizing free scheduling of the joint testing environment with the partner, reducing manual operations, reducing the probability of erroneous operations, and improving testing efficiency.

[0121] Based on the above-mentioned scheduling method for joint debugging test, the present disclosure also provides a scheduling device for joint debugging test. Figure 7 The device is described in detail.

[0122] Figure 7 The following schematically shows a structural block diagram of a scheduling device for joint debugging and testing according to an embodiment of the present disclosure.

[0123] like Figure 7 As shown, the scheduling device 700 for joint debugging test in this embodiment includes a parsing module 710 and a scheduling module 720 .

[0124] The parsing module 710 is used to respond to the joint test request and parse the joint test request message to determine the target test environment. In one embodiment, the parsing module 710 can be used to perform the operation S210 described above, which will not be repeated here.

[0125] Scheduling module 720 is configured to forward the joint debugging test request message to the target test environment based on the environment identification information if it determines that the environment identification information of the target test environment is ready, wherein the environment identification information is used to represent the state information and routing rule information of the test environment. In one embodiment, scheduling module 720 can be configured to perform operation S220 described above, which will not be further described here.

[0126] According to an embodiment of the present disclosure, the scheduling module includes: a first determining submodule, a second determining submodule, and a third determining submodule.

[0127] The first determination submodule is configured to determine the state information, scheduling rules, and routing information of the target test environment according to the environment identification information. In one embodiment, the first determination submodule may be configured to execute the operation S221 described above, which will not be described in detail herein.

[0128] The second determining submodule is configured to forward the joint debugging test request message to the target test environment according to the scheduling rule and the routing information when determining that the status information of the target test environment is available. In one embodiment, the second determining submodule can be configured to perform operation S222 described above, which will not be described in detail here.

[0129] The third determining submodule is configured to suspend the joint debugging test when determining that the state information of the target test environment is unavailable. In one embodiment, the third determining submodule may be configured to execute the operation S223 described above, which will not be described in detail here.

[0130] According to an embodiment of the present disclosure, the scheduling rule includes a time period allocation rule and an environment weight, and the second determination submodule includes: a first determination unit, a second determination unit, a third determination unit, a connection unit, and a forwarding unit.

[0131] The first determining unit is configured to determine the first weight according to the test period of the joint debugging test and the period allocation rule. In one embodiment, the first determining unit may be configured to perform the operation S222 described above, which will not be described in detail here.

[0132] The second determining unit is configured to determine the second weight according to the joint debugging test type and the environment weight. In one embodiment, the second determining unit may be configured to perform the operation S222 described above, which will not be described in detail herein.

[0133] The third determining unit is configured to determine a routing weight according to the first weight and the second weight. In one embodiment, the third determining unit may be configured to perform the operation S222 described above, which will not be described in detail herein.

[0134] The connection unit is configured to establish a connection with the target test environment according to the routing weight and the routing information. In one embodiment, the connection unit may be configured to perform the operation S222 described above, which will not be described in detail herein.

[0135] The forwarding unit is configured to forward the joint debugging test request message to the target test environment. In one embodiment, the forwarding unit may be configured to perform the operation S222 described above, which will not be described in detail here.

[0136] According to an embodiment of the present disclosure, it further includes: an environment information collection module and an update module.

[0137] The environment information collection module is configured to collect target test environment information if it is determined that the environment identification information of the target test environment is not ready. In one embodiment, the environment information collection module can be configured to perform the operation S410 described above, which will not be described in detail here.

[0138] The first updating module is configured to determine the test environment status and routing information according to the test environment information to update the environment identification information. In one embodiment, the first updating module may be configured to execute the operation S420 described above, which will not be described in detail here.

[0139] According to an embodiment of the present disclosure, the system further includes: an acquisition module, a verification module, a determination module and a second update module.

[0140] The acquisition module is configured to acquire inventory information of the joint testing environment in response to an access request from the joint testing environment. In one embodiment, the acquisition module may be configured to execute the operation S310 described above, which will not be described in detail herein.

[0141] The verification module is configured to verify the joint test environment according to the inventory information. In one embodiment, the verification module may be configured to execute the operation S320 described above, which will not be described in detail here.

[0142] The determination module is configured to determine the environment identification information of the joint test environment according to the routing information of the joint test environment and the preset scheduling rule after determining that the verification passes. In one embodiment, the determination module can be configured to perform the operation S330 described above, which will not be described in detail here.

[0143] The second updating module is configured to periodically update the environment identification information of the joint testing environment. In one embodiment, the second updating module may be configured to execute the operation S340 described above, which will not be described in detail herein.

[0144] According to an embodiment of the present disclosure, the inventory information includes a test environment status and routing information of the joint test environment, and the verification module includes a test submodule.

[0145] The testing submodule is configured to perform a test environment connection test according to the routing information after determining that the test network and environment of the joint test environment are available.

[0146] According to an embodiment of the present disclosure, any multiple modules in the parsing module 710 and the scheduling module 720 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the parsing module 710 and the scheduling module 720 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the parsing module 710 and the scheduling module 720 can be at least partially implemented as a computer program module, which can perform the corresponding function when the computer program module is run.

[0147] Figure 8A block diagram of an electronic device suitable for implementing a scheduling method for joint debugging tests according to an embodiment of the present disclosure is schematically shown.

[0148] like Figure 8 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. The processor 901 may, for example, include a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0149] Various programs and data required for the operation of the electronic device 900 are stored in the RAM 903. The processor 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. The processor 901 executes the various operations of the method flow according to the embodiment of the present disclosure by executing the programs in the ROM 902 and / or the RAM 903. It should be noted that the programs may also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also execute the various operations of the method flow according to the embodiment of the present disclosure by executing the programs stored in the one or more memories.

[0150] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card or a modem. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed in the drive 910 as needed, so that a computer program read therefrom can be installed into the storage portion 908 as needed.

[0151] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, which, when executed, implement the joint debugging test scheduling method according to the embodiments of this disclosure.

[0152] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.

[0153] Embodiments of the present disclosure also include a computer program product, comprising a computer program containing program code for executing the method shown in the flowchart. When the computer program product is executed in a computer system, the program code is used to enable the computer system to implement the scheduling method for joint debugging and testing provided in embodiments of the present disclosure.

[0154] The computer program executes the above functions defined in the system / device of the embodiment of the present disclosure when the processor 901 executes the computer program. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0155] In one embodiment, the computer program may be stored on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal on a network medium, downloaded and installed via the communication portion 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0156] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from a removable medium 911. When the computer program is executed by the processor 901, the above-described functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the systems, devices, means, modules, units, etc. described above can be implemented by computer program modules.

[0157] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computer programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).

[0158] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0159] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of this disclosure may be combined and / or coupled in various ways, even if such combinations and / or couplings are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure may be combined and / or coupled in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or couplings are intended to fall within the scope of this disclosure.

[0160] The embodiments of the present disclosure are described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A scheduling method for joint debugging test, characterized in that: The method comprises: In response to the joint debugging test request, parsing the joint debugging test request message to determine the target test environment; and If it is determined that the environment identification information of the target test environment is ready, forwarding the joint debugging test request message to the target test environment according to the environment identification information, wherein the environment identification information is used to represent the state information and routing rule information of the test environment; The forwarding the joint debugging test request message to the target test environment according to the environment identification information includes: Determine the state information, scheduling rules and routing information of the target test environment according to the environment identification information; When it is determined that the status information of the target test environment is available, forwarding the joint debugging test request message to the target test environment according to the scheduling rule and the routing information; and When it is determined that the status information of the target test environment is unavailable, suspending the joint debugging test; The scheduling rule includes a time period allocation rule and an environment weight, and forwarding the joint debugging test request message to the target test environment according to the scheduling rule and routing information includes: Determine a first weight according to the test period of the joint debugging test and the period allocation rule; Determining a second weight according to the joint debugging test type and the environment weight; determining a routing weight according to the first weight and the second weight; Establishing a connection with the target test environment according to the routing weight and the routing information; and Forward the joint debugging test request message to the target test environment.

2. The method according to claim 1, characterized in that Also includes: If it is determined that the environment identification information of the target test environment is not ready, collecting the target test environment information; as well as The test environment status and routing information are determined according to the test environment information to update the environment identification information.

3. The method according to claim 1 or 2, characterized in that Before receiving the joint debugging test request message, the following steps are also included: In response to an access request from a joint testing environment, obtaining inventory information of the joint testing environment; Verifying the joint testing environment according to the inventory information; After determining that the verification passes, determining the environment identification information of the joint testing environment according to the routing information of the joint testing environment and a preset scheduling rule; and The environment identification information of the joint testing environment is updated regularly.

4. The method according to claim 3, characterized in that The inventory information includes a test environment status and routing information of the joint testing environment, and verifying the joint testing environment according to the inventory information includes: After determining that the test network and environment of the joint test environment are available, a test environment connection test is performed according to the routing information.

5. A scheduling device for joint debugging test, characterized in that: The device comprises: a parsing module, configured to respond to the joint debugging test request and parse the joint debugging test request message to determine the target test environment; and a scheduling module configured to forward the joint debugging test request message to the target test environment according to the environment identification information if it is determined that the environment identification information of the target test environment is ready, wherein the environment identification information is used to represent the state information and routing rule information of the test environment; The scheduling module is further configured to determine the status information, scheduling rules, and routing information of the target test environment based on the environment identification information; when the status information of the target test environment is determined to be available, forward the joint debugging test request message to the target test environment according to the scheduling rules and the routing information; and when the status information of the target test environment is determined to be unavailable, suspend the joint debugging test; the scheduling rules include time period allocation rules and environment weights; The scheduling module is also used to determine a first weight based on the test period in which the joint debugging test is located and the period allocation rules; determine a second weight based on the joint debugging test type and the environment weight; determine a routing weight based on the first weight and the second weight; establish a connection with the target test environment based on the routing weight and the routing information; and forward the joint debugging test request message to the target test environment.

6. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the scheduling method for joint debugging test according to any one of claims 1 to 4.

7. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the scheduling method for joint debugging test according to any one of claims 1 to 4.

8. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the scheduling method for the joint debugging test according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Test environment monitoring method and apparatus, computer device and storage medium

    CN108845937A

  • Mobile terminal application test method and device

    CN113051159A