Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The processing method of the performance test data provided by the application can be applied to the application environment shown in fig. 1. Performance test data for performance testing is derived from a plurality of business databases. As shown in fig. 1, the plurality of business databases include a business database 11, a business database 13, a business database 15, and the like. The data processing server 21 obtains the file path of the first parameter file corresponding to the performance test from each service database, and obtains the performance test data in each first parameter file through the file path of each first parameter file. Further, merging the performance test data obtained from the business database to obtain a merged data set. The data processing server 21 may send the merged processed data set to the database server 31 performing the performance test to perform the performance test by the database server 31 according to the performance test data in the data set. The data processing server 21 may be implemented by an independent server or a server cluster composed of a plurality of servers. Likewise, the database server 31 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a method for processing performance test data is provided, which is described by taking the method as an example applied to the data processing server in fig. 1, and includes the following steps:
s101, file paths of a plurality of first parameter files corresponding to performance tests are obtained, and each first parameter file is used for storing a plurality of performance test data.
In this embodiment, the scenario of performance testing involves multiple related service databases. Each service database stores performance test data for a performance test in the form of a first parameter file. The performance test data stored in the first parameter file may be test data obtained by parameterizing each piece of relevant data for a performance test. When the performance test is executed, the performance test data needs to be read from the first parameter file of each service database, and the performance test data is tested and processed according to a certain sequence according to the performance test scene. Specifically, the data processing server obtains a file path of the first parameter file in each service database. The data processing server may obtain file paths of the plurality of first parameter files according to a test requirement of the performance test. The file path includes a file path of an input file and a file path of an output file. The obtaining mode may be that the file path of each first parameter file is analyzed according to the type of the parameterized file of the performance test. The parameterized file is a file containing data obtained by parameterizing each relevant data based on performance test. The first parameter file may be a parameterization file herein. Specifically, the data processing server includes a parameter entry analysis module, and the file path of each first parameter file is analyzed by the parameter entry analysis module, so as to reach the file path of each first parameter file.
In one embodiment, S101 includes: acquiring file paths of a plurality of first parameter files from different databases according to the test requirements of the performance test; or acquiring file paths of a plurality of first parameter files from different parameter file storage tables of the same database according to the test requirements of the performance test.
In this embodiment, the performance test data may come from different databases of the system. Alternatively, different parameter file storage tables from the same database. And the server acquires file paths of a plurality of first parameter files from different databases or different parameter file storage tables of the same database according to the test requirements of the performance test. Therefore, the merging process of the performance test data from different databases or from different memory tables of the same database can be realized.
In one embodiment, S101 includes: and acquiring file paths of the first parameter files of a plurality of different file formats corresponding to the performance test.
In this embodiment, the data processing server supports processing of multiple types of file formats, including csv, txt, doc, xls, and so forth. Meanwhile, multi-file operation of different file formats is supported. Specifically, the data processing server obtains file paths of first parameter files in a plurality of different file formats corresponding to the performance test. For example, the first parameter file of the plurality of different file formats includes a first parameter file of a csv format, a first parameter file of a txt format, a first parameter file of a doc format, and the like.
S103, respectively acquiring performance test data in each first parameter file according to the file paths of the plurality of first parameter files.
In this embodiment, the data processing server obtains the performance test data in each first parameter file according to the file paths of the plurality of first parameter files. The first parameter file contains performance test data required for performing a performance test. The performance test data may be test data obtained by parameterizing each related data in the service database based on a performance test. Specifically, the data processing server comprises a file loading module. And opening a file path of each first parameter file through a file loading module, and further loading the performance test data of each first parameter file. Therefore, performance test data from each service database in the performance test can be obtained without manual operation, and the efficiency of data processing in the performance test data preparation process in the performance test is improved.
In one embodiment, as shown in fig. 3, S101 includes the steps of:
s1011, a plurality of file paths of a plurality of first parameter files corresponding to the performance test are obtained.
And S1013, when any file path in the multiple file paths is abnormal, performing information prompt according to the abnormal file path, and dividing the multiple file paths into a first file path and a second file path, wherein the first file path comprises a correct file path in the multiple file paths, and the second file path comprises an abnormal file path in the multiple file paths.
And S1015, when it is determined that the abnormal file path in the second file path is modified into the correct file path, dividing the modified correct file path into the first file path.
At this time, S103 includes the steps of:
and S1031, respectively obtaining the performance test data in each first parameter file according to the first file path.
In this embodiment, the data processing server includes an exception handling module. The exception handling module is used for handling exception file paths in the first parameter files. When the abnormality processing module detects that the file path of any one of the first parameter files is abnormal, information prompt is carried out according to the abnormal file path so as to prompt a user to modify the abnormal file path. Meanwhile, the acquired multiple file paths are divided into a first file path and a second file path. The first file path includes one or more correct file paths of the plurality of file paths. The second file path includes one or more anomalous file paths of the plurality of file paths. The exception handling module detects that a file path of the detected exception is divided into a second file path. And when the situation that the user modifies the abnormal file path in the second file path and the modified file path is determined to be the correct file path is detected, dividing the modified file path into the first file path according to the correct file path. And finally, the data processing server acquires corresponding performance test data according to all correct file paths in the first file path so as to perform subsequent merging processing on the acquired performance test data. Therefore, loss of performance test data due to file path errors can be avoided.
In particular embodiments, an abnormal file path generally refers to a file path that may be abnormal when directly entered into a data processing server. For example, the abnormal file path includes a directory not existing, a directory format abnormal, and the like. In actual operation, when the file path is abnormal, the abnormal processing module prompts the abnormal file path in detail so as to prompt a user to modify the corresponding abnormal file path. After the abnormal file path is modified normally, the data processing server will execute the next operation. Specifically, the selection of the file path of the first parameter file supports: the trigger button is filled in by popping up a dialog box for selecting a file and directly inputting a corresponding file path. As shown in fig. 4, in the merge file tool, a path selection box for each first profile is provided. Such as file1 path, file 2 path, etc. When a file1 path is triggered, a dialog box for selecting a first parameter file pops up, and the file path of the first parameter file is filled in a block diagram corresponding to the file path by triggering and selecting the first parameter file. Or directly filling the file path of the first parameter file in the selection block corresponding to the file1 path, such as D:/file 1.
In one embodiment, as shown in fig. 5, S103 includes the steps of:
s1033: when the file format of any one first parameter file in the first parameter files is abnormal, information prompt is carried out according to the first parameter file with the abnormal file format, the first parameter files are divided into a first file and a second file, the first file comprises the first parameter files with the correct file format in the first parameter files, and the second file comprises the first parameter files with the abnormal file format in the first parameter files.
S1035: and when the first parameter file with the abnormal file format in the second file is modified into the first parameter file with the correct file format, dividing the modified first parameter file with the correct file format into the first files.
S1037: and respectively acquiring the performance test data of the first parameter file with the correct file format in the first files according to the file paths of the plurality of first parameter files.
In this embodiment, the exception handling module is further configured to handle an exception first profile of the plurality of first profiles. When the abnormality processing module detects that the file format of any one first parameter file in the plurality of first parameter files is abnormal, information prompt is carried out according to the first parameter file with the abnormal file format so as to prompt a user to modify the first parameter file with the abnormal file format. The file format of the first parameter file with abnormal file format may be changed, so that the file format of the first parameter file meets the system requirements. Or, acquiring a file with the same content as the first parameter file according to the first parameter file with the abnormal file format to replace the first parameter file. Meanwhile, the plurality of first parameter files are divided into a first file and a second file, the first file comprises the first parameter files with correct file formats in the plurality of first parameter files, and the second file comprises the first parameter files with abnormal file formats in the plurality of first parameter files. The exception handling module divides the first parameter file with the abnormal file format into a second file. When the abnormity processing module detects that a user modifies a first parameter file with an abnormal file format in the second file and determines that the modified first parameter file is a first parameter file with a correct file format, the modified first parameter file with the correct file format is divided into first files. Finally, the data processing server respectively obtains the performance test data of the first parameter file with the correct file format in the first file according to the file paths of the plurality of first parameter files, so as to perform subsequent merging processing on the performance test data. Therefore, the loss of performance test data caused by file format errors can be avoided.
In a specific embodiment, the file format exception refers to an exception occurring when a corresponding file is read. Such as files that are corrupted, file formats that do not support special suffixes, etc. When the abnormity processing module detects that the abnormity occurs, detailed prompt is carried out aiming at the first parameter file with the abnormal file format so as to prompt a user to modify the corresponding first parameter file. And when the corresponding first parameter file is detected to be correctly modified, the data processing server executes the next operation. The file formats supported by the data processing server include a csv format, a txt format, a doc format, an xls format, and the like. The file format exception may be a file format not supported by the data processing server.
And S105, acquiring the arrangement sequence of the performance test data in each first parameter file.
In this embodiment, in the plurality of first parameter files, the performance test data stored in each first parameter file is stored according to a certain arrangement order. For example, the first row of performance test data, the second row of performance test data, the third row of performance test data, and the fourth row of performance test data … … may be stored in an arrangement order according to the requirement of performance test. Therefore, the server can directly read the arrangement sequence of the performance test data in each first parameter file.
And S107, merging the performance test data at the same sequencing position in each first parameter file to obtain a merged data set, wherein the data set is used for providing performance test data for performance test.
In this embodiment, the data processing server performs merging processing on a plurality of performance test data from the same sorting position in each first parameter file to obtain a merged data set. The data set is used to provide performance testing data to a database server that performs performance testing. For example, the first row of performance test data in each first parameter file is merged, the second row of performance test data in each first parameter file is merged, and so on. Therefore, the performance test data at the same sequencing position in each first parameter file are merged, so that the performance test data can be guaranteed to be merged in a targeted manner, the condition that the data of the database server are unbalanced during performance test is avoided, and the authenticity of a performance test result is prevented from being influenced.
Specifically, the data processing server merges a plurality of performance test data according to the performance test requirement, and outputs the merged data set to the temporary variable. The data processing server allocates a certain storage space for the temporary variable for storing the performance test data in the temporary variable. And finally, outputting the data in the temporary variable to a target parameterization file. The target parameterization file is used to provide performance test data to a database server that performs performance testing.
According to the processing method of the performance test data, the performance test data in each first parameter file is read according to the file paths by acquiring the file paths of the plurality of first parameter files corresponding to the performance test. Therefore, the performance test data of the performance test can be automatically acquired without manual operation, and the data processing efficiency in the performance test data preparation process during the performance test is improved. And further, merging the performance test data at the same sequencing position in each first parameter file to obtain a data set. The data set can be used to provide performance test data to a performance test. Therefore, the performance test data in the parameter files of the database server for inputting the performance test are prevented from being sorted manually, the performance test data are provided for the performance test after the performance test data at the same sorting position in each first parameter file are combined automatically, and the data processing efficiency in the performance test data preparation process during the performance test is further improved.
In one embodiment, S107 includes: merging the performance test data at the same sequencing position in each first parameter file in a sequential manner; or merging the performance test data at the same sequencing position in each first parameter file in a reverse order mode; or merging the performance test data at the same sequencing position in each first parameter file in a random mode.
In this embodiment, the manner of merging the performance test data at the same sorting position in each first parameter file may be in a sequential manner, in a reverse order manner, or in a random manner. In a particular implementation, the data processing server includes an integrated computing module. The integration calculation module is used for merging the performance test data at the same sequencing position in each first parameter file. Specifically, the integration calculation module combines the performance test data at the same sequencing position in each first parameter file in a sequential manner. For example, line 1 of File1, line 1 of File 2, line 2 of File1, line 2 of File 2, …, etc. are integrated into the same variable in a sequential manner and the number of lines is accumulated. Or integrating the last 1 line of the file1, the last 1 line of the file 2, the last 2 line of the file1, the last 2 line of the file 2, the … and the like into the same variable in a reverse order and accumulating the line numbers. Alternatively, line 1 of File1, line 1 of File 2, line 2 of File1, line 2 of File 2, …, etc. are integrated into the same variable and the number of lines is accumulated in a random manner. Each of the above items is lined up in the same variable. Wherein, file1 and file 2 refer to the first parameter files, respectively, and the line numbers in file1 and file 2 refer to the sequencing of the performance test data. Therefore, the performance test data can be guaranteed to be subjected to targeted merging operation, the condition that data of the database server are unbalanced easily during performance test is avoided, and the authenticity of a performance test result is prevented from being influenced.
In an implementation manner of this embodiment, as shown in fig. 6, after step S107, the method for processing performance test data of this application further includes:
and S109, storing the performance test data after each merging process to an intermediate file.
And S111, when the quantity of the performance test data in the intermediate file reaches a preset quantity value, importing the performance test data in the intermediate file into a second parameter file, and initializing the intermediate file, wherein the second parameter file is used for providing the performance test data for performance test.
And S113, when the quantity of the performance test data in the intermediate file does not reach a preset quantity value and the combined performance test data is completely stored in the intermediate file, importing the performance test data in the intermediate file into a second parameter file.
In this embodiment, when merging the performance test data at the same sorting position in each first parameter file, the data processing server stores the performance test data after each merging process in the intermediate file. The intermediate file may be a temporary variable set by the data processing server. And when the quantity of the performance test data in the intermediate file reaches a preset quantity value, importing the performance test data in the intermediate file into a second parameter file. And when the performance test data in the intermediate file is imported into the second parameter file, initializing the intermediate file. And then storing the performance test data after subsequent merging treatment by using the intermediate file after initialization treatment. S111 is executed in a loop. In addition, when the quantity of the performance test data in the intermediate file does not reach the preset quantity value and the performance test data after the combination processing is all stored in the intermediate file, the performance test data in the intermediate file is imported into the second parameter file. When the combined performance test data is continuously stored in the intermediate file, the quantity of the last part of performance test data does not reach the preset quantity value, and the last part of performance test data is also stored in the intermediate file at the moment. Wherein the second parameter file is used for providing performance test data for performance test.
For example, the data processing server includes a file output module. And the file output module is used for outputting the performance test data in the intermediate file. Specifically, the intermediate file is a temporary variable, and when the performance test data in the temporary variable is accumulated to a specified line number (for example, 200 lines), the performance test data in the temporary variable is written into the second parameter file once, and the corresponding temporary variable is initialized, so that the number of writing times is reduced, and the data processing efficiency is improved. And circularly executing the step until the performance test data is written into the second parameter file for the last time. Finally, the last less than 200 rows of partial performance test data are written at the end of the second parameter file. Therefore, in the pressure test process of executing the performance test, the pressure balance of the database server can be ensured when the table data in the plurality of service databases are used.
It should be understood that, although the steps in the flowchart are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, there is provided a performance test data processing apparatus, including: a first obtaining module 100, a second obtaining module 300, a third obtaining module 500, and a merging processing module 700, wherein:
the first obtaining module 100 is configured to obtain file paths of a plurality of first parameter files corresponding to performance tests, where each first parameter file is used to store a plurality of performance test data.
The second obtaining module 300 is configured to obtain performance test data in each first parameter file according to file paths of the plurality of first parameter files.
The third obtaining module 500 is configured to obtain an arrangement order of the performance test data in each first parameter file.
The merging processing module 700 is configured to merge the performance test data at the same sorting position in each first parameter file to obtain a merged data set, where the data set is used to provide performance test data for a performance test.
In one embodiment, the first obtaining module 100 may include (not shown in fig. 7):
the first obtaining unit is used for obtaining file paths of a plurality of first parameter files from different databases according to the test requirements of the performance test; or acquiring file paths of a plurality of first parameter files from different parameter file storage tables of the same database according to the test requirements of the performance test.
In one embodiment, the merge processing module 700 may include (not shown in fig. 7):
and the sequence merging unit is used for merging the performance test data at the same sequencing position in each first parameter file in a sequential manner.
Or, the reverse order merging unit is used for merging the performance test data at the same sorting position in each first parameter file in a reverse order mode.
Or, the random merging unit is used for merging the performance test data at the same sequencing position in each first parameter file in a random manner.
In one embodiment, the apparatus for processing performance test data further comprises (not shown in fig. 7):
and the storage module is used for storing the performance test data after each merging treatment to the intermediate file.
The first import module is used for importing the performance test data in the intermediate file into a second parameter file when the quantity of the performance test data in the intermediate file reaches a preset quantity value, and initializing the intermediate file, wherein the second parameter file is used for providing the performance test data for performance test.
And the second import module is used for importing the performance test data in the intermediate file into a second parameter file when the quantity of the performance test data in the intermediate file does not reach a preset quantity value and the combined performance test data are all stored in the intermediate file.
In one embodiment, the first obtaining module 100 further includes (not shown in fig. 7):
and the second acquisition unit is used for acquiring a plurality of file paths of a plurality of first parameter files corresponding to the performance test.
And the prompting unit is used for performing information prompting according to the abnormal file path when any one of the file paths is abnormal, and dividing the file paths into a first file path and a second file path, wherein the first file path comprises a correct file path in the file paths, and the second file path comprises an abnormal file path in the file paths.
The first modification unit is used for dividing the modified correct file path into the first file path when the abnormal file path in the second file path is modified into the correct file path;
a second obtaining module 200, comprising:
and the third acquiring unit is used for respectively acquiring the performance test data in each first parameter file according to the first file path.
In one embodiment, the second obtaining module 200 further includes (not shown in fig. 7):
and the second prompting unit is used for performing information prompting according to the first parameter file with the abnormal file format when the file format of any one of the first parameter files is abnormal, and dividing the first parameter files into a first file and a second file, wherein the first file comprises the first parameter file with the correct file format in the first parameter files, and the second file comprises the first parameter file with the abnormal file format in the first parameter files.
And the second modification unit is used for dividing the modified first parameter file with the correct file format into the first files when the first parameter file with the abnormal file format in the second file is modified into the first parameter file with the correct file format.
And the fourth obtaining unit is used for respectively obtaining the performance test data of the first parameter file with the correct file format in the first files according to the file paths of the plurality of first parameter files.
In one embodiment, the first obtaining module 100 may include (not shown in fig. 7):
and the fifth acquiring unit is used for acquiring file paths of the first parameter files in a plurality of different file formats corresponding to the performance test.
For specific limitations of the processing device for the performance test data, reference may be made to the above limitations of the processing method for the performance test data, which are not described herein again. The modules in the performance test data processing device may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a data management server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for connecting with an external service database to receive the performance test data in the service database. The computer program is executed by a processor to implement a method of processing performance test data.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring file paths of a plurality of first parameter files corresponding to the performance test, wherein each first parameter file is respectively used for storing a plurality of performance test data; respectively acquiring performance test data in each first parameter file according to the file paths of the plurality of first parameter files; acquiring the arrangement sequence of the performance test data in each first parameter file; and merging the performance test data at the same sequencing position in each first parameter file to obtain a merged data set, wherein the data set is used for providing performance test data for performance test.
In an embodiment, when the processor executes the computer program to implement the step of obtaining the file paths of the plurality of first parameter files corresponding to the performance test, the following steps are specifically implemented: acquiring file paths of a plurality of first parameter files from different databases according to the test requirements of the performance test; or acquiring file paths of a plurality of first parameter files from different parameter file storage tables of the same database according to the test requirements of the performance test.
In an embodiment, when the processor executes the computer program to implement the step of merging the performance test data at the same sorting position in each first parameter file, the following steps are specifically implemented: merging the performance test data at the same sequencing position in each first parameter file in a sequential manner; or merging the performance test data at the same sequencing position in each first parameter file in a reverse order mode; or merging the performance test data at the same sequencing position in each first parameter file in a random mode.
In one embodiment, the processor, when executing the computer program, performs the steps of: storing the performance test data after each merging treatment to an intermediate file; when the quantity of the performance test data in the intermediate file reaches a preset quantity value, importing the performance test data in the intermediate file into a second parameter file, and initializing the intermediate file, wherein the second parameter file is used for providing the performance test data for a performance test; and when the quantity of the performance test data in the intermediate file does not reach a preset quantity value and the combined performance test data is stored in the intermediate file, importing the performance test data in the intermediate file into a second parameter file.
In an embodiment, when the processor executes the computer program to implement the step of obtaining the plurality of file paths of the plurality of first parameter files corresponding to the performance test, the following steps are specifically implemented: when any one of the file paths is abnormal, performing information prompt according to the abnormal file path, and dividing the file paths into a first file path and a second file path, wherein the first file path comprises a correct file path in the file paths, and the second file path comprises an abnormal file path in the file paths; when the abnormal file path in the second file path is determined to be modified into a correct file path, dividing the modified correct file path into a first file path;
when the processor executes the computer program to realize the step of respectively acquiring the performance test data in each first parameter file according to the file paths of the plurality of first parameter files, the following steps are specifically realized: and respectively acquiring the performance test data in each first parameter file according to the first file path.
In an embodiment, when the processor executes the computer program to implement the step of respectively obtaining the performance test data in each first parameter file according to the file paths of the plurality of first parameter files, the following steps are specifically implemented: when the file format of any one first parameter file in the first parameter files is abnormal, performing information prompt according to the first parameter file with the abnormal file format, and dividing the first parameter files into a first file and a second file, wherein the first file comprises the first parameter file with the correct file format in the first parameter files, and the second file comprises the first parameter file with the abnormal file format in the first parameter files; when the first parameter file with the abnormal file format in the second file is modified into the first parameter file with the correct file format, dividing the modified first parameter file with the correct file format into the first files; and respectively acquiring the performance test data of the first parameter file with the correct file format in the first files according to the file paths of the plurality of first parameter files.
In an embodiment, when the processor executes the computer program to implement the step of obtaining the file paths of the plurality of first parameter files corresponding to the performance test, the following steps are specifically implemented: and acquiring file paths of the first parameter files of a plurality of different file formats corresponding to the performance test.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, implements a method for processing performance test data according to any one of the above embodiments.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring file paths of a plurality of first parameter files corresponding to the performance test, wherein each first parameter file is respectively used for storing a plurality of performance test data; respectively acquiring performance test data in each first parameter file according to the file paths of the plurality of first parameter files; acquiring the arrangement sequence of the performance test data in each first parameter file; and merging the performance test data at the same sequencing position in each first parameter file to obtain a merged data set, wherein the data set is used for providing performance test data for performance test.
In an embodiment, when the processor executes the step of obtaining the file paths of the plurality of first parameter files corresponding to the performance test, the following steps are specifically implemented: acquiring file paths of a plurality of first parameter files from different databases according to the test requirements of the performance test; or acquiring file paths of a plurality of first parameter files from different parameter file storage tables of the same database according to the test requirements of the performance test.
In an embodiment, when the computer program is executed by the processor to implement the step of merging the performance test data at the same sorting position in each first parameter file, the following steps are specifically implemented: merging the performance test data at the same sequencing position in each first parameter file in a sequential manner; or merging the performance test data at the same sequencing position in each first parameter file in a reverse order mode; or merging the performance test data at the same sequencing position in each first parameter file in a random mode.
In one embodiment, the computer program when executed by the processor implements the steps of: storing the performance test data after each merging treatment to an intermediate file; when the quantity of the performance test data in the intermediate file reaches a preset quantity value, importing the performance test data in the intermediate file into a second parameter file, and initializing the intermediate file, wherein the second parameter file is used for providing the performance test data for a performance test; and when the quantity of the performance test data in the intermediate file does not reach a preset quantity value and the combined performance test data is stored in the intermediate file, importing the performance test data in the intermediate file into a second parameter file.
In an embodiment, when the processor executes the step of obtaining the plurality of file paths of the plurality of first parameter files corresponding to the performance test, the following steps are specifically implemented: when any one of the file paths is abnormal, performing information prompt according to the abnormal file path, and dividing the file paths into a first file path and a second file path, wherein the first file path comprises a correct file path in the file paths, and the second file path comprises an abnormal file path in the file paths; when the abnormal file path in the second file path is determined to be modified into a correct file path, dividing the modified correct file path into a first file path;
when the computer program is executed by the processor to implement the step of respectively acquiring the performance test data in each first parameter file according to the file paths of the plurality of first parameter files, the following steps are specifically implemented: and respectively acquiring the performance test data in each first parameter file according to the first file path.
In an embodiment, when the processor executes the step of obtaining the performance test data in each first parameter file according to the file path of the plurality of first parameter files, the following steps are specifically implemented: when the file format of any one first parameter file in the first parameter files is abnormal, performing information prompt according to the first parameter file with the abnormal file format, and dividing the first parameter files into a first file and a second file, wherein the first file comprises the first parameter file with the correct file format in the first parameter files, and the second file comprises the first parameter file with the abnormal file format in the first parameter files; when the first parameter file with the abnormal file format in the second file is modified into the first parameter file with the correct file format, dividing the modified first parameter file with the correct file format into the first files; and respectively acquiring the performance test data of the first parameter file with the correct file format in the first files according to the file paths of the plurality of first parameter files.
In an embodiment, when the processor executes the step of obtaining the file paths of the plurality of first parameter files corresponding to the performance test, the following steps are specifically implemented: and acquiring file paths of the first parameter files of a plurality of different file formats corresponding to the performance test.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.