CN109660472B - Intelligent routing function verification method and device for wiring board and computer equipment - Google Patents

Intelligent routing function verification method and device for wiring board and computer equipment Download PDF

Info

Publication number
CN109660472B
CN109660472B CN201811204564.1A CN201811204564A CN109660472B CN 109660472 B CN109660472 B CN 109660472B CN 201811204564 A CN201811204564 A CN 201811204564A CN 109660472 B CN109660472 B CN 109660472B
Authority
CN
China
Prior art keywords
interface
data source
calling
wiring board
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811204564.1A
Other languages
Chinese (zh)
Other versions
CN109660472A (en
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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201811204564.1A priority Critical patent/CN109660472B/en
Publication of CN109660472A publication Critical patent/CN109660472A/en
Application granted granted Critical
Publication of CN109660472B publication Critical patent/CN109660472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method, a device and computer equipment for verifying an intelligent routing function of a wiring board, wherein the method comprises the following steps: calling an interface of a wiring board to obtain the occupation ratio of each data source configured by the wiring board through the data source occupation ratio setting function; configuring each interface of the mock platform; calling each interface of the mock platform, and inputting a corresponding data source to the wiring board; when the preset conditions are met, stopping calling each interface of the mock platform, and counting the calling times of each interface of the mock platform; calculating the occupation ratio of the data source simulated by each interface according to the respective called times of each interface; and matching the calculated occupation ratio of each data source with the occupation ratio of each data source obtained by calling the interface of the patch panel, and verifying whether the set data source occupation ratio function of the patch panel is correct or not according to the matching result. The embodiment of the application realizes the verification of the intelligent routing function of the wiring board.

Description

Intelligent routing function verification method and device for wiring board and computer equipment
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for verifying an intelligent routing function of a wiring board and computer equipment.
Background
The wiring board is an intelligent data access platform with an intelligent route, and data sources in various formats can be output in a unified format after being configured on a page, so that the calling cost of a user is saved. The intelligent routing functions of the patch panels include, among other things, setting data source proportions. The setting of the data source proportion function means that a plurality of data sources (such as national administration, public security department and the like) can be selected for an interface (such as returning a user identity card verification result) of the same function, and the intelligent routing of the patch panel can select the data proportion provided by each data source (such as 40% of data provided by a data source A, 60% of data provided by a data source B, namely the same output interface, and the data sources are from different data sources in proportion). To ensure the correctness of the intelligent routing function of the patch panel, the intelligent routing function of the patch panel needs to be verified. It is therefore desirable to provide a solution that can verify the intelligent routing functionality of a patch panel.
Disclosure of Invention
The application provides a method and a device for verifying the intelligent routing function of a wiring board and computer equipment aiming at the defects of the existing mode so as to realize the verification of the intelligent routing function of the wiring board.
According to a first aspect, an embodiment of the present application provides a verification method for an intelligent routing function of a patch panel, the intelligent routing function including a set data source proportion function, the method including:
calling an interface of a wiring board to obtain the occupation ratio of each data source configured by the wiring board through a data source occupation ratio setting function;
configuring each interface of the mock platform so that each interface simulates a corresponding data source respectively;
calling each interface of the mock platform, and inputting a corresponding data source to the wiring board;
when a preset condition is met, stopping calling each interface of the mock platform, and counting the calling times of each interface of the mock platform;
calculating the occupation ratio of the data source simulated by each interface according to the respective called times of each interface;
and matching the calculated occupation ratio of each data source with the occupation ratio of each data source obtained by calling the interface of the patch panel, and verifying whether the set data source occupation ratio function of the patch panel is correct or not according to the matching result.
In one embodiment, the stopping calling the interfaces of the mock platform when the preset condition is met includes:
and when the sum of the called times of each interface of the mock platform reaches a set time, stopping calling each interface of the mock platform.
In one embodiment, the set number of times is determined by the following formula:
the set number of times is equal to a first fixed value(number of data sources + second fixed value)Wherein the first fixed value is a number greater than 1.
In one embodiment, the stopping calling the interfaces of the mock platform when the preset condition is met includes:
and when the starting time of inputting a data source to the wiring board is detected to reach the set time from the current time, stopping calling each interface of the mock platform.
In one embodiment, the set time is determined by the following formula:
the set time is the first fixed time plus the number of data sources + the second fixed time.
In one embodiment, the verifying whether the set data source proportion function of the patch panel is correct according to the matching result further comprises the following steps:
and clearing the respective called times of each interface.
In one embodiment, the intelligent routing function further comprises switching routing functions according to data source quality, the method further comprising:
selecting two interfaces from each interface of the mock platform, wherein one interface is used as a first interface, and the other interface is used as a second interface;
configuring the first interface and the second interface as data sources that simulate the same function; the quality of the data source simulated by the first interface does not meet the set requirement, and the quality of the data source simulated by the second interface meets the set requirement;
calling the first interface, and inputting a data source simulated by the first interface to the wiring board;
and when the first interface is detected to stop calling and the second interface starts calling, judging that the routing switching function of the patch panel according to the data source quality is correct.
Embodiments of the present application also provide, according to a second aspect, an intelligent routing function verification apparatus for a patch panel, the intelligent routing function including a set data source proportion function, the apparatus including:
the data source proportion obtaining module is used for calling an interface of a wiring board and obtaining the proportion of each data source configured by the wiring board through the data source proportion setting function;
the interface configuration module is used for configuring each interface of the mock platform so that each interface can respectively simulate a corresponding data source;
the interface calling module is used for calling each interface of the mock platform and inputting a corresponding data source to the wiring board;
the number counting module is used for stopping calling each interface of the mock platform when a preset condition is met, and counting the number of times that each interface of the mock platform is called;
the data source proportion calculation module is used for calculating the proportion of the data source simulated by each interface according to the respective called times of each interface;
and the verification module is used for matching the calculated occupation ratio of each data source with the occupation ratio of each data source obtained by calling the interface of the wiring board and verifying whether the set data source occupation ratio function of the wiring board is correct or not according to the matching result.
Embodiments of the present application also provide, according to a third aspect, a computer-readable storage medium on which is stored a computer program that, when executed by a processor, implements the intelligent routing function verification method for a patch panel as described in any one of the above.
Embodiments of the present application also provide, according to a fourth aspect, a computer device, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of intelligent routing function verification for patch panels of any of the above.
According to the intelligent routing function verification method and device for the wiring board and the computer equipment, the mock platform is adopted for interface configuration, the data sources from different sources are simulated, and then the intelligent routing function verification of the wiring board is carried out through each data source simulated by the mock platform, so that the intelligent routing function verification of the wiring board is realized by means of the mock platform.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow chart diagram illustrating a method for verifying intelligent routing functionality of patch panels according to one embodiment of the present application;
FIG. 2 is a schematic diagram of a patch panel input in accordance with the prior art;
FIG. 3 is a schematic illustration of a patch panel input according to one embodiment of the present application;
FIG. 4 is a schematic diagram of an intelligent routing function verification device for patch panels according to one embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As shown in fig. 1, in one embodiment, a method of verifying an intelligent routing function of a patch panel, the intelligent routing function including a set data source proportion function, the method includes:
s110, calling an interface of a wiring board, and obtaining the occupation ratio of each data source configured by the wiring board through the data source occupation ratio setting function.
The intelligent routing functions of the patch panels include, among other things, setting data source proportions. The data source proportion function is set, the proportion of each data source can be selected on an operation interface of the wiring board, for example, a data source A is set to provide 40% of data, and a data source B is set to provide 60% of data. The set occupation ratio of each data source can be obtained by calling the interface of the patch panel.
And S120, configuring each interface of the mock platform so that each interface simulates a corresponding data source respectively.
As shown in fig. 2, which is a schematic diagram of an input manner of a patch panel in the conventional technology, it can be seen from the diagram that, in the conventional technology, data sources of different sources, such as a data source a and a data source B, are input into the patch panel, the patch panel processes the input data sources of different sources, and outputs the processed data through an output interface.
It is nearly impossible to verify the intelligent routing functionality of a patch panel if the patch panel has direct access to a data source. The mock is to create a mock object to simulate the behavior of an object for some objects which are not easy to construct/obtain in the testing process. Basic functions of the mock platform include:
support http Protocol (HyperText Transfer Protocol), https (HyperText Transfer Protocol over Secure Socket Layer, http) Protocol, and soap Protocol (Simple Object Access Protocol).
Multi-format support: some common Json (JS Object Notation), Xml (Extensible Markup Language), and other custom formats are supported.
Labeling: for management, the method has tagged management and can quickly locate the needed mock.
The dynamic expression: if the user wishes to return results that are not the simplest, such a static text, the user wishes that it can output the current date, or some simple logical operation, wishes that it has a simplest dynamic function, or simply for example, wishes that it has some interaction with the participating parties.
Multiport: and any port request is supported, and development and modification of codes are avoided.
Abnormal mock: http exception Code, Rpc (Remote Procedure Call) exception class.
For the scheme, the mock platform further has functions of counting the number of times each interface is called, setting the quality of the data source simulated by each interface, and the like.
Determining each data source to be simulated by the mock platform according to the occupation ratio of each data source obtained by calling the interface of the wiring board, and configuring the interfaces for simulating different data sources through the mock platform. Optionally, an interface of the mock platform is used to emulate a source of data.
Fig. 3 is a schematic diagram of a patch panel input method according to an embodiment of the present invention, and it can be seen from the schematic diagram that an interface a configured by a mock platform simulates a data source a in fig. 2, and a data source B in fig. 2 is simulated through an interface B.
And S130, calling each interface of the mock platform, and inputting a corresponding data source to the wiring board.
After the interfaces are configured, whether the intelligent routing function of the set data source proportion of the wiring board is correct is verified, namely, the data source simulated by each interface configured on the mock platform is input into the wiring board. After the data source input by each interface is received by the patch panel, the quantity of data provided by each data source is controlled by setting a data source ratio function.
And S140, when the preset conditions are met, stopping calling each interface of the mock platform, and counting the calling times of each interface of the mock platform.
The mock platform provides statistical functions. When one interface in the mock platform is called, a fixed value, such as 1, is added to the called times of the interface. And setting a preset condition, when the preset condition is met, not inputting a simulated data source to the wiring board any more, and counting the respective calling times of each interface at the moment.
The preset conditions can be set according to actual needs, and the following description is combined with two embodiments. It should be understood that the present application is not limited to the following two ways.
In one embodiment, the stopping calling the interfaces of the mock platform when the preset condition is met includes: and when the sum of the called times of each interface of the mock platform reaches a set time, stopping calling each interface of the mock platform. In order to ensure the accuracy of the verification and improve the efficiency of the verification, the mock platform may further set a set number of times that all interfaces are called, where the set number of times is not set too small or too large, for example, the set number of times is set to 1000. And when the sum of the respective called times of all the interfaces is equal to the set time, stopping the calling of the interfaces, and counting the called times of each interface at the moment.
To further improve the accuracy of the verification, in one embodiment, the set number of times is determined by the following formula: the set number of times is equal to a first fixed value(number of data sources + second fixed value)Wherein the first fixed value is a number greater than 1. The first and second fixed values may be set as it is, for example, 10 for the first fixed value and 1 for the second fixed value, and then the number of data sources is set to 2The number is 1000.
In another embodiment, the stopping of calling each interface of the mock platform when a preset condition is met includes: and when the starting time of inputting a data source to the wiring board is detected to reach the set time from the current time, stopping calling each interface of the mock platform. In order to ensure the accuracy of the verification and improve the efficiency of the verification, the mock platform can also set the time for which all interfaces are called, and the time is not suitable to be set too short or too long. And calling each interface within the set time, stopping calling the interfaces when the set time is up, and counting the calling times of each interface at the moment.
To further improve the accuracy of the verification, in one embodiment, the set time is determined by the following formula: the set time is the first fixed time plus the number of data sources + the second fixed time. The first fixed time and the second fixed time may be set as it is, for example, 10 minutes for the first fixed time and 20 minutes for the second fixed time, and then 40 minutes for the number of data sources of 2.
S150, calculating the occupation ratio of the data source simulated by each interface according to the called times of each interface.
The data source proportion refers to the proportion of the data provided by one data source in all the data provided by the data source. For an interface, the ratio of the number of times that the interface is called to the number of times that all interfaces are called is the proportion of the data source simulated by the interface.
And S160, matching the calculated occupation ratio of each data source with the occupation ratio of each data source obtained by calling the interface of the wiring board, and verifying whether the set data source occupation ratio function of the wiring board is correct or not according to the matching result.
And verifying whether the intelligent routing function of the data source occupation ratio of the wiring board is correct or not according to the occupation ratio of each data source calculated by the mock platform and the occupation ratio of each data source configured by the wiring board. If the occupation ratio of each data source calculated by the mock platform is matched with the occupation ratio of each data source configured on the wiring board, the intelligent routing function of the wiring board for setting the occupation ratio of the data sources is correct, otherwise, the intelligent routing function of the wiring board for setting the occupation ratio of the data sources is incorrect, the information that the intelligent routing function of the wiring board for setting the occupation ratio of the data sources is incorrect is required to be provided for development, and the intelligent routing function of the wiring board for setting the occupation ratio of the data sources is corrected according to the development information.
In one embodiment, the verifying whether the set data source proportion function of the patch panel is correct according to the matching result further comprises the following steps: and clearing the respective called times of each interface. After one verification is completed, the recorded called times of each interface are cleared so as to facilitate the next verification.
In order to better understand the verification process of the above-mentioned setup data source proportion function, an example is described. The intelligent routing configuration data source A of the wiring board provides 40% of data, the data source B provides 60% of data, the mock platform configures the interface A as a simulation data source A, the interface B as a simulation data source B, during testing, the interface A of the mock platform is called to input data to the wiring board, the number of times is added to 1 when the interface A of the mock platform inputs data to the wiring board every time, the interface B of the mock platform inputs data to the wiring board every time, the number of times is added to 1 when the interface B of the mock platform inputs data, for example, 1000 interfaces are called, the ratio of data sources configured according to the intelligent routing of the wiring board is provided, the number of times of calling counted by the interface A is about 400, the number of times of calling counted by the interface B is about 600, if the number of times of calling of the interface A and the interface B which are actually counted meets the corresponding number, the intelligent routing function of the wiring board which accounts for the set data source is correct, otherwise, the intelligent routing function of the set data source occupation ratio of the patch panel is incorrect, and the problem is provided for corresponding development.
In one embodiment, the intelligent routing function further comprises switching routing functions according to data source quality, the method further comprising:
s107, two interfaces are selected from the interfaces of the mock platform, one interface is used as a first interface, and the other interface is used as a second interface.
The intelligent routing function of the wiring board can intelligently switch routes according to the quality condition of a data source, and specifically comprises the following steps: the intelligent routing of the wiring board monitors the quality condition of the interface of the mock platform which provides data currently in real time, if the interface of the mock platform does not meet the set quality requirement, such as long response time and high error rate of the interface, the interface with the quality meeting the requirement is determined from the other interfaces of the mock platform with the same function, and the determined interface is switched to provide data.
Two interfaces are selected from each interface of the mock platform, and the selection mode can be set according to the actual situation, for example, the two interfaces can be randomly selected, or the two interfaces can be selected from the interfaces which are not configured yet, and the like.
S108, configuring the first interface and the second interface as data sources simulating the same function; the quality of the data source simulated by the first interface does not meet the set requirement, and the quality of the data source simulated by the second interface meets the set requirement.
The mock platform can set the data source quality of each interface simulation. The same function means that the two data sources have the same function, for example, both data sources are used for returning the user identity card verification result, except that the source of one data source is national administration and the source of the other data source is the ministry of public security. The setting requirements can be set according to actual needs. In order to verify whether the function of switching data sources according to the data quality of the patch panel is accurate, it is necessary to set that the quality of one data source does not meet the set requirement and the quality of the other data source meets the set requirement.
And S109, calling the first interface, and inputting the data source simulated by the first interface to the wiring board.
In order to verify whether or not a patch panel will switch to another data source when the quality of the data source does not meet the set requirements, a data source whose quality does not meet the set requirements is input to the patch panel.
And S110, judging that the routing switching function of the wiring board according to the data source quality is correct when the first interface is detected to stop calling and the second interface starts calling.
When the quality of a data source simulated by one interface does not meet the requirement, if the intelligent route of the wiring board can be switched to another interface which realizes the same function and meets the requirement of the simulated data source quality, namely when the second interface is called, the function of switching the route according to the data source quality of the wiring board is correct, otherwise, the function of switching the route according to the data source quality of the wiring board is incorrect, and related error information is provided for development.
To better understand the above verification process for switching the routing function according to the quality of the data source, an example is described. The mock platform is long in response time of setting the interface A, high in error rate, short in response time of the interface B and high in accuracy, the interface A and the interface B realize the same function, when the interface A provides data, the intelligent routing function of the wiring board detects that the data provided by the interface A does not meet quality requirements, an interface which provides data and meets the quality requirements is determined from the interfaces which realize the same function, for example, the interface B is called to provide data, the mock platform detects that the interface B is called, and when the interface A stops calling, the data source quality switching routing function of the wiring board is determined to be correct.
Based on the same inventive concept, the application also provides an intelligent routing function verification device for the patch panel, and the detailed description is provided below with reference to the accompanying drawings.
As shown in fig. 4, in one embodiment, the intelligent routing function includes a set data source proportion function, and the apparatus includes:
a data source proportion obtaining module 201, configured to invoke an interface of a patch panel, and obtain the proportion of each data source configured by the patch panel through a data source proportion setting function;
the interface configuration module 202 is configured to configure each interface of the mock platform, so that each interface simulates a corresponding data source;
the interface calling module 203 is used for calling each interface of the mock platform and inputting a corresponding data source to the wiring board;
the times counting module 204 is configured to stop calling each interface of the mock platform when a preset condition is met, and count the times that each interface of the mock platform is called;
the data source proportion calculation module 205 is configured to calculate the proportion of the data source simulated by each interface according to the respective called times of each interface;
and the verification module 206 is configured to match the calculated percentage of each data source with the percentage of each data source obtained by calling the interface of the patch panel, and verify whether the set data source percentage function of the patch panel is correct according to a matching result.
In an embodiment, the number-of-times counting module 204 stops calling each interface of the mock platform when the sum of the number of times that each interface of the mock platform is called reaches a set number of times.
In one embodiment, the set number of times is determined by the following formula:
the set number of times is equal to a first fixed value(number of data sources + second fixed value)Wherein the first fixed value is a number greater than 1.
In one embodiment, the number counting module 204 stops calling each interface of the mock platform when detecting that the starting time of inputting a data source to the patch panel reaches a set time from the current time.
In one embodiment, the set time is determined by the following formula:
the set time is the first fixed time plus the number of data sources + the second fixed time.
In one embodiment, the apparatus further comprises a clearing module, connected to the verification module 206, configured to clear the number of times each interface is invoked.
In one embodiment, the intelligent routing function further comprises a switch routing function based on data source quality, the apparatus further comprising:
an interface selection module 207, configured to select two interfaces from the interfaces of the mock platform, where one interface is used as a first interface and the other interface is used as a second interface;
a configuration module 208 for configuring the first interface and the second interface as data sources simulating the same function; the quality of the data source simulated by the first interface does not meet the set requirement, and the quality of the data source simulated by the second interface meets the set requirement;
a first interface calling module 209, configured to call the first interface, and input a data source simulated by the first interface to the patch panel;
and the routing function verification module 210 is configured to detect that the first interface stops being called, and when the second interface starts being called, determine that the switching of the routing function of the patch panel according to the quality of the data source is correct.
Other technical features of the intelligent routing function verification device of the patch panel are the same as those of the intelligent routing function verification method of the patch panel, and are not described herein again.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements any one of the above-mentioned intelligent routing function verification methods. The storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer). Which may be a read-only memory, magnetic or optical disk, or the like.
An embodiment of the present application further provides a computer device, where the computer device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the intelligent routing function verification method of any of the above.
Fig. 5 is a schematic structural diagram of a computer apparatus according to the present application, which includes a processor 320, a storage device 330, an input unit 340, a display unit 350, and the like. Those skilled in the art will appreciate that the structural elements shown in fig. 5 do not constitute a limitation of all computer devices and may include more or fewer components than those shown, or some of the components may be combined. The storage 330 may be used to store the application 310 and various functional modules, and the processor 320 executes the application 310 stored in the storage 330, thereby performing various functional applications of the device and data processing. The storage 330 may be an internal memory or an external memory, or include both internal and external memories. The memory may comprise read-only memory, Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The memory devices disclosed herein include, but are not limited to, these types of memory devices. The memory device 330 disclosed herein is provided by way of example only and not by way of limitation.
The input unit 340 is used for receiving input of signals, occupation ratios of various data sources, and the like. The input unit 340 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 350 may be used to display information input by a user or information provided to the user and various menus of the computer device. The display unit 350 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 320 is a control center of the computer device, connects various parts of the entire computer using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the storage device 330 and calling data stored in the storage device.
In one embodiment, a computer device includes one or more processors 320, and one or more storage 330, one or more applications 310, wherein the one or more applications 310 are stored in the storage 330 and configured to be executed by the one or more processors 320, the one or more applications 310 configured to perform the intelligent routing function verification method of a patch panel as described in the above embodiments.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It should be understood that each functional unit in the embodiments of the present application may be integrated into one processing module, each unit may exist alone physically, or two or more units may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (8)

