CN116340181A - Method, device, equipment, storage medium and program product for scheduling joint debugging test - Google Patents

Method, device, equipment, storage medium and program product for scheduling joint debugging test Download PDF

Info

Publication number
CN116340181A
CN116340181A CN202310345685.2A CN202310345685A CN116340181A CN 116340181 A CN116340181 A CN 116340181A CN 202310345685 A CN202310345685 A CN 202310345685A CN 116340181 A CN116340181 A CN 116340181A
Authority
CN
China
Prior art keywords
environment
test
information
joint
joint debugging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310345685.2A
Other languages
Chinese (zh)
Inventor
王攀峰
梁锦华
李铭豪
张书阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310345685.2A priority Critical patent/CN116340181A/en
Publication of CN116340181A publication Critical patent/CN116340181A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure provides a scheduling method for joint debugging test, relates to the technical field of software test, and can be applied to the technical field of finance. The method comprises the following steps: responding to the joint debugging test request, and analyzing a joint debugging test request message to determine a target test environment; and if the environment identification information of the target test environment is determined to be 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 for representing the state information and the routing rule information of the test environment. The disclosure also provides a scheduling device, equipment and storage medium for joint debugging test.

Description

Method, device, equipment, storage medium and program product for scheduling joint debugging test
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to the field of software testing technology, and more particularly, to a method, apparatus, device, storage medium, and program product for scheduling joint debugging test.
Background
In the process of establishing financial scene interconnection between a banking system and a partner, joint debugging test between the partner and a banking side is required.
In the related technology, for joint debugging test scheduling in different scenes and different stages, manual participation is needed, and the problems of opening period, firewall opening, network switching, flow distribution and the like are reserved through multiparty communication. The low execution efficiency of the manual scheduling mode results in low test efficiency.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a scheduling method, apparatus, device, storage medium, and program product for joint debugging test that improves test efficiency.
According to a first aspect of the present disclosure, there is provided a scheduling method of joint debugging test, the method comprising:
responding to the joint debugging test request, and analyzing a joint debugging test request message to determine a target test environment; and
and if the environment identification information of the target test environment is determined to be 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 for representing the state information and the routing rule information of the test environment.
According to an embodiment of the present disclosure, forwarding the joint debugging test request packet to a target test environment according to the environment identification information includes:
determining state information, scheduling rules and routing information of the target test environment according to the environment identification information; and
when the state information of the target test environment is determined to be available, forwarding the joint debugging test request message to the target test environment according to the dispatching rule and the routing information; and
and suspending joint debugging test when the state information of the target test environment is determined to be unavailable.
According to an embodiment of the present disclosure, the scheduling rule includes a period allocation rule and an environment weight, and the forwarding the joint debugging test request packet to the target testing environment according to the scheduling rule and the routing information includes:
determining a first weight according to a test period where the joint debugging test is located 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 connection with the target test environment according to the routing weight and the routing information; and
And forwarding the joint debugging test request message to the target test environment.
According to an embodiment of the present disclosure, further comprising:
if the environment identification information of the target test environment is not ready, collecting the target test environment information; and
and determining the testing environment state and the routing information according to the testing environment information so as to update the environment identification information.
According to an embodiment of the present disclosure, before receiving the joint debugging test request message, the method further includes:
responding to an access request of a joint measurement environment, and acquiring stock information of the joint measurement environment;
checking the joint measurement environment according to the stock information;
after the verification is determined to pass, determining environment identification information of the joint measurement environment according to the routing information of the joint measurement environment and a preset scheduling rule; and
and updating the environment identification information of the joint measurement environment at fixed time.
According to an embodiment of the present disclosure, the stock information includes test environment status and routing information of a joint test environment, and the verifying the joint test environment according to the stock information includes:
and after determining that the test network and the environment of the joint test environment are available, performing test environment connection test according to the routing information.
A second aspect of the present disclosure provides a scheduling apparatus for joint debugging test, the apparatus comprising:
the analysis module is used for responding to the joint debugging test request and analyzing the joint debugging test request message so as to determine a target test environment; and
and the scheduling module is used for forwarding the joint debugging test request message to the target test environment according to the environment identification information if the environment identification information of the target test environment is determined to be ready, wherein the environment identification information is used for representing the state information and the routing rule information of the test environment.
According to an embodiment of the present disclosure, the scheduling module includes: the first, second and third determination sub-modules.
The first determining submodule is used for determining state information, scheduling rules and routing information of the target test environment according to the environment identification information; and
the second determining submodule is used for forwarding the joint debugging test request message to the target test environment according to the dispatching rule and the routing information when the state information of the target test environment is determined to be available; and
and the third determination submodule is used for suspending joint debugging test when the state information of the target test environment is determined to be unavailable.
According to an embodiment of the present disclosure, the scheduling rules include a period allocation rule and an environmental weight, and the second determining submodule includes: the device comprises a first determining unit, a second determining unit, a third determining unit, a connecting unit and a forwarding unit.
The first determining unit is used for determining a first weight according to a test time period where the joint debugging test is located and the time period allocation rule;
the second determining unit is used for determining a second weight according to the joint debugging test type and the environment weight;
a third determining unit, configured to determine a routing weight according to the first weight and the second weight;
the connection unit is used for establishing connection with the target test environment according to the routing weight and the routing information; and
and the forwarding unit is used for forwarding the joint debugging test request message to the target test environment.
According to an embodiment of the present disclosure, further comprising: the environment information collection module and the updating module.
The environment information collection module is used for collecting the target test environment information if the environment identification information of the target test environment is determined not to be ready; and
and the first updating module is used for determining the testing environment state and the routing information according to the testing environment information so as to update the environment identification information.
According to an embodiment of the present disclosure, further comprising: the device comprises an acquisition module, a verification module, a determination module and a second updating module.
The acquisition module is used for responding to an access request of the joint measurement environment and acquiring stock information of the joint measurement environment;
the verification module is used for verifying the joint measurement environment according to the stock information;
the determining module is used for determining the environment identification information of the joint measurement environment according to the routing information of the joint measurement environment and a preset scheduling rule after the verification is determined to pass; and
and the second updating module is used for updating the environment identification information of the joint measurement environment at fixed time.
According to an embodiment of the present disclosure, the stock information includes test environment status and routing information of the joint test environment, and the verification module includes a test sub-module.
And the testing sub-module is used for carrying out the connection test of the testing environment according to the routing information after determining that the testing network and the environment of the joint testing environment are available.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the scheduling method of joint debugging test described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the scheduling method of joint debugging test described above.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the scheduling method of joint debugging test described above.
According to the joint debugging test scheduling method provided by the embodiment of the invention, the target test environment is determined by analyzing the joint debugging test request message, and the automatic distribution and routing of the joint debugging test request message are realized according to the environment identification information of the target test environment.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a scheduling method, apparatus, device, storage medium and program product for joint debugging test according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a system architecture diagram of a scheduling apparatus for joint debugging test according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a scheduling method for joint debugging test provided in accordance with an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of a method provided according to an embodiment of the present disclosure for forwarding the joint debugging test request message to a target test environment according to the environment identification information;
FIG. 5 schematically illustrates a flow chart of a scheduling method for joint debugging tests provided in accordance with another embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow chart of a scheduling method of joint debugging tests provided in accordance with yet another embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of a scheduling apparatus for joint debugging test according to an embodiment of the present disclosure; and
fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement a scheduling method for joint debugging tests, according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the process of establishing financial scene interconnection between a banking system and a peripheral partner, the partner only provides a set of testing environment due to cost and complexity, and version testing is divided into a plurality of different testing stages and scenes based on production safety consideration in the banking system, wherein the testing stages comprise a development stage, a functional stage, a modeling testing stage and a production stage, and the testing environment comprises a development environment, a functional environment, a modeling testing environment and a production environment. The current joint debugging test scheme is to directly participate in communication and coordination of two parties and even multiple parties by manpower, and to schedule test environments according to test requirements of different conditions, the scheduling mode is low in efficiency, and normal test is affected.
Based on the technical problems, an embodiment of the present disclosure provides a scheduling method for joint debugging test, where the method includes: responding to the joint debugging test request, and analyzing a joint debugging test request message to determine a target test environment; and if the environment identification information of the target test environment is determined to be 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 for representing the state information and the routing rule information of the test environment.
Fig. 1 schematically illustrates an application scenario diagram of a scheduling method, apparatus, device, storage medium and program product of joint debugging test according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include a joint debugging test scheduling scenario. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a scheduling server, where the scheduling method for joint debugging test provided by the embodiment of the present disclosure is executed, receives a joint debugging test request message initiated by a partner, parses the message to determine a target test environment, obtains environment identification information of the target test environment, determines state information and routing rule information of the test environment, and further forwards the joint debugging test request message.
It should be noted that, the scheduling method of joint debugging test provided in the embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the scheduling apparatus for joint debugging test provided in the embodiments of the present disclosure may be generally disposed in the server 105. The scheduling method of joint debugging test provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the scheduling apparatus for joint debugging test provided in the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
It should be noted that, the scheduling method and apparatus for joint debugging test determined in the embodiments of the present disclosure may be used in the technical field of software testing, may also be used in the technical field of finance, and may also be used in any field other than the financial field.
Fig. 2 schematically illustrates a system architecture diagram of a scheduling apparatus for joint debugging test according to an embodiment of the present disclosure. As shown in fig. 2, the dispatcher provided in the embodiment of the present disclosure is executed by a dispatcher M100, where the dispatcher M100 includes a dispatching master control unit M101, a communication interaction unit M102, a monitoring unit M103, an operation unit M107, a persistence unit M108, and a man-machine interaction unit M109. The scheduling master control unit M101 is used for comprehensively coordinating the cooperative operation of all units, analyzing and processing the request of the partner test environment V102 received by the communication interaction unit M102 for connecting the test environment for the first time, and determining the effective available test environment and the routing information reaching the test environment through the coordination monitoring unit M103 and the operation unit M107 according to the characteristics of the request message and the request type (such as http message, post request and the like) so as to realize the purpose of test environment scheduling; the monitoring unit M103 includes a timer unit M104, a health checking unit M105, and a recording and playing unit M106, and is mainly used for monitoring and information collecting of the bank test environments V104 and V105, so as to determine the status and routing information of the bank test environment in the test environment V100, so as to ensure that the whole test environment V100 can be practically used. The operation unit M107 is configured to perform route priority ranking and weight distribution on related information submitted by the comprehensive monitoring unit M103 and the man-machine interaction unit M109 according to algorithms such as minimum connection number, rule priority, random, and the like, and uniformly and permanently store the calculation results in the persistence unit M108. The persistence unit M108 is a result set for storing the operation result of the operation unit M107 to finally collect data according to the monitoring. The man-machine interaction unit M109 is an operation unit for manually making special rules, and related rules can be manually input through the unit to control the dispatching master control unit M101 to set the related special rules, so as to assist in controlling and dispatching the joint testing environment.
The joint test environment V100 is accessed to the bank test environments V104 and V105 by the partner test environment V102 through the network equipment V103, a bank side shields and deploys a plurality of sets of test environments V104 and V105 under the network equipment V103, the dispatching device M100 interacts with the joint test environment V100 in a network communication mode, when the partner test environment V102 is connected with the bank test environment through the network equipment V103, environment identification information on the network equipment V103 is checked for the first time to determine the routing state and mode of the test environments V104 and V105, and if the routing state and mode of the test environments in the environment identification information are invalid (for example, the test environment network is not reachable or the environment is not available), the dispatching device M100 is informed to reacquire the state and the routing information of the test environments V104 and V105, and then connection test is carried out according to the acquired test environment routing information.
The following will describe in detail a scheduling method of joint debugging test according to an embodiment of the present disclosure through fig. 3 to 6 based on the application scenario described in fig. 1 and the system architecture of fig. 2.
Fig. 3 schematically illustrates a flowchart of a scheduling method for joint debugging test according to an embodiment of the present disclosure. As shown in fig. 3, the scheduling method of the joint debugging test of this embodiment includes operations S210 to S220, and the method may be performed by a server or other computing device.
Before performing operations S210 and S220, to implement interfacing between the testing environments of the bank side and the partner side, firstly, the network from the partner to the bank is opened, the network address of the bank is pre-configured, and the firewall from the partner to the network device of the bank is opened. The partner in this embodiment may be any mechanism other than a bank, for example.
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.
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.
According to an embodiment of the present disclosure, the environment identification information is used to characterize state information of the test environment and routing rule information.
In one example, when the partner needs to perform joint debugging test, a partner message request is sent to a network device at the bank side, and the network device can be understood as a gateway and is responsible for routing of traffic and load distribution. The partner message requests to the bank side network equipment, a target test environment to be connected with the partner is determined according to the joint debugging test request message, when the partner test message flows to the network equipment, environment identification information of the partner test message is checked, the environment identification information mainly stores routing rule information, the information including flow distribution of different test environments in different stages, distribution of equipment hardware resources, weight proportion and the like, the bank side network equipment stores and maintains the joint debugging test request message, the joint debugging test request message is further processed according to the environment identification information maintained in the bank side network equipment, and specifically, when the environment identification information of the target test environment is determined to be ready, a specific routing rule is determined according to the environment identification information, the joint debugging test request message is forwarded to the target test environment according to the routing rule, and a specific process can be seen in operation S221-operation S223 shown in fig. 4.
According to the joint debugging test scheduling method provided by the embodiment of the invention, the target test environment is determined by analyzing the joint debugging test request message, and the automatic distribution and routing of the joint debugging test request message are realized according to the environment identification information of the target test environment.
A specific process of forwarding the joint debugging test request message to the target test environment according to the environment identification information according to the embodiment of the present disclosure will be described below with reference to fig. 4. Fig. 4 schematically illustrates a flowchart of a method for forwarding the joint debugging test request message to a target test environment according to the environment identification information according to an embodiment of the present disclosure.
As shown in fig. 4, operation S220 includes operations S221 to S223.
In operation S221, state information, scheduling rules, and routing information of the target test environment are determined according to the environment identification information.
According to an embodiment of the present disclosure, the scheduling rules include a period allocation rule and an environmental weight.
In one example, the state information of the test environment is used to characterize whether the current test environment is available, and the scheduling rules include, for example, a period allocation rule and an environment weight ratio, and further include a device resource allocation rule, as shown in tables 1 to 3 below. And determining state information, scheduling rules and routing information of the current target test environment according to the environment identification information.
Table 1 time period allocation rule table
Environment/time period Development stage Functional stage Mold testing stage Production phase
Development environment
100% 50% 20% 0%
Functional environment 0% 50% 30% 0%
Mold testing environment 0% 0% 50% 0%
Production environment 0% 0% 0% 100%
As shown in table 1, the test environment is divided into a development stage, a function stage, a modeling stage, and a production stage according to a development life cycle. The resource allocation proportion weights of different test environments at different stages are different.
Table 2 device resource allocation rule table
Figure BDA0004159676020000111
TABLE 3 environmental weight ratio
Environment/weight Proportion of
Development environment 10%
Functional environment 20%
Mold testing environment 30%
Production environment 40%
In operation S222, when it is determined that the state information of the target test environment is available, the joint debugging test request message is forwarded to the target test environment according to the dispatching rule and the routing information.
According to the embodiment of the disclosure, a first weight is determined according to a test period in which the joint debugging test is located 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 connection with the target test environment according to the routing weight and the routing information; and forwarding the joint debugging test request message to the target test environment.
In one example, when the target test environment state information is determined to be available, determining the routing information and the scheduling rule according to the environment identification information, for example, when the current period is a modulo test period, the test environment is a functional environment, determining the first weight to be 30% according to the period allocation rule table in table 1, and further determining the second weight to be 30% according to the environment weight in table 3, then the routing weight is 30% by 30% = 9%; for example, a certain environment weight value is 50%, the ratio of subsequent flow allocation is 50% on the original allocation rule, for example, the functional environment allocates a flow with a weight value of 50% = 25% in the functional stage.
In operation S223, when it is determined that the state information of the target test environment is not available, the joint debugging test is suspended.
In one example, when the state information of the target test environment is determined to be unavailable, the current failure of joint debugging test is represented, and a partner is notified to suspend the joint debugging test.
The maintenance update process of the environment identification information will be described with reference to fig. 5 to 6. Fig. 5 schematically illustrates a flowchart of a scheduling method of joint debugging test provided according to another embodiment of the present disclosure. As shown in fig. 5, operations S310 to S340 are included.
In operation S310, stock information of the joint measurement environment is acquired in response to an access request of the joint measurement environment.
In operation S320, the joint measurement environment is verified according to the stock information.
According to an embodiment of the present disclosure, the stock information includes test environment status and routing information of the joint test environment.
According to the embodiment of the disclosure, after determining that the test network and the environment of the joint test environment are available, a test environment connection test is performed according to the routing information.
In operation S330, after the verification is determined, the environment identification information of the joint measurement environment is determined according to the routing information of the joint measurement environment and the preset scheduling rule.
In operation S340, the environment identification information of the joint measurement environment is updated regularly.
In one example, when the scheduling device receives a test environment state and routing information request sent by the joint test environment through the network device for the first time, the request information is forwarded to the scheduling main control unit through the communication interaction unit, the scheduling main control unit analyzes and processes the request information, whether the test environment added by the request has stock information or not is queried, and health check, including availability check and validity check, is performed on the test environment according to the stock information.
In one example, routing information of the test environment is determined according to the stock information, and a test environment connection test is performed according to the routing information. If no stock information or the stock information is invalid, triggering the monitoring unit to check the test environments V104 and V105, namely, performing health check on the bank test environments V104 and V105 through the health check unit, and collecting corresponding check results; the triggering record-playback unit determines whether the test environment is available and valid by replaying the transaction messages to the bank test environments V104 and V105 and collects the corresponding check results. If manual participation is needed, corresponding scheduling rules, such as test period arrangement, equipment resource allocation, test flow adjustment and the like, are added or modified through the man-machine interaction unit M109, and a scheduling main control unit is not required to be used for presetting the rules; and then, the collected inspection results are calculated and analyzed through a calculation unit by combining with the manual dispatching rules, and the calculation and analysis results are stored through a persistence unit and transmitted to the network equipment V103 of the joint testing environment V100 through a communication interaction unit to update the environment identification information of the network equipment V103.
In one example, the health inspection unit can be driven to perform health inspection on the bank test environment regularly by the timer, the recording and playing unit is driven to record and play back the test message of the bank test environment regularly in the normal test stage of the joint test environment, so as to determine whether the state of the bank test environment is normal or not, and the environment identification information is updated regularly.
Fig. 6 schematically illustrates a flowchart of a scheduling method of joint debugging test provided according to still another embodiment of the present disclosure. As shown in fig. 6, operations S410 and S420 are included.
In operation S410, if it is determined that the environment identification information of the target test environment is not ready, the target test environment information is collected.
In operation S420, a test environment state and routing information are determined according to the test environment information to update the environment identification information.
In one example, if it is determined that the environment identification information of the target test environment is not ready, the bank-side network device communicates with the scheduling device, and notifies the scheduling device that the network device environment flag bit is not ready, and the scheduling device intervenes in processing and finally updates the network device environment flag bit, so that joint debugging test is continued. Specifically, the state and the route information of the test environment are calculated and stored, and the collected test environment information is processed to determine the route weight of the test environment; the monitoring unit periodically collects health conditions of the bank test environment, such as CPU, memory use proportion, environment ready state and availability, and the like, and determines a weight value of the environment allocable flow according to the collected checking result so as to update the weight rule of the environment identification information set in the network equipment.
According to the scheduling method for joint debugging test, provided by the embodiment of the disclosure, the traditional manual maintenance of the joint testing environment is replaced by automatic maintenance of the environment identification information, so that the maintenance complexity is reduced, the network configuration and routing rules in the joint testing environment of the cooperation party are automatically set, free scheduling with the joint testing environment of the cooperation party is realized, manual operation is reduced, the probability of error operation is reduced, and the testing efficiency is improved.
Based on the scheduling method of the joint debugging test, the present disclosure also provides a scheduling device of the joint debugging test. The device will be described in detail below in connection with fig. 7.
Fig. 7 schematically illustrates a block diagram of a scheduling apparatus for joint debugging test according to an embodiment of the present disclosure.
As shown in fig. 7, the scheduling apparatus 700 for joint debugging test of this embodiment includes an parsing module 710 and a scheduling module 720.
The parsing module 710 is configured to parse the joint debugging test request message to determine a target testing environment in response to the joint debugging test request. In an embodiment, the parsing module 710 may be configured to perform the operation S210 described above, which is not described herein.
The scheduling module 720 is configured to forward the joint debugging test request packet 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, where the environment identification information is used to characterize state information and routing rule information of the test environment. In an embodiment, the scheduling module 720 may be configured to perform the operation S220 described above, which is not described herein.
According to an embodiment of the present disclosure, the scheduling module includes: the first, second and third determination sub-modules.
And the first determining submodule is used for determining state information, scheduling rules and routing information of the target test environment according to the environment identification information. In an embodiment, the first determining sub-module may be used to perform the operation S221 described above, which is not described herein.
And the second determining submodule is used for forwarding the joint debugging test request message to the target test environment according to the dispatching rule and the routing information when the state information of the target test environment is determined to be available. In an embodiment, the second determining sub-module may be used to perform the operation S222 described above, which is not described herein.
And the third determination submodule is used for suspending joint debugging test when the state information of the target test environment is determined to be unavailable. In an embodiment, the third determining sub-module may be used to perform the operation S223 described above, which is not described herein.
According to an embodiment of the present disclosure, the scheduling rules include a period allocation rule and an environmental weight, and the second determining submodule includes: the device comprises a first determining unit, a second determining unit, a third determining unit, a connecting unit and a forwarding unit.
And the first determining unit is used for determining the first weight according to the test time period where the joint debugging test is located and the time period allocation rule. In an embodiment, the first determining unit may be configured to perform the operation S222 described above, which is not described herein.
And the second determining unit is used for determining a second weight according to the joint debugging test type and the environment weight. In an embodiment, the second determining unit may be configured to perform the operation S222 described above, which is not described herein.
And a third determining unit, configured to determine a routing weight according to the first weight and the second weight. In an embodiment, the third determining unit may be configured to perform the operation S222 described above, which is not described herein.
And the connection unit is used for establishing connection with the target test environment according to the routing weight and the routing information. In an embodiment, the connection unit may be used to perform the operation S222 described above, which is not described herein.
And the forwarding unit is used for forwarding the joint debugging test request message to the target test environment. In an embodiment, the forwarding unit may be configured to perform the operation S222 described above, which is not described herein.
According to an embodiment of the present disclosure, further comprising: the environment information collection module and the updating module.
And the environment information collecting module is used for collecting the target test environment information if the environment identification information of the target test environment is determined not to be ready. In an embodiment, the environmental information collection module may be used to perform the operation S410 described above, which is not described herein.
And the first updating module is used for determining the testing environment state and the routing information according to the testing environment information so as to update the environment identification information. In an embodiment, the first updating module may be used to perform the operation S420 described above, which is not described herein.
According to an embodiment of the present disclosure, further comprising: the device comprises an acquisition module, a verification module, a determination module and a second updating module.
And the acquisition module is used for responding to the access request of the joint measurement environment and acquiring the stock information of the joint measurement environment. In an embodiment, the obtaining module may be configured to perform the operation S310 described above, which is not described herein.
And the verification module is used for verifying the joint measurement environment according to the stock information. In an embodiment, the verification module may be configured to perform the operation S320 described above, which is not described herein.
And the determining module is used for determining the environment identification information of the joint measurement environment according to the routing information of the joint measurement environment and a preset scheduling rule after the verification is determined to pass. In an embodiment, the determining module may be configured to perform the operation S330 described above, which is not described herein.
And the second updating module is used for updating the environment identification information of the joint measurement environment at fixed time. In an embodiment, the second updating module may be used to perform the operation S340 described above, which is not described herein.
According to an embodiment of the present disclosure, the stock information includes test environment status and routing information of the joint test environment, and the verification module includes a test sub-module.
And the testing sub-module is used for carrying out the connection test of the testing environment according to the routing information after determining that the testing network and the environment of the joint testing environment are available.
Any of the parsing module 710 and the scheduling module 720 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules according to an embodiment of the present disclosure. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of parsing module 710 and scheduling module 720 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), programmable Logic Array (PLA), system-on-chip, system-on-a-substrate, system-on-package, application Specific Integrated Circuit (ASIC), or in hardware or firmware, such as any other reasonable way of integrating or packaging circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, at least one of parsing module 710 and scheduling module 720 may be at least partially implemented as a computer program module that, when executed, performs the corresponding functions.
Fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement a scheduling method for joint debugging tests, according to an embodiment of the disclosure.
As shown in fig. 8, an electronic device 900 according to an embodiment of the present disclosure includes a processor 901 that 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 portion 908 into a Random Access Memory (RAM) 903. The processor 901 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. Processor 901 may also include on-board memory for caching purposes. Processor 901 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic device 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other by a bus 904. The processor 901 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the program may be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the disclosure, the electronic device 900 may also include an input/output (I/O) interface 905, the input/output (I/O) interface 905 also being connected to the bus 904. The electronic device 900 may also include one or more of the following components connected to the I/O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output portion 907 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 908 including a hard disk or the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The 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, or the like is installed as needed on the drive 910 so that a computer program read out therefrom is installed into the storage section 908 as needed.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs that, when executed, implement a scheduling method of joint debugging test according to an embodiment of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 902 and/or RAM 903 and/or one or more memories other than ROM 902 and RAM 903 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code, when executed in a computer system, causes the computer system to implement the scheduling method of joint debugging test provided by embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, via communication portion 909, and/or installed from removable medium 911. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 909 and/or installed from the removable medium 911. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (10)

1. A method for scheduling joint debugging tests, the method comprising:
responding to the joint debugging test request, and analyzing a joint debugging test request message to determine a target test environment; and
And if the environment identification information of the target test environment is determined to be 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 for representing the state information and the routing rule information of the test environment.
2. The method of claim 1, wherein forwarding the joint debugging test request message to a target testing environment according to the environment identification information comprises:
determining state information, scheduling rules and routing information of the target test environment according to the environment identification information; and
when the state information of the target test environment is determined to be available, forwarding the joint debugging test request message to the target test environment according to the dispatching rule and the routing information; and
and suspending joint debugging test when the state information of the target test environment is determined to be unavailable.
3. The method of claim 2, wherein the scheduling rules include a time period allocation rule and an environment weight, and wherein forwarding the joint debugging test request message to the target testing environment according to the scheduling rules and routing information comprises:
Determining a first weight according to a test period where the joint debugging test is located 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 connection with the target test environment according to the routing weight and the routing information; and
and forwarding the joint debugging test request message to the target test environment.
4. The method as recited in claim 1, further comprising:
if the environment identification information of the target test environment is not ready, collecting the target test environment information; and
and determining the testing environment state and the routing information according to the testing environment information so as to update the environment identification information.
5. The method according to any one of claims 1 to 4, further comprising, prior to receiving the joint tone test request message:
responding to an access request of a joint measurement environment, and acquiring stock information of the joint measurement environment;
checking the joint measurement environment according to the stock information;
after the verification is determined to pass, determining environment identification information of the joint measurement environment according to the routing information of the joint measurement environment and a preset scheduling rule; and
And updating the environment identification information of the joint measurement environment at fixed time.
6. The method of claim 5, wherein the inventory information includes test environment status and routing information for a joint test environment, and wherein verifying the joint test environment based on the inventory information comprises:
and after determining that the test network and the environment of the joint test environment are available, performing test environment connection test according to the routing information.
7. A scheduling apparatus for joint debugging tests, the apparatus comprising:
the analysis module is used for responding to the joint debugging test request and analyzing the joint debugging test request message so as to determine a target test environment; and
and the scheduling module is used for forwarding the joint debugging test request message to the target test environment according to the environment identification information if the environment identification information of the target test environment is determined to be ready, wherein the environment identification information is used for representing the state information and the routing rule information of the test environment.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the scheduling method of joint debugging test according to any one of claims 1-6.
9. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the scheduling method of joint debugging test according to any one of claims 1 to 6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the scheduling method of joint debugging test according to any one of claims 1-6.
CN202310345685.2A 2023-04-03 2023-04-03 Method, device, equipment, storage medium and program product for scheduling joint debugging test Pending CN116340181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310345685.2A CN116340181A (en) 2023-04-03 2023-04-03 Method, device, equipment, storage medium and program product for scheduling joint debugging test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310345685.2A CN116340181A (en) 2023-04-03 2023-04-03 Method, device, equipment, storage medium and program product for scheduling joint debugging test

Publications (1)

Publication Number Publication Date
CN116340181A true CN116340181A (en) 2023-06-27

Family

ID=86889308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310345685.2A Pending CN116340181A (en) 2023-04-03 2023-04-03 Method, device, equipment, storage medium and program product for scheduling joint debugging test

Country Status (1)

Country Link
CN (1) CN116340181A (en)

Similar Documents

Publication Publication Date Title
CN107135188B (en) Method, device and system for realizing services of financial information exchange (FIX) protocol
CN111177617A (en) Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment
CN111818136A (en) Data processing method and device, electronic equipment and computer readable medium
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN110011875A (en) Dial testing method, device, equipment and computer readable storage medium
CN110955640A (en) Cross-system data file processing method, device, server and storage medium
CN112887355B (en) Service processing method and device for abnormal server
CN116340181A (en) Method, device, equipment, storage medium and program product for scheduling joint debugging test
CN115801764A (en) File transmission method, device, equipment and storage medium
CN113495498B (en) Simulation method, simulator, device and medium for hardware device
CN115203178A (en) Data quality inspection method and device, electronic equipment and storage medium
CN114386951A (en) Process approval method and device, electronic equipment and storage medium
CN111949862B (en) Method and device for managing business task flow and electronic equipment
CN114489667A (en) Script generation method and device, electronic equipment and storage medium
CN112084114A (en) Method and apparatus for testing an interface
CN113672200A (en) Microservice processing method and device, storage medium and electronic equipment
CN114428723A (en) Test system, system test method, related device and storage medium
CN116166558A (en) Transaction testing method, device, equipment and storage medium
CN115333871B (en) Firewall operation and maintenance method and device, electronic equipment and readable storage medium
CN112835804B (en) Test case processing method, device, electronic equipment and medium
CN114860594A (en) Cross-line receiving and reporting test method, device, equipment and storage medium
CN114817073A (en) Automated testing method, apparatus, device, medium, and program product
CN118394386A (en) Application program embedded point data updating method, device and equipment
CN117033011A (en) Component communication method and device, electronic equipment and storage medium
CN114840435A (en) Method, device, equipment, storage medium and program product for determining data flow direction

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination