Configuration data processing method and device, equipment and medium
By obtaining test configuration data information and automated merging process, the problem of complex and inefficient coverage file merging process is solved, and the effect of automated merging and data integrity is achieved.
Patent Information
- Application Number
- CN202311010047.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-10
- Publication Date
- 2025-02-18
AI Technical Summary
The prior art requires manual writing of merge commands when merging coverage files, resulting in complex and easy to miss, which reduces the merge efficiency.
By obtaining the test configuration data information associated with the test object, determine the business merge mode, search path, search time period and output path of the file to be merged, automatically obtain the file information of the coverage file, and find the file generation time stamp in the specified time period. The files inside are called to the file merge command for merge processing.
An automated coverage file merging process is implemented, reducing the need for manual writing of commands, improving merging efficiency, and ensuring the integrity of the merged data.
Smart Images

Figure CN119474022A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a configuration data processing method, device, equipment and medium. Background Art
[0002] Currently, testers can test the test object (for example, the integrated circuit of a module of a chip) and obtain a coverage file for measuring the completeness of the test. Since the test points tested on the test object (for example, the port and state machine in the module integrated circuit) may be different each time the test is performed, the test object will be tested multiple times, so the coverage files obtained from multiple tests need to be merged to obtain complete coverage data.
[0003] However, it is found in practice that when merging coverage files, it is necessary to manually write a merge command for each coverage file to be merged. For example, if the coverage files to be merged are files 1-10, it is necessary to write a merge command for each file in files 1-10 in turn. Then, if there are a large number of coverage files that need to be merged, the complexity and difficulty of the entire merging process will increase when writing the merge command, and it is easy to omit the writing of the merge command of a certain coverage file, and then the obtained coverage data will be incomplete. Therefore, if the coverage data after the merger is to be complete, the test personnel need to spend a lot of working time to confirm whether the coverage file with the merge command is accurate, which leads to low efficiency in merging coverage files. Summary of the invention
[0004] The embodiments of the present application provide a configuration data processing method, apparatus, device and medium, which can improve the merging efficiency of coverage files.
[0005] On the one hand, an embodiment of the present application provides a configuration data processing method, the method comprising:
[0006] Acquire test configuration data information associated with the test object; the test configuration data information includes a mode configuration field, a retrieval path configuration field, a retrieval time configuration field, and an output path configuration field; the mode configuration field is used to describe the business merging mode of the to-be-merged file associated with the test object, the retrieval path configuration field is used to describe the business file retrieval path associated with the to-be-merged file, the retrieval time configuration field is used to describe the file retrieval time period associated with the to-be-merged file, and the output path configuration field is used to describe the merged file output path associated with the to-be-merged file;
[0007] Based on the business merging mode and the business file retrieval path, file information of the coverage file of the test object is obtained; the file information of a coverage file includes a file generation timestamp of the coverage file;
[0008] Searching for file information of a coverage file of a test object whose file generation timestamp is within a file retrieval time period in the file information of the coverage file;
[0009] When the file information of the coverage file whose file generation timestamp is found within the file retrieval time period is used as the file information of the file to be merged, the file merge command of the file to be merged is called to obtain the file storage path in the file information of the file to be merged, and the file to be merged is processed based on the obtained file storage path to obtain a merged coverage file of the test object stored in the merged file output path.
[0010] On the one hand, an embodiment of the present application provides a configuration data processing device, the device comprising:
[0011] A configuration information acquisition module is used to acquire test configuration data information associated with the test object; the test configuration data information includes a mode configuration field, a retrieval path configuration field, a retrieval time configuration field and an output path configuration field; the mode configuration field is used to describe the business merging mode of the to-be-merged file associated with the test object, the retrieval path configuration field is used to describe the business file retrieval path associated with the to-be-merged file, the retrieval time configuration field is used to describe the file retrieval time period associated with the to-be-merged file, and the output path configuration field is used to describe the merged file output path associated with the to-be-merged file;
[0012] A file information acquisition module is used to acquire file information of a coverage file of a test object based on a business merging mode and a business file retrieval path; the file information of a coverage file includes a file generation timestamp of the coverage file;
[0013] A file information search module, used to search the file information of the coverage file of the test object for the file information of the coverage file whose file generation timestamp is within the file retrieval time period;
[0014] The file merging module is used to call the file merging command of the file to be merged when the file information of the coverage file whose file generation timestamp is within the file retrieval time period is used as the file information of the file to be merged, obtain the file storage path in the file information of the file to be merged, perform file merging processing on the file to be merged based on the obtained file storage path, and obtain a merged coverage file of the test object for storing in the merged file output path.
[0015] On one hand, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory is connected to the processor, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method provided in the above aspect of the embodiment of the present application.
[0016] On one hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded and executed by a processor, so that a computer device with a processor executes the method provided in the above aspect of the embodiment of the present application.
[0017] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method provided in the above aspect.
[0018] In an embodiment of the present application, a merging mechanism for coverage files is provided, which can obtain test configuration data information associated with a test object, and through the test configuration data information, the business merging mode, business file retrieval path, file retrieval time period, and merged file output path of the files to be merged associated with the test object can be determined; based on the business merging mode and the business file retrieval path, the file information of the coverage file of the test object can be obtained, and then the file information of the coverage file whose file generation timestamp is within the file retrieval time period can be found as the file information of the files to be merged, that is, the file information of all the files to be merged that need to be merged can be obtained through the provided test configuration data information. Without the need to write a file merge command for each file to be merged to obtain the file information of all the files to be merged that need to be merged, the file merge command of the file to be merged can be called to intelligently obtain the file storage path in the file information of the file to be merged, so that all the files to be merged that need to be merged can be accurately obtained based on the file storage path, and then the obtained files to be merged can be merged to obtain a merged coverage file. This ensures that all coverage files that are files to be merged can be merged accurately without omissions or errors in the coverage files to be merged, and can optimize the merging process for coverage files, thereby improving the merging efficiency for coverage files. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 This is a schematic diagram of a network architecture provided by an embodiment of the present application;
[0021] Figure 2 It is a schematic diagram of a process of configuration data processing provided by an embodiment of the present application;
[0022] Figure 3 This is a flow diagram of a configuration data processing method provided in an embodiment of the present application. Figure 1 ;
[0023] Figure 4 This is a schematic diagram of a file merging scenario in a personal mode provided in an embodiment of the present application;
[0024] Figure 5 This is a schematic diagram of a file merging scenario in a multi-person mode provided by an embodiment of the present application;
[0025] Figure 6 This is a flow diagram of a configuration data processing method provided in an embodiment of the present application. Figure 2 ;
[0026] Figure 7 This is a schematic diagram of a test configuration interface provided in an embodiment of the present application. Figure 1 ;
[0027] Figure 8 This is a schematic diagram of a test configuration interface provided in an embodiment of the present application. Figure 2 ;
[0028] Fig. 9 It is a configuration diagram of test configuration data information provided by an embodiment of the present application;
[0029] Fig.10 This is a schematic diagram of a file merging scenario in a hybrid mode provided in an embodiment of the present application;
[0030] Fig.11 This is a schematic diagram of a file merging process provided by an embodiment of the present application;
[0031] Fig.12 This is a schematic diagram of a configuration interface of a merge mode provided in an embodiment of the present application;
[0032] Fig.13 is a structural diagram of a configuration data processing device provided in an embodiment of the present application;
[0033] Fig.14 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0035] See also Figure 1 , Figure 1 Schematic diagram of a network architecture provided by an embodiment of the present application. Figure 1 As shown, the system architecture may include a service server 100 and a service terminal cluster, wherein the service terminal cluster may include one or more service terminals (such as user terminals), and the number of service terminals in the service terminal cluster is not limited. Figure 1 As shown, the multiple service terminals in the service terminal cluster may specifically include: service terminal 200a, service terminal 200b, ..., service terminal 200n, wherein there may be a communication connection between the service terminal clusters, for example, there is a communication connection between service terminal 200a and service terminal 200b, and there is a communication connection between service terminal 200a and service terminal 200n. At the same time, any service terminal in the service terminal cluster may have a communication connection with the service server 100, so that each service terminal in the service terminal cluster may exchange data with the service server 100 through the communication connection, for example, there is a communication connection between service terminal 200a and service server 100. The above-mentioned communication connection does not limit the connection mode, and may be directly or indirectly connected through a wired communication mode, or directly or indirectly connected through a wireless communication mode, or through other modes, which are not limited in this application.
[0036] It should be understood that Figure 1 Each service terminal in the service terminal cluster shown in FIG. 1 may be installed with an application client for configuring data processing. When the application client runs in each service terminal, it may be respectively connected to the above-mentioned Figure 1The application client can be any type of client, such as a social client, an image processing client, an instant messaging client (e.g., a conference client), an entertainment client (e.g., a game client, a live broadcast client), a multimedia client (e.g., a video client), an information client (e.g., a news client), a shopping client, a car client, a test client, etc., which have the function of displaying data information such as text, images, audio, and video.
[0037] For example, here, the data interaction process between the service terminal 200a and the service server 100 is described by taking the application client as the test client. The test client refers to a client that can send and receive Internet messages instantly and has information search functions, etc. The service server 100 may be configured with a test module. The service terminal 200a may call the test module on the service server 100 through the test client to test the test object and obtain a data file set. Subsequently, the service terminal 200a may configure the test configuration data information associated with the test object, and the service server 100 may call the test module to obtain the test configuration data information, and obtain the to-be-merged file from the data file set based on the test configuration data information, and may output the merged coverage file after the to-be-merged file is merged to the service terminal 200a.
[0038] Optionally, it is understandable that the test module involved in the embodiment of the present application may also be fully or partially integrated in the service terminal, and the service terminal directly determines and merges the files to be merged through the test module.
[0039] It can be understood that the computer device involved in the embodiment of the present application can be a server (for example, Figure 1 The service server 100 shown in FIG. 1 may also be a terminal (for example, Figure 1 Any one of the business terminal clusters shown). Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, car terminal, etc., but is not limited to this.
[0040] Understandably, Figure 1It is only an example to characterize the possible network architecture of the technical solution of the present application, and does not limit the specific architecture of the technical solution of the present application, that is, the technical solution of the present application can also provide other forms of network architecture.
[0041] For further information, see Figure 2 , Figure 2 is a schematic diagram of a coverage file merging process provided by an embodiment of the present application. Figure 2 The computer device 20 shown may be the above-mentioned Figure 1 The business server 100 or any business terminal in the business terminal cluster (for example, business terminal 200a) in the corresponding embodiment is not limited here, and the computer device 20 is taken as an example of the business server. The computer device 20 obtains the test configuration data information 22 associated with the test object 21, and can obtain the coverage file to be merged (that is, represented as the file to be merged 23) through the test configuration data information. The test configuration data information includes a mode configuration field 24, a retrieval path configuration field 25, a retrieval time configuration field 26 and an output path configuration field 27; the mode configuration field is used to describe the business merging mode 28 with the file to be merged, the retrieval path configuration field is used to describe the business file retrieval path 29 associated with the file to be merged, the retrieval time configuration field is used to describe the file retrieval time period 210 associated with the file to be merged, and the output path configuration field is used to describe the merged file output path associated with the file to be merged. Path 211; based on the business merge mode and the business file retrieval path, obtain the file information 212 of the coverage file of the test object; wherein, the file information of a coverage file includes a file generation timestamp of the coverage file; therefore, the file information of the coverage file whose file generation timestamp is within the file retrieval time period can be searched in the file information of the coverage file of the test object, as the file information 213 of the file to be merged; call the file merge command 214 of the file to be merged, obtain the file storage path 215 in the file information of the file to be merged, perform file merge processing on the file to be merged 23 based on the obtained file storage path, and obtain a merged coverage file 216 of the test object for storage in the merged file output path.
[0042] It should be understood that the business scenario involved in the embodiment of the present application can be a coverage merging scenario. The test object can be any type of test object. For example, the technical solution of the present application can be applied to the field of chips and semiconductors, that is, the test object can be an integrated circuit associated with chips and semiconductors at this time. For example, after the chip development is completed, it is necessary to perform simulation testing on the integrated circuit of the chip, such as testing the test points (such as state machines, ports, etc.) in a module integrated circuit of the chip through written test cases, and obtaining a coverage file for the integrated circuit, such as a percentage of stimulus issuance for indicating a test point, or indicating whether a line of code of the integrated circuit is executed.
[0043] As another example, the test object can be a software program. For example, after an application is developed, it is necessary to perform software testing on the program code of the application to obtain the coverage file of the application. For example, if the application is designed based on the demand for music playback, the program code of the application implements the relevant execution logic of the music playback demand (such as music playback, music downloading), etc. The technical solution of the present application is to realize the intelligent merging of coverage files. The types and scenarios of the test objects are not limited here. The test object can be any object that can be tested by the tester to obtain the corresponding coverage file.
[0044] Among them, it can be understood that the coverage data obtained by testing the test object can be any type of coverage data. Regression testing of the test object refers to the tester inputting different random seed numbers according to the test cases written by himself, so as to generate different stimuli as the input information of the test point, so as to achieve a process close to fully performing the test verification. For example, the coverage data can be functional coverage (used to verify the test integrity of the test point, specifically to count the percentage of the stimulus issued by the corresponding test point, which is one of the standards used by the front-end verifier (tester) to illustrate the degree of verification), or code coverage (for example, according to the stimulus issued by the verification test point, to count whether each component in the integrated circuit runs the current line of code, whether the port is flipped, whether there is state machine coverage, etc., which is one of the standards used by the front-end verifier to illustrate the degree of verification), etc. It can be specifically determined according to the test requirements of the tester for the test object, and is not limited here. The technical solution of the present application can intelligently merge coverage files containing any type of coverage data.
[0045] It should be noted that when the computer device in the embodiment of the present application obtains personal data information and other data of an object (such as a user), it can display a prompt interface or pop-up window. The prompt interface or pop-up window is used to prompt the user that personal data information and other data are currently being collected. Only after the user issues a confirmation operation on the prompt interface or pop-up window, the relevant steps of data acquisition are started, otherwise it ends.
[0046] It is understandable that in the specific implementation of the present application, business data of users, enterprises, institutions, systems and other objects (for example, information such as test configuration data information configured by users) may be involved. When the above embodiments of the present application are applied to specific products or technologies, it is necessary to obtain the permission or consent of users, enterprises, institutions, systems and other objects, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of the relevant regions.
[0047] For further information, see Figure 3 , Figure 3 This is a configuration data processing method provided by an embodiment of the present application, such as Figure 3 As shown, the method can be executed by the computer device mentioned above, for example, Figure 3 Any one of the service terminals or service servers shown in the figure, the following takes the computer device as the service server as an example, and the method may specifically include the following steps S101-S104:
[0048] S101. Acquire test configuration data information associated with a test object.
[0049] Among them, the test configuration data information may include a mode configuration field, a retrieval path configuration field, a retrieval time configuration field and an output path configuration field. The mode configuration field is used to describe the business merger mode of the file to be merged associated with the test object, that is, the field value of the mode configuration field is the business merger mode. The retrieval path configuration field is used to describe the business file retrieval path associated with the file to be merged, that is, the field value of the retrieval path configuration field is the business file retrieval path. The retrieval time configuration field is used to describe the file retrieval time period associated with the file to be merged, that is, the field value of the retrieval time configuration field is the file retrieval time period. The output path configuration field is used to describe the merged file output path associated with the file to be merged, that is, the field value of the output path configuration field is the merged file output path.
[0050] Among them, the test configuration data information can be configured by the tester (business object), for example, a test configuration interface can be output, and the tester configures the test configuration data information in the test configuration interface. Alternatively, the tester can configure the test configuration data information through a test configuration file. Alternatively, the tester can provide a test configuration form, and read relevant field information from the test configuration form as the test configuration data information. The configuration method of the test configuration data information is not limited here. For details, please refer to the relevant description of the following embodiment.
[0051] Optionally, a file merging script can be configured based on the technical solution of the present application, and the coverage file merging can be achieved by running the file merging script. For example, the computer device runs the file merging script to trigger the file merging function, and specifically outputs a test configuration interface to the tester, and performs a coverage file merging operation upon receiving the test configuration data information configured by the tester through the test configuration interface. Alternatively, the computer device runs the file merging script to call the test configuration file in the file merging script, and the tester can enter relevant field information in the displayed test configuration file. The computer device can read the input field information from the test configuration file based on the file merging script to perform a coverage file merging operation. Alternatively, the computer device runs the file merging script to read the test configuration table to perform a coverage file merging operation based on the read test configuration data information.
[0052] It can be understood that the file merge script can be an independent script, or it can be encapsulated as a merge plug-in configured in the test client for testing the test object. It can be understood that after executing the file merge script, the file merge command in the test client can be called through the file merge script to merge the coverage files. Optionally, the file merge command can be an additionally configured command, or it can be a command with a file merge function that has been configured in the test client. In other words, the technical solution of the present application can be combined with any test client, and the encapsulated merge plug-in can be configured in the test client to realize intelligent coverage file merging. For example, the test client can be cadence (a test software for testing integrated circuits), and the file merge command can be a coverage file merge command that comes with the test tool of cadence, or the test client can be cadence (a test software for testing integrated circuits), and the file merge command can be a coverage file merge command that comes with the test tool of synopsys (a test software for testing integrated circuits).
[0053] It is understandable that the data file obtained by testing the test object (including the coverage file) can be stored in a local database of the computer device or in a remote database, which is not limited here.
[0054] Optionally, there may be multiple testers testing the test object, and each tester corresponds to one storage location. The data files obtained by each tester testing the test object will be stored in the storage location corresponding to each tester. Optionally, the storage locations corresponding to each tester can be different folders under the same database, or different databases. This is not limited here.
[0055] For example, the data file obtained by tester A on the test object will be stored in folder A in the database, and the data file obtained by tester B on the test object will be stored in folder B in the database. For another example, the data file obtained by tester A on the test object will be stored in database A, and the data file obtained by tester B on the test object will be stored in database B.
[0056] Optionally, a tester may perform multiple tests on the test object, and the data files obtained from each test may be stored in different locations, that is, the coverage files obtained from each test are stored in different locations, or the coverage files in the data files obtained from each test may be stored in the same location. This is not limited here.
[0057] For example, the data file A obtained by the tester A at time point A when testing the test object is stored in the subfolder A of the folder A corresponding to the test file A, and the data file B obtained by the test object at time point B when testing the test object is stored in the subfolder B of the folder A corresponding to the test file A. At this time, in addition to the coverage file, other types of files may also be stored in folder A. For another example, the coverage file A in the data file A obtained by the tester A at time point A when testing the test object is stored in the folder A corresponding to the test file A, and the coverage file B in the data file B obtained by the test object at time point B when testing the test object is stored in the folder A corresponding to the test file A. At this time, only the coverage file is stored in folder A.
[0058] S102: Based on the business merging mode and the business file retrieval path, obtain file information of the coverage file of the test object.
[0059] The file information of the data file under the business file search path can be obtained based on the merge strategy corresponding to the business merge mode, and the file information of the data file as the coverage file can be obtained from the file information of the data file under the business file search path. Different business merge modes have different corresponding merge strategies.
[0060] Among them, the business merge mode may include a first merge mode, a second merge mode, and a third merge mode. The first merge mode may be a personal mode, that is, the coverage files obtained by one tester are merged. The second merge mode may be a multi-person mode, that is, the coverage files obtained by multiple testers are merged. The third merge mode may be composed of a first merge sub-mode and a second merge sub-mode. The execution logic of the first merge sub-mode is the same as that of the first merge mode, and the execution logic of the second merge sub-mode is the same as that of the second merge mode. In other words, the third merge mode is a hybrid mode of the personal mode and the multi-person mode. Therefore, this time only the business merge mode of the first merge mode and the second merge mode is taken as an example to describe the technical solution of the present application. The specific process of the third merge mode can refer to the relevant description of the following embodiments.
[0061] If the business merge mode is the first merge mode, the business file retrieval path includes a first retrieval path, and the file information of the coverage file of the test object includes the file information of the first coverage file. That is, at this time, the number of retrieval paths included in the business file retrieval path is 1, and the included retrieval path is the first retrieval path in the first merge mode. At this time, the coverage file of the test object is the first coverage file in the first merge mode.
[0062] Therefore, based on the business merge mode and the business file retrieval path, the file information of the coverage file of the test object can be obtained by, based on the first merge strategy corresponding to the first merge mode, obtaining the file information of the first data file corresponding to the first retrieval path, that is, determining all data files under the first retrieval path as the first data file, and obtaining the file information of the first data file under the first retrieval path; the file information of a first data file includes a file identifier of the first data file; obtaining the first key string associated with the first coverage file of the test object; searching for the file information of the first data file whose file identifier includes the first key string in the file information of the first data file corresponding to the first retrieval path; using the file information of the first data file whose file identifier includes the first key string as the file information of the first coverage file of the test object under the first merge mode. It can be understood that the first merge strategy is used to indicate that the file information of the first coverage file of the test object under the first merge mode is determined according to the above process.
[0063] It can be understood that when the file identifier of a first data file includes the first key character string, it indicates that the first data file is a first coverage file, and the file information of the first coverage file can be obtained.
[0064] It can be understood that the first search path is the storage location corresponding to the tester who needs to be merged in the personal mode. All the first data files in the storage location may only contain the first coverage file, or may contain the first coverage file and other types of first data files at the same time. Therefore, when the file information of all the first data files under the first search path is obtained, the file information of the first coverage file can be further filtered out from the file information of all the first data files in the above manner.
[0065] It can be understood that when it is determined that all first data files in the storage location corresponding to the tester only include the first coverage file, the file information of the first data file corresponding to the first search path obtained can be directly used as the file information of the first coverage file in the first merging mode.
[0066] The first key string is used to identify a data file as a coverage file, which can be set by relevant business personnel in the file merging script, for example, "single_cov".
[0067] Among them, if the business merge mode is the second merge mode, the business file retrieval path includes N1 second retrieval paths (i.e., a second retrieval path list); N1 is a positive integer greater than 1; and the file information of the coverage file of the test object includes the file information of the second coverage file. That is, at this time, the number of retrieval paths included in the business file retrieval path is N1, and the N1 retrieval paths included are the N1 second retrieval paths in the second merge mode. At this time, the coverage file of the test object is the second coverage file in the second merge mode.
[0068] Therefore, based on the business merge mode and the business file retrieval path, the file information of the coverage file of the test object can be obtained by, based on the second merge strategy corresponding to the second merge mode, obtaining the j1th second retrieval path (j1 is a positive integer less than or equal to N1) from the N1 second retrieval paths, and obtaining the file information of the second data file corresponding to the j1th second retrieval path, that is, determining all data files under the j1th second retrieval path as the second data files corresponding to the j1th second retrieval path, and obtaining the file information of the second data file corresponding to the j1th second retrieval path; the file information of a second data file includes a file label of a second data file Identify; obtain the second key string associated with the second coverage file of the test object; in the file information of the second data file corresponding to the j1th second search path, search for the file information of the second data file whose file identifier contains the second key string; use the file information of the second data file whose file identifier contains the second key string as the file information of the second coverage file corresponding to the j1th second search path; when j1 is equal to N1, obtain the file information of the second coverage file corresponding to N1 second search paths, and use the file information of the second coverage file corresponding to N1 second search paths as the file information of the second coverage file of the test object in the second merge mode. It can be understood that the second merge strategy is used to indicate that the file information of the second coverage file of the test object in the second merge mode is determined according to the above process.
[0069] It can be understood that in multi-person mode, the business file retrieval path includes multiple second retrieval paths. For each second retrieval path, the file information of the second coverage file corresponding to each second retrieval path is determined separately according to the execution logic for the first retrieval path in the personal mode, and then the file information of the second coverage files corresponding to N1 second retrieval paths is used as the file information of the second coverage file of the test object in the second merge mode.
[0070] It can be understood that when the file identifier of a second data file includes the second key string, it indicates that the second data file is a second coverage file, and the file information of the second coverage file can be obtained.
[0071] It can be understood that the second search path is the storage location corresponding to multiple testers that need to be merged in multiplayer mode. All second data files in the storage location corresponding to one tester may contain only the second coverage file, or may contain the second coverage file and other types of second data files at the same time. Therefore, when the file information of all second data files under the j1-th search path is obtained, the file information of the second coverage file under the j1-th search path can be further filtered out from the file information of all second data files in the above manner.
[0072] It can be understood that when it is determined that all second data files in the storage location corresponding to the tester only include the second coverage file, the file information of the second data files corresponding to all the second search paths obtained can be directly used as the file information of the second coverage file in the second merging mode.
[0073] The second key string is used to identify a data file as a coverage file. The second key string may be the same as the first key string.
[0074] S103 . Search, in the file information of the coverage file of the test object, the file information of the coverage file whose file generation timestamp is within the file retrieval time period.
[0075] The file information of a coverage file includes a file generation timestamp of the coverage file.
[0076] If the business merge mode is the first merge mode, the file retrieval time period includes the first file retrieval time period. The number of first coverage files of the test object is M1; M1 is a positive integer. That is, the file retrieval time period at this time is the first file retrieval time period in the first merge mode.
[0077] Therefore, in the file information of the coverage file of the test object, searching for the file information of the coverage file whose file generation timestamp is within the file retrieval time period may be to sort the file information of M1 first coverage files according to the time sequence associated with the file generation timestamp, obtain the sorted file information of M1 first coverage files, and construct a first file information list based on the sorted file information of M1 first coverage files; when the file information of the i1th first coverage file is obtained in the first file information list, the obtained file information of the i1th first coverage file is used as the first reference file information; i1 is a positive integer less than or equal to M1; when the file generation timestamp included in the first reference file information is within the first file retrieval time period, the first reference file information is used as the file information of the first coverage file whose file generation timestamp is within the first file retrieval time period. The time sequence may be in the order of file generation timestamp from large to small or from small to large, which is not limited here.
[0078] That is to say, the file information of M1 first coverage files are sorted to construct a first file information list, and in the first file information list, each file information is traversed in turn to determine whether the file generation timestamp included in the file information is within the first file retrieval time period, and the file information whose file generation timestamp is within the first file retrieval time period is used as the file information of the first coverage file whose file generation timestamp is within the first file retrieval time period.
[0079] Among them, determining whether the file generation timestamp included in the first reference file information is within the first file retrieval time period can be: obtaining a first start retrieval time corresponding to the first file retrieval time period, and obtaining a first end retrieval time corresponding to the first file retrieval time period; when format verification is performed on the first start retrieval time and the first end retrieval time, and when the format verification is successful, time comparison processing is performed on the file generation timestamp, the first start retrieval time and the first end retrieval time of the first reference file information to obtain a first time comparison result; if the first time comparison result indicates that the file generation timestamp of the first reference file information is greater than the first start retrieval time, and the file generation timestamp of the first reference file information is less than the first end retrieval time, then it is determined that the file generation timestamp included in the first reference file information is within the first file retrieval time period, and the first reference file information is used as the file information of the first coverage file whose file generation timestamp is found to be within the first file retrieval time period.
[0080] Among them, performing format check on the first start retrieval time and the first end retrieval time means verifying whether the first start retrieval time and the first end retrieval time are in the correct time format (i.e., whether they are legal characters), and whether the first start retrieval time is earlier than the first end retrieval time. It is understandable that when the first start retrieval time and the first end retrieval time are in the correct time format, and the first start retrieval time is earlier than the first end retrieval time, it is determined that the format check of the first start retrieval time and the first end retrieval time is successful. It is understandable that when the format check fails, the merging of the coverage files is stopped, and a prompt message indicating that the coverage merging failed is returned to the tester.
[0081] Among them, performing time comparison processing on the file generation timestamp, the first start retrieval time and the first end retrieval time of the first reference file information to obtain the first time comparison result can be: performing time conversion processing on the file generation timestamp of the first reference file information to obtain the first time integer to be compared corresponding to the file generation timestamp of the first reference file information, and performing time conversion processing on the first start retrieval time to obtain the first reference time integer corresponding to the first start retrieval time, and performing time conversion processing on the first end retrieval time to obtain the second reference time integer corresponding to the first end retrieval time; performing integer comparison on the first time integer to be compared and the first reference time integer to obtain the first comparison result, and performing integer comparison on the first time integer to be compared and the second reference time integer to obtain the second comparison result; determining the first time comparison result based on the first comparison result and the second comparison result.
[0082] That is, the file generation timestamp is converted into a time integer through the int function (integer function), for example, if the file generation timestamp is 3030 / 02 / 06 / 12:00 (indicating that the file generation timestamp is 12:00 on February 6, 3030), the converted time integer is 303002061200. The time conversion processing logic of the first start search time and the first end search time is the same.
[0083] It is understandable that the first comparison result and the second comparison result can be used as the first time comparison result. When the first time comparison result indicates that the first time integer to be compared is greater than the first reference time integer, and the first time integer to be compared is less than the second reference time integer, it means that the file generation timestamp of the first reference file information is greater than the first start retrieval time, and the file generation timestamp of the first reference file information is less than the first end retrieval time.
[0084] Among them, it can be understood that the retrieval time configuration field includes a first retrieval time configuration field for describing the first file retrieval time period. That is, when the business merger mode is the first merger mode, the retrieval time configuration field is the first retrieval time configuration field. The first retrieval time configuration field is composed of a first start retrieval time configuration field and a first end retrieval time configuration field. The first start retrieval time configuration field is used to describe the first start retrieval time constituting the first file retrieval time period. The first end retrieval time configuration field is used to describe the first end retrieval time constituting the first file retrieval time period. The first start retrieval time and the first end retrieval time are used to constitute the first file retrieval time period.
[0085] Among them, the field information configured for the first start search time configuration field is the first start search time. The field information configured for the first end search time configuration field is the first end search time. For example, if the field information configured for the first start search time configuration field is 3030 / 02 / 06 / 13:00, the first start search time is 3030 / 02 / 06 / 13:00. For another example, if the field information configured for the first end search time configuration field is 3030 / 02 / 06 / 15:00, the first end search time is 3030 / 02 / 06 / 15:00. Optionally, the first end search time can also be the acquisition time of the test configuration data information (i.e., the latest time). For example, if the field information configured for the first end search time configuration field is business time configuration information, the acquisition time of the test configuration data information is used as the first end search time. That is to say, the business time configuration information is used to indicate that the acquisition time of the test configuration data information is used as the first end search time. For example, the business time configuration information can be "now".
[0086] It can be understood that since the file information in the first file information list is sorted in chronological order, if i1 is less than M1, the file generation timestamp included in the file information of the i1th first coverage file in the first file information list is within the first file search time period, and the file generation timestamp included in the file information of the i1+1th first coverage file is not within the first file search time period, then the acquisition of the file information after the file information of the i1+1th first coverage file from the first file information list, whose file generation timestamp is within the first file search time period, is stopped, that is, whether the file generation timestamp included in the file information after the file information of the i1+1th first coverage file is within the first file search time period is not judged, and it is determined that the file information between the file information of the i1+1th first coverage file and the file information of the M1th first coverage file in the first file information list is not the file information of the coverage file whose file generation timestamp is within the first file search time period.
[0087] For example, the first file information list includes file information 1-10. When the file generation timestamp included in file information 4 is within the first file retrieval time period, and the file generation timestamp included in file information 5 is not within the first file retrieval time period, file information after file information 5 is no longer obtained from the first file information list, and it is determined that file information 5-10 is not the file information of the coverage file whose file generation timestamp is found within the first file retrieval time period, that is, the file generation timestamps included in file information 5-10 are not within the first file retrieval time period.
[0088] It can be understood that if the business merger mode is the second merger mode, the file retrieval time period includes the second file retrieval time period. The number of second coverage files corresponding to the j1-th second search path is K1; K1 is a positive integer. That is, the file retrieval time period at this time is the second file retrieval time period under the second merger mode.
[0089] Therefore, in the file information of the coverage file of the test object, searching for the file information of the coverage file whose file generation timestamp is within the file retrieval time period can be done by sorting the file information of K1 second coverage files in the time order associated with the file generation timestamp to obtain the sorted file information of K1 second coverage files, and constructing a second file information list corresponding to the j1th second retrieval path based on the sorted file information of the K1 second coverage files; when the file information of the u1th second coverage file is obtained in the second file information list corresponding to the j1th second retrieval path, the obtained file information of the u1th second coverage file is used as the second reference file information; u1 is a positive integer less than or equal to K1; when the file generation timestamp included in the second reference file information is within the second file retrieval time period, the second reference file information is used as the target file information corresponding to the j1th second retrieval path; when j1 is equal to N1, the target file information corresponding to N1 second retrieval paths is obtained, and the target file information corresponding to the N1 second retrieval paths is used as the file information of the second coverage file whose file generation timestamp is within the second file retrieval time period.
[0090] That is to say, a second file information list is constructed for the file information of the second coverage file corresponding to each second search path, and the file information in each second file information list is judged in turn to respectively determine the file information of the second coverage file whose file generation timestamp is within the second file retrieval time period in each second file information list, as the file information of the second coverage file whose file generation timestamp is within the second file retrieval time period found.
[0091] That is to say, the file information of K1 second coverage files are sorted to construct a second file information list corresponding to each second search path, and in the second file information list corresponding to each second search path, each file information in the second file information list corresponding to each second search path is traversed in turn to determine whether the file generation timestamp included in the file information is within the first file retrieval time period, and the file information in the second file information list corresponding to each second search path whose file generation timestamp is within the first file retrieval time period is used as the file information of the first coverage file whose file generation timestamp is within the first file retrieval time period.
[0092] The specific process and principle of determining whether the file generation timestamp included in the second reference file information is within the second file search time period are the same as the specific process and principle of determining whether the file generation timestamp included in the first reference file information is within the first file search time period. The specific process and principle of determining whether the file generation timestamp included in the second reference file information is within the second file search time period may be: obtaining the second start search time corresponding to the second file search time period, and obtaining the second end search time corresponding to the second file search time period; performing format verification on the second start search time and the second end search time, and when the format verification succeeds, performing time comparison processing on the file generation timestamp, the second start search time and the second end search time of the second reference file information to obtain a second time comparison result; if the second time comparison result indicates that the file generation timestamp of the second reference file information is greater than the second start search time, and the file generation timestamp of the second reference file information is less than the second end search time, then determining that the file generation timestamp included in the second reference file information is within the second file search time period, and using the second reference file information as the file information of the second coverage file whose file generation timestamp is within the second file search time period.
[0093] Among them, performing format check on the second start retrieval time and the second end retrieval time is to verify whether the second start retrieval time and the second end retrieval time are in the correct time format (i.e., whether they are legal characters), and whether the second start retrieval time is earlier than the second end retrieval time. It can be understood that when the second start retrieval time and the second end retrieval time are in the correct time format, and the second start retrieval time is earlier than the second end retrieval time, it is determined that the format check of the second start retrieval time and the second end retrieval time is successful.
[0094] Among them, performing time comparison processing on the file generation timestamp, the second start retrieval time and the second end retrieval time of the second reference file information to obtain the second time comparison result can be: performing time conversion processing on the file generation timestamp of the second reference file information to obtain the second time integer to be compared corresponding to the file generation timestamp of the second reference file information, and performing time conversion processing on the second start retrieval time to obtain the first reference time integer corresponding to the second start retrieval time, and performing time conversion processing on the second end retrieval time to obtain the second reference time integer corresponding to the second end retrieval time; performing integer comparison on the first time integer to be compared and the first reference time integer corresponding to the second start retrieval time to obtain the first comparison result corresponding to the second reference file information, and performing integer comparison on the second time integer to be compared and the second reference time integer corresponding to the second start retrieval time to obtain the second comparison result corresponding to the second reference file information; determining the second time comparison result based on the first comparison result corresponding to the second reference file information and the second comparison result corresponding to the second reference file information.
[0095] It can be understood that the first comparison result corresponding to the second reference file information and the second comparison result corresponding to the second reference file information can be used as the second time comparison result. When the second time comparison result indicates that the second to-be-compared time integer is greater than the first reference time integer corresponding to the second reference file information, and the second to-be-compared time integer is less than the second reference time integer corresponding to the second reference file information, it means that the file generation timestamp of the second reference file information is greater than the second start retrieval time, and the file generation timestamp of the second reference file information is less than the second end retrieval time.
[0096] Among them, it can be understood that the retrieval time configuration field includes a second retrieval time configuration field for describing the second file retrieval time period. That is, when the business merger mode is the second merger mode, the retrieval time configuration field is the second retrieval time configuration field. The second retrieval time configuration field is composed of a second start retrieval time configuration field and a second end retrieval time configuration field. The second start retrieval time configuration field is used to describe the second start retrieval time constituting the second file retrieval time period. The second end retrieval time configuration field is used to describe the second end retrieval time constituting the second file retrieval time period. The second start retrieval time and the second end retrieval time are used to constitute the second file retrieval time period.
[0097] Among them, the field information configured for the second start retrieval time configuration field is the second start retrieval time. The field information configured for the second end retrieval time configuration field is the second end retrieval time. For example, if the field information configured for the second start retrieval time configuration field is 3030 / 02 / 06 / 13:00, the second start retrieval time is 3030 / 02 / 06 / 13:00. For another example, if the field information configured for the second end retrieval time configuration field is 3030 / 02 / 06 / 15:00, the second end retrieval time is 3030 / 02 / 06 / 15:00. Optionally, the second end retrieval time can also be the acquisition time of the test configuration data information (i.e., the latest time). For example, if the field information configured for the second end retrieval time configuration field is business time configuration information, the acquisition time of the test configuration data information is used as the second end retrieval time. That is to say, the business time configuration information is used to indicate that the acquisition time of the test configuration data information is used as the second end retrieval time. For example, the business time configuration information can be "now".
[0098] It can be understood that since the file information in the second file information list is sorted in chronological order, if j1 is less than K1, the file generation timestamp included in the file information of the j1th second coverage file in the second file information list is within the second file search time period, and the file generation timestamp included in the file information of the j1+1th second coverage file is not within the second file search time period, then the acquisition of the file information after the file information of the j1+1th second coverage file from the second file information list, whose file generation timestamp is within the second file search time period, is stopped, that is, whether the file generation timestamp included in the file information after the file information of the j1+1th second coverage file is within the second file search time period is not judged, and it is determined that the file information between the file information of the j1+1th second coverage file and the file information of the K1th second coverage file in the second file information list is not the file information of the coverage file whose file generation timestamp is within the second file search time period.
[0099] For example, N1 second retrieval paths include retrieval paths 1-3, and the file information of the second coverage file of the test object in the second merge mode is determined to include the file information of the second coverage file corresponding to retrieval paths 1-3; the second file information list 1 is determined through the file information of the second coverage file corresponding to retrieval path 1, and the target file information corresponding to retrieval path 1 is determined from the second file information list 1; the second file information list 2 is determined through the file information of the second coverage file corresponding to retrieval path 2, and the target file information corresponding to retrieval path 2 is determined from the second file information list 2; the second file information list 3 is determined through the file information of the second coverage file corresponding to retrieval path 3, and the target file information corresponding to retrieval path 3 is determined from the second file information list 3; the target file information corresponding to retrieval paths 1-3 is used as the file information of the second coverage file whose file generation timestamp is within the second file retrieval time period.
[0100] S104. When the file information of the coverage file whose file generation timestamp is within the file retrieval time period is used as the file information of the file to be merged, the file merge command of the file to be merged is called to obtain the file storage path in the file information of the file to be merged, and the file to be merged is processed based on the obtained file storage path to obtain a merged coverage file of the test object for storing in the merged file output path.
[0101] It can be understood that the coverage file whose file generation timestamp is within the file search time period is the file to be merged. The file storage path is used to obtain the corresponding coverage file.
[0102] It can be understood that the file storage path in the file information of the to-be-merged file can be passed as a merge file parameter to the file merge command of the to-be-merged file, so as to call the file merge command to query the to-be-merged file corresponding to the file storage path as the merge file parameter, and perform file merge processing on the to-be-merged file to obtain a merged coverage file of the test object stored in the merge file output path. The file merge command can be a merge command provided in the test client for testing the test object.
[0103] Among them, if the business merger mode is the first merger mode, the file to be merged includes the first file to be merged corresponding to the first search path. The acquired file storage path includes the first file storage path in the file information of the first file to be merged. The merged coverage file includes the first merged coverage file. The merged file output path includes the first merged file output path. That is, at this time, the file to be merged is the first file to be merged under the first merger mode. The file storage path is the first file storage path under the first merger mode. The merged coverage file is the first merged coverage file under the first merger mode. The merged file output path is the first merged file output path under the first merger mode.
[0104] Therefore, when the file information of the first coverage file whose file generation timestamp is within the first file retrieval time period is used as the file information of the first file to be merged, the file merging process may be: based on the first file storage path, query the first coverage file corresponding to the first file storage path, and use the queried first coverage file as the first file to be merged; call the file merge command to merge the first file to be merged to obtain the first merged coverage file for the test object stored in the output path of the first merged file. The merging may be specifically: from the first file to be merged, obtain the first coverage file that meets the standard file acquisition condition, and use the obtained first coverage file that meets the standard file acquisition condition as the first standard coverage file; based on the first standard coverage file, merge the first file to be merged to obtain the first merged coverage file for the test object stored in the output path of the first merged file.
[0105] The first coverage file satisfying the standard file acquisition condition may be the first coverage file with the largest timestamp in the first file to be merged, or may be the first coverage file with the smallest timestamp in the first file to be merged, which is not limited here.
[0106] That is to say, a first standard coverage file is determined from the first file to be merged as the merged master version, and a file merge process is performed on the first file to be merged based on the merged master version, and the merged first merged coverage file is output to the first merged file output path. For example, the first file to be merged includes coverage files 1-3, and coverage file 3 is the first standard coverage file. Therefore, the file merge is performed with coverage file 3 as the master version of the test object. For example, if coverage file 1 contains coverage data corresponding to code 1, and in coverage files 2-3, code 1 is updated to code 1', then coverage data 1 in coverage file 1 is discarded, and coverage data 2 corresponding to code 1' contained in coverage file 2 and coverage data 3 corresponding to code 1' contained in coverage file 3 are merged.
[0107] Among them, if the business merger mode is the second merger mode, the file to be merged includes the second file to be merged corresponding to the N1 second search paths. The acquired file storage path includes the second file storage path in the file information of the second file to be merged corresponding to the N1 second search paths. The merged coverage file includes the second merged coverage file. The merged file output path includes the second merged file output path. That is, at this time, the file to be merged is the second file to be merged under the second merge mode. The file storage path is the second file storage path under the second merge mode. The merged coverage file is the second merged coverage file under the second merge mode. The merged file output path is the second merged file output path under the second merge mode.
[0108] Therefore, when the file information of the second coverage file whose file generation timestamp is within the second file retrieval time period is used as the file information of the second file to be merged, the file merging process can be: based on the second file storage path corresponding to the j1th second retrieval path, query the second coverage file corresponding to the second file storage path corresponding to the j1th second retrieval path, and use the queried second coverage file as the second file to be merged corresponding to the j1th second retrieval path; merge the second file to be merged corresponding to the j1th second retrieval path to obtain the merged coverage file corresponding to the j1th second retrieval path; when j1 is equal to N1, obtain the merged coverage file corresponding to N1 second retrieval paths, merge the merged coverage files corresponding to the N1 second retrieval paths to obtain the second merged coverage file of the test object for storing in the second merged file output path.
[0109] Among them, the merging processing of the second file to be merged can be: obtaining the second coverage file that meets the standard file acquisition condition from the second file to be merged corresponding to the j1th second search path, and using the obtained second coverage file that meets the standard file acquisition condition as the second standard coverage file corresponding to the j1th second search path; based on the second standard coverage file corresponding to the j1th second search path, merging the second file to be merged corresponding to the j1th second search path to obtain the merged coverage file corresponding to the j1th second search path.
[0110] The second coverage file that satisfies the standard file acquisition condition may be the second coverage file with the largest timestamp in the second file to be merged, or may be the second coverage file with the smallest timestamp in the second file to be merged, which is not limited here.
[0111] That is to say, a second standard coverage file is determined from the second file to be merged as the merged master version, and a file merge process is performed on the second file to be merged based on the merged master version to obtain a merged coverage file corresponding to each second search path, and a merge process is performed on the merged coverage files corresponding to all second search paths to output the merged second merged coverage file to the second merged file output path.
[0112] It can be understood that, that is, firstly, the merged coverage file corresponding to each second search path is determined according to the first merge strategy corresponding to the first merge mode, and the merged coverage files corresponding to all the second search paths are merged to obtain the final second merged coverage file. It can be understood that, in multiplayer mode, the data files under each second search path are first processed according to the processing logic of the individual mode to determine the merged coverage file corresponding to each second search path, and then merged to obtain the second merged coverage file output to the second merged file output path.
[0113] Among them, when merging the merged coverage files corresponding to all the second search paths to obtain the final second merged coverage file, a first standard merged file can be selected from the merged coverage files corresponding to all the second search paths as the merged master version, and the merged coverage files corresponding to all the second search paths can be merged based on the first standard merged file. Among them, the way to select the first standard merged file can be to select a standard coverage file that meets the standard file acquisition condition from the second standard coverage files corresponding to the N2 second search paths, and use the merged coverage file corresponding to the standard coverage file that meets the standard file acquisition condition as the first standard merged file.
[0114] That is to say, the standard coverage file with the largest file generation timestamp is selected from the second standard coverage files corresponding to all second search paths, and the merged coverage file corresponding to the second search path associated with the standard coverage file with the largest file generation timestamp is used as the first standard merged file.
[0115] For example, the second search path includes search paths 1-3; the merged coverage file 1 corresponding to search path 1 is obtained by merging coverage files 1-3 under search path 1, and coverage file 1 in coverage files 1-3 is the second standard coverage file 1 corresponding to search path 1; the merged coverage file 2 corresponding to search path 2 is obtained by merging coverage files 4-6 under search path 2, and coverage file 4 in coverage files 4-6 is the second standard coverage file 2 corresponding to search path 2; the merged coverage file 3 corresponding to search path 3 is obtained by merging coverage files 4-6 under search path 2, and coverage file 4 in coverage files 4-6 is the second standard coverage file 2 corresponding to search path 2; The coverage files 7-9 under search path 3 are merged, and the coverage file 7 in the coverage files 7-9 is the second standard coverage file 3 corresponding to the search path 3; the file with the largest file timestamp selected from the second standard coverage files 1-3 is the second standard coverage file 1 (i.e., coverage file 1), so the merged coverage file corresponding to the second standard coverage file 1 is merged coverage file 1, and merged coverage file 1 is used as the first standard merged file, and the merged coverage files 1-3 are merged based on the merged coverage file 1 to obtain the second merged coverage file.
[0116] For example, Figure 4 As shown, Figure 4It is a schematic diagram of a file merging scenario in a personal mode provided by an embodiment of the present application; if the business merging mode is the first merging mode, the business merging mode of the first file to be merged, the business file retrieval path, the first file retrieval time period, and the first merged file output path can be determined through the test configuration data information; wherein, when the business merging mode is the first merging mode, the business file retrieval path includes a first retrieval path, and the merged coverage file corresponding to the first retrieval path can be determined as the first merged coverage file under the first merging mode; specifically, the first retrieval path stores a plurality of first data files (such as 41a, 41b, ..., 41B1) obtained after testing the test object, and the first data files are as follows: The first coverage rate file is included in the first search path; query (S41) the first data file under the first search path, for example, the business server stores the first data file under the first search path, and the first data file under the first search path can be queried from the business server to obtain (S42) the file information of the first data file corresponding to the first search path (for example, 42a, 42b, ..., 42B1), the file information of a first data file can include a file identifier of the first data file, a file generation timestamp, a file storage path, etc.; obtain the file identifier of the first data file corresponding to the first search path (for example, 43a, 43b, ... ., 43B1), and search for the file information of the first data file whose file identifier contains the first key string as the file information of the first coverage file (such as 42a, 42b, ..., 42M1), at this time, the first data file whose file identifier contains the first key string is the first coverage file; sort the file information of the first coverage file in descending order of the file generation timestamp (S43) to obtain a first file information list (such as 42b, 42r, ..., 42a), traverse each file information in the first file information list in turn to search (S44) for the file information whose file generation timestamp in the traversed file information is within the first file retrieval time period; The file information whose file generation timestamp is within the first file search time period is taken as the file information of the first coverage file whose file generation timestamp is within the first file search time period, i.e., the file information of the first file to be merged (such as 42b, 42w, ..., 42e); the file storage path of the first file to be merged (such as 44b, 44w, ..., 44e) is obtained from the file information of the first file to be merged, and the file storage path of the first file to be merged is taken as the file merge parameter 45, and the file merge command is called based on the file merge parameter to query (S45) the first file to be merged (such as 41b, 41w, ..., 41e) corresponding to the file storage path., 41e), such as querying the first to-be-merged file corresponding to the file storage path from the business server, merging the queried first to-be-merged file (S46), and obtaining a first merged coverage file for storage in the first merged file output path. .
[0117] For example, Figure 5 As shown, Figure 51 is a schematic diagram of a file merging scenario in a multi-person mode provided by an embodiment of the present application; if the business merging mode is the second merging mode, the business merging mode of the second file to be merged, the business file retrieval path, the second file retrieval time period, and the second merged file output path can be determined by testing the configuration data information; wherein, when the business merging mode is the second merging mode, the business file retrieval path includes N1 second retrieval paths (for example, second retrieval path 1, second retrieval path 2, ..., second retrieval path N1), and the merged coverage file 1 corresponding to the second retrieval path 1 can be determined, the merged coverage file 2 corresponding to the second retrieval path 2 can be determined, ..., the merged coverage file N1 corresponding to the second retrieval path N1 can be determined, and the merged coverage files 1-N1 are merged to obtain the second merged coverage file under the second merging mode; specifically, the determination process of the merged coverage file 2 of the second retrieval path 1 is taken as an example for explanation, and the second retrieval path 1 stores a plurality of second data files (for example, 51a, 51b, ..., 51B2) obtained after testing the test object, including the second coverage file; query (S51) the second data file under the second retrieval path 1, such as the business service The second data file under the second search path 1 is stored in the device, and the second data file under the second search path can be queried from the business server to obtain (S52) the file information of the second data file corresponding to the second search path 1 (such as 52a, 52b, ..., 52B2), and the file information of a second data file can include a file identifier, a file generation timestamp, a file storage path, etc. of a second data file; the file identifier of the second data file corresponding to the second search path 1 (such as 53a, 53b, ..., 53B2) is obtained from the file information of the second data file corresponding to the second search path 1, and the file information of the second data file whose file identifier contains the second key string is searched as the file information of the second coverage file corresponding to the second search path 1 (such as 52a, 52b, ..., 52K1), and the second data file whose file identifier contains the second key string is the second coverage file corresponding to the second search path 1; the file information of the second coverage file corresponding to the second search path 1 is sorted in descending order of the file generation timestamp (S53) to obtain a second file information list corresponding to the second search path 1 (such as 52b, 52r, ..., 52a), traverse each file information in the second file information list corresponding to the second search path 1 in turn to search (S54) for file information whose file generation timestamp is within the second file search time period in the traversed file information; use the file information whose file generation timestamp is within the second file search time period in the second file information list corresponding to the second search path 1 as the file information of the first coverage file whose file generation timestamp is within the second file search time period corresponding to the second search path 1, that is, the file information of the second file to be merged corresponding to the second search path 1 (such as 52b, 52w, ..., 52e); obtain the file storage path of the second file to be merged corresponding to the second search path 1 (such as 54b, 54w, ..., 54e) from the file information of the second file to be merged corresponding to the second search path 1, and use the second search path 1 to The file storage path of the corresponding second file to be merged is used as the file merge parameter 55 corresponding to the second search path 1. Based on the file merge parameter corresponding to the second search path 1, the file merge command is called to query (S55) the second file to be merged corresponding to the file storage path (such as 51b, 51w, ..., 51e). For example, the second file to be merged corresponding to the file storage path can be queried from the business server, and the second file to be merged corresponding to the queried second search path 1 is merged (S56) to obtain the merged coverage file 1 corresponding to the second search path 1. When the merged coverage file (merged coverage file 1-N1) corresponding to each second search path (second search path 1-N1) is obtained in turn, the merged coverage files 1-N1 are merged (S57) by the file merge command to obtain the second merged coverage file for storage in the second merged file output path. .
[0118] In an embodiment of the present application, a merging mechanism for coverage files is provided, which can obtain test configuration data information associated with a test object, and through the test configuration data information, the business merging mode, business file retrieval path, file retrieval time period, and merged file output path of the files to be merged associated with the test object can be determined; based on the business merging mode and the business file retrieval path, the file information of the coverage file of the test object can be obtained, and then the file information of the coverage file whose file generation timestamp is within the file retrieval time period can be found as the file information of the files to be merged, that is, the file information of all the files to be merged that need to be merged can be obtained through the provided test configuration data information. Without the need to write a file merge command for each file to be merged to obtain the file information of all the files to be merged that need to be merged, the file merge command of the file to be merged can be called to intelligently obtain the file storage path in the file information of the file to be merged, so that all the files to be merged that need to be merged can be accurately obtained based on the file storage path, and then the obtained files to be merged can be merged to obtain a merged coverage file. This ensures that all coverage files that are files to be merged can be merged accurately without omissions or errors in the coverage files to be merged, and can optimize the merging process for coverage files, thereby improving the merging efficiency for coverage files.
[0119] For further information, see Figure 6 , Figure 6 This is a configuration data processing method provided by an embodiment of the present application, such as Figure 6 As shown, the method can be executed by the computer device mentioned above, for example, Figure 6 Any one of the service terminals or service servers shown in the figure, the following takes the computer device as the service server as an example, and the method may specifically include the following steps S201-S207:
[0120] S201. Acquire test configuration data information associated with a test object.
[0121] Among them, the test configuration data information includes a mode configuration field, a retrieval path configuration field, a retrieval time configuration field and an output path configuration field; the mode configuration field is used to describe the business merger mode of the files to be merged associated with the test object, the retrieval path configuration field is used to describe the business file retrieval path associated with the files to be merged, the retrieval time configuration field is used to describe the file retrieval time period associated with the files to be merged, and the output path configuration field is used to describe the merged file output path associated with the files to be merged.
[0122] The tester can configure the test configuration data information in the test configuration interface. The business merger mode can be selected in the test configuration interface, and after the business merger mode is selected, an information configuration interface matching the selected business merger mode is output, and the search path configuration field, search time configuration field and output path configuration field are configured in the information configuration interface.
[0123] For example, Figure 7-Figure 8 As shown, Figure 7-Figure 8 It is a schematic diagram of a test configuration interface provided in an embodiment of the present application; the test configuration interface may include a selection control for a business merger mode, through which the business merger mode can be configured as a first merger mode, and an information configuration interface 71a matching the first merger mode can be output, in which a configuration area 72a for a retrieval path configuration field, a configuration area 73a for a retrieval time configuration field, and a configuration area 74a for an output path configuration field can be displayed, and information configured for the retrieval path configuration field can be input in the configuration area 72a, information configured for the retrieval time configuration field can be input in the configuration area 73a, and information configured for the output path configuration field can be input in the configuration area 74a.
[0124] Accordingly, the business merger mode can be configured as the second merger mode by selecting the control, and an information configuration interface 71b matching the second merger mode can be output. A configuration area 72b for the search path configuration field can be displayed in the information configuration interface. The configuration area 72b includes a path adding control 73b, a configuration area 74b for the search time configuration field, and a configuration area 75b for the output path configuration field. Information configured for the search path configuration field can be input in the configuration area 72b, and multiple second search paths can be added by touching the path adding control 73b; information configured for the search time configuration field can be input in the configuration area 74b; and information configured for the output path configuration field can be input in the configuration area 75b.
[0125] Accordingly, if Figure 8 , the business merger mode can be configured as the third merger mode by selecting the control, the third merger mode is composed of the first merger sub-mode and the second merger sub-mode, the first merger sub-mode is equivalent to the first merger mode, the second merger sub-mode is equivalent to the second merger mode, so the data included in the output information configuration interface 71c matching the third merger mode is composed of the information configuration interface matching the first merger mode (as described above) Figure 7 The information configuration interface 71a shown in the figure and the information configuration interface matching the second merging mode (as shown in the figure) Figure 7The information configuration interface 71b shown in the figure may include, for example, a configuration area 72c for a search path configuration field, a configuration area 73c for a search time configuration field, and a configuration area 74c for an output path configuration field. Information configured for the search path configuration field in the first merge sub-mode may be input in the configuration area 72c, information configured for the search time configuration field in the first merge sub-mode may be input in the configuration area 73c, and information configured for the output path configuration field in the first merge sub-mode may be input in the configuration area 74c. In addition, a configuration area 75c for the search path configuration field is also displayed in the information configuration interface. The configuration area 75c includes a path adding control 76c, a configuration area 77c for the search time configuration field, and a configuration area 78c for the output path configuration field. Information configured for the search path configuration field may be input in the configuration area 75c, and multiple second search paths may be added by touching the path adding control 76c. Information configured for the search time configuration field may be input in the configuration area 77c. Information configured for the output path configuration field may be input in the configuration area 78c.
[0126] Among them, the tester can configure the test configuration data information in the test configuration file. The test configuration file includes the field values that the tester needs to output for each merge mode. For example, the test configuration file may include a mode configuration field (merge_mode) of the business merge mode, and the business merge mode indicated by the tester can be determined by outputting parameters associated with the merge mode, such as the mode parameter corresponding to the first merge mode is self, the mode parameter corresponding to the second merge mode is total, and the mode parameter corresponding to the third merge mode is all. For example, the test configuration file can be a file in ini format (a file format used for parameter setting), and the computer device can call the test configuration file to display the test configuration file, and the tester can configure it in the test configuration file.
[0127] For another example, when the mode configuration field is configured as the mode parameter corresponding to the first merge mode, it indicates that the tester selects the first merge mode, and the relevant test configuration data information can be configured in the field configuration area (self_info) associated with the first merge mode, such as the field configuration area associated with the first merge mode includes the retrieval path configuration field (regression_dir), the retrieval time configuration field (specifically including the first start retrieval time configuration field (regress_past_date) and the first end retrieval time configuration field (regress_present_date)) and the output path configuration field (target_dir). The first start retrieval time configuration field (regress_past_date) and the first end retrieval time configuration field (regress_present_date) can be used in combination to specify the file retrieval time period for the merge coverage. When the field information of the first end retrieval time configuration field is "now", it indicates that the first end retrieval time indicated by the first end retrieval time configuration field is the acquisition time of the test configuration data information, or it can also be the script start time of the file merging script, that is, the triggering time of the file merging function.
[0128] For another example, when the mode configuration field is configured as the mode parameter corresponding to the second merge mode, it means that the tester selects the second merge mode, and can configure relevant test configuration data information in the field configuration area (total_info) associated with the second merge mode. For example, the field configuration area associated with the second merge mode includes a retrieval path configuration field (module_dir, which is a retrieval path list, and multiple retrieval paths can be configured), a retrieval time configuration field (specifically including a first starting retrieval time configuration field (total_past_date) and a first ending retrieval time configuration field (total_present_date)), and an output path configuration field (target_dir).
[0129] It can be understood that when the mode configuration field is configured as the mode parameter corresponding to the third merge mode, it means that the tester selects the third merge mode, and it is necessary to configure the relevant test configuration data information in the field configuration area (self_info) associated with the first merge mode (i.e., the first merge sub-mode) and the field configuration area (total_info) associated with the second merge mode (i.e., the second merge sub-mode), that is, the configuration information of these two field configuration areas (self_info and total_info) will be used.
[0130] Optionally, both the field configuration area (self_info) and the field configuration area (total_info) include an output path configuration field, and the field information configured for the output path configuration field in the field configuration area (total_info) can be used as the third merged file output path in the third merge mode.
[0131] It can be understood that the field information configured for the output path configuration field in the field configuration area (self_info) can be used as the intermediate merged file output path, that is, when the merged coverage file corresponding to the first merged sub-mode is obtained, it can be output to the intermediate merged file output path, and when the merged coverage file corresponding to the second merged sub-mode is obtained, the merged coverage file corresponding to the first merged sub-mode is obtained based on the intermediate merged file output path, and the merged coverage file corresponding to the first merged sub-mode and the merged coverage file corresponding to the second merged sub-mode are merged through the file merge command to obtain the third merged coverage file output to the third merged file output path.
[0132] That is to say, the tester can merge the coverage files only by configuring the test configuration data information in the test configuration file or the test configuration interface, without having to write cumbersome merge commands, thereby improving the efficiency of merging coverage files. Therefore, it can help testers quickly merge the coverage files within a specified time period, and there is no need to understand how to use the merge command. The file merger can be used more intelligently to achieve the purpose of merging the coverage of a single person for multiple days or merging the coverage of multiple people for multiple days. The coverage files of multiple testers within a specified time period can be merged to meet the scenario requirements of multi-person testing. The technical solution of the present application can be used as an independent program, or it can be combined with other scripts and software to form a new system, that is, the technical solution of the present application can be configured as a plug-in that can be embedded in other applications, so as to unify and standardize the test merging process.
[0133] For example, Fig. 9 As shown, Fig. 9It is a configuration diagram of a test configuration data information provided by an embodiment of the present application; the test configuration file includes a mode configuration area (General), a field configuration area 1 (self_info) associated with a first merge mode, and a field configuration area 2 (total_info) associated with a second merge mode; the mode configuration area includes a mode configuration field (merge_mode), which can configure the business merge mode; the field configuration area 1 includes a retrieval path configuration field (regression_dir), a retrieval time configuration field (a first starting retrieval time configuration field (regress_past_date), a first ending retrieval time configuration field (regress_present_date)), and an output path configuration field (target_dir); the field configuration area 2 includes a retrieval path configuration field (module_dir), a retrieval time configuration field (a first starting retrieval time configuration field (total_past_date), a first ending retrieval time configuration field (total_present_date)), and an output path configuration field (target_dir).
[0134] Understandably, Fig. 9 The code form corresponding to the test configuration file shown can be as follows:
[0135] [General]
[0136] merge_mode=
[0137] [self_info]
[0138] regression_dir=
[0139] target_dir=
[0140] regress_past_date=
[0141] regress_present_date=
[0142] [total_info]
[0143] module_dir=[ ]
[0145] target_dir=
[0146] total_past_date=
[0147] total_present_date=
[0148] S202. If the business merge mode is the third merge mode, based on the third merge strategy corresponding to the first merge sub-mode, obtain the file information of the third coverage file of the test object in the first merge sub-mode, and based on the fourth merge strategy corresponding to the second merge sub-mode, obtain the file information of the fourth coverage file of the test object in the second merge sub-mode.
[0149] The file information of a coverage file includes a file generation timestamp of the coverage file.
[0150] Among them, the business merger mode is the third merger mode, and the third merger mode is composed of the first merger sub-mode and the second merger sub-mode. The first merger sub-mode is equivalent to the first merger mode, and the second merger sub-mode is equivalent to the second merger mode, that is, the third merger mode is a hybrid mode of the first merger mode and the second merger mode. The merger coverage file corresponding to the first merger sub-mode can be determined according to the first merger strategy corresponding to the first merger mode (also called the third merger strategy corresponding to the first merger sub-mode), and the merger coverage file corresponding to the second merger sub-mode can be determined according to the second merger strategy corresponding to the second merger mode (also called the fourth merger strategy corresponding to the second merger sub-mode), and the merger coverage file corresponding to the first merger sub-mode and the merger coverage file corresponding to the second merger sub-mode are merged to obtain the final output merger coverage file.
[0151] It can be understood that the business file retrieval path includes a third retrieval path associated with the first merge sub-mode, and N2 fourth retrieval paths associated with the second merge sub-mode, and the file information of the coverage file of the test object includes the file information of the third coverage file in the first merge sub-mode, and the file information of the fourth coverage file in the second merge sub-mode. N2 is a positive integer greater than 1.
[0152] Therefore, the file information of the third coverage file can be obtained by, based on the third merge strategy corresponding to the first merge sub-mode, obtaining the file information of the third data file corresponding to the third search path, and obtaining the file information of the third coverage file of the test object in the first merge sub-mode from the file information of the third data file corresponding to the third search path. It can be understood that the process and principle of obtaining the file information of the third coverage file in the first merge sub-mode are the same as the process and principle of obtaining the file information of the first coverage file in the first merge mode. The third merge strategy is equivalent to the first merge strategy.
[0153] Correspondingly, the file information of the fourth coverage file can be obtained by, based on the fourth merging strategy corresponding to the second merging sub-mode, obtaining the j2th fourth search path from the N2 fourth search paths, obtaining the file information of the fourth data file corresponding to the j2th fourth search path, and obtaining the file information of the fourth coverage file corresponding to the j2th fourth search path from the file information of the fourth data file corresponding to the j2th fourth search path; j2 is a positive integer less than or equal to N2; when j2 is equal to N2, the file information of the fourth coverage file corresponding to the N2 fourth search paths is obtained, and the file information of the fourth coverage file corresponding to the N2 fourth search paths is used as the file information of the fourth coverage file of the test object in the second merging sub-mode. That is to say, the file information of the fourth coverage file corresponding to each fourth search path is determined, and the file information of the fourth coverage files corresponding to all the fourth search paths is used as the file information of the fourth coverage file of the test object in the second merging sub-mode.
[0154] It can be understood that the process and principle of obtaining the file information of the fourth coverage file in the second merging sub-mode are the same as the process and principle of obtaining the file information of the second coverage file in the second merging mode. The fourth merging strategy is equivalent to the second merging strategy.
[0155] S203. Search the file information of the third coverage file for the file information of the third coverage file whose file generation timestamp is within the third file search time period.
[0156] It can be understood that the file retrieval time period in the third merge mode includes the third file retrieval time period associated with the first merge sub-mode and the fourth file retrieval time period associated with the second merge sub-mode. Therefore, in the first merge sub-mode, the file information of the third coverage file whose third file generation timestamp is within the file retrieval time period is searched, and in the second merge sub-mode, the file information of the fourth coverage file whose fourth file generation timestamp is within the file retrieval time period is searched.
[0157] That is, in the file information of the coverage file of the test object, the file information of the coverage file whose file generation timestamp is found within the file retrieval time period includes: the file information of the third coverage file whose file generation timestamp is found within the third file retrieval time period, and the file information of the fourth coverage file whose file generation timestamp is found within the fourth file retrieval time period. The specific process and principle of the file information of the third coverage file whose file generation timestamp is found within the third file retrieval time period are the same as the specific process and principle of the file information of the first coverage file whose file generation timestamp is found within the first file retrieval time period. The specific process and principle of the file information of the fourth coverage file whose file generation timestamp is found within the fourth file retrieval time period are the same as the specific process and principle of the file information of the second coverage file whose file generation timestamp is found within the second file retrieval time period.
[0158] It can be understood that searching for file information of the third coverage file whose file generation timestamp is within the third file retrieval time period can specifically be: sorting the file information of M2 third coverage files according to the time order associated with the file generation timestamp to obtain the file information of M2 sorted third coverage files, and constructing a third file information list based on the file information of M3 sorted third coverage files; when the file information of the i2th third coverage file is obtained in the third file information list, the obtained file information of the i2th third coverage file is used as the third reference file information; i2 is a positive integer less than or equal to M2; when the file generation timestamp included in the third reference file information is within the third file retrieval time period, the third reference file information is used as the file information of the third coverage file whose file generation timestamp is within the third file retrieval time period.
[0159] S204. Search the file information of the fourth coverage file for the file information of which the file generation timestamp is within the fourth file search time period.
[0160] It can be understood that searching for file information of the fourth coverage file whose file generation timestamp is within the fourth file retrieval time period can specifically be: sorting the file information of K2 fourth coverage files according to the time order associated with the file generation timestamp to obtain the sorted file information of K2 fourth coverage files, and constructing a fourth file information list corresponding to the j2th fourth retrieval path based on the file information of the sorted K2 fourth coverage files; when the file information of the u2th fourth coverage file is obtained in the fourth file information list corresponding to the j2th fourth retrieval path, the obtained file information of the u2th fourth coverage file is used as the fourth reference file information; u2 is a positive integer less than or equal to K2; when the file generation timestamp included in the fourth reference file information is within the fourth file retrieval time period, the fourth reference file information is used as the target file information corresponding to the j2th fourth retrieval path; when j2 is equal to N2, the target file information corresponding to N2 fourth retrieval paths is obtained, and the target file information corresponding to the N2 fourth retrieval paths is used as the file information of the fourth coverage file whose file generation timestamp is within the fourth file retrieval time period.
[0161] S205. When the file information of the third coverage file whose file generation timestamp is within the third file retrieval time period is used as the file information of the third file to be merged, a file merge command of the third file to be merged is called to obtain the third file storage path in the file information of the third file to be merged.
[0162] Among them, it can be understood that the files to be merged include the third files to be merged corresponding to the third search path, and the fourth files to be merged corresponding to the N2 fourth search paths. The acquired file storage path includes the third file storage path in the file information of the third files to be merged corresponding to the third search path, and the fourth file storage path in the file information of the fourth files to be merged corresponding to the N2 fourth search paths. The merged coverage file includes the third merged coverage file. The merged file output path includes the third merged file output path.
[0163] That is to say, based on the acquired file storage path, the files to be merged are merged, that is to say, based on the acquired third file storage path, the third file to be merged is merged to obtain the merged coverage file corresponding to the third search path, and based on the acquired fourth file storage path, the fourth file to be merged is merged to obtain the merged coverage file corresponding to the fourth search path, and the merged coverage file corresponding to the third search path and the merged coverage file corresponding to the fourth search path are merged to obtain the third merged coverage file as the final output.
[0164] Among them, the third coverage file whose file generation timestamp is found within the third file retrieval time period is the third file to be merged, and the file merge command of the third file to be merged is called to obtain the third file storage path in the file information of the third file to be merged. That is, the third file storage path of the third file to be merged is obtained from the file information of the third coverage file whose file generation timestamp is found within the third file retrieval time period, and the third file storage path of the third file to be merged is used as a merge file parameter, and the merge file parameter is passed into the file merge command, so as to call the file merge command to query the third file to be merged corresponding to the third file storage path as the merge file parameter, and perform file merge processing on the third file to be merged.
[0165] S206. When the file information of the fourth coverage file whose file generation timestamp is within the fourth file search time period is used as the file information of the fourth file to be merged, the file merge command of the fourth file to be merged is called to obtain the fourth file storage path in the file information of the fourth file to be merged.
[0166] Among them, the fourth coverage file whose file generation timestamp is found within the fourth file search time period is the fourth file to be merged, and the file merge command of the fourth file to be merged is called to obtain the fourth file storage path in the file information of the fourth file to be merged, that is, the fourth file storage path of the fourth file to be merged is obtained from the file information of the fourth coverage file whose file generation timestamp is found within the fourth file search time period, and the fourth file storage path of the fourth file to be merged is used as a merge file parameter, and the merge file parameter is passed into the file merge command, so as to call the file merge command to query the fourth file to be merged corresponding to the fourth file storage path as the merge file parameter, and perform file merge processing on the fourth file to be merged. It can be understood that for each fourth search path, the above process will be executed to obtain the fourth file storage path of the fourth file to be merged corresponding to each fourth search path, and the file merge processing is performed on the fourth file to be merged corresponding to each fourth search path through the file merge command.
[0167] S207. Based on the acquired third file storage path and the acquired fourth file storage path, perform file merging processing on the third file to be merged and the fourth file to be merged to obtain a third merged coverage file of the test object for storing in the third merged file output path.
[0168] Among them, the file merging processing can specifically be to merge the third file to be merged based on the acquired third file storage path to obtain the merged coverage file corresponding to the third retrieval path, and to merge the fourth files to be merged corresponding to each fourth retrieval path based on the acquired fourth file storage path to obtain the merged coverage file corresponding to each fourth retrieval path, and to merge the merged coverage file corresponding to the third retrieval path and the merged coverage files corresponding to all fourth retrieval paths through the file merging command to obtain the third merged coverage file as the final output.
[0169] The merging process of the third file to be merged may be, based on the third file storage path, querying the third coverage file corresponding to the third file storage path, and using the queried third coverage file as the third file to be merged; merging the third file to be merged to obtain a merged coverage file corresponding to the third search path. The merging process may specifically be, from the third file to be merged, obtaining a third coverage file that meets the standard file acquisition condition, and using the obtained third coverage file that meets the standard file acquisition condition as the third standard coverage file; merging the third file to be merged based on the third standard coverage file to obtain a merged coverage file corresponding to the third search path. For the specific description of the standard file acquisition condition, please refer to the specific description of the above embodiment.
[0170] Among them, the merging processing of the fourth file to be merged can be, based on the fourth file storage path corresponding to the j2th fourth search path, querying the fourth coverage file corresponding to the fourth file storage path corresponding to the j2th fourth search path, and using the queried fourth coverage file as the fourth file to be merged corresponding to the j2th fourth search path; merging the fourth file to be merged corresponding to the j2th fourth search path to obtain a merged coverage file corresponding to the j2th fourth search path; when j2 is equal to N2, obtaining a merged coverage file corresponding to N2 second search paths.
[0171] Among them, the merging processing of the fourth file to be merged can be specifically as follows: obtaining the fourth coverage file that meets the standard file acquisition condition from the fourth file to be merged corresponding to the j2th fourth search path, and using the obtained fourth coverage file that meets the standard file acquisition condition as the fourth standard coverage file corresponding to the j2th fourth search path; based on the fourth standard coverage file corresponding to the j2th fourth search path, merging the fourth file to be merged corresponding to the j2th fourth search path to obtain the merged coverage file corresponding to the j2th fourth search path.
[0172] Therefore, the file merge command can be called to merge the merged coverage file corresponding to the third search path and the merged coverage files corresponding to the N2 fourth search paths to obtain a third merged coverage file for storing the test object in the output path of the third merged file. Among them, when performing the merge process, it can be method one: first merge the merged coverage files corresponding to the N2 fourth search paths to obtain a reference merged coverage file, and merge the reference merged coverage file and the merged coverage file corresponding to the third search path to obtain a third merged coverage file. Alternatively, it can also be method two: directly merge the merged coverage file corresponding to the third search path and the merged coverage files corresponding to the N2 fourth search paths to obtain a third merged coverage file.
[0173] Optionally, in method one, the specific method for merging the merged coverage files corresponding to N2 fourth search paths can refer to the specific method for merging the merged coverage files corresponding to N1 second search paths. That is, a second standard merged file can be selected from the merged coverage files corresponding to all fourth search paths as the merged master version, and the merged coverage files corresponding to all fourth search paths can be merged based on the second standard merged file. Among them, the method for selecting the second standard merged file can be to select a standard coverage file that meets the standard file acquisition condition from the fourth standard coverage files corresponding to the N2 fourth search paths, and use the merged coverage file corresponding to the standard coverage file that meets the standard file acquisition condition as the second standard merged file.
[0174] Furthermore, when merging the reference merged coverage file and the merged coverage file corresponding to the third search path, a standard merged coverage file can be selected from the reference merged coverage file and the merged coverage file corresponding to the third search path, and the reference merged coverage file and the merged coverage file corresponding to the third search path can be merged based on the standard merged coverage file. The selection of the standard merged coverage file can be to obtain the file generation timestamp of the fourth standard coverage files corresponding to N2 fourth search paths, and to obtain the file generation timestamp of the third standard coverage file corresponding to the third search path. If the file generation timestamp of the third standard coverage file corresponding to the third search path is the maximum file timestamp, the merged coverage file corresponding to the third search path is used as the standard merged coverage file; if the file generation timestamp of the third standard coverage file corresponding to the third search path is not the maximum file timestamp, the reference merged coverage file is used as the standard merged coverage file.
[0175] Optionally, in method two, when the merged coverage file corresponding to the third search path and the merged coverage files corresponding to the N2 fourth search paths are merged, a third standard merged file can be selected from the merged coverage file corresponding to the third search path and the merged coverage files corresponding to the N2 fourth search paths as the merged master version, and the merged coverage file corresponding to the third search path and the merged coverage files corresponding to the N2 fourth search paths are merged based on the third standard merged file. Among them, the process and principle of selecting the third standard merged file are the same as the process and principle of selecting the first standard merged file. That is, the standard coverage file with the largest file generation timestamp is determined from the third standard coverage file corresponding to the third search path and the fourth standard coverage files corresponding to the N2 fourth search paths, and the merged coverage file corresponding to the determined standard coverage file is used as the third standard merged file.
[0176] For example, Fig.10 As shown, Fig.10 : is a schematic diagram of a file merging scenario in a hybrid mode provided by an embodiment of the present application; the third merging mode includes a first merging sub-mode and a second merging sub-mode, and the third coverage file under the third search path and in the third file retrieval time period is determined by the third merging strategy corresponding to the first merging sub-mode, and the third coverage file is merged to obtain a merged coverage file corresponding to the third search path, and is stored in an intermediate merged file output path, which is configured for the first merging sub-mode. The intermediate merged file output path can be a default path or can be configured by a tester, and can be the same as the third merged file output path; the reference merged coverage file corresponding to the fourth search list (fourth search path 1-N2) is determined by the fourth merging strategy corresponding to the second merging sub-mode, for example, the third coverage file under the fourth search path 1 and in the fourth file retrieval time period (which can be different from the third file retrieval time period) The fourth coverage file is obtained, and the fourth coverage file corresponding to the fourth search path 1 is merged to obtain the merged coverage file corresponding to the fourth search path 1; at the same time, the fourth coverage file under the fourth search path 2 and in the fourth file retrieval time period (which may be different from the third file retrieval time period) is determined by the fourth merge strategy corresponding to the second merge sub-mode, and the fourth coverage file corresponding to the fourth search path 2 is merged to obtain the merged coverage file corresponding to the fourth search path 2, and so on to obtain the merged coverage file corresponding to each of the N2 fourth search paths; the merged coverage files corresponding to the fourth search paths 1-N2 are merged to obtain a reference merged coverage file, and the merged coverage file corresponding to the third search path and the reference merged coverage file are merged to obtain the third merged coverage file under the third merge mode, and stored in the third merged file output path.
[0177] For example, Fig.11 As shown, Fig.11 It is a schematic diagram of a file merging process provided by an embodiment of the present application; wherein, test configuration data information (S1) is obtained, and the business merging mode indicated by the test configuration data information is determined, that is, the computer device will first obtain the test configuration data information required for this merger, and determine whether this merger selection is personal mode, multi-person mode, or mixed mode according to the test configuration data information: if it is personal mode, the coverage file under the first search path will be retrieved first, and then the retrieved coverage files will be sorted according to the file generation timestamp to obtain a first information list, and finally the coverage files in the configured first file retrieval time period will be selected for merging and output; if it is multi-person mode, it is necessary to first establish an information list corresponding to each second search path according to the second search path list, and then the file information of the coverage files under each second search path will be sorted according to the file generation timestamp and stored in the information list corresponding to each second search path, to obtain the second information list corresponding to each second search path, and finally traverse the second information list corresponding to each second search path, and select the coverage files in the configured second file retrieval time period for merging and output.
[0178] Therefore, if the business merger mode is the first merger mode, the file information of the first data file under the first search path is obtained (S12), for example, by calling the os library (a Python standard library, a set of codes in Python that completes certain functions) of python (a computer language) to realize the retrieval of file information, and the file information of the first coverage file under the first search path is obtained from the file information of the first data file under the first search path (S13). In order to distinguish which first data files under the first search path are the first coverage files, the key string (keyword) can be uniformly searched in the file identifier of the first data file, and the first data file whose file identifier contains the key string is taken as the first coverage file. The file information of the first coverage file under the first search path is sorted in chronological order to obtain a first file list (S14); based on the first file retrieval time period, the file information of the first file to be merged is selected from the first file list (S15). For example, when the first file retrieval time period is obtained, the first file retrieval time is first sorted. The first start retrieval time and the first end retrieval time corresponding to the segment are format checked. After the format check succeeds, the first start retrieval time is converted into a first reference time integer, the first end retrieval time is converted into a second reference time integer, and the file generation timestamp obtained from the file information of the first coverage file is converted into a first time integer to be compared. If the first time integer to be compared is greater than the first reference time integer and less than the second reference time integer, it indicates that the first coverage file is the first file to be merged; calling the file merge command to obtain the first file to be merged through the file information of the first file to be merged, such as passing the file storage path obtained from the file information of the first file to be merged into the file merge module, and the file merge module uses the file storage path as a file merge parameter and passes it into the file merge command, so as to call the file merge command to query the file corresponding to the file storage path, use the queried file as the first file to be merged, and perform file merge processing on the first file to be merged to obtain the first merged coverage file (S16) of the test object for storing in the output path of the first merged file.
[0179] Correspondingly, if the business merge mode is the second merge mode, the file information of the second data file under each second search path in the second search path list is obtained (S22), and the file information of the second coverage file under each second search path is obtained from the file information of the second data file under each second search path (S23), and the file information of the second coverage file under each second search path is sorted in chronological order to obtain the second file list corresponding to each second search path (S24); based on the second file retrieval time period, the file information of the second file to be merged corresponding to each second search path is selected from each second file list (S25), and the file merge command is called to obtain the second file to be merged corresponding to each second search path through the file information of the second file to be merged corresponding to each second search path, and the second file to be merged corresponding to each second search path is processed by file merge to obtain the merged coverage file corresponding to each second search path (S26); the merged coverage files corresponding to all second search paths are merged to obtain the second merged coverage file of the test object for storing in the second merged file output path (S27).
[0180] Correspondingly, if the business merger mode is the third merger mode, the file information of the third data file under the third search path associated with the first merger sub-mode is obtained (S32), and the file information of the third coverage file under the third search path is obtained from the file information of the third data file under the third search path (S33), and the file information of the third coverage file under the third search path is sorted in chronological order to obtain a third file list (S34); based on the third file retrieval time period, the file information of the third file to be merged is selected from the third file list (S35), the file merger command is called to obtain the third file to be merged through the file information of the third file to be merged, and the third file to be merged is processed to obtain a merged coverage file corresponding to the third search path (S36); the file information of the fourth data file under each fourth search path in the fourth search path list associated with the second merger sub-mode is obtained (S37), and the file information of the fourth data file under each fourth search path is obtained from the file information of the fourth data file under each fourth search path. The file information of the fourth coverage file (S38) is sorted in chronological order to obtain a second file list corresponding to each second search path (S39); based on the second file retrieval time period, the file information of the second file to be merged corresponding to each second search path is selected from each second file list (S310), and the file merge command is called to obtain the second file to be merged corresponding to each second search path through the file information of the second file to be merged corresponding to each second search path, and the second file to be merged corresponding to each second search path is merged to obtain a merged coverage file corresponding to each second search path (S311); the merged coverage files corresponding to all the second search paths are merged to obtain a reference merged coverage file (S312); the reference merged coverage file and the merged coverage file corresponding to the third search path are merged to store the second merged coverage file of the test object of the second merged file output path (S313).
[0181] In addition, optionally, the business merger mode specified at one time may also include multiple merger modes, such as specifying multiple first merger modes at one time, or specifying multiple second merger modes at one time, or specifying multiple third merger modes at one time, or specifying multiple first merger modes and multiple second merger modes at one time. It can be understood that one merger mode means that the files to be merged under the merger mode are processed by file merging to obtain the merged coverage file under the merger mode. When the business merger mode specified at one time includes one merger mode, the merged coverage file under the merger mode is used as the final output merged coverage file. When the business merger mode specified at one time includes multiple merger modes, the merged coverage files under each merger mode are merged to obtain the final output merged coverage file.
[0182] It can be understood that for different merging modes, the coverage files in the specified file retrieval time period under the specified retrieval path are merged. The configuration method of the test configuration data information is determined according to the actual merging scenario and is not limited here.
[0183] For example, if the tester wants to merge the coverage file obtained by user A when testing the test object on the 12th, he can select the business merge mode as the first merge mode when configuring the test configuration data information, and configure the search path in the business file retrieval path with the data file storage location corresponding to user A, and configure the file retrieval time period to the time period indicated by the 12th. In this way, the merged coverage file for user A can be obtained based on the first merge strategy corresponding to the first merge mode.
[0184] For another example, if the tester wants to merge the coverage file obtained when user AC tests the test object on the 12th, he can select the business merge mode as the second merge mode when configuring the test configuration data information, and configure the search path in the business file retrieval path with the data file storage location corresponding to user AC, and configure the file retrieval time period to the time period indicated by the 12th. In this way, the merged coverage file for user AC can be obtained based on the second merge strategy corresponding to the second merge mode.
[0185] For another example, if the tester wants to merge the coverage file obtained when user A tests the test object on the 12th, and the coverage file obtained when user BC tests the test object on the 13th, then the tester can select the business merge mode as the third merge mode when configuring the test configuration data information (configure user A based on the first merge sub-mode, and configure user BC based on the second merge sub-mode), such as, the search path in the business file retrieval path under the first merge sub-mode is configured with the data file storage location corresponding to user A, and the file retrieval time period under the first merge sub-mode is configured to the time period indicated by the 12th, and the search path in the business file retrieval path under the second merge sub-mode is configured with the data file storage location corresponding to user BC, and the file retrieval time period under the second merge sub-mode is configured to the time period indicated by the 13th. In this way, based on the third merge strategy corresponding to the first sub-merge mode, the merged coverage file 1 obtained for user A can be obtained, based on the fourth merge strategy corresponding to the second sub-merge mode, the merged coverage file 2 obtained for user BC can be obtained, and the merged coverage file 1 and the merged coverage file 2 are merged to obtain the merged coverage file obtained for user AC.
[0186] For another example, if the tester wants to merge the coverage file obtained when user A tests the test object on the 12th, and the coverage file obtained when user B tests the test object on the 13th, then when configuring the test configuration data information, the test personnel can select two first merging modes as the business merging modes, one first merging mode 1 to configure user A, and one first merging mode 2 to configure user B. For example, the retrieval path in the business file retrieval path under the first merging mode 1 is configured with the data file storage location corresponding to user A, and the file retrieval time period under the first merging mode 1 is configured to the time period indicated by the 12th; the retrieval path in the business file retrieval path under the first merging mode 2 is configured with the data file storage location corresponding to user B, and the file retrieval time period under the first merging mode 2 is configured to the time period indicated by the 13th. In this way, based on the first merging strategy corresponding to the first merging mode 1, the merged coverage file 1 obtained for user A can be obtained, and based on the first merging strategy corresponding to the first merging mode 2, the merged coverage file 2 obtained for user B can be obtained, and the merged coverage file 1 and the merged coverage file 2 are merged to obtain the merged coverage file obtained for users AB.
[0187] For another example, if the tester wants to merge the coverage file obtained by user AB testing the test object on the 12th, and the coverage file obtained by user CD testing the test object on the 13th, then when configuring the test configuration data information, the tester can select the business merging mode as two second merging modes, a second merging mode 1 to configure user AB, and a second merging mode 2 to configure user CD. For example, the retrieval path in the business file retrieval path under the second merging mode 1 is configured with the data file storage locations corresponding to user A and user B, and the file retrieval time period under the second merging mode 1 is configured at the time indicated by the 12th. Time period; the retrieval path in the business file retrieval path under the second merge mode 2 is configured with the data file storage location corresponding to user C and user D, and the file retrieval time period under the second merge mode 2 is configured in the time period indicated by number 13, so that the merged coverage file 1 merged for user AB can be obtained based on the second merge strategy corresponding to the second merge mode 1, and the merged coverage file 2 merged for user CD can be obtained based on the second merge strategy corresponding to the second merge mode 2, and the merged coverage file 1 and the merged coverage file 2 are merged to obtain the merged coverage file merged for user AD.
[0188] That is to say, it can be understood that the business merger mode can specify one or more merger modes, that is, the test configuration data can include relevant field information under one merger mode, and can also include relevant field information under multiple merger modes, so that the merged coverage file corresponding to each merger mode can be determined separately, and the merged coverage files corresponding to all specified merger modes can be merged to obtain the final output merged coverage file. It can be understood that the merged file output path can be configured for each specified merger mode, and the merged file output path under one of the specified merger modes is used as the output path of the final merged coverage file, and the merged file output paths under the remaining contract modes are used as intermediate merged file output paths (which can be configured by the tester or can be the default path). Alternatively, a merged file output path is uniformly specified for the multiple merger modes as the output path of the final merged coverage file.
[0189] Optionally, in the above Figure 7 The business merger mode selection control shown may also include a mode adding control. By touching the mode adding control, the specified business merger mode can be added, and by touching the jump control corresponding to the selected business merger mode, the information configuration interface corresponding to the touched business merger mode can be displayed and output, thereby achieving flexible configuration of the business merger mode.
[0190] For example, Fig.12 As shown, Fig.12 is a schematic diagram of a configuration interface of a merge mode provided in an embodiment of the present application; a test configuration interface (such as Figure 7 The test configuration interface shown in the figure may include a selection control 12a1 for a business merger mode and a mode adding control 12b. When the mode adding control 12b is touched, a selection control 12a2 for a business merger mode is added. In this way, multiple merger modes can be configured, that is, the business merger mode may include one or more indicated merger modes. In addition, the test configuration interface also includes an interface jump control 12c1 that matches the selection control 12a1 for the business merger mode. After selecting a specified merger mode through the selection control 12a1, the interface jump control 12c1 can be touched to jump to an information configuration interface that matches the specified merger mode. For example, if the selection control 12a1 selects the first merger mode, the interface displayed by the interface jump control 12c1 is Figure 7 The information configuration interface 71a is shown; at the same time, when a selection control 12a2 is added, the test configuration interface also includes an interface jump control 12c2 that matches the selection control 12a2 of the business merger mode, thereby obtaining the test configuration data information.
[0191] Therefore, the technical solution of the present application can perform file merging processing according to different merging modes after collecting the coverage data of each regression of the user. For example, in the first merging mode (personal mode), the computer device will merge all the coverage files generated in the file retrieval time period into one coverage file according to the file retrieval time period set by the user. For another example, in the second merging mode (multi-person mode), the computer device will merge the coverage files of different verification personnel in the same file retrieval time period into one coverage file according to the file retrieval time period set by the user and the business file retrieval paths corresponding to different testers (one tester can correspond to one or more business file retrieval paths), so as to help the testers perform coverage data analysis on the test object.
[0192] In an embodiment of the present application, a merging mechanism for coverage files is provided, which can obtain test configuration data information associated with a test object, and through the test configuration data information, the business merging mode, business file retrieval path, file retrieval time period, and merged file output path of the files to be merged associated with the test object can be determined; based on the business merging mode and the business file retrieval path, the file information of the coverage file of the test object can be obtained, and then the file information of the coverage file whose file generation timestamp is within the file retrieval time period can be found as the file information of the files to be merged, that is, the file information of all the files to be merged that need to be merged can be obtained through the provided test configuration data information. Without the need to write a file merge command for each file to be merged to obtain the file information of all the files to be merged that need to be merged, the file merge command of the file to be merged can be called to intelligently obtain the file storage path in the file information of the file to be merged, so that all the files to be merged that need to be merged can be accurately obtained based on the file storage path, and then the obtained files to be merged can be merged to obtain a merged coverage file. This ensures that all coverage files that are files to be merged can be merged accurately without omissions or errors in the coverage files to be merged, and can optimize the merging process for coverage files, thereby improving the merging efficiency for coverage files.
[0193] For further information, see Fig.13 , Fig.13 Schematic diagram of a configuration data processing device provided in an embodiment of the present application. Fig.13 As shown, the configuration data processing device 1 can be applied to a computer device. It should be understood that the configuration data processing device 1 can be a computer program (including program code) running in a computer device, for example, the configuration data processing device 1 can be an application software; it can be understood that the configuration data processing device 1 can be used to execute the corresponding steps of the method provided in the embodiment of the present application. Fig.13As shown, the configuration data processing device 1 may include: a configuration information acquisition module 11, a file information acquisition module 12, a file information search module 13, and a file merging module 14; wherein:
[0194] The configuration information acquisition module 11 is used to acquire the test configuration data information associated with the test object; the test configuration data information includes a mode configuration field, a search path configuration field, a search time configuration field and an output path configuration field; the mode configuration field is used to describe the business merger mode of the to-be-merged file associated with the test object, the search path configuration field is used to describe the business file search path associated with the to-be-merged file, the search time configuration field is used to describe the file search time period associated with the to-be-merged file, and the output path configuration field is used to describe the merged file output path associated with the to-be-merged file;
[0195] The file information acquisition module 12 is used to acquire the file information of the coverage file of the test object based on the business merger mode and the business file retrieval path; the file information of a coverage file includes a file generation timestamp of the coverage file;
[0196] A file information search module 13, used to search the file information of the coverage file of the test object for the file information of the coverage file whose file generation timestamp is within the file retrieval time period;
[0197] The file merging module 14 is used to call the file merging command of the file to be merged when the file information of the coverage file whose file generation timestamp is within the file retrieval time period is used as the file information of the file to be merged, obtain the file storage path in the file information of the file to be merged, perform file merging processing on the file to be merged based on the obtained file storage path, and obtain a merged coverage file of the test object for storing in the merged file output path.
[0198] Wherein, if the business merging mode is the first merging mode, the business file retrieval path includes a first retrieval path, and the file information of the coverage file of the test object includes the file information of the first coverage file;
[0199] The file information acquisition module 12 includes:
[0200] The first file information acquisition unit 121 is used to acquire the file information of the first data file corresponding to the first search path based on the first merging strategy corresponding to the first merging mode; the file information of a first data file includes a file identifier of the first data file;
[0201] The character string acquisition unit 122 is used to acquire a first key character string associated with a first coverage file of the test object;
[0202] A first file information searching unit 123 is used to search the file information of the first data file corresponding to the first search path for the file information of the first data file whose file identifier contains the first key string;
[0203] The first file information searching unit 123 is further configured to use the found file information of the first data file containing the first key string as the file information of the first coverage file of the test object in the first merging mode.
[0204] Among them, the number of the first coverage files of the test object is M1; M1 is a positive integer; the file retrieval time period includes the first file retrieval time period;
[0205] The file information search module 13 includes:
[0206] A first information sorting unit 131 is used to sort the file information of the M1 first coverage rate files according to the time sequence associated with the file generation timestamp, obtain the sorted file information of the M1 first coverage rate files, and construct a first file information list based on the sorted file information of the M1 first coverage rate files;
[0207] The first information determining unit 132 is configured to, when obtaining the file information of the i1th first coverage rate file in the first file information list, use the obtained file information of the i1th first coverage rate file as the first reference file information; i1 is a positive integer less than or equal to M1;
[0208] The first information determining unit 132 is further configured to use the first reference file information as file information of the first coverage file whose file generation timestamp is within the first file retrieval time period when the file generation timestamp included in the first reference file information is within the first file retrieval time period.
[0209] The first information determining unit 132 includes:
[0210] The retrieval time acquisition subunit 1321 is used to acquire a first start retrieval time corresponding to a first file retrieval time period, and acquire a first end retrieval time corresponding to the first file retrieval time period;
[0211] The retrieval time comparison subunit 1322 is used to perform a format check on the first start retrieval time and the first end retrieval time, and when the format check succeeds, perform a time comparison process on the file generation timestamp of the first reference file information, the first start retrieval time and the first end retrieval time to obtain a first time comparison result;
[0212] The retrieval time comparison subunit 1322 is also used to determine that the file generation timestamp included in the first reference file information is within the first file retrieval time period if the first time comparison result indicates that the file generation timestamp of the first reference file information is greater than the first start retrieval time, and the file generation timestamp of the first reference file information is less than the first end retrieval time, and use the first reference file information as the file information of the first coverage file whose file generation timestamp is within the first file retrieval time period.
[0213] The retrieval time comparison subunit 1322 is specifically used for:
[0214] Performing time conversion processing on the file generation timestamp of the first reference file information to obtain a first to-be-compared time integer corresponding to the file generation timestamp of the first reference file information, performing time conversion processing on the first start retrieval time to obtain a first reference time integer corresponding to the first start retrieval time, and performing time conversion processing on the first end retrieval time to obtain a second reference time integer corresponding to the first end retrieval time;
[0215] Performing integer comparison on the first time integer to be compared and the first reference time integer to obtain a first comparison result, and performing integer comparison on the first time integer to be compared and the second reference time integer to obtain a second comparison result;
[0216] A first time comparison result is determined based on the first comparison result and the second comparison result.
[0217] The retrieval time configuration field includes a first retrieval time configuration field for describing a first file retrieval time period, the first retrieval time configuration field includes a first end retrieval time configuration field, and the first end retrieval time configuration field is used to describe a first end retrieval time constituting the first file retrieval time period;
[0218] The retrieval time acquisition subunit 1321 is specifically used for:
[0219] If the field information configured for the first end retrieval time configuration field is business time configuration information, the acquisition time of the test configuration data information is used as the first end retrieval time.
[0220] The first information determining unit 132 is further configured to:
[0221] If when i1 is less than M1, the file generation timestamp included in the file information of the i1th first coverage file in the first file information list is within the first file retrieval time period, and the file generation timestamp included in the file information of the i1+1th first coverage file is not within the first file retrieval time period, then stop obtaining the file information after the file information of the i1+1th first coverage file from the first file information list, and determine that the file information in the first file information list between the file information of the i1+1th first coverage file and the file information of the M1th first coverage file is not the file information of the coverage file whose file generation timestamp is within the first file retrieval time period.
[0222] The to-be-merged file includes the first to-be-merged file corresponding to the first search path; the acquired file storage path includes the first file storage path in the file information of the first to-be-merged file; the merged coverage file includes the first merged coverage file; and the merged file output path includes the first merged file output path;
[0223] The file merging module 14 includes:
[0224] The first file query unit 141 is used to query the first coverage file corresponding to the first file storage path based on the first file storage path, and use the queried first coverage file as the first file to be merged;
[0225] The standard file acquisition unit 142 is used to acquire a first coverage file that meets the standard file acquisition condition from the first file to be merged, and use the acquired first coverage file that meets the standard file acquisition condition as the first standard coverage file;
[0226] The first merging processing unit 143 is used to perform merging processing on the first to-be-merged file based on the first standard coverage file to obtain a first merged coverage file of the test object for storing in the first merged file output path.
[0227] Wherein, if the business merging mode is the second merging mode, the business file retrieval path includes N1 second retrieval paths, and the file information of the coverage file of the test object includes the file information of the second coverage file; N1 is a positive integer greater than 1;
[0228] The file information acquisition module 12 includes:
[0229] The second file information acquisition unit 124 is used to acquire the j1th second search path from the N1 second search paths based on the second merge strategy corresponding to the second merge mode, and acquire the file information of the second data file corresponding to the j1th second search path; the file information of a second data file includes a file identifier of a second data file; j1 is a positive integer less than or equal to N1;
[0230] The character string acquisition unit 122 is further used to acquire a second key character string associated with a second coverage file of the test object;
[0231] The second file information searching unit 125 is used to search the file information of the second data file corresponding to the j1-th second search path for the file information of the second data file whose file identifier contains the second key string;
[0232] The second file information searching unit 125 is further used to use the found file information of the second data file whose file identifier contains the second key string as the file information of the second coverage file corresponding to the j1-th second search path;
[0233] The second file information search unit 125 is also used to obtain the file information of the second coverage file corresponding to N1 second search paths when j1 is equal to N1, and use the file information of the second coverage file corresponding to the N1 second search paths as the file information of the second coverage file of the test object in the second merge mode.
[0234] Among them, the number of second coverage files corresponding to the j1-th second search path is K1; K1 is a positive integer; the file search time period includes the second file search time period;
[0235] The file information search module 13 includes:
[0236] The second information sorting unit 133 is used to sort the file information of K1 second coverage rate files according to the time sequence associated with the file generation timestamp, obtain the sorted file information of K1 second coverage rate files, and construct the second file information list corresponding to the j1-th second search path based on the sorted file information of the K1 second coverage rate files;
[0237] The second information determining unit 134 is configured to, when obtaining the file information of the u1-th second coverage rate file in the second file information list corresponding to the j1-th second search path, use the obtained file information of the u1-th second coverage rate file as the second reference file information; u1 is a positive integer less than or equal to K1;
[0238] The second information determining unit 134 is further configured to use the second reference file information as the target file information corresponding to the j1-th second search path when the file generation timestamp included in the second reference file information is within the second file search time period;
[0239] The second information determination unit 134 is also used to obtain target file information corresponding to N1 second search paths when j1 is equal to N1, and use the target file information corresponding to the N1 second search paths as the file information of the second coverage file whose found file generation timestamp is within the second file search time period.
[0240] The to-be-merged file includes the second to-be-merged file corresponding to the N1 second search paths; the acquired file storage path includes the second file storage path in the file information of the second to-be-merged file corresponding to the N1 second search paths; the merged coverage file includes the second merged coverage file; and the merged file output path includes the second merged file output path;
[0241] The file merging module 14 includes:
[0242] The second file query unit 144 is used to query the second coverage file corresponding to the second file storage path corresponding to the j1-th second search path based on the second file storage path corresponding to the j1-th second search path, and use the queried second coverage file as the second file to be merged corresponding to the j1-th second search path;
[0243] The standard file acquisition unit 142 is used to acquire a second coverage file that meets the standard file acquisition condition from the second to-be-merged file corresponding to the j1-th second search path, and use the acquired second coverage file that meets the standard file acquisition condition as the second standard coverage file corresponding to the j1-th second search path;
[0244] The second merging processing unit 145 is used to merge the second to-be-merged file corresponding to the j1-th second search path based on the second standard coverage file corresponding to the j1-th second search path, so as to obtain a merged coverage file corresponding to the j1-th second search path;
[0245] The second merge processing unit 145 is also used to obtain the merged coverage file corresponding to N1 second search paths when j1 is equal to N1, and merge the merged coverage files corresponding to the N1 second search paths to obtain the second merged coverage file for storing the test object in the second merged file output path.
[0246] Wherein, if the business merge mode is the third merge mode, and the third merge mode is composed of the first merge sub-mode and the second merge sub-mode, the business file retrieval path includes a third retrieval path associated with the first merge sub-mode, and N2 fourth retrieval paths associated with the second merge sub-mode, and the file information of the coverage file of the test object includes the file information of the third coverage file in the first merge sub-mode, and the file information of the fourth coverage file in the second merge sub-mode; N2 is a positive integer greater than 1;
[0247] The file information acquisition module 12 includes:
[0248] A third file information acquisition unit 126 is used to acquire file information of a third data file corresponding to a third search path based on a third merge strategy corresponding to the first merge sub-mode, and acquire file information of a third coverage file of the test object in the first merge sub-mode from the file information of the third data file corresponding to the third search path;
[0249] a fourth file information acquisition unit 127, configured to acquire, based on a fourth merging strategy corresponding to the second merging sub-mode, a j2-th fourth search path from the N2 fourth search paths, and acquire file information of a fourth data file corresponding to the j2-th fourth search path, and acquire file information of a fourth coverage file corresponding to the j2-th fourth search path from the file information of the fourth data file corresponding to the j2-th fourth search path; j2 is a positive integer less than or equal to N2;
[0250] The fourth file information acquisition unit 127 is also used to obtain the file information of the fourth coverage file corresponding to N2 fourth search paths when j2 is equal to N2, and use the file information of the fourth coverage file corresponding to the N2 fourth search paths as the file information of the fourth coverage file of the test object under the second merging sub-mode.
[0251] Among them, the third coverage files of the test object are M2; M2 is a positive integer; the fourth coverage files corresponding to the j2-th fourth search path are K2; K2 is a positive integer; the file search time period includes the third file search time period associated with the first merge sub-mode, and the fourth file search time period associated with the second merge sub-mode;
[0252] The file information search module 13 includes:
[0253] A third information sorting unit 135 is used to sort the file information of the M2 third coverage rate files according to the time sequence associated with the file generation timestamp, obtain the sorted file information of the M2 third coverage rate files, and construct a third file information list based on the sorted file information of the M3 third coverage rate files;
[0254] The third information determining unit 136 is configured to, when obtaining the file information of the i2th third coverage rate file in the third file information list, use the obtained file information of the i2th third coverage rate file as the third reference file information; i2 is a positive integer less than or equal to M2;
[0255] The third information determining unit 136 is further configured to use the third reference file information as file information of a third coverage file whose file generation timestamp is within the third file search time period when the file generation timestamp included in the third reference file information is within the third file search time period;
[0256] The fourth information sorting unit 137 is used to sort the file information of the K2 fourth coverage rate files according to the time sequence associated with the file generation timestamp, obtain the sorted file information of the K2 fourth coverage rate files, and construct a fourth file information list corresponding to the j2 th fourth search path based on the sorted file information of the K2 fourth coverage rate files;
[0257] The fourth information determining unit 138 is configured to, when obtaining the file information of the u2th fourth coverage rate file in the fourth file information list corresponding to the j2th fourth search path, use the obtained file information of the u2th fourth coverage rate file as the fourth reference file information; u2 is a positive integer less than or equal to K2;
[0258] The fourth information determining unit 138 is further configured to use the fourth reference file information as the target file information corresponding to the j2 th fourth search path when the file generation timestamp included in the fourth reference file information is within the fourth file search time period;
[0259] The fourth information determination unit 138 is also used to obtain the target file information corresponding to N2 fourth search paths when j2 is equal to N2, and use the target file information corresponding to the N2 fourth search paths as the file information of the fourth coverage file whose file generation timestamp is within the fourth file search time period.
[0260] The files to be merged include the third files to be merged corresponding to the third search path, and the fourth files to be merged corresponding to the N2 fourth search paths; the acquired file storage path includes the third file storage path in the file information of the third files to be merged corresponding to the third search path, and the fourth file storage path in the file information of the fourth files to be merged corresponding to the N2 fourth search paths; the merged coverage file includes the third merged coverage file; and the merged file output path includes the third merged file output path;
[0261] The file merging module 14 includes:
[0262] A third file query unit 146, configured to query a third coverage file corresponding to the third file storage path based on the third file storage path, and use the queried third coverage file as a third file to be merged;
[0263] The standard file acquisition unit 142 is used to acquire a third coverage file that meets the standard file acquisition condition from the third file to be merged, and use the acquired third coverage file that meets the standard file acquisition condition as a third standard coverage file;
[0264] A third merging processing unit 147 is used to merge the third to-be-merged file based on the third standard coverage file to obtain a merged coverage file corresponding to the third search path;
[0265] The third file query unit 148 is used to query the fourth coverage file corresponding to the fourth file storage path corresponding to the j2-th fourth search path based on the fourth file storage path corresponding to the j2-th fourth search path, and use the queried fourth coverage file as the fourth to-be-merged file corresponding to the j2-th fourth search path;
[0266] The standard file acquisition unit 142 is further configured to acquire a fourth coverage file that meets the standard file acquisition condition from the fourth to-be-merged file corresponding to the j2-th fourth search path, and use the acquired fourth coverage file that meets the standard file acquisition condition as the fourth standard coverage file corresponding to the j2-th fourth search path;
[0267] A third merging processing unit 149 is used to merge the fourth to-be-merged file corresponding to the j2-th fourth search path based on the fourth standard coverage file corresponding to the j2-th fourth search path, to obtain a merged coverage file corresponding to the j2-th fourth search path;
[0268] The third merge processing unit 149 is also used to obtain the merged coverage file corresponding to N2 second search paths when j2 is equal to N2, merge the merged coverage file corresponding to the third search path and the merged coverage file corresponding to the N2 second search paths, and obtain the third merged coverage file for storing the test object in the third merged file output path.
[0269] The specific implementation of the configuration information acquisition module 11, the file information acquisition module 12, the file information search module 13, and the file merging module 14 can refer to the relevant description in the above embodiment, which will not be described in detail here. It should be understood that the description of the beneficial effects obtained by adopting the same method will not be described in detail.
[0270] For further information, see Fig.14 , Fig.14 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.14 As shown, the computer device 1400 can be a business terminal or a server, which will not be limited here. For ease of understanding, this application takes the computer device as a server as an example. The computer device 1400 may include: a processor 1401, a network interface 1404 and a memory 1405. In addition, the computer device 1400 may also include: a user interface 1403, and at least one communication bus 1402. Among them, the communication bus 1402 is used to realize the connection and communication between these components. Among them, the user interface 1403 may also include a standard wired interface and a wireless interface. The network interface 1404 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1405 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1405 may optionally also be at least one storage device located away from the aforementioned processor 1401. As Fig.14 As shown, the memory 1405 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application.
[0271] The network interface 1404 in the computer device 1400 can also provide a network data interaction function. Fig.14 In the computer device 1400 shown in the figure, the network interface 1404 can provide a network data interaction function; the user interface 1403 is mainly used to provide an input interface for the user; and the processor 1401 can be used to call the device control application stored in the memory 1405 to execute the above Figure 3 and Figure 6 The description of the configuration data processing method in the corresponding embodiment can also be performed as described above. Fig.13 The description of configuring the data processing device 1 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here either.
[0272] In a specific implementation, the device, processor, memory, etc. described in the embodiments of the present application can execute the implementation described in the above method embodiments, and can also execute the implementation described in the embodiments of the present application, which will not be repeated here.
[0273] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the configuration data processing device 1 mentioned above, and the computer program includes computer instructions. When the processor executes the computer instructions, it can execute the above-mentioned Figure 3 , Figure 6 The description of the configuration data processing method in the corresponding embodiment will therefore not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, computer instructions may be deployed on a computing device for execution, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network. Multiple computing devices distributed at multiple locations and interconnected by a communication network can constitute a blockchain system.
[0274] In addition, it should be noted that: the embodiment of the present application also provides a computer program product or a computer program, which may include computer instructions, and the computer instructions may be stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor may execute the computer instructions, so that the computer device executes the above Figure 3 , Figure 6 The description of the configuration data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer program product or computer program embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0275] It should be noted that, for the above-mentioned various method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0276] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0277] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0278] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0279] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A configuration data processing method, characterized in that: The method comprises: Acquire test configuration data information associated with the test object; the test configuration data information includes a mode configuration field, a retrieval path configuration field, a retrieval time configuration field and an output path configuration field; the mode configuration field is used to describe the business merging mode of the to-be-merged file associated with the test object, the retrieval path configuration field is used to describe the business file retrieval path associated with the to-be-merged file, the retrieval time configuration field is used to describe the file retrieval time period associated with the to-be-merged file, and the output path configuration field is used to describe the merged file output path associated with the to-be-merged file; Based on the business merging mode and the business file retrieval path, obtaining file information of the coverage file of the test object; the file information of a coverage file includes a file generation timestamp of a coverage file; Searching, in the file information of the coverage file of the test object, the file information of the coverage file whose file generation timestamp is within the file retrieval time period; When the file information of the coverage file whose file generation timestamp is found within the file retrieval time period is used as the file information of the file to be merged, the file merge command of the file to be merged is called to obtain the file storage path in the file information of the file to be merged, and the file to be merged is processed based on the obtained file storage path to obtain a merged coverage file of the test object for storage in the merged file output path.
2. The method according to claim 1, characterized in that: If the business merging mode is the first merging mode, the business file retrieval path includes a first retrieval path, and the file information of the coverage file of the test object includes the file information of the first coverage file; The acquiring file information of the coverage file of the test object based on the business merging mode and the business file retrieval path includes: Based on a first merging strategy corresponding to the first merging mode, obtaining file information of a first data file corresponding to the first search path; the file information of a first data file includes a file identifier of the first data file; Obtaining a first key string associated with a first coverage file of the test object; Searching for file information of a first data file whose file identifier contains the first key string in the file information of the first data file corresponding to the first search path; The found file information of the first data file containing the first key string is used as the file information of the first coverage file of the test object in the first merging mode.
3. The method according to claim 2, characterized in that The number of the first coverage files of the test object is M1; M1 is a positive integer; the file retrieval time period includes the first file retrieval time period; The searching, in the file information of the coverage file of the test object, for the file information of the coverage file with a file generation timestamp within the file retrieval time period comprises: Sorting the file information of the M1 first coverage rate files according to the time sequence associated with the file generation timestamp to obtain sorted file information of the M1 first coverage rate files, and constructing a first file information list based on the sorted file information of the M1 first coverage rate files; When the file information of the i1th first coverage rate file is obtained in the first file information list, the obtained file information of the i1th first coverage rate file is used as the first reference file information; i1 is a positive integer less than or equal to M1; When the file generation timestamp included in the first reference file information is within the first file retrieval time period, the first reference file information is used as the file information of the first coverage file whose file generation timestamp is within the first file retrieval time period.
4. The method according to claim 3, characterized in that When the file generation timestamp included in the first reference file information is within the first file search time period, using the reference file information as the file information of the first coverage file whose file generation timestamp is within the first file search time period, comprises: Obtaining a first start retrieval time corresponding to the first file retrieval time period, and obtaining a first end retrieval time corresponding to the first file retrieval time period; When format verification is performed on the first start retrieval time and the first end retrieval time and the format verification succeeds, time comparison processing is performed on the file generation timestamp of the first reference file information, the first start retrieval time, and the first end retrieval time to obtain a first time comparison result; If the first time comparison result indicates that the file generation timestamp of the first reference file information is greater than the first start retrieval time, and the file generation timestamp of the first reference file information is less than the first end retrieval time, it is determined that the file generation timestamp included in the first reference file information is within the first file retrieval time period, and the first reference file information is used as the file information of the first coverage file whose file generation timestamp is found within the first file retrieval time period.
5. The method according to claim 4, characterized in that The performing time comparison processing on the file generation timestamp of the first reference file information, the first start search time and the first end search time to obtain a first time comparison result includes: Performing time conversion processing on the file generation timestamp of the first reference file information to obtain a first to-be-compared time integer corresponding to the file generation timestamp of the first reference file information, performing time conversion processing on the first start retrieval time to obtain a first reference time integer corresponding to the first start retrieval time, and performing time conversion processing on the first end retrieval time to obtain a second reference time integer corresponding to the first end retrieval time; Performing an integer comparison on the first time integer to be compared and the first reference time integer to obtain a first comparison result, and performing an integer comparison on the first time integer to be compared and the second reference time integer to obtain a second comparison result; The first time comparison result is determined based on the first comparison result and the second comparison result.
6. The method according to claim 4, characterized in that The retrieval time configuration field includes a first retrieval time configuration field for describing the first file retrieval time period, the first retrieval time configuration field includes a first end retrieval time configuration field, the first end retrieval time configuration field is used to describe the first end retrieval time constituting the first file retrieval time period; The obtaining of a first end retrieval time corresponding to the first file retrieval time period includes: If the field information configured for the first end retrieval time configuration field is business time configuration information, the acquisition time of the test configuration data information is used as the first end retrieval time.
7. The method according to claim 2, characterized in that The to-be-merged file includes the first to-be-merged file corresponding to the first search path; the acquired file storage path includes the first file storage path in the file information of the first to-be-merged file; the merged coverage file includes the first merged coverage file; the merged file output path includes the first merged file output path; The performing file merging processing on the files to be merged based on the acquired file storage path to obtain a merged coverage file of the test object for storing in the merged file output path includes: Based on the first file storage path, query the first coverage file corresponding to the first file storage path, and use the queried first coverage file as the first file to be merged; Acquire a first coverage file that meets a standard file acquisition condition from the first file to be merged, and use the acquired first coverage file that meets the standard file acquisition condition as a first standard coverage file; Based on the first standard coverage file, the first to-be-merged file is merged to obtain a first merged coverage file of the test object for storing in the output path of the first merged file.
8. The method according to claim 1, characterized in that If the business merging mode is the second merging mode, the business file retrieval path includes N1 second retrieval paths, and the file information of the coverage file of the test object includes the file information of the second coverage file; N1 is a positive integer greater than 1; The acquiring file information of the coverage file of the test object based on the business merging mode and the business file retrieval path includes: Based on the second merging strategy corresponding to the second merging mode, obtaining a j1th second retrieval path from the N1 second retrieval paths, and obtaining file information of a second data file corresponding to the j1th second retrieval path; the file information of a second data file includes a file identifier of a second data file; j1 is a positive integer less than or equal to N1; Obtaining a second key string associated with a second coverage file of the test object; searching, in the file information of the second data file corresponding to the j1-th second search path, for the file information of the second data file whose file identifier contains the second key string; Using the found file information of the second data file containing the second key string as the file information of the second coverage file corresponding to the j1-th second search path; When j1 is equal to N1, the file information of the second coverage file corresponding to the N1 second search paths is obtained, and the file information of the second coverage file corresponding to the N1 second search paths is used as the file information of the second coverage file of the test object in the second merge mode.
9. The method according to claim 8, characterized in that The number of second coverage files corresponding to the j1-th second search path is K1; K1 is a positive integer; the file search time period includes the second file search time period; The searching, in the file information of the coverage file of the test object, for the file information of the coverage file with a file generation timestamp within the file retrieval time period comprises: Sorting the file information of the K1 second coverage rate files according to the time sequence associated with the file generation timestamp to obtain the sorted file information of the K1 second coverage rate files, and constructing the second file information list corresponding to the j1-th second search path based on the sorted file information of the K1 second coverage rate files; When the file information of the u1-th second coverage rate file is obtained in the second file information list corresponding to the j1-th second search path, the obtained file information of the u1-th second coverage rate file is used as the second reference file information; u1 is a positive integer less than or equal to K1; When the file generation timestamp included in the second reference file information is within the second file search time period, using the second reference file information as the target file information corresponding to the j1-th second search path; When j1 is equal to N1, the target file information corresponding to the N1 second search paths is obtained, and the target file information corresponding to the N1 second search paths is used as the file information of the second coverage file whose file generation timestamp is within the second file search time period.
10. The method according to claim 8, characterized in that The to-be-merged file includes the second to-be-merged file corresponding to the N1 second search paths; the acquired file storage path includes the second file storage path in the file information of the second to-be-merged file corresponding to the N1 second search paths; the merged coverage file includes the second merged coverage file; the merged file output path includes the second merged file output path; The performing file merging processing on the files to be merged based on the acquired file storage path to obtain a merged coverage file of the test object for storing in the merged file output path includes: Based on the second file storage path corresponding to the j1-th second search path, query the second coverage file corresponding to the second file storage path corresponding to the j1-th second search path, and use the queried second coverage file as the second file to be merged corresponding to the j1-th second search path; Obtaining a second coverage file that meets a standard file acquisition condition from the second file to be merged corresponding to the j1-th second search path, and using the obtained second coverage file that meets the standard file acquisition condition as the second standard coverage file corresponding to the j1-th second search path; Based on the second standard coverage file corresponding to the j1-th second search path, the second to-be-merged file corresponding to the j1-th second search path is merged to obtain a merged coverage file corresponding to the j1-th second search path; When j1 is equal to N1, the merged coverage file corresponding to the N1 second search paths is obtained, and the merged coverage files corresponding to the N1 second search paths are merged to obtain the second merged coverage file of the test object for storing in the output path of the second merged file.
11. The method according to claim 1, characterized in that If the business merge mode is the third merge mode, and the third merge mode is composed of the first merge sub-mode and the second merge sub-mode, the business file retrieval path includes a third retrieval path associated with the first merge sub-mode, and N2 fourth retrieval paths associated with the second merge sub-mode, and the file information of the coverage file of the test object includes the file information of the third coverage file in the first merge sub-mode, and the file information of the fourth coverage file in the second merge sub-mode; N2 is a positive integer greater than 1; The acquiring file information of the coverage file of the test object based on the business merging mode and the business file retrieval path includes: Based on a third merging strategy corresponding to the first merging sub-mode, obtaining file information of a third data file corresponding to the third search path, and obtaining file information of a third coverage file of the test object in the first merging sub-mode from the file information of the third data file corresponding to the third search path; Based on the fourth merging strategy corresponding to the second merging sub-mode, a j2-th fourth search path is obtained from the N2 fourth search paths, and file information of a fourth data file corresponding to the j2-th fourth search path is obtained, and file information of a fourth coverage file corresponding to the j2-th fourth search path is obtained from the file information of the fourth data file corresponding to the j2-th fourth search path; j2 is a positive integer less than or equal to N2; When j2 is equal to N2, the file information of the fourth coverage file corresponding to the N2 fourth search paths is obtained, and the file information of the fourth coverage file corresponding to the N2 fourth search paths is used as the file information of the fourth coverage file of the test object under the second merging sub-mode.
12. The method according to claim 11, characterized in that The number of the third coverage files of the test object is M2; M2 is a positive integer; the number of the fourth coverage files corresponding to the j2-th fourth search path is K2; K2 is a positive integer; the file search time period includes the third file search time period associated with the first merge sub-mode, and the fourth file search time period associated with the second merge sub-mode; The searching, in the file information of the coverage file of the test object, for the file information of the coverage file with a file generation timestamp within the file retrieval time period comprises: Sorting the file information of the M2 third coverage rate files according to the time sequence associated with the file generation timestamp to obtain the sorted file information of the M2 third coverage rate files, and constructing a third file information list based on the sorted file information of the M3 third coverage rate files; When the file information of the i2th third coverage rate file is obtained in the third file information list, the obtained file information of the i2th third coverage rate file is used as the third reference file information; i2 is a positive integer less than or equal to M2; When the file generation timestamp included in the third reference file information is within the third file search time period, using the third reference file information as the file information of the third coverage file whose file generation timestamp is within the third file search time period; Sorting the file information of the K2 fourth coverage rate files according to the time sequence associated with the file generation timestamp to obtain the sorted file information of the K2 fourth coverage rate files, and constructing the fourth file information list corresponding to the j2 th fourth search path based on the sorted file information of the K2 fourth coverage rate files; When the file information of the u2-th fourth coverage file is obtained in the fourth file information list corresponding to the j2-th fourth search path, the obtained file information of the u2-th fourth coverage file is used as the fourth reference file information; u2 is a positive integer less than or equal to K2; When the file generation timestamp included in the fourth reference file information is within the fourth file search time period, using the fourth reference file information as the target file information corresponding to the j2-th fourth search path; When j2 is equal to N2, the target file information corresponding to the N2 fourth search paths is obtained, and the target file information corresponding to the N2 fourth search paths is used as the file information of the fourth coverage file whose file generation timestamp is within the fourth file search time period.
13. The method according to claim 11, characterized in that The to-be-merged file includes the third to-be-merged file corresponding to the third search path, and the fourth to-be-merged file corresponding to the N2 fourth search paths; the acquired file storage path includes the third file storage path in the file information of the third to-be-merged file corresponding to the third search path, and the fourth file storage path in the file information of the fourth to-be-merged file corresponding to the N2 fourth search paths; the merged coverage file includes the third merged coverage file; the merged file output path includes the third merged file output path; The performing file merging processing on the files to be merged based on the acquired file storage path to obtain a merged coverage file of the test object for storing in the merged file output path includes: Based on the third file storage path, query the third coverage file corresponding to the third file storage path, and use the queried third coverage file as the third file to be merged; Acquire a third coverage file that meets a standard file acquisition condition from the third file to be merged, and use the acquired third coverage file that meets the standard file acquisition condition as a third standard coverage file; Based on the third standard coverage file, the third to-be-merged file is merged to obtain a merged coverage file corresponding to the third search path; Based on the fourth file storage path corresponding to the j2-th fourth search path, query the fourth coverage file corresponding to the fourth file storage path corresponding to the j2-th fourth search path, and use the queried fourth coverage file as the fourth file to be merged corresponding to the j2-th fourth search path; Obtaining a fourth coverage file that meets the standard file acquisition condition from the fourth file to be merged corresponding to the j2-th fourth search path, and using the obtained fourth coverage file that meets the standard file acquisition condition as the fourth standard coverage file corresponding to the j2-th fourth search path; Based on the fourth standard coverage file corresponding to the j2-th fourth search path, the fourth to-be-merged file corresponding to the j2-th fourth search path is merged to obtain a merged coverage file corresponding to the j2-th fourth search path; When j2 is equal to N2, the merged coverage file corresponding to the N2 second search paths is obtained, and the merged coverage file corresponding to the third search path and the merged coverage file corresponding to the N2 second search paths are merged to obtain a third merged coverage file of the test object for storing in the third merged file output path.
14. A configuration data processing device, characterized in that: The device comprises: A configuration information acquisition module, used to acquire test configuration data information associated with a test object; the test configuration data information includes a mode configuration field, a retrieval path configuration field, a retrieval time configuration field, and an output path configuration field; the mode configuration field is used to describe a business merging mode of a to-be-merged file associated with the test object, the retrieval path configuration field is used to describe a business file retrieval path associated with the to-be-merged file, the retrieval time configuration field is used to describe a file retrieval time period associated with the to-be-merged file, and the output path configuration field is used to describe a merged file output path associated with the to-be-merged file; A file information acquisition module, used to acquire file information of the coverage file of the test object based on the business merging mode and the business file retrieval path; the file information of a coverage file includes a file generation timestamp of the coverage file; A file information search module, used to search the file information of the coverage file of the test object for the file information of the coverage file whose file generation timestamp is within the file retrieval time period; A file merging module is used to call the file merging command of the file to be merged when the file information of the coverage file whose file generation timestamp is within the file retrieval time period is used as the file information of the file to be merged, obtain the file storage path in the file information of the file to be merged, perform file merging processing on the file to be merged based on the obtained file storage path, and obtain a merged coverage file of the test object for storage in the merged file output path.
15. A computer device, characterized in that: including memory and processor; The memory is connected to the processor, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 13.
17. A computer program product, characterized in that The method comprises a computer program / instruction, which implements the method according to any one of claims 1 to 13 when executed by a processor.