CN117422281B - Process file testing method and device, computer equipment and storage medium - Google Patents

Process file testing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN117422281B
CN117422281B CN202311736618.XA CN202311736618A CN117422281B CN 117422281 B CN117422281 B CN 117422281B CN 202311736618 A CN202311736618 A CN 202311736618A CN 117422281 B CN117422281 B CN 117422281B
Authority
CN
China
Prior art keywords
process file
file
parallel
slave
test result
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
CN202311736618.XA
Other languages
Chinese (zh)
Other versions
CN117422281A (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.)
Shenzhen Saiqiao Biological Innovation Technology Co Ltd
Original Assignee
Shenzhen Saiqiao Biological Innovation Technology 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 Shenzhen Saiqiao Biological Innovation Technology Co Ltd filed Critical Shenzhen Saiqiao Biological Innovation Technology Co Ltd
Priority to CN202311736618.XA priority Critical patent/CN117422281B/en
Publication of CN117422281A publication Critical patent/CN117422281A/en
Application granted granted Critical
Publication of CN117422281B publication Critical patent/CN117422281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/144Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing

Abstract

The invention discloses a process file testing method, a process file testing device, computer equipment and a storage medium. The method comprises the following steps: acquiring a target process file, wherein the target process file comprises a master process file and at least one level of slave process files associated with the master process file; performing nesting test on each slave process file to obtain a nesting test result corresponding to the target process file; carrying out parallel test on at least two slave process files in the same level to obtain a parallel test result corresponding to the target process file; and determining a process test result of the target process file according to the nesting test result and the parallel test result corresponding to the target process file. The method does not need to manually participate in the test, so that the error rate of the test can be reduced, the method is convenient and quick, the process test cost is saved, and the target process file which is subjected to both the nested test and the parallel test has higher error prevention rate and operation efficiency in the actual operation process.

Description

Process file testing method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of process testing, and in particular, to a process file testing method, apparatus, computer device, and storage medium.
Background
In the prior art, the process flow is mostly realized by manual operation, but the mode of realizing the process flow by manual operation has lower efficiency, and step operation errors or step omission easily occur, so that the waste of process cost is caused. For example, in the biotechnology field, a process flow of cell processing by using a manual operation method cannot identify compatibility problems of each step in the process flow, so that an operation error is found after the process flow is implemented, and waste of process cost is caused. Therefore, each step in the process flow needs to be subjected to process editing, a corresponding process file is generated, and the process flow is realized by automatically running the process file. The process editing mode does not need to manually participate in specific steps of the process flow, so that the error prevention rate and the realization efficiency of the process flow can be improved, but in the process of generating the process file by performing process editing on the process flow, the process file is inevitably wrong due to editing errors, so that more accurate process testing is performed on the process file generated after the process editing on the process flow, the operation efficiency and the error prevention rate of the process file in the process of automatically realizing the process flow are technical problems to be solved urgently in the prior art.
Disclosure of Invention
The embodiment of the invention provides a process file testing method, a device, computer equipment and a storage medium, which are used for solving the problem of how to perform more accurate process testing on a process file generated after process editing.
A process document testing method comprising:
obtaining a target process file, wherein the target process file comprises a master process file and at least one level of slave process files associated with the master process file;
performing nesting test on each slave process file to obtain a nesting test result corresponding to the target process file;
carrying out parallel test on at least two slave process files in the same level to obtain a parallel test result corresponding to the target process file;
and determining a process test result of the target process file according to the nesting test result and the parallel test result corresponding to the target process file.
Preferably, the performing a nesting test on each slave process file to obtain a nesting test result corresponding to the target process file includes:
comparing the child process file of the next level of each slave process file with the parent process file of the previous level, and judging whether each child process file is identical with the parent process file;
If any child process file is the same as the parent process file, determining that the nesting test result corresponding to the slave process file is that the test fails;
if any child process file is not the same as the parent process file, determining that the nesting test result corresponding to the slave process file is test passing;
and determining the nesting test result corresponding to the target process file according to the nesting test result corresponding to each slave process file.
Preferably, the comparing the child process file of the next level of each slave process file with the parent process file of the previous level to determine whether each child process file is identical to the parent process file includes:
comparing the parent process identification code of the parent process file with the child process identification codes of the child process files by using a character string character-by-character matching method;
if the child process identification code is identical to each character of the parent process identification code, determining that the child process file is identical to the parent process file;
if the child process identification code and the parent process identification code are not matched word by word once, determining that the child process file is different from the parent process file.
Preferably, the comparing the child process file of the next level of each slave process file with the parent process file of the previous level to determine whether each child process file is identical to the parent process file, further includes:
calculating a parent process check code of the parent process file and a child process check code of each child process file by using a check code output algorithm;
if the child process check code is the same as the parent process check code, determining that the child process file is the same as the parent process file;
if the child process check code is different from the parent process check code, determining that the child process file is different from the parent process file.
Preferably, the parallel testing of at least two slave process files in the same hierarchy to obtain a parallel test result corresponding to the target process file includes:
judging whether any two slave process files belonging to the same father process file and of the same hierarchy meet a preset parallel condition or not;
if any two slave process files in the same hierarchy meet the preset parallel condition, determining that a parallel test result corresponding to the target process file is test passing;
if any two slave process files in the same hierarchy do not meet the preset parallel condition, determining that the parallel test result corresponding to the target process file is not passed.
Preferably, the determining whether any two of the slave process files belonging to the same parent process file and at the same level satisfy a preset parallel condition includes:
acquiring parallel attributes of any two slave process files belonging to the same father process file and of the same hierarchy and parallel parameters corresponding to the parallel attributes, and inquiring a parallel parameter set corresponding to the parallel attributes stored in a system database in advance;
if any two obtained parallel parameters are the same and the parallel parameters are in the parallel parameter set corresponding to the parallel attribute, determining that any two slave process files in the same level meet a preset parallel condition;
if any two obtained parallel parameters are different or the parallel parameters are not in the parallel parameter set corresponding to the parallel attribute, determining that any two slave process files with the same level do not meet the preset parallel condition.
Preferably, before the target process file is acquired, the process file testing method further includes:
receiving a migration instruction, responding to the migration instruction, and acquiring a process file to be migrated and a migration link corresponding to the process file to be migrated;
Changing an original process identification code corresponding to the process file to be migrated to obtain a target process identification code corresponding to the process file to be migrated;
inquiring an existing process file in a system database based on the process file to be migrated, and judging whether the existing process file which is the same as the process file to be migrated exists or not;
if the existing process file which is the same as the process file to be migrated exists, deleting the process file to be migrated and a target process identification code corresponding to the process file to be migrated, and storing the migration link into an existing link stack corresponding to the existing process file;
if the existing process file which is the same as the process file to be migrated does not exist, storing the process file to be migrated and a target process identification code corresponding to the process file to be migrated into the system database, simultaneously creating a new link stack corresponding to the process file to be migrated, and storing the migration link into the new link stack;
the obtaining the target process file includes: and acquiring the target process file from a system database after the migration instruction is completed.
Preferably, after the process file to be migrated and the migration link corresponding to the process file to be migrated are obtained, and before the existing process file identical to the process file to be migrated exists, deleting the process file to be migrated and storing the migration link in the existing link stack corresponding to the existing process file, the process file testing method further includes:
Calculating the migration capacity of the process file to be migrated and the migration link corresponding to the process file to be migrated, and obtaining the current residual capacity of a system database;
if the current residual capacity is larger than the migration capacity, directly storing the process file to be migrated and the migration link to the extreme end in a system database;
and if the current residual capacity is not greater than the migration capacity, inquiring the existing process files in a system database based on the process files to be migrated, and judging whether the existing process files which are the same as the process files to be migrated exist.
Preferably, the determining whether the existing process file identical to the process file to be migrated exists based on the existing process file in the process file to be migrated querying system database includes:
based on the technological parameters of the technological file to be migrated, generating a parameter check code corresponding to the technological file to be migrated by using a unique check code generation algorithm;
inquiring existing check codes corresponding to all existing process files in a system database based on the acquired parameter check codes, and judging whether the existing check codes which are the same as the parameter check codes exist or not;
If the existing check code which is the same as the parameter check code exists, confirming that the existing process file which is the same as the process file to be migrated exists;
and if the existing check code which is the same as the parameter check code does not exist, confirming that the existing process file which is the same as the process file to be migrated does not exist.
Preferably, the determining the process test result of the target process file according to the nested test result and the parallel test result corresponding to the target process file includes:
if the nesting test result and the parallel test result corresponding to the target process file are both test passing, determining that the process test result of the target process file is test passing;
and if at least one of the nested test result and the parallel test result corresponding to the target process file is the test failed, determining that the process test result of the target process file is the test failed.
A process document testing device comprising:
a target process file acquisition module, configured to acquire a target process file, where the target process file includes a master process file and at least one level of slave process files associated with the master process file;
The nested test result determining module is used for carrying out nested test on each slave process file to obtain a nested test result corresponding to the target process file;
the parallel test result determining module is used for carrying out parallel test on at least two slave process files in the same level to obtain a parallel test result corresponding to the target process file;
and the process test result determining module is used for determining the process test result of the target process file according to the nesting test result and the parallel test result corresponding to the target process file.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the process file testing method described above when executing the computer program.
A computer readable storage medium storing a computer program which when executed by a processor implements the process file testing method described above.
According to the process file testing method, the device, the computer equipment and the storage medium, the slave process files of each level in the target process file are obtained, the nesting test is carried out on each slave process file to obtain the nesting test result corresponding to the target process file, the parallel test is carried out on at least two slave process files of the same level to obtain the parallel test result corresponding to the target process file, the test is not needed to be manually participated, the error rate of the test is reduced, the test is convenient and quick, the test cost is saved, and the target process file which is compatible with the nesting test and the parallel test is higher in error prevention rate and operation efficiency in the actual operation process.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that 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 a process file according to an embodiment of the invention;
FIG. 2 is a flowchart of step S102 in FIG. 1;
FIG. 3 is a flowchart of step S201 in FIG. 2;
fig. 4 is another flowchart of step S201 in fig. 2;
fig. 5 is a flowchart of step S103 in fig. 1;
fig. 6 is a flowchart of step S501 in fig. 5;
FIG. 7 is a flowchart showing a step prior to step S101 in FIG. 1;
FIG. 8 is a flowchart showing steps in FIG. 7 after step S701 and before step S704;
fig. 9 is a flowchart of step S703 in fig. 7;
FIG. 10 is a flowchart of step S104 in FIG. 1;
FIG. 11 is a schematic diagram of a process file testing apparatus according to an embodiment of the invention;
FIG. 12 is a schematic diagram of a computer device in accordance with an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention provides a process file testing method which is used for improving the accuracy of a process file generated after process editing of a process flow and improving the running efficiency and error proofing rate of the process file in the process of automatically realizing the process flow. A process flow refers to an operational flow that controls equipment to perform a series of process requirements in order to achieve a certain process (or the product of a process execution). The process flows include parallel operation flows and serial operation flows generated by nesting. In the embodiment of the present invention, the target process flow refers to a process flow formulated to achieve a certain target process. The target process flow comprises at least one main process flow and at least one level of slave process flows associated with the main process flow, wherein a nesting relationship exists between the main process flow and the slave process flow corresponding to the main process flow, and a parallel relationship exists between the slave process flows of the same level. The slave process flow of the upper level is the father process flow of the slave process flow of the lower level, which has a nested relation with the slave process flow of the upper level; accordingly, a slave process flow of a next level is a sub-process flow of a slave process flow of a previous level that has a nested relationship with the slave process flow of the next level.
The main process flow refers to a large-scale process flow in the target process flow. For example, in the biotechnology field, for the preparation process flow of biological stock solution, the main process flow is three major process flows of biological stock solution collection, biological stock solution treatment and biological stock solution stability test. The slave process flow refers to a process flow for implementing each step of the corresponding master process flow.
It is understood that at least one level of secondary process flow is nested in each primary process flow, for example, in the biotechnology field, for the preparation of biological stock solution, the primary process flow is operations such as biological stock solution collection, biological stock solution treatment, biological stock solution sorting and incubation, and the like, wherein the primary process flow includes a first level of secondary process flow: cell culture, cell collection and cell sorting; in a first level of slave process flows, cell collection in turn includes a second level of slave process flows: mixing, centrifuging, cleaning, sorting, collecting products and collecting cleaning liquid. The slave process flows may be parallel or serial, or may be run in a serial-parallel manner, for example, the slave process flows of the first level may be parallel, and the slave process flows of the second level may be parallel. Cell collection this first level of slave process flows there is a second level of slave process flows with nested relationships: centrifuging, cleaning and collecting cleaning liquid. That is, cell collection is a parent process of centrifugation, washing, and washing liquid collection, which are child processes of cell collection, respectively.
And carrying out process editing on the target process flow (comprising at least one main process flow and at least one level of slave process flow associated with the main process flow) by adopting computer equipment on an editable interface according to a nesting relationship and a parallel relationship to obtain a main process file corresponding to each main process flow and a slave process file corresponding to the slave process flow nested under the main process flow, so that after the process editing of the target process flow is finished, each process file is operated according to the nesting relationship between the main process file and the slave process file of the previous level, the nesting relationship between the slave process file of the next level and the slave process file of the same level and the parallel relationship between the slave process files of the same level, and the target process flow corresponding to the target process file is automatically realized. The process editing is a process for editing a master process flow in a target process flow into a corresponding master process file and editing a slave process flow into a corresponding slave process file.
However, because of errors or misoperation of manual process editing of the target process flow, process testing is required to be performed on the master process file and the slave process file obtained by process editing so as to determine the correctness of the nesting relationship and the parallel relationship between the process files generated by process editing, and the error prevention rate of the master process file and the slave process file and the operation efficiency of the master process file and the slave process file in the actual operation process are improved.
In one embodiment, as shown in fig. 1, a process file testing method is provided, and the method is applied to the computer device shown in fig. 12 for illustration, and includes the following steps:
s101: acquiring a target process file, wherein the target process file comprises a master process file and at least one level of slave process files associated with the master process file;
s102: performing nesting test on each slave process file to obtain a nesting test result corresponding to the target process file;
s103: carrying out parallel test on at least two slave process files in the same level to obtain a parallel test result corresponding to the target process file; it is understood that parallel testing is one test of a slave process that sets up steps/procedures in parallel.
S104: and determining a process test result of the target process file according to the nesting test result and the parallel test result corresponding to the target process file.
The target process file comprises a master process file and a slave process file which are generated after the process editing of the target process flow is completed and have a nested relationship and/or a parallel relationship. The main process file refers to a process file generated by performing process editing on a main process flow in the process flows. The slave process file refers to a process file generated by performing process editing on the slave process flow in the process flow.
As an example, in step S101, the computer device obtains a target process file generated by performing process editing on the target process flow, and obtains all master process files and slave process files of each level in which each master process file is nested in the target process file. It is understood that the computer device stores the process files after process editing in a system database provided in the computer device for storing files related to each process during processing. When the process test is carried out on the process file corresponding to a certain target process flow, the process file corresponding to the target process flow is read from the system database and is used as the target process file, namely, the target process files such as the master process file, the slave process file and the like corresponding to the target process flow are obtained, so that the subsequent test on the target process file is feasible.
The nesting test refers to a test on nesting relation among slave process files with nesting relation. It is understood that, for the slave process file of the previous level, there may be a slave process file of the next level having a nesting relationship with the slave process file of the previous level, during the process editing, due to the editing error, the slave process file of the previous level and the slave process file of the next level may have a nesting repetition and/or a nesting error such as a nesting of the slave process file of the next level and the slave process file of the no nesting relationship, so that a nesting test needs to be performed on the slave process file of the previous level and the slave process file of the next level to determine whether a nesting error exists between the slave process file of the previous level and the slave process file of the next level.
As an example, in step S102, the computer device performs a nesting test on the slave process file of the previous hierarchy and the slave process file of the next hierarchy having the nesting relationship, determines whether there is a nesting repetition between the slave process files having the nesting relationship in the target process file and/or a nesting error such as a nesting of the slave process files having no nesting relationship, if there is the above-mentioned nesting error, determines that the nesting test result corresponding to the target process file is a test failed, and if there is no above-mentioned nesting error, determines that the nesting test result corresponding to the target process file is a test failed. In the embodiment, the slave process files with the nesting relationship are subjected to the nesting test, the nesting test result is determined, and the nesting test is not needed to be manually participated, so that the error rate of the nesting test can be reduced, the method is convenient and quick, the test cost is saved, the process test result of the target process file is conveniently determined according to the nesting test result, and the running efficiency and the error prevention rate of the target process file in actual running are improved.
Wherein the parallel test is used for testing whether the slave process files of the same hierarchy can be parallel. It will be appreciated that for slave process files of the same hierarchy, slave process files having no parallel relationship may be edited into the same hierarchy due to editing errors in the process editing process, and thus, parallel testing needs to be performed on slave process files of each hierarchy in the target process file to determine whether there is an editing error in editing slave process files having no parallel relationship into the same hierarchy, process flows of the same component control may not occur or coincidence or partial coincidence of the paths of the same consumable pipeline may not occur in slave process files having no parallel relationship. For example, in the slave process flow corresponding to the slave process file, the same valves appear in the paths of the open valves in the pipeline paths, or the open valves appear in sequence and open simultaneously or the open time is adjacent in different paths, or the open valves are mapped in sequence and partially overlapped or crossed on the consumable pipeline modeling diagram. The consumable pipeline modeling diagram is a map of the flow direction of a pipeline design of the disposable sterile consumable, and comprises a liquid inlet, a liquid outlet, a sample inlet and a sample outlet, a waste liquid bag for containing waste liquid in the process flow realization process, a sterile filter for entering sterile air and the like, and a simulation path diagram of the flow of cell liquid in the consumable pipeline can be met, namely, the consumable pipeline modeling diagram is used for converging the connection relation of the disposable consumable pipeline into a plane diagram (also a three-dimensional diagram) and a path flow converging diagram.
As an example, in step S103, the computer device performs parallel test on any two slave process files in the same hierarchy in the target process file, determines whether there is an editing error between any two slave process files in the same hierarchy, and if there is an editing error between any two slave process files in the same hierarchy, determines that the parallel test result is that the test fails; if the editing errors do not exist between any two slave process files in the same hierarchy, determining that the parallel test result is the passing of the test. In the example, parallel testing is carried out on at least two slave process files of the same level, parallel testing results are determined, manual participation in parallel testing is not needed, error rate of parallel testing can be reduced, testing cost is saved, process testing results of target process files are determined according to nesting testing results conveniently, and running efficiency and error prevention rate of the target process files in actual running are improved.
The process test result refers to a test result of a target process file determined by performing nested test and parallel test on the slave process file.
As an example, in step S104, after determining the nested test result and the parallel test result of the target process file, the computer device determines the process test result of the target process file according to whether the nested test result and/or the parallel test result is a test pass. In the example, the process test result of the target process file is determined according to the nesting test result and the parallel test result corresponding to the target process file, and the process test result does not need to be manually participated in the test, so that the error rate of the process test can be reduced, the test cost for performing the process test on the target process file is saved, and the error prevention rate and the operation efficiency of the target process file after the process test are improved in the actual operation process.
In this embodiment, the slave process files of each level in the target process file are acquired, and the slave process files are subjected to the nesting test to obtain the nesting test result corresponding to the target process file, and at least two slave process files of the same level are subjected to the parallel test to obtain the parallel test result corresponding to the target process file, so that the error rate of the test can be reduced, the test is convenient and quick, the test cost is saved, and the target process file which is subjected to the nesting test and the parallel test has higher error-proofing rate and operation efficiency in the actual operation process.
In one embodiment, as shown in fig. 2, step S102, that is, performing a nesting test on each slave process file to obtain a nesting test result corresponding to the target process file, includes:
s201: comparing the child process file of the next level of each slave process file with the parent process file of the previous level, and judging whether each child process file is identical with the parent process file;
s202: if any child process file is the same as the parent process file, determining that the nesting test result corresponding to the slave process file is that the test fails;
s203: if any child process file is not the same as the parent process file, determining that the nesting test result corresponding to the slave process file is test passing;
S204: and determining the nesting test result corresponding to the target process file according to the nesting test result corresponding to each slave process file.
Wherein, the sub-process file refers to the next-level slave process file having a nested relationship with the slave process file of the previous level. The parent process file refers to the slave process file of the last level that has a nested relationship with the child process file.
For example, in the biotechnology field, in a target process file corresponding to a target process flow of preparing a biological stock solution, a master process file corresponding to a master process flow of collecting the biological stock solution includes a first-level slave process file: cell culture corresponding slave process file, cell collection corresponding slave process file and cell disruption corresponding slave process file. In the first-level slave process file, the cell collects the slave process file corresponding to the slave process flow, and the slave process file comprises the slave process file of the second level: centrifuging the corresponding slave process file, cleaning the corresponding slave process file and collecting the corresponding slave process file by the cleaning liquid. Wherein the collecting of the secondary process file of the first hierarchy by the cells has a secondary process file of a second hierarchy having a nested relationship comprises: centrifuging the corresponding slave process file, cleaning the corresponding slave process file and collecting the corresponding slave process file by the cleaning liquid. That is, the cell collection corresponding slave process file is a father process file of three slave process files of centrifuging the corresponding slave process file, cleaning the corresponding slave process file and cleaning the corresponding slave process file; in other words, centrifuging the corresponding slave process file, washing the corresponding slave process file, and collecting the corresponding slave process file with the washing liquid are all sub-process files of the cell collecting the corresponding slave process file.
As an example, in step S201, the computer device uses each slave process file with a nested relationship as a parent process file, uses the slave process file of the next level nested by each parent process file as a child process file corresponding to the parent process file, forms a corresponding relationship between the child process file and the parent process file, compares the child process file with the parent process file corresponding to the child process file, and determines whether the child process file is identical to the parent process file corresponding to the child process file. In the example, the sub-process files of the next level of each slave process file are compared with the parent process file of the previous level, whether the sub-process files of the next level are identical with the parent process file of the previous level or not is judged, the subsequent further determination of the nesting test result is facilitated, and the method does not need manual participation, so that the test error rate can be reduced, and the test efficiency is improved.
As an example, in step S202, the computer device compares the parent process file and the child process file of two adjacent levels having a nesting relationship, and directly determines that the nesting test result corresponding to the slave process file of the two adjacent levels is that the test fails when it is determined that the child process file identical to the parent process file of the previous level exists. For example, in the biotechnology field, in a target process file corresponding to a target process flow of preparation of a biological stock solution, a parent process file (a slave process file corresponding to cell collection) and a child process file (a slave process file corresponding to centrifugation, a slave process file corresponding to cleaning, and a slave process file corresponding to cleaning liquid collection) are compared; if at least one of the corresponding slave process file, the corresponding slave process file for cleaning and the corresponding slave process file for cleaning is the same as the slave process file corresponding to cell collection, determining that the situation that the child process file is the same as the parent process file exists, and determining that the nesting test result corresponding to the parent process file and the child process file is that the test fails.
In this example, when determining that there is a child process file identical to a parent process file of a previous level from the process files, the computer device records the level and file parameters of the parent process file and the child process file, and makes an error report on the test page. The file parameters herein may include the process identification codes and file names of the parent process file and child process file. The process identification code is used for uniquely identifying the process file, and the file name is used for reflecting the process flow corresponding to the process file.
As an example, in step S203, the computer device compares the parent process file and the child process file of two adjacent levels having a nesting relationship, and directly determines that the nesting test result corresponding to the slave process file of the two adjacent levels is the test pass when it is determined that the child process file identical to the parent process file of the previous level does not exist. In this example, when determining that the nested test result is that the test passes, the computer device directly prompts that the nested test result corresponding to the secondary process file of the two adjacent levels is that the test passes on the test page.
As an example, in step S204, when determining that all the nested test results corresponding to the slave process files with the nested relationship are test passing, the computer device determines that the nested test result corresponding to the target process file is test passing; and when at least one nested test result is determined to be the slave process file which fails the test, determining that the nested test result corresponding to the target process file is determined to be the test failure. In the example, when the nesting test results corresponding to all the slave process files are the passing test, the nesting test results corresponding to the target process files are determined to be the passing test, so that all the slave process files with nesting errors in the target process files can be identified, the accuracy of the nesting test is improved, and the process test results corresponding to the target process files determined according to the nesting test results are more accurate.
In this embodiment, the child process file of the next level of each slave process file is compared with the parent process file of the previous level, whether each child process file is identical to the corresponding parent process file is judged, and according to whether any child process file is identical to the corresponding parent process file, the nesting test result corresponding to the slave process file is determined, so that the method has the advantages of higher nesting test efficiency and lower test error rate without manual participation. According to the nesting test results corresponding to the slave process files, the nesting test results corresponding to the target process files are determined, when all the nesting test results corresponding to the slave process files are passed, the nesting test results corresponding to the target process files are determined to be passed, all the slave process files with nesting errors in the target process files can be identified, the accuracy of the nesting test is improved, and the process test results corresponding to the target process files determined according to the nesting test results are more accurate.
In one embodiment, as shown in fig. 3, step S201, namely comparing a child process file of a next level of each slave process file with a parent process file of a previous level, determines whether each child process file is identical to the parent process file, includes:
S301: comparing the parent process identification code of the parent process file with the child process identification codes of the child process files by using a character string character-by-character matching method;
s302: if the characters of the child process identification code and the parent process identification code are identical, determining that the child process file is identical to the parent process file;
s303: if the child process identification code and the parent process identification code are not matched word by word once, the child process file and the parent process file are determined to be different.
Wherein, the parent process identification code refers to the process identification code corresponding to the parent process file. The sub-process identification code refers to a process identification code corresponding to the sub-process file. The character string word-by-word matching method is an algorithm for performing word-by-word matching on the parent process identification code and the child process identification code to determine whether the parent process file and the child process file are identical.
As an example, in step S301, the computer device uses a character string word-by-word matching method to compare the characters in the parent process identifier of the parent process file and the child process identifier of the child process file one by one in the slave process file having the nested relationship, and determines whether each character in the parent process identifier and the child process identifier can be successfully matched. For example, comparing the parent process identification code with the first character of the corresponding child process identification code, judging whether the first character of the parent process identification code and the first character of the child process identification code are identical, if so, continuing to judge the next character, and so on, determining whether the parent process identification code and the child process identification code are identical, if the parent process identification code is different from the first character of the child process identification code from the first character, directly judging that the parent process identification code and the child process identification code are different, and similarly, if the parent process identification code is different from a certain character of the child process identification code, directly judging that the parent process identification code and the child process identification code are different, namely, under the condition that each character corresponding to the parent process identification code and the child process identification code is successfully matched, determining that the parent process identification code and the child process identification code are identical.
In this example, the character string word-by-word matching method generally employs a naive matching algorithm, a hash algorithm, a Boyer-Moore algorithm, and the like. In this example, the parent process identifier code and the child process identifier code with the nested relationship are compared by the character string word-by-word matching method, so as to determine whether the parent process file corresponding to the parent process identifier code and the child process file corresponding to the child process identifier code are identical more quickly and accurately.
As an example, in step S302, when determining that the child process identifier of the child process file and each character string in the parent process identifier of the parent process file can be successfully matched, the computer device determines that the child process identifier is identical to each character in the parent process identifier, and further determines that the child process file corresponding to the child process identifier is identical to the parent process file corresponding to the parent process identifier. In the example, when the child process identification code and each character of the parent process identification code are identical, the child process file corresponding to the child process identification code is identical to the parent process file corresponding to the parent process identification code, so that accuracy of judging whether the child process file is identical to the parent process file is effectively improved.
The condition of word-by-word mismatch specifically refers to the condition that the parent process identification code and the child process identification code cannot be matched from a certain character.
As an example, in step S303, in the process of performing word-by-word matching on the parent process identifier of the parent process file and the child process identifier of the child process file with the nested relationship by using the character string word-by-word matching method, once it is determined that the child process identifier and the parent process identifier are not matched word-by-word, the child process file corresponding to the child process identifier and the parent process file corresponding to the parent process identifier are directly determined to be different. Understandably, in the process of matching the character string corresponding to the parent process identification code and the child process identification code from the first character by using the character string word-by-word matching method, if a character cannot be matched from a certain character, determining that the child process identification code and the parent process identification code are not matched word-by-word, and further determining that the child process file corresponding to the child process identification code and the parent process file corresponding to the parent process identification code are not identical. For example, in the process of matching the character strings corresponding to the parent process identification code and the child process identification code from the first character, if the character cannot be matched from the first character, the situation that the child process identification code and the parent process identification code are not matched word by word is directly determined. In the example, when the situation that the child process identification code and the parent process identification code are unmatched word by word once is determined, the child process file and the parent process file are determined to be different, and therefore efficiency and accuracy for judging whether the child process file and the parent process file are identical can be effectively improved.
In the embodiment, the parent process identification code and the child process identification code with the nested relation are compared through a character string character-by-character matching method, so that whether the parent process file corresponding to the parent process identification code and the child process file corresponding to the child process identification code are identical or not can be rapidly and accurately determined; if the characters of the child process identification code and the parent process identification code are identical, determining that the child process file is identical to the parent process file; if the child process identification code and the parent process identification code are not matched word by word once, the child process file and the parent process file are determined to be different, and the efficiency and the accuracy for judging whether the child process file and the parent process file are identical can be effectively improved.
In an embodiment, as shown in fig. 4, step S201, namely comparing a child process file of a next level of each slave process file with a parent process file of a previous level, determines whether each child process file is identical to the parent process file, further includes:
s401: calculating a parent process check code of the parent process file and a child process check code of each child process file by using a check code output algorithm;
s402: if the child process check code is the same as the parent process check code, determining that the child process file is the same as the parent process file;
S403: if the child process check code is different from the parent process check code, determining that the child process file is different from the parent process file.
The parent process check code is a check code obtained by integrating database fields of the parent process file by adopting a check code output algorithm, and the integration process can be a process of splicing sequence numbers in the database fields of the parent process file end to obtain a spliced character string, dividing the spliced character string into fixed digits, counting the same characters, compressing the fixed digits, and finally concatenating the output codes. The sub-process check code is a check code obtained by integrating database fields of the sub-process file by adopting a check code output algorithm. The database field of the parent process file refers to a field which is stored in the system database and is formed by the parameters of the remaining files after the parent process identification codes in the parent process file are removed. The database field of the sub-process file refers to a field stored in the system database and composed of the remaining file parameters after the sub-process identification codes in the sub-process file are removed. The check code output algorithm refers to an algorithm for determining a parent process check code and a child process check code.
As an example, in step S401, when processing the slave process file with the nested relationship, the computer device needs to remove the process identifier codes in the parent process file and the child process file first, to obtain a database field composed of the remaining file parameters after removing the process identifier codes in the parent process file, and a database field composed of the remaining file parameters after removing the process identifier codes in the child process file. Then, the computer equipment calculates the database field of the parent process file by using a check code output algorithm to obtain a parent process check code corresponding to the parent process file, and calculates the database field of the child process file to obtain a child process check code corresponding to the child process file.
In this example, the check code output algorithm may employ any one of a CRC loop check, a parity check, an MD5 check, and a hash check. For example, the computer device may perform calculation processing on the database field of the parent process file using a CRC cyclic check algorithm, take the generated CRC cyclic check code corresponding to the parent process file as the parent process check code, perform calculation processing on the database field of the child process file using the CRC cyclic check algorithm, and take the generated CRC cyclic check code corresponding to the child process file as the child process check code. For another example, the computer device may perform calculation processing on the database field of the parent process file by using a hash check algorithm, use the generated hash check code corresponding to the parent process file as the parent process check code, perform calculation processing on the database field of the child process file by using the hash check algorithm, and use the generated hash check code corresponding to the child process file as the child process check code.
In this example, the parent process check code of the parent process file and the child process check codes of the child process files are obtained through a check code output algorithm, so that whether the parent process file corresponding to the parent process check code and the child process file corresponding to the child process check code are identical or not can be quickly and accurately determined later.
As an example, in step S402, the computer device compares the parent process check code and the child process check code, and determines that the child process file corresponding to the child process check code is identical to the parent process file corresponding to the parent process check code when determining that the child process check code is identical to the parent process check code. It is understood that if the child process file and the parent process file are the same file, the obtained child process check code and the parent process check code should be the same after the database field in the child process file and the database field in the parent process file are calculated by adopting the same check code output algorithm, so that the child process file corresponding to the child process check code and the parent process file corresponding to the parent process check code can be directly determined to be the same when the child process check code and the parent process check code are determined to be the same. In the example, when the child process check code and the parent process check code are determined to be identical, the child process file corresponding to the child process check code and the parent process file corresponding to the parent process check code are determined to be identical, so that accuracy of judging whether the child process file and the parent process file are identical is effectively improved.
As an example, in step S403, the computer device compares the parent process check code and the child process check code, and determines that the child process file corresponding to the child process check code is different from the parent process file corresponding to the parent process check code when determining that the child process check code is different from the parent process check code. It can be understood that if the child process file is different from the parent process file, the obtained child process check code and the parent process check code should be different after the database field in the child process file and the database field in the parent process file are calculated by adopting the same check code output algorithm, so that if it is determined that the child process check code is different from the parent process check code, it can be directly determined that the child process file corresponding to the child process check code is different from the parent process file corresponding to the parent process check code. In the example, when the child process check code is determined to be different from the parent process check code, it can be determined that the child process file corresponding to the child process check code is different from the parent process file corresponding to the parent process check code, so that the efficiency and accuracy for judging whether the child process file is identical to the parent process file are effectively improved.
In this embodiment, by using a check code output algorithm, a parent process check code of the parent process file and a child process check code of each child process file are calculated, so as to determine whether the parent process file corresponding to the parent process check code and the child process file corresponding to the child process check code are identical relatively quickly and accurately; if the child process check code is identical to the parent process check code, determining that the child process file is identical to the parent process file; if the child process check code is different from the parent process check code, the child process file is determined to be different from the parent process file, so that the efficiency and accuracy for judging whether the child process file is the same as the parent process file can be effectively improved.
In one embodiment, as shown in fig. 5, step S103, that is, performing parallel testing on at least two slave process files in the same hierarchy, obtains a parallel test result corresponding to a target process file, includes:
s501: judging whether any two slave process files belonging to the same father process file and of the same hierarchy meet preset parallel conditions or not;
s502: if any two slave process files in the same hierarchy meet the preset parallel condition, determining that a parallel test result corresponding to the target process file passes the test;
S503: if any two slave process files in the same hierarchy do not meet the preset parallel condition, determining that the parallel test result corresponding to the target process file is that the test is not passed.
The preset parallel condition is a preset condition for judging whether any two slave process files belonging to the same hierarchy of the same parent process file can be parallel or not. It will be appreciated that it is not possible for slave process files having non-parallelizable relationships on a process to occur simultaneously in the same hierarchy belonging to the same parent process file. For example, centrifugation and blending are two different types of processes that perform two opposite functions, and thus the corresponding slave process files of the two processes cannot be parallel at the same level belonging to the same parent process file. Since there is a omission in process editing, it is possible to edit the slave process files corresponding to two processes which cannot be parallel in the same hierarchy belonging to the same parent process file, and therefore, it is necessary to set a preset parallel condition to perform parallel test on the slave process files of each hierarchy generated by process editing, so as to determine whether the slave process files of the same hierarchy belonging to the same parent process file can be parallel.
As an example, in step S501, the computer device determines, according to the preset parallel condition, any two slave process files in the same hierarchy belonging to the same parent process file, and determines whether any two slave process files in the same hierarchy satisfy the preset parallel condition, so as to facilitate determining, according to any two slave process files in the same hierarchy belonging to the same parent process file, whether the preset parallel condition is satisfied, a parallel test result corresponding to the target process file.
As an example, in step S502, the computer device searches the slave process file corresponding to each level in the target process file, determines any two slave process files belonging to the same level of the same parent process file, and if it is determined that any two slave process files belonging to the same parent process file in each level satisfy the preset parallel condition, determines that the parallel test result corresponding to the target process file is test passing. For example, in the biotechnology field, in a target process file corresponding to a target process flow of preparing a biological stock solution, a master process file is a master process file corresponding to biological stock solution collection, a master process file corresponding to biological stock solution treatment and a master process file corresponding to biological stock solution stability test, and each master process file contains at least one level of slave process files. Wherein, for the slave process files (three child process files of the same parent process file) belonging to the cell collection correspond to: centrifuging the corresponding slave process file, cleaning the corresponding slave process file and cleaning the corresponding slave process file, and the computer equipment needs to judge whether any two slave process files in the centrifuging corresponding slave process file, the cleaning the corresponding slave process file and the cleaning the corresponding slave process file meet the preset parallel condition or not: if it is determined that any two slave process files in the process files corresponding to centrifugation, the process files corresponding to cleaning and the process files corresponding to cleaning liquid collection meet preset parallel conditions, traversing each level in the process files corresponding to preparation of biological stock solution according to the preset parallel conditions, determining whether any two slave process files belonging to the same father process file can be parallel in each level, and if it is determined that any two slave process files belonging to the same father process file meet the preset parallel conditions in each level in the process files, determining that a parallel test result corresponding to the target process file is test passing. In the example, when any two slave process files in the same hierarchy meet the preset parallel condition, the parallel test result corresponding to the target process file is determined to pass the test, so that the accuracy of parallel test on the target process file can be ensured.
As an example, in step S503, the computer device searches the target process file for the slave process file corresponding to each level, determines any two slave process files belonging to the same level of the same parent process file, and if it is determined that any two slave process files belonging to the same parent process file in the same level do not satisfy the preset parallel condition, determines that the parallel test result corresponding to the target process file is that the test fails. For example, in the biotechnology field, in a target process file corresponding to a target process flow of preparing a biological stock solution, if two slave process files belonging to the same parent level and having the same level are respectively centrifuged and uniformly mixed, it is determined that any two slave process files having the same level in the target process file do not meet a preset parallel condition, and further it is determined that a parallel test result corresponding to the target process file is that the test fails. In this example, when it is determined that the parallel test result corresponding to the target process file is that the test fails, a level that the parallel test result fails may be displayed on the test page, so as to facilitate correction of the target process file.
In the example, when any two slave process files belonging to the same hierarchy of the same parent process file do not meet the preset parallel condition, the parallel test result corresponding to the target process file is determined to be that the test fails, so that the efficiency and the accuracy of the parallel test on the target process file can be ensured.
In this embodiment, when any two slave process files at the same level meet preset parallel conditions, it is determined that the parallel test result corresponding to the target process file is passed, and when any two slave process files at the same level belonging to the same parent process file do not meet the preset parallel conditions, it is determined that the parallel test result corresponding to the target process file is failed, so that accuracy of parallel test on the target process file can be ensured.
In one embodiment, as shown in fig. 6, step S501, namely determining whether any two slave process files belonging to the same parent process file and having the same hierarchy meet a preset parallel condition, includes:
s601: acquiring parallel attributes of any two slave process files belonging to the same father process file and of the same hierarchy and parallel parameters corresponding to the parallel attributes, and inquiring a parallelizable parameter set corresponding to the parallel attributes stored in a system database in advance;
s602: if any two obtained parallel parameters are the same and the parallel parameters are in the parallel parameter set corresponding to the parallel attribute, determining that any two slave process files at the same level meet the preset parallel condition;
S603: if any two obtained parallel parameters are different or the parallel parameters are not in the parallel parameter set corresponding to the parallel attribute, determining that any two slave process files with the same hierarchy do not meet the preset parallel condition.
Wherein the parallel attribute is used to determine the type corresponding to the slave process file. The parallel parameter refers to a parameter for determining a parallel attribute from a process file. It will be appreciated that, for any two slave process files belonging to the same parent process file and at the same level, it is required to determine whether the parallel attributes corresponding to the two slave process files belonging to the same parent process file are consistent, for example, the parallel attributes corresponding to the two slave process files belonging to the same level of the same parent process file are mixed and centrifuged, if the parallel attributes corresponding to the two slave process files belonging to the same level of the same parent process file are mixed and centrifuged, the two slave process files do not satisfy the preset parallel condition, and since in the target process file generated by process editing, there may be the slave process files that do not satisfy the preset parallel condition, it is required to perform a comparison test on the parallel attributes corresponding to any two slave process files belonging to the same parent process file and at the same level, in this embodiment, by performing a comparison test on the parallel parameters corresponding to the parallel attributes corresponding to any two slave process files belonging to the same parent process file and at the same level, it is determined whether the corresponding slave process files satisfy the preset parallel condition.
The parallel parameter set refers to a mapping set of parallel parameters corresponding to each parallel attribute, which is pre-stored in a system database, and the parallel parameter set is used for determining whether any two slave process files corresponding to each parallel attribute can be parallel. It is understandable that the system database stores the parallelizable parameter sets corresponding to the various parallelizable attributes, that is, how many parallelizable parameter sets are stored in the system database for the slave process file in the target process file, and when the parallel parameters corresponding to the parallel attributes and the slave process file are determined in the subsequent query, the parallel parameter sets corresponding to the determined parallel attributes are directly queried in the system database.
As an example, in step S601, the computer device traverses each level of the target process file, identifies any two slave process files belonging to the same parent process file and in the same level, obtains parallel attributes of the two slave process files and parallel parameters corresponding to the parallel attributes, determines whether the parallel parameters corresponding to the two slave process files are the same, and if the parallel parameters are the same, continues to query a parallel parameter set corresponding to the parallel attributes stored in advance in the system database according to the parallel parameters, and determines whether the parallel parameters are in the parallel parameter set. When the parallel parameters are the same, the parallel parameter set corresponding to the parallel attribute is continuously inquired, and the method has the following two beneficial effects that when the parallel parameters are the same, the parallel parameter set corresponding to the parallel attribute is further inquired, so that the inquiry efficiency can be improved; secondly, by comparing the parallel parameters and inquiring the parallel parameter sets corresponding to the parallel attributes when the parallel parameters are the same, the accuracy of determining whether the follow-up process file meets the preset parallel conditions can be improved. If the parallel parameters are different, the parallel parameter set in the system database is not queried any more, and the parallel parameters corresponding to the two slave process files are directly determined to be different. The computer equipment carries out the operation on any two slave process files belonging to the same father process file and in the same level in the target process file, judges whether any two slave process files belonging to the same father process file and in the same level have the same parallel parameters and/or are in a parallel parameter set corresponding to the parallel attribute, generates a corresponding judging result, and is convenient for the follow-up to determine whether any two slave process files belonging to the same father process file and in the same level meet the preset parallel condition according to the judging result.
In another embodiment, if paths of the parallel attribute of the obtained arbitrary two slave process files and the parallel parameters corresponding to the parallel attribute coincide, it is determined that the arbitrary two slave process files with the same hierarchy do not meet the preset parallel condition. It can be understood that in the consumable pipeline modeling diagram, the paths of the set cell liquid are overlapped. The path superposition is the condition that a series of sequence numbers in parallel parameters corresponding to pipeline path attributes of the process file are superposed. For example, the computer equipment acquires pipeline path attributes of any two slave process files in the same level in the consumable pipeline modeling diagram, determines node flow directions of the slave process files in the consumable pipeline modeling diagram, and if partial node superposition exists, if nodes 3 to 6 in the node flow directions of one slave process file are superposed with nodes 5 to 8 of another slave process file in the same level, the two slave process files in the same level are superposed in paths, and it is determined that the two slave process files in the same level do not meet preset parallel conditions. Or in the consumable pipeline modeling diagram, the situation that paths cross on the consumable pipeline paths occurs. The path crossing is a condition of path coincidence, and can be represented as a condition that at least one group of single nodes of any two slave process files in the same hierarchy exist on a consumable path map are coincident. For example, in the consumable pipeline modeling diagram, a series of sequence numbers corresponding to pipeline path attributes in parallel parameters of a process file are mapped onto the consumable pipeline modeling diagram, a simulation path of the series of sequence numbers is found through a path flow collection diagram, at least one crossing condition occurs during simulation drawing, if node 3 in a node flow direction of the process file coincides with node 5 of another slave process file of the same level, the two slave process files of the same level coincide in path, it is determined that the two slave process files of the same level do not meet preset parallel conditions, and if node 3 in a node flow direction of one slave process file coincides with node 5 of another slave process file of the same level in cross, and node 6 coincides with node 9 in cross, the two slave process files of the same level intersect in path, it is determined that the two slave process files of the same level do not meet preset parallel conditions. The pipeline path attribute is used for reflecting the node flow direction of the consumable pipeline path in the consumable pipeline modeling diagram from the process file. Consumable pipeline paths refer to paths formed from node flows of process files in a consumable pipeline modeling graph.
In this example, the computer device may also simulate the situation that the parallel parameters are different in a certain period of time when the flow is simulated on the consumable pipeline modeling diagram, that is, the situation that two pairs of nodes of any two slave process files in the same hierarchy meet the intersection combination situation occurs, and at this time, the parallel parameters are considered to be different and do not meet the preset parallel condition, for example, when the consumable pipeline path is simulated and drawn by the computer device, it is found that the situation that two groups of nodes 4 and 8, and nodes 7 and 13 in any two slave process files in the same hierarchy are the combination situation that the paths intersect in the preset parallel parameters occurs, and the combination situation that the two groups of paths intersect does not exist in the category of the parallelizable parameter set, that is, the data outside the set occurs cannot completely meet the parallelizable parameter set, belongs to the intersection situation, and it is determined that the preset parallel condition is not met.
As an example, in step S602, when the computer device performs parallel testing on any two slave process files belonging to the same parent process file and in the same hierarchy, if it is determined that the parallel parameters of the two slave process files are the same, and after continuing to query the parallelizable parameter set corresponding to the parallel attribute in the system database, it is determined that parallel parameters corresponding to the two process files exist in the parallelizable parameter set, it is further determined that the two slave process files in the same hierarchy satisfy the preset parallel condition. In the example, when two parallel parameters are the same and are both in the parallel parameter set corresponding to the parallel attribute, any two slave process files in the same level are determined to meet the preset parallel condition.
As an example, in step S603, when the computer device performs parallel test on any two slave process files belonging to the same parent process file and of the same hierarchy, and determines that the two slave process files do not meet the preset parallel condition without querying the parallelizable parameter set when determining that the parallel parameters of the two slave process files are different; or when the parallel parameters of the two slave process files are identical, but the parallel parameters are not in the parallel parameter set corresponding to the parallel attribute, determining that the two slave process files do not meet the preset parallel condition. In this example, after determining that the slave process files of the same hierarchy do not meet the preset parallel condition, the computer device displays the parallel attribute and the parallel parameter of the slave process files of the hierarchy and the slave process files that do not meet the preset parallel condition on the corresponding parallel test interface. In this example, when there are different corresponding parallel parameters in any two slave process files belonging to the same hierarchy of the same parent process file, or the parallel parameters are not in the parallel parameter set corresponding to the parallel attribute of the slave process file, it is determined that the slave process file of the same hierarchy does not meet the preset parallel condition, so that the testing efficiency of the parallel test result corresponding to the target process file can be improved according to whether the slave process file meets the preset parallel condition.
In the embodiment, when two parallel parameters are the same and are both in the parallel parameter set corresponding to the parallel attribute, any two slave process files in the same level are determined to meet the preset parallel condition. And determining that the slave process files of the same hierarchy do not meet the preset parallel condition if any two slave process files of the same hierarchy are different in corresponding parallel parameters or the parallel parameters are not in a parallel parameter set corresponding to the parallel attribute of the slave process files, so that the test efficiency of determining a parallel test result corresponding to the target process file according to whether the slave process files meet the preset parallel condition can be improved.
In another embodiment, as shown in fig. 7, before step S101, that is, before the target process file is acquired, the process file testing method further includes:
s701: receiving a migration instruction, responding to the migration instruction, and acquiring a process file to be migrated and a migration link corresponding to the process file to be migrated;
s702: changing an original process identification code corresponding to the process file to be migrated to obtain a target process identification code corresponding to the process file to be migrated;
S703: inquiring the existing process files in the system database based on the process files to be migrated, and judging whether the existing process files which are the same as the process files to be migrated exist or not;
s704: if the existing process file which is the same as the process file to be migrated exists, deleting the process file to be migrated and a target process identification code corresponding to the process file to be migrated, and storing a migration link into an existing link stack corresponding to the existing process file;
s705: if the existing process file which is the same as the process file to be migrated does not exist, storing the process file to be migrated and the target process identification code corresponding to the process file to be migrated into a system database, creating a new link stack corresponding to the process file to be migrated, and storing the migration link into the new link stack.
Wherein the migration instruction refers to an instruction to migrate the process file from another computer device to the current computer device. The process file to be migrated refers to a process file which is contained in the migration instruction and needs to be migrated. Migration links refer to links that result when a process file to be migrated is migrated from another computer device to the current computer device. It will be appreciated that, the process file generated after the process editing is performed on the process flow by using another computer device may need to be subjected to a process test or run in the current computer device, so that the current computer device needs to receive the migration instruction, the process file to be migrated, and the migration link, so as to implement migration of the process file to be migrated.
As an example, in step S701, after receiving a migration instruction from another computer device, the current computer device reads and responds to the migration instruction, and obtains a process file to be migrated included in the migration instruction, and a migration link generated during migration of the process file to be migrated. It is understood that the process file to be migrated may be a batch of process files, i.e. the process file to be migrated comprises at least one process file. In the example, a migration instruction is received, and a process file to be migrated and a migration link corresponding to the process file to be migrated are obtained, so that file migration of the subsequent process file to be migrated is feasible.
The original process identification code refers to the process identification code of the process file to be migrated before migration. The target process identification code refers to the process identification code of the process file to be migrated after migration.
As an example, in step S702, after receiving the process file to be migrated in the migration instruction, the current computer device changes the original process identifier corresponding to the process file to be migrated to obtain the changed target process identifier. In this example, the original process identifier of the process file to be migrated is changed to obtain the target process identifier, so that repetition of the process identifier in the system database can be avoided, and subsequent process testing is smoother.
The existing process file refers to an existing process file in a system database.
As an example, in step S703, after receiving the migration instruction, the current computer device queries the system database to determine whether the system database has the same existing process file as the process file to be migrated. In the example, the existing process files in the system database are queried to determine whether the existing process files which are the same as the process files to be migrated exist, so that the process files to be migrated can be processed later, and the storage space of the system database is saved.
The existing link stack refers to a stack composed of migration links corresponding to the existing process files.
As an example, in step S704, when the current computer device determines that the existing process file identical to the process file to be migrated exists in the system database, deleting the process file to be migrated and the target process identifier corresponding to the process file to be migrated, and storing the migration link corresponding to the process file to be migrated in the existing link stack corresponding to the existing process file identical to the process file to be migrated. In the example, when the existing process file which is the same as the process file to be migrated exists, only the migration link of the process file to be migrated is stored, so that the storage space of the system database is saved, and the storage space of the system database has low repetition rate and high utilization rate.
The newly built link stack refers to a stack of the migration links of the reestablished process files to be migrated.
As an example, in step S705, when it is determined that the existing process file that is the same as the process file to be migrated does not exist in the system database, the current computer device directly stores the process file to be migrated and the target process identifier corresponding to the process file to be migrated in the system database, creates a link stack corresponding to the process file to be migrated, uses the link stack corresponding to the process file to be migrated as a new link stack, and stores the migration link corresponding to the process file to be migrated in the new link stack. In the example, when the existing process file which is the same as the process file to be migrated does not exist, the process file to be migrated and the target process identification code corresponding to the process file to be migrated are stored in the system database, and meanwhile, a newly-built link stack corresponding to the process file to be migrated is created.
In this embodiment, a migration instruction is received, and a process file to be migrated and a migration link corresponding to the process file to be migrated are obtained, so that file migration of the subsequent process file to be migrated is feasible, and an original process identification code of the process file to be migrated is changed to obtain a target process identification code, so that repetition of the process identification code in a system database can be avoided, and subsequent process testing is smoother. When the existing process files which are the same as the process files to be migrated are determined, only the migration links of the process files to be migrated are stored, so that the storage space of the system database is saved, and the storage space of the system database has low repetition rate and high utilization rate. When the existing process files which are the same as the process files to be migrated are not determined to exist, the process files to be migrated and target process identification codes corresponding to the process files to be migrated are stored in a system database, and meanwhile, a newly built link stack corresponding to the process files to be migrated is created.
In one embodiment, step S101, namely, obtaining the target process file, includes: and acquiring a target process file from a system database after the migration instruction is completed.
As an example, after the computer device stores the process file to be migrated in a corresponding manner according to whether the existing process file which is the same as the process file to be migrated exists in the system database, the system database for completing the migration instruction is obtained, after determining the process file which needs to be subjected to the process test, the process file is determined to be the target process file to be tested, and the target process file is queried and obtained in the system database for completing the migration instruction. In this example, the target process file is obtained in the system database in which the migration instruction is completed, so that the process test on the target process file is feasible.
In one embodiment, as shown in fig. 8, after step S701 and before step S704, that is, after obtaining the process file to be migrated and the migration link corresponding to the process file to be migrated, and before deleting the process file to be migrated and storing the migration link in the existing link stack corresponding to the existing process file if the existing process file identical to the process file to be migrated exists, the process file testing method further includes:
S801: calculating migration capacity of a process file to be migrated and a migration link corresponding to the process file to be migrated, and obtaining the current residual capacity of a system database;
s802: if the current residual capacity is larger than the migration capacity, directly storing the process file to be migrated and the migration link to the extreme end in the system database;
s803: if the current residual capacity is not greater than the migration capacity, inquiring the existing process files in the system database based on the process files to be migrated, and judging whether the existing process files which are the same as the process files to be migrated exist.
The migration capacity refers to the size of the storage space occupied by the process file to be migrated and the migration link corresponding to the process file to be migrated. The current residual capacity refers to the residual capacity of the system database of the current computer equipment when a migration instruction is received.
As an example, in step S801, after receiving the migration instruction, the current computer device obtains a migration capacity of a migration link corresponding to the migration process file and a migration process file to be migrated in the migration instruction, and a current remaining capacity of a system database of the current computer device, so as to facilitate a subsequent comparison between the migration capacity and the current remaining capacity, and determine whether a capability of directly storing the migration link corresponding to the migration process file and the migration process file to be migrated exists in the system database of the current computer device. It is understood that for the process file to be migrated, the number of the process files may be more than one, and if the process file to be migrated is migrated to the system database of the current computer device, the migration capacity and the current remaining capacity need to be compared to determine whether the system database can directly store the process file to be migrated and the migration link corresponding to the process file to be migrated.
As an example, in step S802, when determining that the current remaining capacity of the system database is greater than the migration capacity, the current computer device determines that the system database has the capability of storing the process file to be migrated and the migration link corresponding to the process file to be migrated, and at this time, the process file to be migrated and the migration link corresponding to the process file to be migrated are directly stored to the extreme end of the system database without performing deduplication processing on the process file to be migrated. In the example, when the current residual capacity is determined to be greater than the migration capacity, the system database is determined to have enough capacity to store the to-be-migrated process file and the migration link corresponding to the to-be-migrated process file, and the to-be-migrated process file and the migration link corresponding to the to-be-migrated process file are directly stored.
As an example, in step S803, when determining that the current remaining capacity of the system database is not greater than the migration capacity, the current computer device determines that the system database does not have the capability of storing the process file to be migrated and the migration link corresponding to the process file to be migrated, at this time, queries the existing process file in the system database, and determines whether the existing process file identical to the process file to be migrated exists in the system database, that is, continues to execute step S703, so as to facilitate the subsequent deduplication process on the process file identical to the existing process file to be migrated, to reduce the migration capacity, and implement migration and storage of the process file to be migrated and the migration link corresponding to the process file to be migrated. In this example, when it is determined that the current remaining capacity is not greater than the migration capacity, it is determined that the system database does not have enough capacity to store the process file to be migrated and the migration link corresponding to the process file to be migrated, and it is required to query in the system database whether an existing process file identical to the process file to be migrated exists, so that the subsequent deduplication process is performed on the process file to be migrated identical to the existing process file when it is determined that the existing process file identical to the process file to be migrated exists in the system database.
In this embodiment, when it is determined that the current remaining capacity is greater than the migration capacity, it is determined that the system database has enough capacity to store the process file to be migrated and the migration link corresponding to the process file to be migrated, and the process file to be migrated and the migration link corresponding to the process file to be migrated are directly stored. When the current residual capacity is not larger than the migration capacity, the system database is determined to have insufficient capacity for storing the to-be-migrated process file and the migration links corresponding to the to-be-migrated process file, whether the existing process file identical to the to-be-migrated process file exists or not is required to be inquired in the system database, and the duplicate removal processing is conveniently carried out on the to-be-migrated process file identical to the existing process file when the existing process file identical to the to-be-migrated process file exists in the system database.
In one embodiment, as shown in fig. 9, step S703 and/or step S803, i.e. based on the process file to be migrated querying the existing process file in the system database, determine whether the existing process file identical to the process file to be migrated exists, includes:
S901: based on the technological parameters of the technological file to be migrated, generating a parameter check code corresponding to the technological file to be migrated by using a unique check code generation algorithm;
s902: inquiring the existing check codes corresponding to all the existing process files in the system database based on the acquired parameter check codes, and judging whether the existing check codes which are the same as the parameter check codes exist or not;
s903: if the existing check code which is the same as the parameter check code exists, confirming that the existing process file which is the same as the process file to be migrated exists;
s904: and if the existing check code which is the same as the parameter check code does not exist, confirming that the existing process file which is the same as the process file to be migrated does not exist.
Wherein, the process parameters refer to parameters except the process identification codes in the process file. The unique check code generation algorithm is an algorithm for generating a parameter check code of the process file to be migrated according to the process parameters. The parameter check code refers to a check code of the process file to be migrated, which is obtained according to a unique check code generation algorithm.
As an example, in step S901, the current computer device processes the process file to be migrated to obtain the process parameters of the process file to be migrated, and calculates the process parameters of the process file to be migrated by using a unique check code generation algorithm to obtain the parameter check codes corresponding to the process file to be migrated. In this example, the current computer device removes the process identification code from the process file to be migrated to obtain process parameters consisting of the remaining parameters of the process file to be migrated. The unique check code generation algorithm can be any one of an MD5 code algorithm, a hash algorithm and the like. In this example, a parameter check code corresponding to the process file to be migrated is generated, so that whether an existing process file identical to the process file to be migrated exists in the system database is determined conveniently.
The existing check code refers to the check code of the existing process file obtained by adopting a unique check code generation algorithm.
As an example, in step S902, the current computer device obtains the existing check codes corresponding to the existing process files by using the unique check code generation algorithm, compares the existing check code corresponding to each existing process file with the parameter check code corresponding to the process file to be migrated, and determines whether the existing check code identical to the parameter check code exists. In this example, it is determined whether an existing check code identical to the parameter check code exists, so that whether an existing process file identical to the process file to be migrated exists is determined to have feasibility according to whether the existing check code identical to the parameter check code exists.
As an example, in step S903, when determining that the existing check code corresponding to the existing process file corresponding to the parameter check code corresponding to the process file to be migrated exists, the current computer device determines that the existing process file corresponding to the existing check code is identical to the process file to be migrated corresponding to the parameter check code, and determines that the existing process file identical to the process file to be migrated exists.
As an example, in step S904, when determining that there is no existing check code corresponding to an existing process file that is identical to the parameter check code corresponding to the process file to be migrated, the current computer device determines that there is no existing process file that is identical to the process file to be migrated.
In the embodiment, whether the existing process file which is the same as the process file to be migrated exists is determined according to whether the parameter check code is the same as the existing check code or not.
In one embodiment, as shown in fig. 10, step S104, that is, determining the process test result of the target process file according to the nesting test result and the parallel test result corresponding to the target process file, includes:
s1001: if the nested test result and the parallel test result corresponding to the target process file are both test passing, determining that the process test result of the target process file is test passing;
s1002: and if at least one of the nested test result and the parallel test result corresponding to the target process file is the test failed, determining that the process test result of the target process file is the test failed.
As an example, in step S1001, when the computer device determines that the nested test result of the target process file is a test pass and the parallel test result of the target process file is also a test pass, the computer device determines that the process test result of the target process file is a test pass. Understandably, if the nested test result and the parallel test result corresponding to the target process file are both test passing, it can be determined that the process editing process has no nested error and parallel error, so that it is determined that the process test result of the target process file generated by the process editing is test passing, and the implementation of the corresponding process flow can be put into practice. In the example, when the nested test result and the parallel test result corresponding to the target process file are both test passing, the process test result of the target process file is determined to be test passing, and the process test result of the target process file can be accurately determined, so that the target process file has higher error-proofing rate and running efficiency in running.
As an example, in step S1002, when determining that the nested test result corresponding to the target process file is not passed, or the parallel test result is not passed, or both the nested test result and the parallel test result are not passed, the computer device determines that the process test result of the target process file is not passed. It is understandable that, for the target process file, if at least one of the nested test result and the parallel test result is that the test fails, it indicates that there is an error of parallel editing and/or nested editing in the process editing process, so it needs to determine that the process test result of the target process file is that the test fails, so as to be convenient for correcting the target process file.
In the embodiment, when the nested test result and the parallel test result corresponding to the target process file are both test passing, determining that the process test result of the target process file is test passing; and if at least one of the nested test result and the parallel test result is the test failure, determining that the process test result of the target process file is the test failure, and determining the process test result of the target process file more accurately, so that the target process file has higher error proofing rate and operation efficiency in operation.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
In an embodiment, a process file testing device is provided, where the process file testing device corresponds to the process file testing method in the above embodiment one by one. As shown in fig. 11, the process file testing apparatus includes a target process file acquisition module 1101, a nested test result determination module 1102, a parallel test result determination module 1103, and a process test result determination module 1104. The functional modules are described in detail as follows:
A target process file obtaining module 1101, configured to obtain a target process file, where the target process file includes a master process file and at least one level of slave process files associated with the master process file;
the nesting test result determining module 1102 is configured to perform a nesting test on each slave process file to obtain a nesting test result corresponding to the target process file;
the parallel test result determining module 1103 is configured to perform parallel test on at least two slave process files in the same hierarchy to obtain a parallel test result corresponding to the target process file;
the process test result determining module 1104 is configured to determine a process test result of the target process file according to the nested test result and the parallel test result corresponding to the target process file.
In one embodiment, the nested test result determination module 1102 includes:
the first comparison sub-module is used for comparing the sub-process file of the next level of each slave process file with the parent process file of the previous level and judging whether each sub-process file is identical with the parent process file;
the first judging sub-module is used for determining that the nesting test result corresponding to the slave process file is that the test fails if any one of the sub-process files is identical to the parent process file;
The second judging sub-module is used for determining that the nesting test result corresponding to the slave process file is test passing if any sub-process file is not identical to the parent process file;
the nested test result determining submodule is used for determining the nested test result corresponding to the target process file according to the nested test result corresponding to each slave process file.
In one embodiment, the first alignment sub-module comprises:
the first comparison unit is used for comparing the parent process identification code of the parent process file with the child process identification codes of the child process files by using a character string character-by-character matching method;
the first judging unit is used for determining that the child process file is identical to the parent process file if the characters of the child process identification code and the parent process identification code are identical;
and the second judging unit is used for determining that the child process file is different from the parent process file if the child process identification code and the parent process identification code are not matched word by word once.
In another embodiment, the first comparison sub-module further comprises:
the verification code acquisition unit is used for calculating a parent process verification code of the parent process file and child process verification codes of all child process files by using a verification code output algorithm;
The first verification unit is used for determining that the child process file is identical to the parent process file if the child process verification code is identical to the parent process verification code;
and the second verification unit is used for determining that the child process file is different from the parent process file if the child process verification code is different from the parent process verification code.
In one embodiment, the parallel test result determining module 1103 includes:
the preset parallel condition judging sub-module is used for judging whether any two slave process files belonging to the same father process file and at the same level meet the preset parallel condition;
a third judging sub-module, configured to determine that the parallel test result corresponding to the target process file is passing if any two slave process files at the same level meet the preset parallel condition;
and the fourth judging sub-module is used for determining that the parallel test result corresponding to the target process file is not passed if any two slave process files in the same level do not meet the preset parallel condition.
In one embodiment, the preset parallel condition judgment submodule includes:
the first acquisition unit is used for acquiring parallel attributes of any two slave process files belonging to the same father process file and of the same hierarchy and parallel parameters corresponding to the parallel attributes, and inquiring a parallel parameter set corresponding to the parallel attributes stored in the system database in advance;
The third judging unit is used for determining that any two slave process files in the same level meet the preset parallel condition if any two obtained parallel parameters are the same and the parallel parameters are in the parallel parameter set corresponding to the parallel attribute;
and the fourth judging unit is used for determining that any two slave process files with the same hierarchy do not meet the preset parallel condition if any two acquired parallel parameters are different or the parallel parameters are not in the parallel parameter set corresponding to the parallel attribute.
In another embodiment, the process file testing apparatus further comprises:
the migration instruction receiving module is used for receiving the migration instruction, responding to the migration instruction and acquiring a process file to be migrated and a migration link corresponding to the process file to be migrated;
the process identification code changing module is used for changing the original process identification code corresponding to the process file to be migrated to obtain the target process identification code corresponding to the process file to be migrated;
the existing process file judging module is used for inquiring the existing process files in the system database based on the process files to be migrated and judging whether the existing process files which are the same as the process files to be migrated exist or not;
the first storage module is used for deleting the process file to be migrated and the target process identification code corresponding to the process file to be migrated if the existing process file which is the same as the process file to be migrated exists, and storing the migration link into an existing link stack corresponding to the existing process file;
And the second storage module is used for storing the process file to be migrated and the target process identification code corresponding to the process file to be migrated into the system database if the existing process file which is the same as the process file to be migrated does not exist, creating a new link stack corresponding to the process file to be migrated, and storing the migration link into the new link stack.
In one embodiment, the target process file acquisition module 1101 includes:
and the target process file acquisition sub-module is used for acquiring the target process file from the system database after the migration instruction is completed.
In another embodiment, the process file testing apparatus further comprises:
the capacity comparison module is used for calculating migration capacities of the process files to be migrated and migration links corresponding to the process files to be migrated, and obtaining the current residual capacity of the system database;
the first capacity judging module is used for directly storing the process file to be migrated and the migration link to the extreme end in the system database if the current residual capacity is larger than the migration capacity;
and the second capacity judging module is used for inquiring the existing process files in the system database based on the process files to be migrated if the current residual capacity is not greater than the migration capacity, and judging whether the existing process files which are the same as the process files to be migrated exist or not.
In one embodiment, the existing process file determination module and/or the second capacity determination module includes:
the parameter check code generation sub-module is used for generating a parameter check code corresponding to the process file to be migrated by using a unique check code generation algorithm based on the process parameters of the process file to be migrated;
the check code judging sub-module is used for inquiring the existing check codes corresponding to all the existing process files in the system database based on the acquired parameter check codes and judging whether the existing check codes which are the same as the parameter check codes exist or not;
the first same file determining submodule is used for determining that the existing process file which is the same as the process file to be migrated exists if the existing check code which is the same as the parameter check code exists;
and the second identical file determining submodule is used for determining that the existing process file which is identical to the process file to be migrated does not exist if the existing check code which is identical to the parameter check code does not exist.
In one embodiment, the process test result determination module 1104 includes:
the first process test result determining module is used for determining that the process test result of the target process file is the test passing if the nested test result and the parallel test result corresponding to the target process file are both the test passing;
And the second process test result determining module is used for determining that the process test result of the target process file is the test failed if at least one of the nested test result and the parallel test result corresponding to the target process file is the test failed.
For specific limitations of the process document testing device, reference may be made to the above description of the process document testing method, and no further description is given here. The various modules in the process file testing device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 12. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data adopted or generated in the process of executing the process file testing method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program when executed by a processor implements a process file testing method.
In an embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the method for testing a process file in the above embodiment when executing the computer program, for example, S101-S104 shown in fig. 1, or S2-10, and the description is omitted herein for avoiding repetition. Alternatively, the processor may implement the functions of each module/unit in this embodiment of the process file testing apparatus when executing the computer program, for example, the functions of the target process file obtaining module 1101, the nested test result determining module 1102, the parallel test result determining module 1103 and the process test result determining module 1104 shown in fig. 11, which are not repeated herein.
In an embodiment, a computer readable storage medium is provided, and a computer program is stored on the computer readable storage medium, where the computer program is executed by a processor to implement the method for testing a process file in the above embodiment, for example, S101-S104 shown in fig. 1, or S2-S10, which are not described herein again for avoiding repetition. Alternatively, the computer program when executed by the processor implements the functions of each module/unit in the embodiment of the process file testing apparatus described above, for example, the functions of the target process file obtaining module 1101, the nested test result determining module 1102, the parallel test result determining module 1103 and the process test result determining module 1104 shown in fig. 11, which are not repeated herein. The computer readable storage medium may be nonvolatile or may be volatile.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (11)

1. A process document testing method, comprising:
obtaining a target process file, wherein the target process file comprises a master process file and at least one level of slave process files associated with the master process file;
Performing a nesting test on each slave process file to obtain a nesting test result corresponding to the target process file, wherein the nesting test result comprises: comparing the child process file of the next level of each slave process file with the parent process file of the previous level, and judging whether each child process file is identical with the parent process file; if any child process file is the same as the parent process file, determining that the nesting test result corresponding to the slave process file is that the test fails; if any child process file is not the same as the parent process file, determining that the nesting test result corresponding to the slave process file is test passing; determining a nesting test result corresponding to the target process file according to the nesting test result corresponding to each slave process file;
parallel testing is carried out on at least two slave process files in the same level to obtain a parallel test result corresponding to the target process file, wherein the parallel test result comprises the following steps: judging whether any two slave process files belonging to the same father process file and of the same hierarchy meet a preset parallel condition or not; if any two slave process files in the same hierarchy meet the preset parallel condition, determining that a parallel test result corresponding to the target process file is test passing; if any two slave process files in the same hierarchy do not meet the preset parallel condition, determining that the parallel test result corresponding to the target process file is that the test fails;
And determining a process test result of the target process file according to the nesting test result and the parallel test result corresponding to the target process file.
2. The process file testing method of claim 1, wherein comparing the next level child process file of each slave process file with the previous level parent process file to determine whether each child process file is identical to the parent process file comprises:
comparing the parent process identification code of the parent process file with the child process identification codes of the child process files by using a character string character-by-character matching method;
if the child process identification code is identical to each character of the parent process identification code, determining that the child process file is identical to the parent process file;
if the child process identification code and the parent process identification code are not matched word by word once, determining that the child process file is different from the parent process file.
3. The process file testing method according to claim 1, wherein comparing the next level child process file of each slave process file with the previous level parent process file to determine whether each child process file is identical to the parent process file, further comprising:
Calculating a parent process check code of the parent process file and a child process check code of each child process file by using a check code output algorithm;
if the child process check code is the same as the parent process check code, determining that the child process file is the same as the parent process file;
if the child process check code is different from the parent process check code, determining that the child process file is different from the parent process file.
4. The process file testing method according to claim 1, wherein the determining whether any two of the slave process files belonging to the same parent process file and having the same hierarchy satisfy a preset parallel condition comprises:
acquiring parallel attributes of any two slave process files belonging to the same father process file and of the same hierarchy and parallel parameters corresponding to the parallel attributes, and inquiring a parallel parameter set corresponding to the parallel attributes stored in a system database in advance;
if any two obtained parallel parameters are the same and the parallel parameters are in the parallel parameter set corresponding to the parallel attribute, determining that any two slave process files in the same level meet a preset parallel condition;
if any two obtained parallel parameters are different or the parallel parameters are not in the parallel parameter set corresponding to the parallel attribute, determining that any two slave process files with the same level do not meet the preset parallel condition.
5. The process file testing method of claim 1, wherein prior to said obtaining a target process file, said process file testing method further comprises:
receiving a migration instruction, responding to the migration instruction, and acquiring a process file to be migrated and a migration link corresponding to the process file to be migrated;
changing an original process identification code corresponding to the process file to be migrated to obtain a target process identification code corresponding to the process file to be migrated;
inquiring an existing process file in a system database based on the process file to be migrated, and judging whether the existing process file which is the same as the process file to be migrated exists or not;
if the existing process file which is the same as the process file to be migrated exists, deleting the process file to be migrated and a target process identification code corresponding to the process file to be migrated, and storing the migration link into an existing link stack corresponding to the existing process file;
if the existing process file which is the same as the process file to be migrated does not exist, storing the process file to be migrated and a target process identification code corresponding to the process file to be migrated into the system database, simultaneously creating a new link stack corresponding to the process file to be migrated, and storing the migration link into the new link stack;
The obtaining the target process file includes: and acquiring the target process file from a system database after the migration instruction is completed.
6. The process file testing method according to claim 5, wherein after the obtaining the process file to be migrated and the migration link corresponding to the process file to be migrated, and before the deleting the process file to be migrated and storing the migration link in the existing link stack corresponding to the existing process file if the existing process file identical to the process file to be migrated exists, the process file testing method further comprises:
calculating the migration capacity of the process file to be migrated and the migration link corresponding to the process file to be migrated, and obtaining the current residual capacity of a system database;
if the current residual capacity is larger than the migration capacity, directly storing the process file to be migrated and the migration link to the extreme end in a system database;
and if the current residual capacity is not greater than the migration capacity, inquiring the existing process files in a system database based on the process files to be migrated, and judging whether the existing process files which are the same as the process files to be migrated exist.
7. The process file testing method according to any one of claims 5 and 6, wherein said determining whether an existing process file identical to the process file to be migrated exists based on the existing process file in the process file to be migrated querying a system database, comprises:
based on the technological parameters of the technological file to be migrated, generating a parameter check code corresponding to the technological file to be migrated by using a unique check code generation algorithm;
inquiring existing check codes corresponding to all existing process files in a system database based on the acquired parameter check codes, and judging whether the existing check codes which are the same as the parameter check codes exist or not;
if the existing check code which is the same as the parameter check code exists, confirming that the existing process file which is the same as the process file to be migrated exists;
and if the existing check code which is the same as the parameter check code does not exist, confirming that the existing process file which is the same as the process file to be migrated does not exist.
8. The process file testing method of claim 1, wherein determining the process test result of the target process file based on the nested test result and the parallel test result corresponding to the target process file comprises:
If the nesting test result and the parallel test result corresponding to the target process file are both test passing, determining that the process test result of the target process file is test passing;
and if at least one of the nested test result and the parallel test result corresponding to the target process file is the test failed, determining that the process test result of the target process file is the test failed.
9. A process document testing apparatus, comprising:
a target process file acquisition module, configured to acquire a target process file, where the target process file includes a master process file and at least one level of slave process files associated with the master process file;
the nesting test result determining module is configured to perform a nesting test on each slave process file to obtain a nesting test result corresponding to the target process file, where the nesting test result determining module includes: comparing the child process file of the next level of each slave process file with the parent process file of the previous level, and judging whether each child process file is identical with the parent process file; if any child process file is the same as the parent process file, determining that the nesting test result corresponding to the slave process file is that the test fails; if any child process file is not the same as the parent process file, determining that the nesting test result corresponding to the slave process file is test passing; determining a nesting test result corresponding to the target process file according to the nesting test result corresponding to each slave process file;
The parallel test result determining module is configured to perform parallel test on at least two slave process files in the same level, and obtain a parallel test result corresponding to the target process file, where the parallel test result determining module includes: judging whether any two slave process files belonging to the same father process file and of the same hierarchy meet a preset parallel condition or not; if any two slave process files in the same hierarchy meet the preset parallel condition, determining that a parallel test result corresponding to the target process file is test passing; if any two slave process files in the same hierarchy do not meet the preset parallel condition, determining that the parallel test result corresponding to the target process file is that the test fails;
and the process test result determining module is used for determining the process test result of the target process file according to the nesting test result and the parallel test result corresponding to the target process file.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the process file testing method according to any of claims 1 to 8 when executing the computer program.
11. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the process file testing method according to any of claims 1 to 8.
CN202311736618.XA 2023-12-18 2023-12-18 Process file testing method and device, computer equipment and storage medium Active CN117422281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311736618.XA CN117422281B (en) 2023-12-18 2023-12-18 Process file testing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311736618.XA CN117422281B (en) 2023-12-18 2023-12-18 Process file testing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117422281A CN117422281A (en) 2024-01-19
CN117422281B true CN117422281B (en) 2024-03-22

Family

ID=89528767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311736618.XA Active CN117422281B (en) 2023-12-18 2023-12-18 Process file testing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117422281B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013020580A (en) * 2011-07-14 2013-01-31 Internatl Business Mach Corp <Ibm> Parallelization method, system and program
CN104598114A (en) * 2015-02-28 2015-05-06 苏州路之遥科技股份有限公司 Editing method for microcomputer test process of wiring harness intelligent testing machine
CN106055692A (en) * 2016-06-12 2016-10-26 上海爱数信息技术股份有限公司 Automatic testing method and system for comparison files or folders
CN108021431A (en) * 2016-11-04 2018-05-11 广东亿迅科技有限公司 Method and its system based on web data interactive maintenance Hive
WO2018113164A1 (en) * 2016-12-22 2018-06-28 中国电子科技集团公司第三十八研究所 Three-dimensional test file generation method and test method
CN109657497A (en) * 2018-12-21 2019-04-19 北京思源互联科技有限公司 Secure file system and its method
CN116702668A (en) * 2023-06-13 2023-09-05 太初(无锡)电子科技有限公司 Regression testing method and device, electronic equipment and storage medium
CN116932358A (en) * 2022-03-29 2023-10-24 南京四维智联科技有限公司 Test data construction method and device and computer equipment
CN117176741A (en) * 2023-09-21 2023-12-05 湖北天融信网络安全技术有限公司 Method and device for detecting synchronization of data exchange files and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013020580A (en) * 2011-07-14 2013-01-31 Internatl Business Mach Corp <Ibm> Parallelization method, system and program
CN104598114A (en) * 2015-02-28 2015-05-06 苏州路之遥科技股份有限公司 Editing method for microcomputer test process of wiring harness intelligent testing machine
CN106055692A (en) * 2016-06-12 2016-10-26 上海爱数信息技术股份有限公司 Automatic testing method and system for comparison files or folders
CN108021431A (en) * 2016-11-04 2018-05-11 广东亿迅科技有限公司 Method and its system based on web data interactive maintenance Hive
WO2018113164A1 (en) * 2016-12-22 2018-06-28 中国电子科技集团公司第三十八研究所 Three-dimensional test file generation method and test method
CN109657497A (en) * 2018-12-21 2019-04-19 北京思源互联科技有限公司 Secure file system and its method
CN116932358A (en) * 2022-03-29 2023-10-24 南京四维智联科技有限公司 Test data construction method and device and computer equipment
CN116702668A (en) * 2023-06-13 2023-09-05 太初(无锡)电子科技有限公司 Regression testing method and device, electronic equipment and storage medium
CN117176741A (en) * 2023-09-21 2023-12-05 湖北天融信网络安全技术有限公司 Method and device for detecting synchronization of data exchange files and electronic equipment

Also Published As

Publication number Publication date
CN117422281A (en) 2024-01-19

Similar Documents

Publication Publication Date Title
CN110781231B (en) Database-based batch import method, device, equipment and storage medium
CN110705214A (en) Automatic coding method and device
Codish et al. Twenty-five comparators is optimal when sorting nine inputs (and twenty-nine for ten)
JPH1173448A (en) Method for verifying combinational circuit using filtering type approach
CN107168995B (en) Data processing method and server
CN113238924B (en) Chaotic engineering realization method and system in distributed graph database system
CN112257365B (en) Method for establishing timing diagram in parallel based on geometric information
US11663113B2 (en) Real time fault localization using combinatorial test design techniques and test case priority selection
CN111400505A (en) Method and system for matching fault elimination scheme of power consumption information acquisition system
CN111428095A (en) Graph data quality verification method and graph data quality verification device
CN117422281B (en) Process file testing method and device, computer equipment and storage medium
CN113138808B (en) Integration method, device, computer equipment and storage medium
CN104750608A (en) Automatic error locating method based on dynamic symbol operation in procedure
CN111694966A (en) Multilevel knowledge map construction method and system for chemical industry field
CN111143228B (en) Test code generation method and device based on decision table method
CN108304330B (en) Content extraction method and device and computer equipment
Compton et al. A trade-off between domain knowledge and problem solving method power
CN115114806B (en) Autonomous evolution simulation method for autonomous traffic system architecture
CN117056238B (en) Method and computing device for verifying correctness of model conversion under deployment framework
CN115659702B (en) Optimal tail-cutting test scheme design method for success-failure on-orbit test
CN110099094B (en) Power Internet of things information interaction process analysis method and system considering resource constraints
CN115562976A (en) Data mart verification method and device
CN115460297A (en) Automatic formal verification method for network security protocol
CN113553247A (en) Automatic evaluation method for computing platform
CN114048975A (en) Performance assessment method, system, 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
GR01 Patent grant
GR01 Patent grant