CN117421452A - Data blood edge testing method and device, electronic equipment, storage medium and product - Google Patents

Data blood edge testing method and device, electronic equipment, storage medium and product Download PDF

Info

Publication number
CN117421452A
CN117421452A CN202311629291.6A CN202311629291A CN117421452A CN 117421452 A CN117421452 A CN 117421452A CN 202311629291 A CN202311629291 A CN 202311629291A CN 117421452 A CN117421452 A CN 117421452A
Authority
CN
China
Prior art keywords
script
data blood
edge
map
data
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
CN202311629291.6A
Other languages
Chinese (zh)
Inventor
王呈炎
温琼
林淇
陈良龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202311629291.6A priority Critical patent/CN117421452A/en
Publication of CN117421452A publication Critical patent/CN117421452A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/70ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for mining of medical data, e.g. analysing previous cases of other patients

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Public Health (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Physics & Mathematics (AREA)
  • Pathology (AREA)
  • Software Systems (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Investigating Or Analysing Biological Materials (AREA)

Abstract

The invention discloses a data blood-edge testing method, a device, electronic equipment, a storage medium and a product, and relates to the technical field of data processing. The data blood-edge testing method comprises the following steps: when a data blood-edge test request carrying a script database identifier and a script type is received, acquiring a corresponding script to be tested according to the script database identifier and the script type; respectively adopting two orthogonal data blood-margin tracing algorithms to construct a data blood-margin map of the script to be tested, and taking the data blood-margin map as a first data blood-margin map and a second data blood-margin map; and automatically testing the data blood edges of the script to be tested according to the first data blood edge map and the second data blood edge map. According to the embodiment of the invention, the automatic test of the blood-edge of the script data to be tested is realized, the labor cost is reduced, and the efficiency and the reliability of the data blood-edge test are improved.

Description

Data blood edge testing method and device, electronic equipment, storage medium and product
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and apparatus for testing blood clots of data, an electronic device, a storage medium, and a product.
Background
Data lineage, also known as data blood lineage, data origin, data lineage, refers to the complete life cycle of data from generation, processing, fusion, flow to final extinction of data, and a relationship naturally forms between data.
In the prior art, the testing method of the data blood edges is usually a manual sampling test or a whole-process association link with a unique identification is established. And a lot of manpower resources are consumed by manual sampling test. The manual analysis of data blood edges for hundreds of lines per sentence takes 5-10 minutes on average, and requires huge personnel for a data warehouse with a huge number of processed sentences. And for SQL sentences with complex logic, manual analysis is extremely prone to error. By establishing the unique identification, the whole process association link can only be developed and realized aiming at the new system design. For inventory systems, the retrofit costs are excessive and involve upstream and downstream multipart retrofit, which is difficult to implement.
Disclosure of Invention
The invention provides a data blood-edge testing method, a device, electronic equipment, a storage medium and a product, which are used for realizing automatic testing of script data blood-edge to be tested and reducing labor cost and error probability.
According to an aspect of the present invention, there is provided a data blood-lineage testing method, wherein the method includes:
When a data blood-edge test request carrying a script database identifier and a script type is received, acquiring a corresponding script to be tested according to the script database identifier and the script type;
respectively adopting two orthogonal data blood-margin tracing algorithms to construct a data blood-margin map of the script to be tested, and taking the data blood-margin map as a first data blood-margin map and a second data blood-margin map;
and automatically testing the data blood edges of the script to be tested according to the first data blood edge map and the second data blood edge map.
According to another aspect of the present invention there is provided a data blood-margin testing device, wherein the device comprises:
the script acquisition module is used for acquiring a corresponding script to be tested according to the script database identifier and the script type when receiving a data blood-edge test request carrying the script database identifier and the script type;
the map generation module is used for respectively adopting two orthogonal data blood-source tracing algorithms to construct a data blood-source map of the script to be tested, and the data blood-source map is used as a first data blood-source map and a second data blood-source map;
and the map testing module is used for automatically testing the data blood edges of the script to be tested according to the first data blood edge map and the second data blood edge map.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data blood-edge testing method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a data blood-edge testing method according to any one of the embodiments of the present invention.
According to another aspect of the invention, embodiments of the invention also provide a computer program product comprising a computer program which, when executed by a processor, implements the data blood-edge testing method of any of the embodiments of the invention.
According to the technical scheme, the corresponding script to be tested is obtained through the script database identification and the script type, the data blood-edge atlas of the script to be tested is constructed by adopting two orthogonal data blood-edge tracing algorithms respectively and is used as the first data blood-edge atlas and the second data blood-edge atlas, the data blood-edge of the script to be tested is automatically tested by utilizing the first data blood-edge atlas and the second data blood-edge atlas, automatic testing of the data blood-edge of the script to be tested is achieved, labor cost is reduced, and meanwhile efficiency and reliability of the data blood-edge testing are improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for testing data blood clots provided in accordance with an embodiment of the invention;
FIG. 2 is a flow chart of a method for testing data blood clots provided in accordance with an embodiment of the invention;
FIG. 3 is a schematic diagram of a data blood-margin testing device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a data blood-edge testing method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The data acquisition, storage, use, processing and the like in the technical scheme meet the relevant regulations of national laws and regulations.
In an embodiment, fig. 1 is a flowchart of a data blood-edge testing method according to an embodiment of the present invention, where the method may be performed by a data blood-edge testing device, and the data blood-edge testing device may be implemented in hardware and/or software, and the data blood-edge testing device may be configured in an electronic device. As shown in fig. 1, the method includes:
S110, when a data blood-edge test request carrying a script database identifier and a script type is received, a corresponding script to be tested is obtained according to the script database identifier and the script type.
The script database identifier may refer to identification information of a script database where the script to be tested is located, and illustratively, the script database identifier may include, but is not limited to, a script database identifier, a script database name, and the like. In practical application, a script database where the script to be tested is located can be determined as a target script database according to the script database identification. The script type refers to the type of the script, and the script type may include a full-scale script and a variable script, that is, the script to be tested may be all the scripts in the script database, may be script data, may be an incremental script and a modification script in the script database, and may be determined according to the user requirement.
The data blood-edge test request refers to a request for performing data blood-edge test on the script to be tested, and the data blood-edge test request can carry a script database identifier and a script type so as to obtain the corresponding script to be tested. The script to be tested can be an executable file written according to a certain format by using a specific descriptive language, and is a script for testing the blood-cause of data. In one embodiment, the script to be tested may include, but is not limited to, an SQL statement.
In an embodiment, a data blood-edge test request can be acquired, a script database identifier and a script type carried by the data blood-edge test request are extracted, a script database in which a script to be tested is located is determined according to the script database identifier, and a corresponding script to be tested is extracted according to the script type. In the actual operation process, when the script type is a full-scale script, all scripts are directly obtained from a target script database to serve as scripts to be tested, and when the script type is a variable script, the corresponding variable script can be identified and extracted from the target script database to serve as the scripts to be tested. In an embodiment, when the change script is an incremental script, a newly added incremental script can be identified and extracted from the target script database as a script to be tested; when the change script is a modification script, the modified modification script can be identified and extracted from the target script database as a script to be tested.
And S120, respectively adopting two orthogonal data blood-edge tracing algorithms to construct a data blood-edge map of the script to be tested, and taking the data blood-edge map as a first data blood-edge map and a second data blood-edge map.
The data blood-edge tracing algorithm refers to an algorithm for establishing a data blood-edge map of a script to be tested. The data blood-related map refers to a map constructed according to the origin of data, the processing mode of data, the mapping relation and the data outlet. The data blood-edge map can be a map for data blood-edge analysis, and the data blood-edge map can be constructed according to the association relation of each script to be tested. In the actual operation process, two orthogonal data blood-edge tracing algorithms can be respectively adopted to construct the data blood-edge map of the script to be tested, and the two orthogonal data blood-edge tracing algorithms can comprise, but are not limited to, a top-down tracing algorithm, a bottom-up tracing algorithm, a front-end tracing algorithm, a rear-end tracing algorithm, a pruning tracing algorithm, a standardized tracing algorithm and the like.
In an embodiment, after determining the script to be tested, two orthogonal data blood-edge tracing algorithms may be obtained, and a first data blood-edge map and a second data blood-edge map of the script to be tested are respectively constructed according to the two data blood-edge tracing algorithms. In the actual operation process, a first data blood-margin map of the script to be tested can be constructed according to a top-down tracing algorithm, and the first data blood-margin map of the script to be tested can be constructed according to a bottom-up tracing algorithm. And constructing a first data blood-margin map of the script to be tested according to the preamble tracing algorithm, and constructing the first data blood-margin map of the script to be tested according to the follow-up tracing algorithm.
And S130, automatically testing the data blood edges of the script to be tested according to the first data blood edge map and the second data blood edge map.
In an embodiment, whether the first data blood-edge map and the second data blood-edge map are different or not can be compared, and when the map comparison result is that the maps are consistent, the completion of the test of the data blood-edge of the script to be tested can be determined. When the spectrum comparison result is inconsistent, an abnormal data blood-edge tracing algorithm can be analyzed and judged, the data blood-edge tracing algorithm with problems is modified, the modified two orthogonal data blood-edge tracing algorithms are adopted to reconstruct the data blood-edge spectrum of the script to be tested as a first data blood-edge spectrum and a second data blood-edge spectrum, and whether the first data blood-edge spectrum and the second data blood-edge spectrum are different or not is compared until the spectrum comparison result is consistent.
In an embodiment, when the script type is variable data, two orthogonal data blood-edge tracing algorithms can be used to construct a data blood-edge map for the full-volume script in the target script database where the variable script is located, the two orthogonal data blood-edge tracing algorithms reach a consistent convergence state, and then the variable script in the target script database is constructed to construct the data blood-edge map, so that the data blood-edge test result is more accurate.
According to the technical scheme, the corresponding script to be tested is obtained through the script database identification and the script type, the data blood-edge atlas of the script to be tested is constructed by adopting two orthogonal data blood-edge tracing algorithms respectively and is used as the first data blood-edge atlas and the second data blood-edge atlas, the data blood-edge of the script to be tested is automatically tested by utilizing the first data blood-edge atlas and the second data blood-edge atlas, automatic testing of the data blood-edge of the script to be tested is achieved, labor cost is reduced, and meanwhile efficiency and reliability of the data blood-edge testing are improved.
In an embodiment, fig. 2 is a flowchart of a data blood-edge testing method according to an embodiment of the present invention, and the embodiment is further described with reference to the foregoing embodiment. As shown in fig. 2, the method includes:
S210, when a data blood-edge test request carrying a script database identifier and a script type is received, determining a corresponding target script database according to the script database identifier.
The target script database may refer to a script database determined according to a script database identifier, and is a database where a script to be tested is located.
In an embodiment, when a data blood-edge test request carrying a script database identifier and a script type is received, the script database identifier and the script type may be extracted, and a corresponding script database is determined as a target script database according to the script data identifier. In actual operation, when the script database is identified as the script database identifier or the script database name, the corresponding script database may be searched as the target script database according to the script database identifier or the script database name.
In one embodiment, the target script database is an inventory system; correspondingly, the script to be tested is an inventory processing script in the target script database.
The stock system refers to a system with a plurality of scripts stored through processing, and the stock processing scripts refer to the scripts stored through processing in the stock system. That is, when the target script database is an inventory system, the original script may be saved in the target script database, and the script to be tested may be an inventory processing script in the target script database.
S220, acquiring a corresponding script to be tested from the target script database according to the script type.
In an embodiment, after extracting the script type carried by the data blood-edge test request, a corresponding script to be tested may be searched in the target script database according to the script type. For example, when the script type is a full-scale script, all scripts are directly obtained from the target script database to serve as scripts to be tested, and when the script type is a variable script, the corresponding variable script can be identified and extracted from the target script database to serve as the scripts to be tested.
S230, respectively adopting two orthogonal data blood-source tracing algorithms to construct a data blood-source map of the script to be tested, and taking the data blood-source map as a first data blood-source map and a second data blood-source map.
In one embodiment, the two orthogonal data lineage tracing algorithms include: a top-down tracing algorithm and a bottom-up tracing algorithm; or a preamble tracing algorithm and a postamble tracing algorithm.
The top-down tracing algorithm may refer to a tracing algorithm that defines a tracing rule first and then fills script data to be tested into the tracing rule, and may be understood as a method for constructing a data blood-margin map from coarse to fine. The bottom-up tracing algorithm can be an algorithm for extracting the relation of the script to be tested and then constructing the data blood-margin map by the relation of the script to be tested, and can be understood as a method for constructing the data blood-margin map from thin to thick. The preamble tracing algorithm refers to a method for constructing the data blood-margin map of the script to be tested according to a preamble mode, and the follow-up tracing algorithm refers to a method for constructing the data blood-margin map of the script to be tested according to a follow-up mode.
S240, determining a map comparison result between the first data blood-source map and the second data blood-source map.
Wherein, the graph comparison result can comprise consistent graphs and inconsistent graphs.
In an embodiment, after the first data blood-edge map and the second data blood-edge map are determined, the first data blood-edge map and the second data blood-edge map can be compared, a map comparison result is determined, and when the first data blood-edge map and the second data blood-edge map are completely consistent, the map comparison result can be determined to be consistent; when the first data blood-related map and the second data blood-related map are not completely consistent and have differences, the map comparison result can be determined as the map inconsistency.
S250, searching for an abnormal data blood source tracing algorithm under the condition that the spectrum comparison result is inconsistent.
In the embodiment, under the condition that the result of the map comparison is inconsistent, the data blood source tracing algorithm for judging that the abnormality exists can be analyzed.
And S260, modifying the data blood-source tracing algorithm with the abnormality to obtain a modified data blood-source tracing algorithm.
In an embodiment, the data blood-edge tracing algorithm with the abnormality can be modified, and the data blood-edge tracing algorithm is adjusted to obtain the modified data blood-edge tracing algorithm.
S270, returning to the step of respectively adopting two orthogonal data blood-source tracing algorithms to construct the data blood-source atlas of the script to be tested as the first data blood-source atlas and the second data blood-source atlas until the atlas comparison result is the atlas consistency.
In an embodiment, after the modified data blood-edge tracing algorithm is obtained, the data blood-edge atlas of the script to be tested can be reconstructed according to the modified data blood-edge tracing algorithm to be used as the first data blood-edge atlas and the second data blood-edge atlas, and an atlas comparison result between the first data blood-edge atlas and the second data blood-edge atlas is determined until the atlas comparison result is that the atlas is consistent, so that the data blood-edge test is completed.
According to the technical scheme, when a data blood-edge test request carrying a script database identifier and a script type is received, a corresponding target script database is determined according to the script database identifier, a corresponding script to be tested is obtained from the target script database according to the script type, data blood-edge maps of the script to be tested are respectively constructed by adopting two orthogonal data blood-edge tracing algorithms, the two orthogonal data blood-edge maps are used as a first data blood-edge map and a second data blood-edge map, a map comparison result between the first data blood-edge map and the second data blood-edge map is determined, under the condition that the map comparison result is that the maps are inconsistent, an abnormal data blood-edge tracing algorithm is found, the abnormal data blood-edge tracing algorithm is modified, the modified data blood-edge tracing algorithm is returned, the two orthogonal data blood-edge tracing algorithms are respectively adopted to construct the data blood-edge map of the script to be tested, the two orthogonal data blood-edge maps are used as the steps until the map comparison result is consistent, and the data blood-edge tracing algorithms of the two orthogonal data blood-edge maps are automatically verified, and the data blood-edge stability of the script to be tested is guaranteed.
In an embodiment, obtaining a corresponding script to be tested from a target script database according to a script type includes:
under the condition that the script type is a full-scale script, all scripts are directly obtained from a target script database and used as scripts to be tested;
and when the script type is a change script, identifying and extracting the corresponding change script from the target script database as a script to be tested.
The change script may be a script in which a pointer changes to an original script in the target script database. In the course of application, the change script may include, but is not limited to, an incremental script and a modification script.
In the embodiment, when the script type is a full-scale script, all scripts in the target script database can be directly acquired and used as scripts to be tested; when the script type is a variable script, the corresponding variable script can be identified and extracted from the target script database to serve as a script to be tested.
In one embodiment, the change script includes: incremental scripts and modification scripts.
Wherein, the incremental script may refer to a newly added script in the target script database compared to the original script; modifying a script may mean that the target script database has a modified script as compared to the original script.
In one embodiment, before the change script constructs the data blood-lineage map, further comprising:
constructing a data blood-lineage map for a full-volume script in a target script database where the variable script is located by adopting two orthogonal data blood-lineage tracing algorithms;
under the condition that two orthogonal data blood-edge tracing algorithms reach a consistent convergence state, a data blood-edge map is constructed for a variation script in a target script database.
In an embodiment, before the script type is a variable script to construct a data blood-edge map, a full-volume script in a target script database where the variable script is located can be extracted first, two orthogonal data blood-edge tracing algorithms are adopted to construct the data blood-edge map for the full-volume script, after a map comparison result is determined to be consistent, the two orthogonal data blood-edge tracing algorithms are determined to reach a consistent convergence state. After two orthogonal data blood-edge tracing algorithms reach a consistent convergence state, constructing a data blood-edge map for a change script in a target script database. By limiting the sequence of execution between the data blood edges of the increment script and the full-quantity script, the modified data blood edge tracing algorithm can be applied to the full-quantity script in the target script database.
In one embodiment, the data blood-edge testing method further comprises:
when a function requirement adjustment instruction carrying a target function requirement is received, acquiring a full script in a corresponding target script database according to the target function requirement;
and taking the full script as a corresponding script to be tested.
The target functional requirement may refer to a requirement of generating a data blood-edge map, and exemplary target functional requirements may include, but are not limited to, constructing a data blood-edge map of a direct blood-edge, constructing a data blood-edge map of an indirect blood-edge, constructing a data blood-edge map with a small degree of influence, constructing a data blood-edge map with a large degree of influence, and the like. The function requirement adjustment instruction may be an instruction indicating a target function requirement, and the corresponding script to be tested may be extracted according to the function requirement adjustment instruction.
In an embodiment, after receiving the demand adjustment instruction, the target function demand carried by the demand adjustment instruction may be extracted, a full-volume script in a corresponding target script database is obtained according to the target function demand, and the full-volume script is used as a corresponding script to be tested, so as to construct a data blood-vessel map of the target function demand according to the script to be tested. For example, when the target functional requirement is to display a data blood-lineage map by level, the instructions may be adjusted to carry the functional requirement of displaying the data blood-lineage map by level, creating the data blood-lineage map displayed by level. And when the target function requirement exists, directly performing cross-validation on the data blood edges of the corresponding full-volume script.
In an embodiment, when the script type is a variable script and the graph comparison result is that the graph is inconsistent, after modifying the data blood edge tracing algorithm with the abnormality to obtain the modified data blood edge tracing algorithm, the method further includes:
acquiring a full-quantity script in a target script database where the change script is located;
and taking the full-quantity script as a corresponding script to be tested, and returning to the step of respectively adopting two orthogonal data blood-edge tracing algorithms to construct the data blood-edge atlas of the script to be tested as a first data blood-edge atlas and a second data blood-edge atlas until the atlas comparison result of the first data blood-edge atlas and the second data blood-edge atlas is the atlas consistency.
In an embodiment, when the script type is a variable script and the spectrum comparison result is that the spectrum is inconsistent, the data blood-source tracing algorithm with abnormality can be modified to obtain the modified data blood-source tracing algorithm. After the modified data blood edge tracing algorithm is determined, the full-quantity script in the target script database where the variable script is located can be extracted, the full-quantity script is used as a corresponding script to be tested, the data blood edge atlas of the script to be tested is respectively built by adopting two orthogonal data blood edge tracing algorithms and is used as a step of the first data blood edge atlas and the second data blood edge atlas until the atlas comparison result is the atlas consistency, the data blood edge atlas is built for the script to be tested by carrying out cross verification on the two orthogonal data blood edge tracing algorithms, and the two orthogonal data blood edge tracing algorithms reach a consistent convergence state.
When the script increment script is to be tested, only the data blood edges of the increment script are subjected to cross verification, if the results are inconsistent, the data blood edge tracing algorithm is modified, and the data blood edges of the corresponding full-quantity script are subjected to cross verification by adopting the modified data blood edge tracing algorithm, so that the modified data blood edge tracing algorithm can be suitable for the full-quantity script in the target script database, and the situation of error testing results of the data blood edge map is prevented.
In an embodiment, the present embodiment is a specific embodiment based on the foregoing embodiment, and uses a pruning tracing algorithm and a standardized tracing algorithm that is completely orthogonal to the pruning tracing algorithm as two orthogonal data blood edge tracing algorithms, uses a target script database as a stock system, uses a to-be-tested script as a stock processing script in the target script database as an example, and further describes a data blood edge testing method, and may be combined with each optional technical scheme in the foregoing embodiment. The method comprises the following steps:
and respectively constructing data blood-margin maps of all stock processing scripts in the stock system according to the pruning traceability algorithm and the standardized traceability algorithm which is completely orthogonal with the pruning traceability algorithm, and taking the data blood-margin maps as a first data blood-margin map and a second data blood-margin map. Determining a map comparison result of the first data blood-related map and the second data blood-related map, and determining that the test is completed when the map comparison result is consistent; and when the atlas comparison result is inconsistent, determining an abnormal data tracing algorithm, modifying and adjusting the abnormal data tracing algorithm to obtain a modified data tracing algorithm, and reconstructing the data blood-source atlas of all stock processing scripts in the stock system according to the two modified orthogonal data blood-source tracing algorithms until the atlas comparison result is consistent, thereby completing the test.
The pruning traceability algorithm is used as a main algorithm, and the purpose of acquiring the data blood margin is achieved by cutting all irrelevant branches in the whole grammar tree.
After the test of the first full script is completed, the two orthogonal data tracing algorithms reach a consistent convergence state. For the subsequent increment script or regression test caused by function requirement iteration, the orthogonal data tracing algorithm can be applied to repeat the process for cross verification, so that the aim of automatic test is fulfilled.
In an embodiment, fig. 3 is a schematic structural diagram of a data blood-edge testing device according to an embodiment of the invention. As shown in fig. 3, the apparatus includes: a script acquisition module 31, a pattern generation module 32 and a pattern test module 33.
The script obtaining module 31 is configured to obtain, when receiving a data blood-edge test request carrying a script database identifier and a script type, a corresponding script to be tested according to the script database identifier and the script type.
The map generation module 32 is configured to construct a data blood-source map of the script to be tested by using two orthogonal data blood-source tracing algorithms, as a first data blood-source map and a second data blood-source map.
The map testing module 33 is configured to automatically test the data blood edges of the script to be tested according to the first data blood edge map and the second data blood edge map.
According to the embodiment of the invention, the script acquisition module is used for acquiring the corresponding script to be tested through the script database identification and the script type, the map generation module is used for respectively constructing the data blood-edge map of the script to be tested by adopting two orthogonal data blood-edge tracing algorithms, and the data blood-edge map is used as the first data blood-edge map and the second data blood-edge map, and the map test module is used for automatically testing the data blood-edge of the script to be tested by utilizing the first data blood-edge map and the second data blood-edge map, so that the automatic test of the data blood-edge of the script to be tested is realized, and the efficiency and the reliability of the data blood-edge test are improved while the labor cost is reduced.
In one embodiment, the script acquisition module 31 further comprises:
the database determining module is used for determining a corresponding target script database according to the script database identification;
the script extraction module is used for acquiring the corresponding script to be tested from the target script database according to the script type.
In one embodiment, the target script database is an inventory system; correspondingly, the script to be tested is an inventory processing script in the target script database.
In one embodiment, the script extraction module comprises:
the first script extraction unit is used for directly acquiring all scripts from the target script database as scripts to be tested under the condition that the script type is a full-scale script;
and the second script extraction unit is used for identifying and extracting the corresponding change script from the target script database as the script to be tested under the condition that the script type is the change script.
In one embodiment, the data blood-margin testing device further comprises:
the first map construction unit is used for constructing a data blood-source map for the full script in the target script database where the change script is located by adopting two orthogonal data blood-source tracing algorithms;
the second map construction unit is used for constructing the data blood-source map for the change script in the target script database under the condition that two orthogonal data blood-source tracing algorithms reach a consistent convergence state.
In one embodiment, the change script includes: incremental scripts and modification scripts.
In one embodiment, the atlas testing module 33 comprises:
the comparison result determining unit is used for determining a map comparison result between the first data blood-source map and the second data blood-source map;
The abnormal algorithm searching unit is used for searching for a data blood source tracing algorithm with abnormality under the condition that the spectrum comparison result is inconsistent;
the algorithm modification unit is used for modifying the data blood-source tracing algorithm with the abnormality to obtain a modified data blood-source tracing algorithm;
the atlas testing unit is used for returning to the steps of constructing the data blood-edge atlas of the script to be tested by adopting two orthogonal data blood-edge tracing algorithms respectively and taking the data blood-edge atlas as the first data blood-edge atlas and the second data blood-edge atlas until the atlas comparison result is that the atlas is consistent.
In one embodiment, the data blood-margin testing device further comprises:
the script determining module is used for acquiring a full script in a corresponding target script database according to the target function requirement when a function requirement adjustment instruction carrying the target function requirement is received;
and the script to be tested determining module is used for taking the full-quantity script as the corresponding script to be tested.
In an embodiment, when the script type is a change script and the profile comparison result is that the profiles are inconsistent, the data blood-margin testing device further includes:
the full script acquisition module is used for acquiring the full script in the target script database where the change script is located;
The full-volume spectrum testing module is used for taking the full-volume script as a corresponding script to be tested, and returning to the step of constructing the data blood-edge spectrum of the script to be tested by adopting two orthogonal data blood-edge tracing algorithms respectively to serve as a first data blood-edge spectrum and a second data blood-edge spectrum until the spectrum comparison result of the first data blood-edge spectrum and the second data blood-edge spectrum is identical.
In one embodiment, the two orthogonal data lineage tracing algorithms include: a top-down tracing algorithm and a bottom-up tracing algorithm; or a preamble tracing algorithm and a postamble tracing algorithm.
The data blood edge testing device provided by the embodiment of the invention can execute the data blood edge testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
In one embodiment, fig. 4 is a schematic structural diagram of an electronic device implementing the data blood-edge testing method according to an embodiment of the present invention, and as shown in fig. 4, a schematic structural diagram of an electronic device 10 that may be used to implement an embodiment of the present invention is shown. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the data blood-margin test method.
In some embodiments, the data blood-lineage testing method can be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more of the steps of the data blood-edge testing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the data blood-lineage testing method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, 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), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
In an embodiment, the invention further comprises a computer program product comprising a computer program which, when executed by a processor, implements the data blood-edge testing method of any of the embodiments of the invention.
Computer program product in the implementation, the computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (15)

1. A method for testing blood clots, comprising:
when a data blood-edge test request carrying a script database identifier and a script type is received, acquiring a corresponding script to be tested according to the script database identifier and the script type;
respectively adopting two orthogonal data blood-margin tracing algorithms to construct a data blood-margin map of the script to be tested, and taking the data blood-margin map as a first data blood-margin map and a second data blood-margin map;
And automatically testing the data blood edges of the script to be tested according to the first data blood edge map and the second data blood edge map.
2. The method according to claim 1, wherein the obtaining the corresponding script to be tested according to the script database identifier and the script type includes:
determining a corresponding target script database according to the script database identifier;
and acquiring a corresponding script to be tested from the target script database according to the script type.
3. The method of claim 2, wherein the target script database is an inventory system; correspondingly, the script to be tested is an inventory processing script in the target script database.
4. The method according to claim 2, wherein the obtaining the corresponding script to be tested from the target script database according to the script type includes:
under the condition that the script type is a full-scale script, all scripts are directly obtained from the target script database and used as scripts to be tested;
and under the condition that the script type is a variable script, identifying and extracting a corresponding variable script from the target script database as a script to be tested.
5. The method of claim 4, further comprising, prior to constructing the data lineage map for the change script:
constructing a data blood-lineage map for a full-volume script in a target script database where the change script is located by adopting two orthogonal data blood-lineage tracing algorithms;
and under the condition that the two orthogonal data blood-edge tracing algorithms reach a consistent convergence state, constructing a data blood-edge map for a variation script in the target script database.
6. The method of claim 4, wherein the change script comprises: incremental scripts and modification scripts.
7. The method of claim 1, wherein automatically testing the data blood-margin of the script under test based on the first data blood-margin map and the second data blood-margin map comprises:
determining a map comparison result between the first data blood-related map and the second data blood-related map;
searching for a data blood source tracing algorithm with abnormality under the condition that the spectrum comparison result is inconsistent;
modifying the data blood-source tracing algorithm with the abnormality to obtain a modified data blood-source tracing algorithm;
And returning to the step of respectively adopting two orthogonal data blood-source tracing algorithms to construct the data blood-source atlas of the script to be tested as a first data blood-source atlas and a second data blood-source atlas until the atlas comparison result is the atlas consistency.
8. The method according to any one of claims 1-7, further comprising:
when a function requirement adjustment instruction carrying a target function requirement is received, acquiring a full script in a corresponding target script database according to the target function requirement;
and taking the full-volume script as a corresponding script to be tested.
9. The method according to claim 7, wherein when the script type is a change script and the map comparison result is a map inconsistency, after modifying the data blood edge tracing algorithm with the anomaly, the method further comprises:
acquiring a full script in a target script database where the change script is located;
and taking the full-volume script as a corresponding script to be tested, and returning to the step of constructing the data blood-edge atlas of the script to be tested by adopting two orthogonal data blood-edge tracing algorithms respectively to serve as a first data blood-edge atlas and a second data blood-edge atlas until the atlas comparison result of the first data blood-edge atlas and the second data blood-edge atlas is the atlas consistency.
10. The method of any one of claims 1-7, wherein the two orthogonal data blood-source tracing algorithms comprise: a top-down tracing algorithm and a bottom-up tracing algorithm; or a preamble tracing algorithm and a postamble tracing algorithm.
11. A data blood-edge testing device, comprising:
the script acquisition module is used for acquiring a corresponding script to be tested according to the script database identifier and the script type when receiving a data blood-edge test request carrying the script database identifier and the script type;
the map generation module is used for respectively adopting two orthogonal data blood-source tracing algorithms to construct a data blood-source map of the script to be tested, and the data blood-source map is used as a first data blood-source map and a second data blood-source map;
and the map testing module is used for automatically testing the data blood edges of the script to be tested according to the first data blood edge map and the second data blood edge map.
12. The apparatus of claim 11, wherein the data blood-margin testing apparatus further comprises:
the database determining module is used for determining a corresponding target script database according to the script database identification;
And the script extraction module is used for acquiring the corresponding script to be tested from the target script database according to the script type.
13. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data processing method of any one of claims 1-10.
14. A computer readable storage medium storing computer instructions for causing a processor to perform the data blood-edge testing method of any one of claims 1-10.
15. A computer program product, characterized in that the computer program product comprises a computer program which, when executed by a processor, implements the data blood-edge testing method according to any one of claims 1-10.
CN202311629291.6A 2023-11-30 2023-11-30 Data blood edge testing method and device, electronic equipment, storage medium and product Pending CN117421452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311629291.6A CN117421452A (en) 2023-11-30 2023-11-30 Data blood edge testing method and device, electronic equipment, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311629291.6A CN117421452A (en) 2023-11-30 2023-11-30 Data blood edge testing method and device, electronic equipment, storage medium and product

Publications (1)

Publication Number Publication Date
CN117421452A true CN117421452A (en) 2024-01-19

Family

ID=89532730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311629291.6A Pending CN117421452A (en) 2023-11-30 2023-11-30 Data blood edge testing method and device, electronic equipment, storage medium and product

Country Status (1)

Country Link
CN (1) CN117421452A (en)

Similar Documents

Publication Publication Date Title
CN116107589B (en) Automatic compiling method, device and equipment of software codes and storage medium
US20230304828A1 (en) Method and apparatus for testing an electronic map and storage medium
CN116775634A (en) Quality inspection method, device, equipment and medium for power generation engineering data
CN116303013A (en) Source code analysis method, device, electronic equipment and storage medium
CN115794473A (en) Root cause alarm positioning method, device, equipment and medium
CN117421452A (en) Data blood edge testing method and device, electronic equipment, storage medium and product
CN115437961A (en) Data processing method and device, electronic equipment and storage medium
CN115455091A (en) Data generation method and device, electronic equipment and storage medium
CN114443493A (en) Test case generation method and device, electronic equipment and storage medium
CN114896418A (en) Knowledge graph construction method and device, electronic equipment and storage medium
CN114722401A (en) Equipment safety testing method, device, equipment and storage medium
CN117271373B (en) Automatic construction method and device for test cases, electronic equipment and storage medium
CN116070601B (en) Data splicing method and device, electronic equipment and storage medium
CN116401113B (en) Environment verification method, device and medium for heterogeneous many-core architecture acceleration card
CN117724980A (en) Method and device for testing software framework performance, electronic equipment and storage medium
CN116166501B (en) Log verification method and device, electronic equipment and storage medium
US20230132618A1 (en) Method for denoising click data, electronic device and storage medium
CN118012936A (en) Data extraction method, device, equipment and storage medium
CN116701081A (en) Communication fault point determining method, device and medium
CN117493203A (en) Method, device, equipment and storage medium for testing server software
CN117648252A (en) Function test method and device for software application, electronic equipment and storage medium
CN115567624A (en) Message processing method and device, electronic equipment and medium
CN117033235A (en) Method, device, equipment and storage medium for testing relevance of software program
CN116150031A (en) Program performance test early warning method, device, equipment and storage medium
CN115934550A (en) Test method, test device, electronic equipment and storage medium

Legal Events

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