CN113505076B - File coverage detection method and device - Google Patents
File coverage detection method and device Download PDFInfo
- Publication number
- CN113505076B CN113505076B CN202110843160.2A CN202110843160A CN113505076B CN 113505076 B CN113505076 B CN 113505076B CN 202110843160 A CN202110843160 A CN 202110843160A CN 113505076 B CN113505076 B CN 113505076B
- Authority
- CN
- China
- Prior art keywords
- file
- batch
- coverage
- host
- software version
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 111
- 230000005540 biological transmission Effects 0.000 claims abstract description 105
- 238000000034 method Methods 0.000 claims abstract description 102
- 238000012360 testing method Methods 0.000 claims abstract description 89
- 238000012795 verification Methods 0.000 claims description 40
- 238000004590 computer program Methods 0.000 claims description 17
- 238000003860 storage Methods 0.000 claims description 12
- 230000006870 function Effects 0.000 description 15
- 238000004891 communication Methods 0.000 description 12
- 238000011144 upstream manufacturing Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 230000007547 defect Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 238000007619 statistical method Methods 0.000 description 8
- 238000012546 transfer Methods 0.000 description 5
- 239000000872 buffer Substances 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000000528 statistical test Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the application provides a method and a device for detecting file coverage, which can be used in the technical field of big data, and the method comprises the following steps: in the host batch test process of the target system, according to transmission check file lists corresponding to all host files which are transmitted in batches in all time periods, batch file coverage results in all time periods are respectively determined; and detecting the file coverage condition of the target software version in the target system based on the corresponding relation between each batch corresponding to the target software version in each time period and the batch file coverage result in each time period so as to obtain file coverage detection result data of the target software version in the target system. The method and the device can effectively improve the detection accuracy and reliability of the file coverage condition in the batch test process of the host, effectively improve the efficiency and convenience of the file coverage condition process, and improve the effectiveness and reliability of the batch test process of the host.
Description
Technical Field
The application relates to the technical field of data processing, in particular to the technical field of big data, and particularly relates to a file coverage detection method and device.
Background
The host batch system is huge, the application is numerous, the business is complex, the domestic and overseas batch quantity is large, the cross-partition cross-business application calling situation is very common, and therefore, it is very important to find a standard for measuring batch test progress and situation. For example, in the black box test process, the analysis and statistical test of the input and output of the program is a very important means. The file is used as a carrier of data flow in the system and is an input and output object of the system operation. If the file is not used, the problems of program operation, data preparation, batch test and the like can be described, and the problems in the test process are indirectly reflected from the data flow angle, so that the defect errors in the test process are revealed. For example, data cleaning batch test, whether the cleaning program is actually covered or not can be analyzed by looking at the coverage condition of the downloaded file; for some programs, some branches are possibly called, but some branches are not covered, and by uploading and downloading files, whether the program branches are really called or not and whether the service scene is verified or not can be seen.
However, in the current batch test process of the host, the coverage condition of the host file in the target system cannot be known in time because the content of the old batch file and the like cannot be directly checked in the host environment; meanwhile, as a system device capable of directly monitoring the batch file transmission coverage of the host is not available in the current host environment, the batch file transmission coverage of the host can be confirmed only by the transmission conditions of an upstream platform and a downstream platform of the host, but the batch file transmission condition can be confirmed in a limited way due to the factors such as inconsistent environment matching of the upstream platform and the downstream platform, overlong interface links and the like.
That is, in the existing statistical method of file coverage conditions in the batch test process of the host, the problems of complicated process, low accuracy, low efficiency and the like exist.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides the file coverage detection method and the device, which can effectively improve the detection accuracy and reliability of the file coverage condition in the batch test process of the host, effectively improve the efficiency and convenience of the file coverage condition process and improve the effectiveness and reliability of the batch test process of the host.
In order to solve the technical problems, the application provides the following technical scheme:
in a first aspect, the present application provides a method for detecting file coverage, including:
In the host batch test process of the target system, according to transmission check file lists corresponding to all host files which are transmitted in batches in all time periods, batch file coverage results in all time periods are respectively determined;
And detecting the file coverage condition of the target software version in the target system based on the corresponding relation between each batch corresponding to the target software version in each time period and the batch file coverage result in each time period so as to obtain file coverage detection result data of the target software version in the target system.
Further, in the batch test process of the host of the target system, according to the transmission verification file list corresponding to each host file batch transmitted in each time period, a batch file coverage result in each time period is respectively determined, including:
Collecting a transmission check file list corresponding to each host file transmitted in batches in each time period in a host batch test process of a target system, wherein the transmission check file list comprises: uploading a CHK check file list and downloading the CHK check file list;
And respectively generating an uploading batch file coverage result in each time period according to each uploading CHK verification file list, and respectively generating a downloading batch file coverage result in each time period according to each downloading CHK verification file list.
Further, the detecting, based on the correspondence between each batch corresponding to each time period and the target software version and the batch file coverage result in each time period, the file coverage condition of the target software version in the target system to obtain file coverage detection result data of the target software version in the target system, includes:
Generating a batch file coverage result of the whole batch of the target software version according to the corresponding relation between each time period and each batch corresponding to the target software version;
Generating a covered file list and an uncovered file list which are currently corresponding to the target software version according to the whole batch file coverage result;
invoking a pre-stored cross-batch covered file list and a cross-batch uncovered file list;
Updating the cross-batch covered file list and the cross-batch uncovered file list based on the covered file list and the uncovered file list currently corresponding to the target software version, so as to obtain file coverage detection result data of the target software version currently in the target system.
Further, the generating a whole batch file coverage result of the target software version according to the correspondence between each time period and each batch corresponding to the target software version includes:
Acquiring the corresponding relation between each pre-stored time period and each batch corresponding to the target software version;
generating batch file coverage results of all batches corresponding to the target software version based on the uploading batch file coverage results and the downloading batch file coverage results in all time periods according to the corresponding relation between all batches corresponding to the target software version in all time periods;
And generating a full-batch file coverage result of the target software version based on the batch file coverage result of each batch corresponding to the target software version, wherein the full-batch file coverage result is used for storing the corresponding relation among the identifiers of each CHK verification file, the file size, the batch identifier, the date of batch transmission and the coverage identifier, and the coverage identifier is used for indicating whether file coverage exists.
Further, the generating, according to the full batch file coverage result, a covered file list and an uncovered file list that currently correspond to the target software version includes:
Generating a covered file list and an uncovered file list which are currently corresponding to the target software version according to the identification and the coverage identification of each CHK verification file in the whole batch file coverage result;
The covered file list and the uncovered file list are used for storing the corresponding relation among the identification of each CHK check file, the identification of the host file, the identification of the application, the date of batch transmission, the transmission identification and the coverage frequency, wherein the transmission identification is used for representing uploading or downloading, and the coverage frequency is generated according to the coverage identification.
Further, the method further comprises the following steps:
And acquiring the coverage condition of the key host file from the file coverage detection result data of the target software version in the target system according to the preset key host file identification so as to obtain and output a corresponding cross-batch key host file coverage detection result.
Further, the method further comprises the following steps:
According to a preset key host file identifier, acquiring the coverage condition of a key host file from the batch file coverage results of all batches of the target software version in the target system so as to acquire and output a corresponding batch key host file coverage detection result;
And acquiring the coverage condition of the key host files from the current full-batch file coverage result of the target software version in the target system according to the preset key host file identification so as to obtain and output a corresponding full-batch key host file coverage detection result.
In a second aspect, the present application provides a document coverage detection apparatus, including:
the list application module is used for respectively determining batch file coverage results in each time period according to the transmission verification file list corresponding to each host file transmitted in batch in each time period in the host batch test process of the target system;
And the coverage detection module is used for detecting the file coverage condition of the target software version in the target system based on the corresponding relation between each time period and each batch corresponding to the target software version and the batch file coverage result in each time period so as to obtain the file coverage detection result data of the target software version in the target system.
In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the file coverage detection method when executing the program.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the file coverage detection method.
As can be seen from the above technical solutions, the method and apparatus for detecting file coverage provided by the present application include: in the host batch test process of the target system, according to transmission check file lists corresponding to all host files which are transmitted in batches in all time periods, batch file coverage results in all time periods are respectively determined; based on the corresponding relation between each batch corresponding to each time period and the target software version and the batch file coverage result in each time period, detecting the file coverage condition of the target software version in the target system currently so as to obtain file coverage detection result data of the target software version in the target system currently, detecting the file coverage condition of the target software version in the target system by acquiring transmission verification file lists corresponding to all host files transmitted in batches, effectively improving the detection accuracy and reliability of the file coverage condition in the host batch test process, effectively improving the efficiency and convenience of the file coverage condition process, reducing the complicated process of the original statistical mode of the file coverage condition, and confirming the specific uploading and downloading use condition of the transmission files of a batch and a batch date from the host side. The method has the advantages that the test progress is mastered more accurately, the specific test condition of uncovered files is convenient to analyze, a more targeted test plan is formulated, the coverage condition of batch transmission files of the host can be queried under the condition that the backup files are not available even if the time range of recovering the files is exceeded, the statistical result can be completed after the new batch of the host is finished without an upstream platform and a downstream platform, the coverage condition of batch transmission files of the host is directly obtained, the defects in the prior art are overcome, and the coverage result of batch files of the host is mastered more efficiently and accurately.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a relationship between a file coverage detecting apparatus and a client device in an embodiment of the present application.
Fig. 2 is a schematic flow chart of a first method for detecting file coverage in an embodiment of the present application.
Fig. 3 is a second flowchart of a file coverage detection method according to an embodiment of the present application.
Fig. 4 is a third flowchart of a file coverage detection method according to an embodiment of the present application.
Fig. 5 is a fourth flowchart of a file coverage detection method according to an embodiment of the present application.
Fig. 6 is a fifth flowchart of a file coverage detection method according to an embodiment of the present application.
Fig. 7 is a sixth flowchart of a file coverage detection method according to an embodiment of the present application.
Fig. 8 is a seventh flowchart of a file coverage detection method according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a document coverage detecting apparatus in an embodiment of the present application.
Fig. 10 is a schematic structural diagram of a batch transmission file statistics device provided by an application example of the present application.
Fig. 11 is a schematic flow chart of a file coverage detection method implemented by using the batch transmission file statistics device according to the application example of the present application.
Fig. 12 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that the method and the device for detecting file coverage disclosed by the application can be used in the technical field of big data, and can also be used in any field except the technical field of big data, and the application field of the method and the device for detecting file coverage disclosed by the application is not limited.
In the current batch testing process of the host, the following problems exist:
The host batch file name does not contain a date, so after each new batch is executed, the content of the old batch file cannot be directly checked in the host environment, whether the old batch file has a number or not is known, whether the job successfully transmits the file or not, and the like. If the host file or the job queue is restored, the test condition is confirmed, the time is too long, and the backup file, the transmission file and the job must be restored.
At present, a system device capable of directly monitoring batch file transmission coverage of a host is not available in a host environment, and only the coverage condition of batch file transmission of the host can be confirmed by the transmission condition of an upstream platform and a downstream platform of the host on the side surface. However, due to factors such as inconsistent matching of the environments of the upstream platform and the downstream platform, overlong interface links and the like, the method has great limitation on confirming the condition of batch file transmission.
All the problems lead to statistics confirmation work of batch file coverage of a host, the process is complicated, the accuracy is low, and the timeliness is low.
Aiming at the problems of complicated process, low accuracy, low efficiency and the like in the existing statistical method of file coverage conditions in the batch test process of a host, the embodiment of the application provides a file coverage detection method, which is characterized in that batch file coverage results in each time period are respectively determined according to transmission verification file lists corresponding to all host files which are transmitted in batches in each time period in the batch test process of the host of a target system; based on the corresponding relation between each batch corresponding to each time period and the target software version and the batch file coverage result in each time period, detecting the file coverage condition of the target software version in the target system currently so as to obtain file coverage detection result data of the target software version in the target system currently, detecting the file coverage condition of the target software version in the target system by acquiring transmission verification file lists corresponding to all host files transmitted in batches, effectively improving the detection accuracy and reliability of the file coverage condition in the host batch test process, effectively improving the efficiency and convenience of the file coverage condition process, reducing the complicated process of the original statistical mode of the file coverage condition, and confirming the specific uploading and downloading use condition of the transmission files of a batch and a batch date from the host side. The method has the advantages that the test progress is mastered more accurately, the specific test condition of uncovered files is convenient to analyze, a more targeted test plan is formulated, the coverage condition of batch transmission files of the host can be queried under the condition that the backup files are not available even if the time range of recovering the files is exceeded, the statistical result can be completed after the new batch of the host is finished without an upstream platform and a downstream platform, the coverage condition of batch transmission files of the host is directly obtained, the defects in the prior art are overcome, and the coverage result of batch files of the host is mastered more efficiently and accurately.
Based on the above, the present application further provides a file coverage detecting apparatus for implementing the file coverage detecting method provided in one or more embodiments of the present application, where the file coverage detecting apparatus may be an independent server, or may be a functional module in an existing server system of a financial institution, and referring to fig. 1, the file coverage detecting apparatus may be connected to each client device by itself or through a third party server, etc. in a communication manner, and the file coverage detecting apparatus may receive a file coverage detecting opening instruction sent by the client device, and determine, according to a transmission check file list corresponding to each host file that is transmitted in batch in each time period in a host batch test process of the target system according to the file coverage detecting opening instruction, a batch file coverage result in each time period; and detecting the file coverage condition of the target software version in the target system currently based on the corresponding relation between each batch corresponding to the target software version in each time period and the batch file coverage result in each time period so as to obtain file coverage detection result data of the target software version in the target system currently, wherein the file coverage detection device can then generate the file coverage detection result data to a preset monitoring platform for display and/or send the file coverage detection result data to the client device.
In another practical application, the part of the file coverage detection performed by the file coverage detection device may be executed in a server as described above, or all operations may be completed in the client device. The selection may be specifically performed according to the processing capability of the ue and the limitation of the usage scenario of the user. The application is not limited in this regard. If all operations are completed in the ue, the ue may further include a processor for specific processing of file coverage detection.
It is understood that the mobile terminal may include any mobile device capable of loading applications, such as a smart phone, a tablet electronic device, a network set top box, a portable computer, a Personal Digital Assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Wherein, intelligent wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
The mobile terminal may have a communication module (i.e. a communication unit) and may be in communication connection with a remote server, so as to implement data transmission with the server. The server may include a server on the side of the task scheduling center, and in other implementations may include a server of an intermediate platform, such as a server of a third party server platform having a communication link with the task scheduling center server. The server may include a single computer device, a server cluster formed by a plurality of servers, or a server structure of a distributed device.
Any suitable network protocol may be used between the server and the mobile terminal, including those not yet developed on the filing date of the present application. The network protocols may include, for example, TCP/IP protocol, UDP/IP protocol, HTTP protocol, HTTPS protocol, etc. Of course, the network protocol may also include, for example, RPC protocol (Remote Procedure Call Protocol ), REST protocol (Representational STATE TRANSFER) or the like used above the above-described protocol.
The following embodiments and application examples are described in detail.
In order to solve the problems of complicated process, low accuracy, low efficiency and the like in the existing statistical method of file coverage conditions in the batch test process of a host, the application provides an embodiment of a file coverage detection method, referring to fig. 2, the file coverage detection method based on the execution of a file coverage detection device specifically comprises the following contents:
Step 100: and in the host batch test process of the target system, according to the transmission check file list corresponding to each host file which is transmitted in batches in each time period, respectively determining batch file coverage results in each time period.
It can be understood that the CHK verification file may be used for transmitting the verification file, that is, the verification file obtained by applying the file integrity verification tool CHK may verify the integrity of the file, so that the size, type, sha and other information of the file may be checked, the CHK may verify that the file information compares the copied/transmitted file, and may also search for and delete duplicate files from the computer and the like.
Step 200: and detecting the file coverage condition of the target software version in the target system based on the corresponding relation between each batch corresponding to the target software version in each time period and the batch file coverage result in each time period so as to obtain file coverage detection result data of the target software version in the target system.
Specifically, in the process of uploading and downloading files, the host batch operation can perform host file transmission verification, so that the consistency of the host uploading and downloading files is ensured. The file transmission needs a data file and a CHK check file, and the specific condition of the actual transmission file in the job, such as file name, file size, file session, batch date and the like, is recorded in the CHK check file. The device aims at uploading and downloading CHK check files to a host after batch, and performs statistical analysis, so that the coverage condition of transmission files across batches can be finally obtained.
As can be seen from the foregoing description, in the file coverage detection method provided by the embodiment of the present application, the file coverage condition of the target software version in the target system currently is detected by obtaining the transmission verification file list corresponding to each host file transmitted in batches, so that the detection accuracy and reliability of the file coverage condition in the host batch test process can be effectively improved, the efficiency and convenience of the file coverage condition process can be effectively improved, the tedious process of the original statistical mode of the file coverage condition can be reduced, and the specific uploading and downloading use condition of the transmission files of a certain batch and a certain batch date in a certain test environment can be confirmed from the host side at any time. The method has the advantages that the test progress is mastered more accurately, the specific test condition of uncovered files is convenient to analyze, a more targeted test plan is formulated, the coverage condition of batch transmission files of the host can be queried under the condition that the backup files are not available even if the time range of recovering the files is exceeded, the statistical result can be completed after the new batch of the host is finished without an upstream platform and a downstream platform, the coverage condition of batch transmission files of the host is directly obtained, the defects in the prior art are overcome, and the coverage result of batch files of the host is mastered more efficiently and accurately.
In order to improve the convenience and efficiency of determining the batch file coverage result in each time period, in one embodiment of the file coverage detection method provided in the present application, referring to fig. 3, step 100 of the file coverage detection method specifically includes the following:
Step 110: collecting a transmission check file list corresponding to each host file transmitted in batches in each time period in a host batch test process of a target system, wherein the transmission check file list comprises: uploading a CHK check file list and downloading the CHK check file list.
Step 120: and respectively generating an uploading batch file coverage result in each time period according to each uploading CHK verification file list, and respectively generating a downloading batch file coverage result in each time period according to each downloading CHK verification file list.
Specifically, one CHK verification file contains one or more file information. Before each batch, the device obtains the file name with the suffix of 'CHK' used in the parameters according to the File Transfer Protocol (FTP) (FILE TRANSFER Protocol) parameters uploaded and downloaded in batches, and obtains a CHK check file list. In PROCLIB libraries of the host, traversing all parameters, reading parameter contents, and sending and downloading CHK check file lists by the host in order to distinguish the uplink and downlink files, respectively grabbing BBB and CCC.
As can be seen from the above description, in the file coverage detection method provided by the embodiment of the present application, by collecting the transmission verification file list corresponding to each host file transmitted in batch in each time period in the host batch test process of the target system, convenience and efficiency for determining batch file coverage results in each time period can be effectively improved, so that accuracy and reliability for detecting file coverage conditions in the host batch test process can be further improved, and efficiency and convenience in the file coverage condition process can be effectively improved.
In order to further improve the convenience and efficiency of determining the file coverage detection result data, in one embodiment of the file coverage detection method provided by the present application, referring to fig. 4, step 200 of the file coverage detection method specifically includes the following:
Step 210: and generating a batch file coverage result of the whole batch of the target software version according to the corresponding relation between each time period and each batch corresponding to the target software version.
Step 220: and generating a covered file list and an uncovered file list which are currently corresponding to the target software version according to the whole batch file coverage result.
Step 230: the pre-stored cross-batch covered file list and cross-batch uncovered file list are recalled.
Step 240: updating the cross-batch covered file list and the cross-batch uncovered file list based on the covered file list and the uncovered file list currently corresponding to the target software version, so as to obtain file coverage detection result data of the target software version currently in the target system.
Specifically, the transmission file coverage of all batch dates in the version is accumulated. After each new batch is completed, the device compares the current batch file statistics (SHRLIB. FYMMDD. N%. YTJFILE/SHRLIB. FYMMDD. N%. NTFILE) accumulated in step 3 with the old batch uncovered file results, and if the file is covered in the current batch, updates the list of covered and uncovered files across batches (SHRLIB. OUTALL. N%. YTFILE/SHRLIB. OUTALL. N%. NTFILE); if all files remain uncovered at the present batch, the across-batch file statistics manifest need not be modified.
That is, after the first cross-batch statistics, the cross-batch covered list shrlb. Outall. N4.Ytfil and the uncovered list shrlb. Outall. N4.Ntfil are generated from the shrlb. F210131.N4.Ytjfil and shrlb. F210131.N4.Ntjfil accumulated in step 3. In the second cross-batch statistics, a new batch covered file statistical result is obtained in the step 3:
The SHRLIB.F210201.N4.YTJFile is compared with the result SHRLIB.OUTALL.N4.NTFILE of the cross-batch uncovered file obtained in the 4 th step in the first cross-batch statistics, if the file is covered in the batch, the updated statistics result: covered list shrib.outall.n4.ytfile and uncovered list shrib.outall n4.ntfile; if all files are not covered in the batch at this time, the cross-batch file statistical list is not required to be modified, and a second cross-batch 4 th step statistical result is finally obtained: the files list (SHRLIB.OUTALL.N4.YTFILE/SHRLIB.OUTALL.N4.NTFILE) is covered and uncovered across batches.
The next 20210202 batch of covered results, again compared to the cross-batch uncovered list shrlb. Outall. N4.Ntfile, continues to update the cross-batch file statistics until the last batch date. The list is not covered by the cross-batch transmission file after each update, and the list can be fed back to corresponding testers to timely remind the business to carry out relevant test verification. The covering condition of the files transmitted in a cross-batch mode can show the covering condition of the test files after a plurality of batches and the like.
As can be seen from the above description, in the file coverage detection method provided by the embodiment of the present application, the cross-batch covered file list and the cross-batch uncovered file list are updated based on the covered file list and the uncovered file list currently corresponding to the target software version, so that convenience and efficiency for determining file coverage detection result data can be effectively improved, further detection accuracy and reliability of file coverage conditions in a host batch test process can be further improved, and efficiency and convenience of a file coverage condition process can be effectively improved.
In order to further improve the reliability and convenience of the application of the batch file coverage result, in one embodiment of the file coverage detection method provided by the present application, referring to fig. 5, step 210 of the file coverage detection method specifically includes the following steps:
step 211: and obtaining the corresponding relation between each pre-stored time period and each batch corresponding to the target software version.
Step 212: and generating batch file coverage results of all batches corresponding to the target software version based on the uploading batch file coverage results and the downloading batch file coverage results in all time periods according to the corresponding relation between all batches corresponding to the target software version in all time periods.
Step 213: and generating a full-batch file coverage result of the target software version based on the batch file coverage result of each batch corresponding to the target software version, wherein the full-batch file coverage result is used for storing the corresponding relation among the identifiers of each CHK verification file, the file size, the batch identifier, the date of batch transmission and the coverage identifier, and the coverage identifier is used for indicating whether file coverage exists.
Specifically, the batch is triggered and executed independently according to the batch, and according to the obtained CHK verification file list, after the end of the daily batch of the current batch date, the device uploads and downloads the CHK verification file list according to the batch summarizing host computer to obtain the batch file coverage result of the current batch. I.e. the contents of all BBB and CCC files in the same batch are summarized to generate a batch transmission file condition list, SHRLIB. FYYMDD. N%. BAT$. YYMMDD represents the current lot date,% represents the environment, $ represents the lot. The file content comprises: CHK verifies information such as filename (BBB/CCC), UP-DOWN filename (bin), application name (F-XXX), batch date (YYYYMMDD), UP-DOWN file (UP/DOWN), overlay flag (e.g., number, indicated by 0 or 1), file size (bytes), etc. And generating file coverage statistical results of M current batch dates by the M batches.
For example, the file coverage statistics of 4 (50, 51, 53, 55) batches in 20210131 batches of 4 sets of environments are named:
SHRLIB.F210131.N4.BAT50;
SHRLIB.F210131.N4.BAT51;
SHRLIB.F210131.N4.BAT53;
SHRLIB.F210131.N4.BAT55。
As can be seen from the foregoing description, according to the file coverage detection method provided by the embodiment of the present application, the full batch file coverage result is used to store the correspondence between the identifier of each CHK verification file, the file size, the batch identifier, the date of batch transmission and the coverage identifier, so that the reliability and convenience of the application of the full batch file coverage result can be effectively improved, and further, the accuracy and reliability of detecting the file coverage condition in the host batch test process can be further improved, and the efficiency and convenience of the file coverage condition process can be effectively improved.
In order to improve the reliability and convenience of the application of the covered file list and the uncovered file list, in one embodiment of the file coverage detection method provided by the present application, referring to fig. 6, step 220 of the file coverage detection method specifically includes the following contents:
Step 221: generating a covered file list and an uncovered file list which are currently corresponding to the target software version according to the identification and the coverage identification of each CHK verification file in the whole batch file coverage result; the covered file list and the uncovered file list are used for storing the corresponding relation among the identification of each CHK check file, the identification of the host file, the identification of the application, the date of batch transmission, the transmission identification and the coverage frequency, wherein the transmission identification is used for representing uploading or downloading, and the coverage frequency is generated according to the coverage identification.
Specifically, after all the daily final batches of all the batches are executed on the current batch date, the device accumulates the coverage condition of the whole batch of each host transmission file on the current batch date according to the single batch transmission file coverage condition list summarized in the step 2. Each host file is matched in the statistics result of the whole batch, the calculated amount is huge, and the matching speed is greatly improved and the searching time is shortened by searching and matching methods of class indexes according to the host file names (BBB/CCC) of the CHK check files. The "number of existence (0/1)" in the case of overlapping a single batch of files is accumulated, and the accumulated output is an overlapped file and an uncovered file. And finally, accumulating the current batch file statistics of the M batches to generate a full batch covered file list SHRLIB.FYYMMD.N%. YTJFILE and a full batch uncovered file list SHRLIB.FYYMMD.N%. NTFILE. The file list includes: CHK checks information such as file name (BBB/CCC), upload file name (bin), download file name (F-XXX), batch date (YYYYMMDD), upload file (UP/DOWN), number of overlays (0/M), etc.
As can be seen from the foregoing description, in the file coverage detection method provided by the embodiment of the present application, the covered file list and the uncovered file list are both used for storing the correspondence among the identifier of each CHK verification file, the identifier of the host file, the application identifier, the date of batch transmission, the transmission identifier and the coverage number, so that the reliability and convenience of the application of the covered file list and the uncovered file list can be effectively improved, further the accuracy and reliability of detecting the file coverage condition in the host batch test process can be further improved, and the efficiency and convenience of the file coverage condition process can be effectively improved.
In order to improve the efficiency and convenience of acquiring the coverage situation of the key host file, in one embodiment of the file coverage detection method provided by the present application, referring to fig. 7, after step 300 or step 240 in the file coverage detection method, the method further specifically includes the following contents:
Step 300: and acquiring the coverage condition of the key host file from the file coverage detection result data of the target software version in the target system according to the preset key host file identification so as to obtain and output a corresponding cross-batch key host file coverage detection result.
In particular, the number of file bases for batch uploading and downloading is very large, and each batch has tens of thousands of transmission files, wherein many of the transmission files are redundant files which do not need to be concerned and covered, and the feedback and follow-up schemes of the output test conditions are not facilitated. In order to grasp the test condition more accurately, a key attention file list is extracted according to key accounting files and version reconstruction files, and compared with the cross-batch file coverage statistical results, the coverage statistical results of the key attention files are obtained, and the key attention files are accurately obtained, so that the cross-batch file coverage condition is transmitted.
As can be seen from the above description, in the file coverage detection method provided by the embodiment of the present application, by acquiring the coverage condition of the key host file from the file coverage detection result data of the target software version in the target system, the efficiency and convenience for acquiring the coverage condition of the key host file can be effectively improved, so that the detection accuracy and reliability of the file coverage condition in the host batch test process can be further improved, and the efficiency and convenience of the file coverage condition process can be effectively improved.
In order to improve the efficiency and convenience of acquiring the coverage situations of batch and full batch key host files, in one embodiment of the file coverage detection method provided by the present application, referring to fig. 8, step 210 or step 213 in the file coverage detection method specifically includes the following contents:
Step 400: according to a preset key host file identifier, acquiring the coverage condition of a key host file from the batch file coverage results of all batches of the target software version in the target system so as to acquire and output a corresponding batch key host file coverage detection result;
step 500: and according to a preset key host file identifier, acquiring the coverage condition of the key host file from the current full-batch file coverage result of the target software version in the target system so as to acquire and output a corresponding full-batch key host file coverage detection result.
In particular, the number of file bases for batch uploading and downloading is very large, and each batch has tens of thousands of transmission files, wherein many of the transmission files are redundant files which do not need to be concerned and covered, and the feedback and follow-up schemes of the output test conditions are not facilitated. In order to more accurately master the test condition, a key attention file list is extracted according to key accounting files and version reconstruction files, and is compared with file coverage statistics results of single batches, whole batches and cross batches to obtain coverage statistics results of key attention files of different dimensions, so that the key attention files are accurately obtained, and file coverage conditions are transmitted in the single batches, the whole batches and the cross batches.
As can be seen from the above description, in the file coverage detection method provided by the embodiment of the present application, the coverage condition of the key host file is obtained from the batch file coverage result of each batch of the target software version in the target system, and the coverage condition of the key host file is obtained from the batch file coverage result of the whole batch of the target software version in the target system, which can effectively improve the efficiency and convenience of obtaining the coverage condition of the key host file of the batch and the whole batch, further can further improve the detection accuracy and reliability of the file coverage condition in the batch test process of the host, and can effectively improve the efficiency and convenience of the file coverage condition process.
In order to solve the problems of complicated process, low accuracy, low efficiency and the like in the existing statistical method of file coverage conditions in the batch test process of the host, the application provides an embodiment of a file coverage detection device for executing all or part of the content in the file coverage detection method, and referring to fig. 9, the file coverage detection device specifically comprises the following contents:
and the list application module 10 is used for respectively determining batch file coverage results in each time period according to the transmission verification file list corresponding to each host file transmitted in batch in each time period in the host batch test process of the target system.
The coverage detection module 20 is configured to detect a file coverage condition of the target software version currently in the target system based on a correspondence between each batch corresponding to the target software version in each time period and a batch file coverage result in each time period, so as to obtain file coverage detection result data of the target software version currently in the target system.
The embodiment of the file coverage detection device provided by the application can be specifically used for executing the processing flow of the embodiment of the file coverage detection method in the embodiment, and the functions of the embodiment of the file coverage detection device are not repeated herein, and can be referred to in the detailed description of the embodiment of the method.
As can be seen from the foregoing description, the file coverage detection device provided by the embodiment of the present application detects the current file coverage situation of the target software version in the target system by obtaining the transmission verification file list corresponding to each host file transmitted in batches, so that the detection accuracy and reliability of the file coverage situation in the host batch test process can be effectively improved, the efficiency and convenience of the file coverage situation process can be effectively improved, the complicated process of the original statistical mode of the file coverage situation can be reduced, and the specific uploading and downloading use situation of the transmission files of a certain batch and a certain batch date in a certain test environment can be confirmed from the host side at any time. The method has the advantages that the test progress is mastered more accurately, the specific test condition of uncovered files is convenient to analyze, a more targeted test plan is formulated, the coverage condition of batch transmission files of the host can be queried under the condition that the backup files are not available even if the time range of recovering the files is exceeded, the statistical result can be completed after the new batch of the host is finished without an upstream platform and a downstream platform, the coverage condition of batch transmission files of the host is directly obtained, the defects in the prior art are overcome, and the coverage result of batch files of the host is mastered more efficiently and accurately.
In order to further explain the scheme, the application example of the application provides a file coverage detection method, overcomes the defects in the prior art, obtains the use condition of the host computer uploading and downloading files after each batch, counts the coverage condition of the files, and accurately obtains the host computer batch transmission file coverage statistical results with different statistical dimensions.
The application example of the application also provides a batch transmission file statistics device for realizing the file coverage detection method. And in the process of uploading and downloading files, the host batch operation can carry out host file transmission verification, so that the consistency of the files uploaded and downloaded by the host is ensured. The file transmission needs a data file and a CHK check file, and the specific condition of the actual transmission file in the job, such as file name, file size, file session, batch date and the like, is recorded in the CHK check file. The device aims at uploading and downloading CHK check files to a host after batch, and performs statistical analysis, so that the coverage condition of transmission files across batches can be finally obtained.
Referring to fig. 10, the batch transmission file statistics device includes the following functions:
(1) Single batch file coverage statistics;
(2) Carrying out total batch file coverage statistics;
(3) Cross-batch file coverage statistics;
(4) And (5) covering and counting key files.
Referring to fig. 11, the file coverage detection method implemented by using the batch transmission file statistics device specifically includes the following contents:
1. obtaining CHK check file name
One CHK verification file contains one or more file information. Before each batch, the device obtains the file name with the suffix of 'CHK' used in the parameters according to the File Transfer Protocol (FTP) (FILE TRANSFER Protocol) parameters uploaded and downloaded in batches, and obtains a CHK check file list. In PROCLIB libraries of the host, traversing all parameters, reading parameter contents, and sending and downloading CHK check file lists by the host in order to distinguish the uplink and downlink files, respectively grabbing BBB and CCC.
2. Summarizing single batch file coverage conditions
The batch is triggered and executed independently according to the batch, and according to the CHK verification file list obtained in the step 1, after the end of the daily final batch of the current batch date, the device sends and downloads the CHK verification file list according to the batch summarizing host computer to obtain the batch file coverage result of the current batch. I.e. the contents of all BBB and CCC files in the same batch are summarized to generate a batch transmission file condition list, SHRLIB. FYYMDD. N%. BAT$. YYMMDD represents the current lot date,% represents the environment, $ represents the lot. The file content comprises: the CHK checks information such as file name (BBB/CCC), UP-DOWN file name (bin), application name (F-XXX), batch date (YYYYMMDD), UP-DOWN file (UP/DOWN), number (0/1), file size (bytes), etc. And generating file coverage statistical results of M current batch dates by the M batches.
For example, the file coverage statistics of 4 (50, 51, 53, 55) batches in 20210131 batches of 4 sets of environments are named:
SHRLIB.F210131.N4.BAT50;
SHRLIB.F210131.N4.BAT51;
SHRLIB.F210131.N4.BAT53;
SHRLIB.F210131.N4.BAT55。
3. Accumulating the coverage of the whole batch of files
And under the current batch date, after all daily final batches of all batches are executed, accumulating the coverage condition of the whole batch of each host transmission file under the current batch date according to the single batch transmission file coverage condition list summarized in the step 2. Each host file is matched in the statistics result of the whole batch, the calculated amount is huge, and the matching speed is greatly improved and the searching time is shortened by searching and matching methods of class indexes according to the host file names (BBB/CCC) of the CHK check files. The "number of existence (0/1)" in the case of overlapping a single batch of files is accumulated, and the accumulated output is an overlapped file and an uncovered file. And finally, accumulating the current batch file statistics of the M batches to generate a full batch covered file list SHRLIB.FYYMMD.N%. YTJFILE and a full batch uncovered file list SHRLIB.FYYMMD.N%. NTFILE. The file list includes: CHK checks information such as file name (BBB/CCC), upload file name (bin), download file name (F-XXX), batch date (YYYYMMDD), upload file (UP/DOWN), number of overlays (0/M), etc.
4. Accumulating cross-batch file coverage conditions
Accumulating the transmission file coverage of all batch dates in the version. After each new batch is completed, the device calculates the result (SHRLIB. FYYMMDD. N%. YTJFILE-
Shrib.fyymmdd.n%. NTFILE) and old lot uncovered file results, if the file is covered in the present lot, updating the list of covered and uncovered files across lots (shrib.outall.n%. YTFILE/shrib.outall.n%. NTFILE). If all files remain uncovered at the present batch, the across-batch file statistics manifest need not be modified.
That is, after the first cross-batch statistics, the cross-batch covered list shrlb. Outall. N4.Ytfil and the uncovered list shrlb. Outall. N4.Ntfil are generated from the shrlb. F210131.N4.Ytjfil and shrlb. F210131.N4.Ntjfil accumulated in step 3. In the second cross-batch statistics, a new batch covered file statistical result is obtained in the step 3:
The SHRLIB.F210201.N4.YTJFile is compared with the result SHRLIB.OUTALL.N4.NTFILE of the cross-batch uncovered file obtained in the 4 th step in the first cross-batch statistics, if the file is covered in the batch, the updated statistics result: covered list shrib.outall.n4.ytfile and uncovered list shrib.outall n4.ntfile; if all files are not covered in the batch at this time, the cross-batch file statistical list is not required to be modified, and a second cross-batch 4 th step statistical result is finally obtained: the files list (SHRLIB.OUTALL.N4.YTFILE/SHRLIB.OUTALL.N4.NTFILE) is covered and uncovered across batches.
The next 20210202 batch of covered results, again compared to the cross-batch uncovered list shrlb. Outall. N4.Ntfile, continues to update the cross-batch file statistics until the last batch date. The list is not covered by the cross-batch transmission file after each update, and the list can be fed back to corresponding testers to timely remind the business to carry out relevant test verification. The covering condition of the files transmitted in a cross-batch mode can show the covering condition of the test files after a plurality of batches and the like.
5. Comparing heavy file coverage
The number of the file bases of the batch uploading and downloading of the whole quantity is very large, each batch has tens of thousands of transmission files, and many of the transmission files are redundant files which do not need to be concerned and covered, so that feedback and follow-up schemes of testing conditions are not facilitated to be output. In order to more accurately master the test condition, a key attention file list is extracted according to key accounting files and version reconstruction files, and is compared with file coverage statistics results of single batches, whole batches and cross batches to obtain coverage statistics results of key attention files of different dimensions, so that the key attention files are accurately obtained, and file coverage conditions are transmitted in the single batches, the whole batches and the cross batches.
For example, when the overlay condition of 210202 batches of overseas two sets of AFPCTRA.BIN files in the overseas whole batch (20 batches) is needed, the device can be triggered and implemented in the host environment after 20210202 host daily final batches are completed, file transmission information of the AFPCTRA.BIN can be searched in SHRLIB.F210202.N2.YTJFILE, and information such as CHK check file name (NGFACNT.CBBSA.B0$ AFCKT 200), application name (F-ABDB), batch date (20210202), uploading and downloading file (DOWN), overlay times (9) and the like can be obtained. The statistical result is not influenced by factors such as follow-up batch and splitting efficiency of an upstream platform and a downstream platform, the specific test condition of the file in the whole batch can be quickly known, the test condition of the file can be more efficiently obtained, and the whole test progress can be conveniently tracked.
The application example of the application has the following effects and advantages:
1. Multi-dimension
The application example of the application counts the coverage condition of batch transmission files of the host from single batch, whole batch and cross batch, and a plurality of dimensions, and can confirm the specific uploading and downloading use condition of the transmission files of a certain batch and a certain batch date in a certain set of testing environment from the host side at any time. The test progress is mastered more accurately, the specific test condition of uncovered files is analyzed conveniently, and a more targeted test plan is made.
2. Make up for the technical deficiency
The application example of the application ensures that the coverage of the batch files of the host is confirmed, does not depend on the mode of recovering the host files any more, increases a device for counting the coverage of the batch files of the host, even if the time scope of recovering the files is exceeded, the coverage condition of batch transmission files of the host can be inquired by using the application example of the application under the condition that the files are not backed up, and the statistics result can be completed after the new batch of the host is finished without an upstream platform and a downstream platform, thereby directly obtaining the coverage condition of the batch transmission files of the host, making up the defects in the prior art, and grasping the coverage result of the batch files of the host more efficiently and accurately.
3. Wide application range
The application example device of the application is applicable to domestic and overseas test environments, and can be used for knowing the test conditions of specific branch business personnel. The application example of the application has wide application range and multiple angles, and the device matched system can be popularized to a plurality of platforms for use.
In order to solve the problems of complicated process, low accuracy, low efficiency and the like in the existing statistical method of file coverage conditions in the batch test process of a host, the application provides an embodiment of electronic equipment for realizing all or part of contents in the file coverage detection method, and the electronic equipment specifically comprises the following contents:
Fig. 12 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 12, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 12 is exemplary; other types of structures may also be used in addition to or in place of the structures to implement telecommunications functions or other functions.
In one embodiment, the file coverage detection functionality may be integrated into the central processor. Wherein the central processor may be configured to control:
Step 100: and in the host batch test process of the target system, according to the transmission check file list corresponding to each host file which is transmitted in batches in each time period, respectively determining batch file coverage results in each time period.
Step 200: and detecting the file coverage condition of the target software version in the target system based on the corresponding relation between each batch corresponding to the target software version in each time period and the batch file coverage result in each time period so as to obtain file coverage detection result data of the target software version in the target system.
As can be seen from the above description, in the electronic device provided by the embodiment of the present application, the file coverage condition of the target software version in the target system currently is detected by obtaining the transmission verification file list corresponding to each host file transmitted in batches, so that the detection accuracy and reliability of the file coverage condition in the host batch test process can be effectively improved, the efficiency and convenience of the file coverage condition process can be effectively improved, the tedious process of the original statistical mode of the file coverage condition can be reduced, and the specific uploading and downloading use condition of the transmission files of a certain batch and a certain batch date in a certain test environment can be confirmed from the host side at any time. The method has the advantages that the test progress is mastered more accurately, the specific test condition of uncovered files is convenient to analyze, a more targeted test plan is formulated, the coverage condition of batch transmission files of the host can be queried under the condition that the backup files are not available even if the time range of recovering the files is exceeded, the statistical result can be completed after the new batch of the host is finished without an upstream platform and a downstream platform, the coverage condition of batch transmission files of the host is directly obtained, the defects in the prior art are overcome, and the coverage result of batch files of the host is mastered more efficiently and accurately.
In another embodiment, the document coverage detecting device may be configured separately from the cpu 9100, for example, the document coverage detecting device may be configured as a chip connected to the cpu 9100, and the document coverage detecting function is implemented by control of the cpu.
As shown in fig. 12, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 need not include all of the components shown in fig. 12; in addition, the electronic device 9600 may further include components not shown in fig. 12, and reference may be made to the related art.
As shown in fig. 12, the central processor 9100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, which central processor 9100 receives inputs and controls the operation of the various components of the electronic device 9600.
The memory 9140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information about failure may be stored, and a program for executing the information may be stored. And the central processor 9100 can execute the program stored in the memory 9140 to realize information storage or processing, and the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, but not limited to, an LCD display.
The memory 9140 may be a solid state memory such as Read Only Memory (ROM), random Access Memory (RAM), SIM card, etc. But also a memory which holds information even when powered down, can be selectively erased and provided with further data, an example of which is sometimes referred to as EPROM or the like. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 storing application programs and function programs or a flow for executing operations of the electronic device 9600 by the central processor 9100.
The memory 9140 may also include a data store 9143, the data store 9143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, address book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. A communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, as in the case of conventional mobile communication terminals.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, etc., may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and to receive audio input from the microphone 9132 to implement usual telecommunications functions. The audio processor 9130 can include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100 so that sound can be recorded locally through the microphone 9132 and sound stored locally can be played through the speaker 9131.
An embodiment of the present application also provides a computer-readable storage medium capable of implementing all steps in the file coverage detection method in the above embodiment, the computer-readable storage medium storing thereon a computer program that when executed by a processor implements all steps in the file coverage detection method in which an execution subject in the above embodiment is a server or a client, for example, the processor implements the following steps when executing the computer program:
Step 100: and in the host batch test process of the target system, according to the transmission check file list corresponding to each host file which is transmitted in batches in each time period, respectively determining batch file coverage results in each time period.
Step 200: and detecting the file coverage condition of the target software version in the target system based on the corresponding relation between each batch corresponding to the target software version in each time period and the batch file coverage result in each time period so as to obtain file coverage detection result data of the target software version in the target system.
As can be seen from the foregoing description, the computer readable storage medium provided by the embodiment of the present application detects the current file coverage situation of the target software version in the target system by obtaining the transmission verification file list corresponding to each host file transmitted in batches, so that the accuracy and reliability of detecting the file coverage situation in the host batch test process can be effectively improved, the efficiency and convenience of the file coverage situation process can be effectively improved, the tedious process of the original statistical method of the file coverage situation can be reduced, and the specific uploading and downloading use situation of the transmission files of a certain batch and a certain batch date in a certain test environment can be confirmed from the host side at any time. The method has the advantages that the test progress is mastered more accurately, the specific test condition of uncovered files is convenient to analyze, a more targeted test plan is formulated, the coverage condition of batch transmission files of the host can be queried under the condition that the backup files are not available even if the time range of recovering the files is exceeded, the statistical result can be completed after the new batch of the host is finished without an upstream platform and a downstream platform, the coverage condition of batch transmission files of the host is directly obtained, the defects in the prior art are overcome, and the coverage result of batch files of the host is mastered more efficiently and accurately.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principles and embodiments of the present invention have been described in detail with reference to specific examples, which are provided to facilitate understanding of the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (10)
1. A document coverage detection method, comprising:
In the host batch test process of the target system, according to transmission check file lists corresponding to all host files which are transmitted in batches in all time periods, batch file coverage results in all time periods are respectively determined;
Based on the corresponding relation between each batch corresponding to each time period and the target software version and the batch file coverage result in each time period, detecting the file coverage condition of the target software version in the target system so as to obtain file coverage detection result data of the target software version in the target system, wherein the detection result data specifically comprises:
Generating a batch file coverage result of the whole batch of the target software version according to the corresponding relation between each time period and each batch corresponding to the target software version;
Generating a covered file list and an uncovered file list which are currently corresponding to the target software version according to the whole batch file coverage result;
invoking a pre-stored cross-batch covered file list and a cross-batch uncovered file list;
Updating the cross-batch covered file list and the cross-batch uncovered file list based on the covered file list and the uncovered file list currently corresponding to the target software version, so as to obtain file coverage detection result data of the target software version currently in the target system.
2. The method for detecting file coverage according to claim 1, wherein in the batch test process of the host of the target system, according to the transmission check file list corresponding to each host file batch transmitted in each time period, determining batch file coverage results in each time period respectively includes:
Collecting a transmission check file list corresponding to each host file transmitted in batches in each time period in a host batch test process of a target system, wherein the transmission check file list comprises: uploading a CHK check file list and downloading the CHK check file list;
And respectively generating an uploading batch file coverage result in each time period according to each uploading CHK verification file list, and respectively generating a downloading batch file coverage result in each time period according to each downloading CHK verification file list.
3. The method for detecting file coverage according to claim 1, wherein the generating a full batch file coverage result of the target software version according to the correspondence between each batch corresponding to the target software version in each time period includes:
Acquiring the corresponding relation between each pre-stored time period and each batch corresponding to the target software version;
generating batch file coverage results of all batches corresponding to the target software version based on the uploading batch file coverage results and the downloading batch file coverage results in all time periods according to the corresponding relation between all batches corresponding to the target software version in all time periods;
And generating a full-batch file coverage result of the target software version based on the batch file coverage result of each batch corresponding to the target software version, wherein the full-batch file coverage result is used for storing the corresponding relation among the identifiers of each CHK verification file, the file size, the batch identifier, the date of batch transmission and the coverage identifier, and the coverage identifier is used for indicating whether file coverage exists.
4. The method for detecting file coverage according to claim 3, wherein generating the covered file list and the uncovered file list currently corresponding to the target software version according to the full batch file coverage result includes:
Generating a covered file list and an uncovered file list which are currently corresponding to the target software version according to the identification and the coverage identification of each CHK verification file in the whole batch file coverage result;
The covered file list and the uncovered file list are used for storing the corresponding relation among the identification of each CHK check file, the identification of the host file, the identification of the application, the date of batch transmission, the transmission identification and the coverage frequency, wherein the transmission identification is used for representing uploading or downloading, and the coverage frequency is generated according to the coverage identification.
5. The document coverage detection method according to any one of claims 1 to 4, further comprising:
And acquiring the coverage condition of the key host file from the file coverage detection result data of the target software version in the target system according to the preset key host file identification so as to obtain and output a corresponding cross-batch key host file coverage detection result.
6. The document coverage detection method of claim 3, further comprising:
According to a preset key host file identifier, acquiring the coverage condition of a key host file from the batch file coverage results of all batches of the target software version in the target system so as to acquire and output a corresponding batch key host file coverage detection result;
And acquiring the coverage condition of the key host files from the current full-batch file coverage result of the target software version in the target system according to the preset key host file identification so as to obtain and output a corresponding full-batch key host file coverage detection result.
7. A document coverage detection apparatus, comprising:
the list application module is used for respectively determining batch file coverage results in each time period according to the transmission verification file list corresponding to each host file transmitted in batch in each time period in the host batch test process of the target system;
The coverage detection module is used for detecting the file coverage condition of the target software version in the target system currently based on the corresponding relation between each time period and each batch corresponding to the target software version and the batch file coverage result in each time period so as to obtain file coverage detection result data of the target software version in the target system currently;
The coverage detection module is specifically configured to generate a batch file coverage result of the whole batch of the target software version according to the correspondence between each time period and each batch corresponding to the target software version; generating a covered file list and an uncovered file list which are currently corresponding to the target software version according to the whole batch file coverage result; invoking a pre-stored cross-batch covered file list and a cross-batch uncovered file list; updating the cross-batch covered file list and the cross-batch uncovered file list based on the covered file list and the uncovered file list currently corresponding to the target software version, so as to obtain file coverage detection result data of the target software version currently in the target system.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the file coverage detection method of any of claims 1 to 6 when executing the computer program.
9. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program, when executed by a processor, implements the file coverage detection method of any of claims 1 to 6.
10. A computer program product comprising computer program/instructions which, when executed by a processor, implement the file coverage detection method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110843160.2A CN113505076B (en) | 2021-07-26 | 2021-07-26 | File coverage detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110843160.2A CN113505076B (en) | 2021-07-26 | 2021-07-26 | File coverage detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113505076A CN113505076A (en) | 2021-10-15 |
CN113505076B true CN113505076B (en) | 2024-08-02 |
Family
ID=78014627
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110843160.2A Active CN113505076B (en) | 2021-07-26 | 2021-07-26 | File coverage detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113505076B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114513498B (en) * | 2021-12-29 | 2024-04-02 | 广东电网有限责任公司广州供电局 | File transmission verification method, device, computer equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104318160A (en) * | 2014-10-29 | 2015-01-28 | 北京奇虎科技有限公司 | Malware searching and killing method and device |
CN111209206A (en) * | 2020-01-13 | 2020-05-29 | 卡斯柯信号(北京)有限公司 | Automatic test method and system for software product |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10402310B1 (en) * | 2018-03-30 | 2019-09-03 | Atlassian Pty Ltd | Systems and methods for reducing storage required for code coverage results |
CN112732660B (en) * | 2021-01-05 | 2024-02-27 | 中国工商银行股份有限公司 | Intervening file transmission method, device and system |
CN112783795B (en) * | 2021-02-22 | 2024-02-09 | 中国工商银行股份有限公司 | Software test coverage rate detection method and system |
-
2021
- 2021-07-26 CN CN202110843160.2A patent/CN113505076B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104318160A (en) * | 2014-10-29 | 2015-01-28 | 北京奇虎科技有限公司 | Malware searching and killing method and device |
CN111209206A (en) * | 2020-01-13 | 2020-05-29 | 卡斯柯信号(北京)有限公司 | Automatic test method and system for software product |
Also Published As
Publication number | Publication date |
---|---|
CN113505076A (en) | 2021-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107896244B (en) | Version file distribution method, client and server | |
CN110290049B (en) | Message pushing method, server and computer readable storage medium | |
CN113946358A (en) | Automatic driving vehicle software remote upgrading method based on vehicle management system | |
CN104503780A (en) | Method and device for providing application channel packet | |
CN110659202A (en) | Client automatic testing method and device | |
CN112115049B (en) | Application program testing method, device, equipment and computer readable storage medium | |
CN104468288A (en) | Terminal network data testing method and device | |
CN113505076B (en) | File coverage detection method and device | |
CN113051094B (en) | Supervision data reporting test method and device | |
CN111552484A (en) | Application package distribution method, device, equipment and storage medium | |
CN112732660B (en) | Intervening file transmission method, device and system | |
CN111930625B (en) | Log acquisition method, device and system based on cloud service platform | |
CN113485952A (en) | Data batch transmission method and device | |
CN112084114B (en) | Method and apparatus for testing interfaces | |
CN105227351A (en) | Log acquisition system, journal obtaining method and electronic equipment | |
CN110244968B (en) | Charging station management system and method | |
TW202413968A (en) | Product line test method and test system | |
CN113485742B (en) | Host application version registration method and device | |
CN114285657B (en) | Firewall security policy change verification method and device | |
CN114285774B (en) | Flow recording method and device, electronic equipment and storage medium | |
CN111338642B (en) | Method, device, terminal and storage medium for determining application download path | |
CN112445697B (en) | Method and apparatus for testing applications | |
CN115705258A (en) | Test method, test device, storage medium and electronic equipment | |
CN114422330A (en) | Communication adaptation repairing method, device, system and storage medium | |
CN113535558A (en) | Software version transmission method and device |
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 |