Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The method for processing the performance test data can be applied to an application environment shown in fig. 1. The performance test data of the performance test is derived from a plurality of business databases. As shown in fig. 1, the plurality of service databases includes a service database 11, a service database 13, a service database 15, and the like. The data processing server 21 acquires the file paths of the first parameter files corresponding to the performance test from each service database, and acquires the performance test data in each first parameter file through the file paths of each first parameter file. Further, the performance test data obtained from the service database are combined to obtain a combined data set. The data processing server 21 may transmit the merged 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 as a stand-alone server or as a server cluster composed of a plurality of servers. Likewise, the database server 31 may be implemented as a stand-alone server or as 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, and the method is applied to the data processing server in fig. 1 for illustration, and includes the following steps:
s101, acquiring file paths of a plurality of first parameter files corresponding to performance tests, wherein 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 business databases. Each business database stores performance test data of the performance test in the form of a first parameter file. The performance test data stored in the first parameter file may be test data parameterized for each relevant data for performance testing. When performance testing is executed, performance testing data are required to be read from the first parameter files of each service database, and testing processing is carried out on the performance testing data according to a certain sequence according to a performance testing scene. Specifically, the data processing server obtains file paths of the first parameter files 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 paths of the first parameter files are parsed according to the type of the parameterized file of the performance test. The parameterized file refers to a file containing data obtained by parameterizing each related data based on a performance test. The first parameter file may be a parameterized file herein. Specifically, the data processing server includes a parameter entering analysis module, and the parameter entering analysis module analyzes the file paths of the first parameter files and further analyzes the file paths of the first parameter files.
In one embodiment, S101 includes: acquiring file paths of a plurality of first parameter files from different databases according to test requirements of performance tests; 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 requirement of the performance test.
In this embodiment, the performance test data may be from different databases of the system. Or, different parameter file storage tables from the same database. The server obtains file paths of a plurality of first parameter files from different databases or from different parameter file storage tables of the same database according to the test requirements of the performance test. Thus, a subsequent merging process of performance test data from different databases or from different memory tables of the same database can be achieved.
In one embodiment, S101 includes: and acquiring file paths of the first parameter files in 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 the like. At the same time, multiple file operations of different file formats are supported. Specifically, the data processing server obtains file paths of first parameter files of a plurality of different file formats corresponding to the performance test. For example, the first parameter files of the plurality of different file formats include a first parameter file of csv format, a first parameter file of txt format, a first parameter file of doc format, and the like.
S103, respectively acquiring performance test data in each first parameter file according to 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 performance test execution. The performance test data may be test data obtained by parameterizing each relevant data in the service database based on performance test. Specifically, the data processing server includes a file loading module. And opening a file path of each first parameter file through the file loading module, and loading performance test data of each first parameter file. Therefore, the 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 preparation process of the performance test data in the performance test is improved.
In one embodiment, as shown in fig. 3, S101 includes the steps of:
s1011, acquiring a plurality of file paths of a plurality of first parameter files corresponding to the performance test.
S1013, when any one of the file paths is abnormal, information prompt is carried out according to the abnormal file path, and the file paths are divided into a first file path and a second file path, wherein the first file path comprises the correct file path in the file paths, and the second file path comprises the abnormal file path in the file paths.
S1015, when it is determined that the abnormal file path in the second file path is modified to the correct file path, dividing the modified correct file path into the first file path.
At this time, S103 includes the steps of:
s1031, respectively acquiring 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 the file paths of the exceptions in the plurality of first parameter files. When the abnormality processing module detects that the file path of any one of the plurality of 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 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 abnormal file paths of the plurality of file paths. The abnormality processing module detects dividing the detected abnormal file path into a second file path. When it is detected that the user modifies an abnormal file path in the second file path and the modified file path is determined to be a correct file path, dividing the corrected file path into the first file path according to the corrected file path. Finally, the data processing server acquires corresponding performance test data according to all correct file paths in the first file path, so as to carry out subsequent merging processing on the acquired performance test data. Therefore, the loss of performance test data due to file path errors can be avoided.
In particular embodiments, an anomalous file path generally refers to a file path that may be anomalous when directly entered into a data processing server. For example, an abnormal file path includes directory absence, directory format abnormality, and the like. In actual operation, when the file path is abnormal, the abnormality 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 executes the next operation. Specifically, the selection of the file path of the first parameter file supports: the trigger button is used for popping up the selected file dialog box to fill in and directly inputting the corresponding file path. As shown in fig. 4, in the merge file tool, a path selection box for each first parameter file is provided. Such as a file1 path, a file 2 path, etc. When the path of the file1 is triggered, a dialog box for selecting the first parameter file is popped up, and the file path of the first parameter file is filled into a block diagram corresponding to the file path through triggering the selection of the first parameter file. Or directly filling the file path of the first parameter file in the selection block diagram corresponding to the file1 path, such as D:/file1.
In one embodiment, as shown in fig. 5, S103 includes the steps of:
s1033: when the file format of any one of the plurality of first parameter files is abnormal, information prompt is carried out according to the first parameter files with abnormal file formats, the plurality of first parameter files are divided into first files and second files, the first files comprise the first parameter files with correct file formats in the plurality of first parameter files, and the second files comprise the first parameter files with abnormal file formats in the plurality of 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 file.
S1037: and respectively acquiring performance test data of the first parameter files with correct file formats in the first files according to file paths of the plurality of first parameter files.
In this embodiment, the exception handling module is further configured to handle an exception first parameter file of the plurality of first parameter files. When the abnormality processing module detects that the file format of any one of 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 requirement. Or acquiring the file with the same content as the first parameter file according to the first parameter file with abnormal file format so as to replace the first parameter file. Meanwhile, the plurality of first parameter files are divided into a first file and a second file, wherein 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 abnormality processing module detects that a user modifies a first parameter file with abnormal file format in the second file, and determines that the modified first parameter file is a first parameter file with correct file format, the modified first parameter file with correct file format is divided into the first files. Finally, the data processing server respectively acquires the performance test data of the first parameter files with correct file formats in the first files according to the file paths of the plurality of first parameter files so as to carry out subsequent merging processing on the performance test data. Therefore, the loss of performance test data due to file format errors can be avoided.
In a specific embodiment, the file format exception refers to an exception that occurs when a corresponding file is read. Such as file corruption, file formats that do not support special suffixes, etc. When the abnormality processing module detects that the abnormality occurs, the abnormality processing module prompts the first parameter file with abnormal file format in detail so as to prompt a user to modify the corresponding first parameter file. When the modification of the corresponding first parameter file is detected to be correct, the data processing server executes the next operation. File formats supported by the data processing server include csv format, txt format, doc format, xls format, and the like. The file format exception may be a file format that is not supported by the data processing server.
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 of the first parameter files is stored in a certain arrangement order. For example, the first row performance test data, the second row performance test data, the third row performance test data, and the fourth row performance test data … … performance test data may be stored in a rank order according to the performance test requirements. Therefore, the server can directly read out the arrangement sequence of the performance test data in each first parameter file.
And S107, combining the performance test data in the same sequencing position in each first parameter file to obtain a combined data set, wherein the data set is used for providing the performance test data for performance test.
In this embodiment, the data processing server performs merging processing on the plurality of performance test data from the same sorting position in each first parameter file, so as to obtain a merged data set. The data set is used to provide performance test data to a database server performing performance tests. 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 in the same sequencing positions in each first parameter file are combined, the targeted combination operation of the performance test data can be ensured, the situation that the data of the database server is unbalanced easily during performance test is avoided, and the authenticity of the performance test result is prevented from being influenced.
Specifically, the data processing server performs merging processing on a plurality of performance test data according to performance test requirements, and then outputs a merged data set to a temporary variable. The data processing server allocates a certain memory space for the temporary variable for storing performance test data in the temporary variable. And finally, outputting the data in the temporary variable to a target parameterized file. The target parametric file is used to provide performance test data to a database server performing the performance test.
According to the processing method of the performance test data, the file paths of the plurality of first parameter files corresponding to the performance test are obtained, and the performance test data in each first parameter file are read according to the file paths. Therefore, the performance test data of the performance test can be automatically obtained without manual operation, and the efficiency of data processing in the preparation process of the performance test data during the performance test is improved. Further, the data sets are obtained by combining the performance test data at the same sequencing positions in the first parameter files. The data set can be used to provide performance test data to the performance test. Therefore, the sorting processing of the performance test data in the parameter files of each database server for inputting the performance test is avoided, the performance test data in the same sorting position in each first parameter file is automatically combined, the performance test data is provided for the performance test, and the data processing efficiency in the preparation process of the performance test data in the performance test is further improved.
In one embodiment, S107 includes: combining the performance test data of the same sequencing position in each first parameter file in a sequential mode; or combining the performance test data at the same sequencing position in each first parameter file in a reverse sequence mode; or combining the performance test data of the same sequencing position in each first parameter file in a random mode.
In this embodiment, the manner of merging the performance test data of the same sort position in each first parameter file may be in a sequential manner, in an inverted manner, or in a random manner. In a specific implementation, the data processing server includes an integrated computing module. The integration calculation module is used for merging the performance test data of the same sequencing position in each first parameter file. Specifically, the integration calculation module performs merging processing on the performance test data of the same sorting position in each first parameter file in a sequential manner. For example, file 1 line 1, file 2 line 1, file 1 line 2, file 2 line 2, …, etc. are integrated into the same variable in a sequential manner and the number of lines is accumulated. Alternatively, the last 1 row of file 1, the last 1 row of file 2, the last 2 row of file 1, the last 2 row of file 2, the last 2 row of file …, etc. are integrated into the same variable in the reverse order and the rows are accumulated. Alternatively, file 1, file 2, …, etc. are integrated into the same variable in a random manner and the number of rows is accumulated. Each of the above items is written in a row in the same variable. Wherein, file 1 and file 2 refer to the first parameter files respectively, and the number of rows in file 1 and file 2 refer to the ordering of the performance test data. Therefore, the targeted merging operation of the performance test data can be ensured, and the situation that the data of the database server is unbalanced easily during performance test is avoided, so that the authenticity of the performance test result is prevented from being influenced.
In one implementation manner of this embodiment, as shown in fig. 6, after step S107, a method for processing performance test data in the present application further includes:
and S109, storing the performance test data after each merging process into 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.
S113, when the number of the performance test data in the intermediate file does not reach the preset number value and the performance test data after the combination processing are all stored in the intermediate file, importing the performance test data in the intermediate file into a second parameter file.
In this embodiment, when the data processing server performs the merging process on the performance test data of the same sort 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 confirmed to be imported into the second parameter file, initializing the intermediate file. And storing the performance test data after the subsequent merging processing by using the intermediate file after the initializing processing. The loop performs S111. In addition, when the number of the performance test data in the intermediate file does not reach a preset number 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 performance test data after the combination processing is continuously stored in the intermediate file, the quantity of the final part of the performance test data does not reach the preset quantity value, and at the moment, the final part of the performance test data is also stored in the intermediate file. 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. The file output module is used for outputting the performance test data in the intermediate file. Specifically, the intermediate file is a temporary variable, when performance test data in the temporary variable is accumulated to a specified line number (such as 200 lines) each time, the performance test data in the temporary variable is written into the second parameter file once, and a corresponding temporary variable is initialized, so that the writing times are 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. And finally, writing partial performance test data of which the last line is less than 200 lines into the tail of the second parameter file. Therefore, in the pressure test process of performing performance test, pressure equalization of the database server when using the sub-table data in the plurality of service databases can be ensured.
It should be understood that, although the steps in the flowchart are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps in the flowcharts may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order in which the sub-steps or stages are performed is not necessarily sequential, and may be performed in turn or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
In one embodiment, as shown in fig. 7, there is provided a processing apparatus for performance test data, including: a first acquisition module 100, a second acquisition module 300, a third acquisition module 500, and a merge processing module 700, wherein:
the first obtaining module 100 is configured to obtain file paths of a plurality of first parameter files corresponding to the performance test, 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.
And a third obtaining module 500, configured to obtain the 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 in the same ordering position in each first parameter file to obtain a merged data set, where the data set is used to provide performance test data for performance test.
In one embodiment, the first acquisition module 100 may include (not shown in fig. 7):
the first acquisition unit is used for 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 requirement 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 sequence mode.
Or the reverse sequence merging unit is used for merging the performance test data at the same sequencing position in each first parameter file in a reverse sequence mode.
Or the random merging unit is used for merging the performance test data with the same sequencing position in each first parameter file in a random mode.
In one embodiment, the device 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 process into an intermediate file.
The first importing 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, initializing the intermediate file, and providing the performance test data for performance test by the second parameter file.
And the second importing 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 acquisition module 100 further comprises (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 prompting information according to the abnormal file path when any one of the file paths is abnormal, dividing the file paths into a first file path and a second file path, wherein the first file path comprises the correct file path in the file paths, and the second file path comprises the abnormal file path in the file paths.
A first modification unit configured to divide, when it is determined that an abnormal file path in the second file path is modified to a correct file path, the modified correct file path into the first file path;
the second acquisition module 200 includes:
and the third acquisition 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 acquisition module 200 further comprises (not shown in fig. 7):
and the second prompting unit is used for prompting information according to the first parameter file with abnormal file format when the file format of any one of the plurality of first parameter files is abnormal, dividing the plurality of first parameter files into a first file and a second file, wherein the first file comprises the first parameter files with correct file format in the plurality of first parameter files, and the second file comprises the first parameter files with abnormal file format in the plurality of 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 file when the first parameter file with the abnormal file format in the second file is determined to be modified into the first parameter file with the correct file format.
And the fourth acquisition unit is used for respectively acquiring the performance test data of the first parameter files with correct file formats in the first files according to the file paths of the plurality of first parameter files.
In one embodiment, the first acquisition module 100 may include (not shown in fig. 7):
and the fifth acquisition unit is used for acquiring file paths of the first parameter files with a plurality of different file formats corresponding to the performance test.
For specific limitations on the processing means of the performance test data, reference may be made to the above limitations on the processing method of the performance test data, and no further description is given here. The respective modules in the above-described processing apparatus for performance test data may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a data management server, the internal structure of which 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 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The 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.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than 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 steps of when executing the computer program:
acquiring file paths of a plurality of first parameter files corresponding to performance tests, wherein each first parameter file is used for storing a plurality of performance test data; respectively acquiring performance test data in each first parameter file according to file paths of the plurality of first parameter files; acquiring the arrangement sequence of the performance test data in each first parameter file; and combining the performance test data in the same sequencing position in each first parameter file to obtain a combined data set, wherein the data set is used for providing performance test data for performance test.
In one embodiment, when the processor executes the file path step of the computer program to implement the above-mentioned first parameter files corresponding to the acquisition performance test, the following steps are specifically implemented: acquiring file paths of a plurality of first parameter files from different databases according to test requirements of performance tests; 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 requirement of the performance test.
In one embodiment, when the processor executes the computer program to implement the above-mentioned step of merging the performance test data in the same sorting position in each first parameter file, the following steps are specifically implemented: combining the performance test data of the same sequencing position in each first parameter file in a sequential mode; or, merging the performance test data at the same sequencing position in each first parameter file in a reverse sequence mode; or combining the performance test data of 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 into an intermediate file; when the quantity of the performance test data in the intermediate file reaches a preset quantity value, the performance test data in the intermediate file is imported into a second parameter file, the intermediate file is initialized, and the second parameter file is used for providing performance test data for 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 are all stored in the intermediate file, importing the performance test data in the intermediate file into a second parameter file.
In one embodiment, when the processor executes the above steps 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, information prompt is carried out according to the abnormal file path, the file paths are divided into a first file path and a second file path, the first file path comprises the correct file path in the file paths, and the second file path comprises the abnormal file path in the file paths; 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;
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 performance test data in each first parameter file according to the first file path.
In one embodiment, when the processor executes the computer program to implement the step of 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 of the plurality of first parameter files is abnormal, carrying out information prompt according to the first parameter file with abnormal file format, dividing the plurality of first parameter files into a first file and a second file, wherein the first file comprises the first parameter files with correct file format in the plurality of first parameter files, and the second file comprises the first parameter files with abnormal file format in the plurality of first parameter files; dividing the modified first parameter file with the correct file format into a first file 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 respectively acquiring performance test data of the first parameter files with correct file formats in the first files according to file paths of the plurality of first parameter files.
In one embodiment, when the processor executes the file path step of the computer program to implement the above-mentioned first parameter files corresponding to the acquisition performance test, the following steps are specifically implemented: and acquiring file paths of the first parameter files in 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 executed by a processor implements a method for processing performance test data according to any 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 performance tests, wherein each first parameter file is used for storing a plurality of performance test data; respectively acquiring performance test data in each first parameter file according to file paths of the plurality of first parameter files; acquiring the arrangement sequence of the performance test data in each first parameter file; and combining the performance test data in the same sequencing position in each first parameter file to obtain a combined data set, wherein the data set is used for providing performance test data for performance test.
In one embodiment, when the computer program is executed by the processor 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 test requirements of performance tests; 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 requirement of the performance test.
In one embodiment, when the computer program is executed by the processor to implement the above-mentioned step of merging the performance test data in the same sorting position in each first parameter file, the following steps are specifically implemented: combining the performance test data of the same sequencing position in each first parameter file in a sequential mode; or, merging the performance test data at the same sequencing position in each first parameter file in a reverse sequence mode; or combining the performance test data of the same sequencing position in each first parameter file in a random mode.
In one embodiment, the computer program when executed by a processor performs the steps of: storing the performance test data after each merging treatment into an intermediate file; when the quantity of the performance test data in the intermediate file reaches a preset quantity value, the performance test data in the intermediate file is imported into a second parameter file, the intermediate file is initialized, and the second parameter file is used for providing performance test data for 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 are all stored in the intermediate file, importing the performance test data in the intermediate file into a second parameter file.
In one embodiment, when the computer program is executed by the processor to implement the step of obtaining a plurality of file paths of a 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, information prompt is carried out according to the abnormal file path, the file paths are divided into a first file path and a second file path, the first file path comprises the correct file path in the file paths, and the second file path comprises the abnormal file path in the file paths; 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;
when the computer program is executed by the processor 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 performance test data in each first parameter file according to the first file path.
In one embodiment, when the computer program is executed by the processor to implement the step of 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 of the plurality of first parameter files is abnormal, carrying out information prompt according to the first parameter file with abnormal file format, dividing the plurality of first parameter files into a first file and a second file, wherein the first file comprises the first parameter files with correct file format in the plurality of first parameter files, and the second file comprises the first parameter files with abnormal file format in the plurality of first parameter files; dividing the modified first parameter file with the correct file format into a first file 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 respectively acquiring performance test data of the first parameter files with correct file formats in the first files according to file paths of the plurality of first parameter files.
In one embodiment, when the computer program is executed by the processor 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 in a plurality of different file formats corresponding to the performance test.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.