1. A method of verifying an intelligent routing function of a patch panel, the intelligent routing function including a set data source proportion function, the method comprising:
calling an interface of a wiring board to obtain the occupation ratio of each data source configured by the wiring board through a data source occupation ratio setting function;
configuring each interface of the mock platform so that each interface simulates a corresponding data source respectively;
calling each interface of the mock platform, and inputting a corresponding data source to the wiring board;
when a preset condition is met, stopping calling each interface of the mock platform, and counting the calling times of each interface of the mock platform, wherein the preset condition comprises one of the condition that the sum of the calling times of each interface of the mock platform reaches a set time, and the condition that the distance between the starting time of inputting a data source to the wiring board and the current time reaches the set time;
calculating the occupation ratio of the data source simulated by each interface according to the respective called times of each interface;
and matching the calculated occupation ratio of each data source with the occupation ratio of each data source obtained by calling the interface of the patch panel, and verifying whether the set data source occupation ratio function of the patch panel is correct or not according to the matching result.
2. The intelligent routing function verification method for patch panels of claim 1, wherein said set number of times is determined by the following formula:
the set number of times is equal to a first fixed value(number of data sources + second fixed value)Wherein the first fixed value is a number greater than 1.
3. The intelligent routing function verification method for patch panels of claim 1, wherein said set time is determined by the formula:
the set time is the first fixed time plus the number of data sources + the second fixed time.
4. The verification method for the intelligent routing function of the patch panel according to any one of claims 1 to 3, wherein the verification of whether the setup data source proportion function of the patch panel is correct according to the matching result further comprises:
and clearing the respective called times of each interface.
5. A method of validating an intelligent routing function of a patch panel according to any one of claims 1 to 3, wherein the intelligent routing function further comprises switching routing functions according to data source quality, the method further comprising:
selecting two interfaces from each interface of the mock platform, wherein one interface is used as a first interface, and the other interface is used as a second interface;
configuring the first interface and the second interface as data sources that simulate the same function; the quality of the data source simulated by the first interface does not meet the set requirement, and the quality of the data source simulated by the second interface meets the set requirement;
calling the first interface, and inputting a data source simulated by the first interface to the wiring board;
and when the first interface is detected to stop calling and the second interface starts calling, judging that the routing switching function of the patch panel according to the data source quality is correct.
6. An intelligent routing function verification apparatus for a patch panel, the intelligent routing function including a set data source proportion function, the apparatus comprising:
the data source proportion obtaining module is used for calling an interface of a wiring board and obtaining the proportion of each data source configured by the wiring board through the data source proportion setting function;
the interface configuration module is used for configuring each interface of the mock platform so that each interface can respectively simulate a corresponding data source;
the interface calling module is used for calling each interface of the mock platform and inputting a corresponding data source to the wiring board;
the system comprises a frequency counting module, a time counting module and a data processing module, wherein the frequency counting module is used for stopping calling each interface of the mock platform and counting the respective called times of each interface of the mock platform when a preset condition is met, and the preset condition comprises one of the condition that the sum of the called times of each interface of the mock platform reaches a set time and the condition that the starting time of inputting a data source to a wiring board reaches the set time from the current time;
the data source proportion calculation module is used for calculating the proportion of the data source simulated by each interface according to the respective called times of each interface;
and the verification module is used for matching the calculated occupation ratio of each data source with the occupation ratio of each data source obtained by calling the interface of the wiring board and verifying whether the set data source occupation ratio function of the wiring board is correct or not according to the matching result.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a method of verifying an intelligent routing function of a patch panel according to any one of claims 1 to 5.
8. A computer device, characterized in that the computer device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the intelligent routing function verification method for patch panels of any of claims 1-5.
CN201811204564.1A 2018-10-16 2018-10-16 Intelligent routing function verification method and device for wiring board and computer equipment Active CN109660472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811204564.1A CN109660472B (en) 2018-10-16 2018-10-16 Intelligent routing function verification method and device for wiring board and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811204564.1A CN109660472B (en) 2018-10-16 2018-10-16 Intelligent routing function verification method and device for wiring board and computer equipment

Publications (2)

Publication Number Publication Date
CN109660472A CN109660472A (en) 2019-04-19
CN109660472B true CN109660472B (en) 2022-04-22

Family

ID=66110292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811204564.1A Active CN109660472B (en) 2018-10-16 2018-10-16 Intelligent routing function verification method and device for wiring board and computer equipment

Country Status (1)

Country Link
CN (1) CN109660472B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708290B (en) * 2023-08-04 2023-10-10 腾讯科技(深圳)有限公司 Routing detection method and device based on hybrid cloud network, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105706054A (en) * 2013-09-20 2016-06-22 施耐德电气美国股份有限公司 Systems and methods for verification and deployment of applications to programmable devices
CN106547681A (en) * 2015-09-18 2017-03-29 北京京东尚科信息技术有限公司 The method and apparatus that data load simultaneously multiplexed analog service testing automatically
CN107368405A (en) * 2016-05-11 2017-11-21 腾讯科技(北京)有限公司 Test system, method of testing, mock platforms, blocker and client
CN108345535A (en) * 2017-12-26 2018-07-31 阿里巴巴集团控股有限公司 Mock test methods, device and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150100946A1 (en) * 2013-10-08 2015-04-09 Frank Brunswig Using mock data to validate applications
US10262127B2 (en) * 2017-04-05 2019-04-16 General Electric Company Systems and method for securely sharing and executing data and models

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105706054A (en) * 2013-09-20 2016-06-22 施耐德电气美国股份有限公司 Systems and methods for verification and deployment of applications to programmable devices
CN106547681A (en) * 2015-09-18 2017-03-29 北京京东尚科信息技术有限公司 The method and apparatus that data load simultaneously multiplexed analog service testing automatically
CN107368405A (en) * 2016-05-11 2017-11-21 腾讯科技(北京)有限公司 Test system, method of testing, mock platforms, blocker and client
CN108345535A (en) * 2017-12-26 2018-07-31 阿里巴巴集团控股有限公司 Mock test methods, device and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于NodeJS进行自动化单元测试中mock平台的设计与研究;潘诗瑶;《中国优秀博硕士学位论文全文数据库(硕士)》;20180315;全文 *

Also Published As

Publication number Publication date
CN109660472A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN107247859B (en) Verification method, device, electronic equipment and the storage medium of Logic Circuit Design
CN110245220A (en) Electronic document signs method, apparatus and server, storage medium
CN109614313A (en) Automated testing method, device and computer readable storage medium
KR20180103881A (en) Test method, system, apparatus and readable storage medium
CN108959068A (en) Software interface test method, equipment and storage medium
CN109635300A (en) Data verification method and device
CN108111364B (en) Service system testing method and device
CN105611190B (en) Combination echoes system and its echo method
CN108334346B (en) Method and device for developing service control process
CN105786695A (en) Data test method and system
US20130132926A1 (en) Computer aided design system and method
JP7132999B2 (en) METHOD AND APPARATUS FOR VERIFYING OPERATIONAL STATE OF APPLICATION
CN110221948A (en) Test script generation method, device, computer installation and storage medium
CN110097170A (en) Information pushes object prediction model acquisition methods, terminal and storage medium
CN112631911A (en) Automatic testing method and device, computer equipment and storage medium
CN109660472B (en) Intelligent routing function verification method and device for wiring board and computer equipment
CN113778878A (en) Interface testing method and device, electronic equipment and storage medium
US8713533B2 (en) Module-code verification layer to automatically validate user input
CN110717315B (en) System data batch modification method and device, storage medium and electronic equipment
CN110209572A (en) Ui testing method, ui testing system and terminal
CN110362294A (en) Development task executes method, apparatus, electronic equipment and storage medium
CN110096414A (en) A kind of server monitoring method, device, equipment and medium
CN105426183A (en) Form verification method
CN109710246A (en) Data management system and its control method, equipment and storage medium
CN115391168A (en) Sandbox testing method, sandbox testing device, sandbox testing equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40002807

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant