CA3127343A1 - Test data acquisition method and device, computer equipment and storage medium - Google Patents

Test data acquisition method and device, computer equipment and storage medium Download PDF

Info

Publication number
CA3127343A1
CA3127343A1 CA3127343A CA3127343A CA3127343A1 CA 3127343 A1 CA3127343 A1 CA 3127343A1 CA 3127343 A CA3127343 A CA 3127343A CA 3127343 A CA3127343 A CA 3127343A CA 3127343 A1 CA3127343 A1 CA 3127343A1
Authority
CA
Canada
Prior art keywords
server
file
test data
data
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CA3127343A
Other languages
French (fr)
Inventor
E Liu
Jing Yang
Meilan XU
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
10353744 Canada Ltd
Original Assignee
10353744 Canada Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 10353744 Canada Ltd filed Critical 10353744 Canada Ltd
Publication of CA3127343A1 publication Critical patent/CA3127343A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention discloses to field of performance test, particularly to a test data collection method, an apparatus, a computer device, and storage medium. The test data collection method comprises: obtaining server configuration information of target to be tested business system, the target business system includes a plurality of servers, the server configuration information includes the server information corresponding to each server; establishing communication connection between local and each server according to the server information corresponding to each server, sending test command to each server through the communication connection corresponding to each server, collecting test data generated by each server when the server receives the test command. The present invention implementation can collect test data of relevant server in a short time and improve test efficiency.

Description

TEST DATA COLLECTION METHOD, APPARUTUS, COMPUTER DEVICE AND
STORAGE MEDIUM
Field [0001] The present disclosure relates to the field of performance testing, and particularly to a test data collection method, an apparatus, a computer device, and a storage medium.
Background
[0002] Usually a monitoring platform is set up in a test environment during performance test, during the test, the monitoring platform can be used to monitor and collect server's test data with performance indicators.
[0003] However, in the process of interface performance test, the test environment, the test environment does not have conditions to build a monitoring platform, so the tester can only manually record the server's test data with relevant performance indicators, but the manually test data collection method takes a long time (up to ten minutes to half an hour). In addition, in the case of many database branches, the amount of to be tested servers is large, and the amount of to be collected data is large correspondingly, which will further reduce the test efficiency.
Invention Content
[0004] The invention provides a test data collection method, an apparatus, a computer device, and a storage medium for the disadvantages of present technology. The implementations of the invention can collect the test data of relevant server in a short time and improve the test efficiency.
[0005] The invention provides a test data collection method according to the first aspect, for instance, the method includes:
[0006] Obtaining server configuration information of a target to be tested business system, the target business system includes a plurality of servers, the server configuration information Date Recue/Date Received 2021-10-08 includes server information corresponding to each server
[0007] Establishing communication connection between local and each server according to the server information corresponding to each server, sending test command to each server through the communication connection corresponding to each server, collecting test data generated by each server when the server receives the test commands, wherein, the test data generated by each server includes test data with plural performance indicators.
[0008] In an implementation, collecting the test data generated by each server when the server executes a received test command, comprising:
[0009] Creating a thread pool, the thread pool includes a plurality of threads;
[0010] Asynchronously collecting test data with plural performance indicators according to each thread when each server executes the received test command;
[0011] Storing each test data with plural performance indicators collected by each thread to a test data record file with mutex lock after all the threads collected test data with plural performance indicators from the corresponding server.
[0012] In an implementationõ obtaining the server configuration information of the target to be tested business system, comprising:
[0013] Collecting task information by obtaining user input data through the preset graphical interface, the data collection task information includes an output file path parameter, a sampling interval parameter, an execution duration parameter, and default installation path information;
[0014] Obtaining locally prestored configuration files according to the default installation path information;

Date Recue/Date Received 2021-10-08
[0015] Obtaining configuration information of the target to be tested business system according to the configuration file.
[0016] In an implementation, collecting test data when each server executes the received test command, comprising:
[0017] Concurrently collecting the test data generated by each server when the server executes a received testing command according to the sampling interval parameter;
[0018] Determining the data collection duration, when the data collection duration is equal to the execution duration parameter, stopping data collection.
[0019] In an implementation, the method also includes:
[0020] Generating a first file path parameter and a second file path parameter according to the output file path parameter;
[0021] Generating a first file corresponding to the first file path parameter, and a second file corresponding to the second file path parameter;
[0022] After step of concurrently collecting the test data generated by each server when the server executes a received testing command according to the sampling interval parameter, including:
[0023] Integrating the collected test data to obtain the first file data with first format and the second file data with second format;
[0024] Storing the first file data to the first file and storing the second file data to the second file.

Date Recue/Date Received 2021-10-08
[0025] In an implementation, the method also includes:
[0026] Presenting the data in the first file according to a first presentation method;
[0027] Presenting the data in the second file according to a second presentation method;
[0028] In an implementation, the method also includes:
[0029] Filtering abnormal data corresponding to each server from the collected test data according to the type of each server;
[0030] Presenting the data in the first file according to the first presentation method, comprising:
[0031] Presenting the data in the first file according to the first presentation method and identifying the abnormal data corresponding to each server by preset identification method during the presentation.
[0032] The present invention provides a test data collection apparatus according to the second aspect. In an implementation, the apparatus includes:
[0033] A server configuration information acquisition module configured to obtain the server configuration information for the target to be tested business system, the target business system includes plural servers, the server configuration information includes the server information corresponding to each server;
[0034] A data collection module configured to establish the communication connection between local and each server according to the server information corresponding to each server, send a test command to each server through the communication connection corresponding to each server, collect the test data when each server executes the received test command, the test Date Recue/Date Received 2021-10-08 data generated by each server includes test data with plural performance indicators.
[0035] The present invention provides a computer device according to the third aspect, including a memory, a processor and a computer program stored in the memory and ran on the processor configured to achieve the steps of any above methods when the processor executes the computer program.
[0036] The present invention provides a computer readable storage medium according to the fourth aspect, wherein the storage medium stored with a computer program configured to achieve the steps of any above methods when processor executes the computer program.
[0037] The implementations of the present invention, data collection terminals firstly obtain the to be tested server configuration information of target business system, the target business system includes a plurality of servers, the server configuration information includes the server information corresponding to each server; establishing communication connection between local and each server according to the server information corresponding to each server, sending test command to each server through the communication connection corresponding to each server, collecting test data generated by each server when the server receives the test command.
The present invention implementation can collect test data of relevant server in a short time and improve test efficiency.
Drawing Description
[0038] Figure 1 is an application environment diagram of a test data collection method in an implementation;
[0039] Figure 2 is a process diagram of a test data collection method in an implementation;
[0040] Figure 3 is a schematic diagram of a preset graphical interface in an implementation;
[0041] Figure 4 is a schematic diagram of a report presentation in an implementation;
Date Recue/Date Received 2021-10-08
[0042] Figure 5 is a schematic diagram of a chart presentation in an implementation;
[0043]
Figure 6 is a structural diagram of a test data collection apparatus in an implementation;
[0044] Figure 7 is an internal structure of a computer device in an implementation.
Specific implementation methods
[0045] In order to make application purposes, technical solutions, and advantages clearer, the present disclosure is further explained in detail with a particular embodiment thereof, and with reference to the drawings. It shall be appreciated that these descriptions are only intended to be illustrative, but not to limit the scope of the disclosure thereto.
[0046] A test data collection method provided by the present invention and the method's application environment shown as Figure 1. Testers can collect the test data generated from each server in the business system through data collection terminal 10 (hereinafter referred to as data collection terminal), wherein, the test data generated by each server includes test data with plural performance indicators.
[0047] The data collection terminal can be achieved by an independent server, or a server cluster composed of plural servers. In an implementation, the data collection terminal can be a desktop computer, a laptop computer and other computer devices; different business system may include different server types (for example, application server such as Jboss server, database server MySQL server, cache server such as Redis server, etc.) and different server quantities, for example, the business system in Figure 1 includes server 21, server 22, server 23, and the server quantity of the server in Figure 1 is an example.
[0048] The data collection terminal 10 in the application environment is taken as an execution subject of the test data collection method. As shown in Figure2, the test data collection method Date Recue/Date Received 2021-10-08 includes the following steps:
[0049] S110: obtaining the server configuration information of the target to be tested business system.
[0050] Wherein, the target business system includes a plurality of servers, the server configuration information includes server information corresponding to each server.
[0051] S120:
establishing communication connection between local and each server according to the server information corresponding to each server, sending test command to each server through the communication connection corresponding to each server, collecting test data generated by each server when the server receives the test commands.
[0052] Wherein, the test data generated by each server includes test data with plural performance indicators. For example, CPU usage, disk 1/0 (in/out), network usage, memory usage, database QPS (Queries Per Second) and Redis cache OPS (Operations Per Second), etc.
[0053] In the present implementation, testers can configure a data collection task for the data collection terminal, for example, to indicate the data collection terminal that which business system will be tested, how long the test lasts, and how to process the test data after collection.
In an implementationõ the data collection task information includes an output file path parameter, a sampling interval parameter, an execution duration parameter, and default installation path information.
[0054] After the data collection terminal receives the test command from tester (the tester instructs the data collection terminal to start collecting test data), obtaining the server configuration information of the target to be tested business system. The target business system is the business system to be tested by tester.
[0055] In an implementation, the steps of obtaining server configuration infoimation for the Date Recue/Date Received 2021-10-08 target to be tested business system include:
[0056] Collecting task information by obtaining user input data through the preset graphical interface, the data collection task information includes an output file path parameter, a sampling interval parameter, an execution duration parameter, and default installation path information;
[0057] Obtaining locally prestored configuration files according to the default installation path information;
[0058] Obtaining configuration information of the target to be tested business system according to the configuration file.
[0059] Wherein, the data collection terminal provides a graphical interface for tester, the tester can input data collection task information. Among different scenarios, the data included in the data collection task information can be different, wherein the data collection task information is obtained through the graphical interface, for example, the data collection terminal can provide the user with a graphical interface as shown in Figure 3, the tester can fill in the graphic interface with the target to be tested business system such as system 1, output file path parameter such as D:/, sampling interval parameters such as 5 seconds, the execution time such as 1 minute, the installation path information is pre-stored in local data collection terminal by default which does not need to be specified by the tester.
[0060] After the data collection terminal receives the data collection task information, obtaining configuration file pre-stored in local from the storage area corresponding to the default installation path information, the configuration file records the server configuration information corresponding to plural business systems, then obtaining the server configuration information corresponding to the target business system from the server configuration information corresponding to the plural business systems recorded in configuration file. The specific implementations can be reading the server configuration information recorded by the configuration file line by line, then parsing the server configuration information into a list and Date Recue/Date Received 2021-10-08 saving the list to machine's configuration parameters, after that, obtaining the server configuration information corresponding to the target business system from the machine's configuration parameters. The server configuration information corresponding to each business system includes business system's display name and each server's server information in business system. The server information includes server IP address information, the application software's type installed in the server, the server's username and password information, if the application software's type installed in the server is database software, then the server information also includes database sub-library's function name, the function can be different in different scenarios, for example, in a scenario, the function name can be a public library, index library and business library and so on.
[0061] After the data collection terminal obtained the server configuration information of the target business system, establishing communication connection between local and each server according to the server information corresponding to each server, sending test command to each server through the communication connection corresponding to each server, for instance, the data collection terminal can run plural Linux commands (test commands) through SSH
(Secure Shell, secure shell protocol) method on remote Linux machine (server).
After each server executed the received test command, the data collection terminal will collect the test data generated by each server when the server executes the test command.
[0062] In an implementation, the steps of collecting the test data generated by each server when the server executes the test command, including:
[0063] Creating a thread pool, the thread pool includes a plurality of threads;
[0064] Asynchronously collecting test data with plural performance indicators according to each thread when each server executes the received test command;
[0065] Storing each test data with plural performance indicators collected by each thread to a test data record file with mutex lock after all the threads collected test data with plural Date Recue/Date Received 2021-10-08 performance indicators from the corresponding server.
[0066] In the present implementation, the data collection terminal creates a thread pool containing plural threads, one thread in the thread pool is responsible for collecting test data generated by a server, so that the test data collection of plural servers included in the target business system can be executed concurrently. In some scenarios, if the servers of the to be tested data are too many, or the opened threads in the thread pool are very little, then the test data collection is performed on part of servers at firstõ after the thread completed the test data collection work on one server, then the thread executes another test data collection work on an uncollected server. After all threads collected the test data from each correspondingly server, and then storing each test data collected by each thread to a test data record file with mutex lock.
[0067] Furthermore, when the data collection terminal collects each server's test data, concurrently collecting the test data generated by each server after the server executes a received testing command according to the sampling interval parameter; Then determining the duration of data collection, when the duration of data collection is equal to the execution duration parameter, stop data collection.
[0068] Specifically, during the process of testing the server (the total test time is determined by the execution time parameter), the thread will collect the server's test data once in a while, and this duration is determined by the sampling interval parameter, such as setting the sampling interval parameter to 5 seconds, then executing a collection work in every 5 seconds. When all threads completed a test data collection work, writing all the test data collected by each thread to the test data record file with mutex at one time, and so on until completing the test (the data collection duration is equal to the execution duration parameter). Wherein, after all threads completed the collection work, writing all the test data collected by each thread to the test data record file with mutex at one time, which can effectively ensure the thread safety and avoid errors in the collected test data.
Date Recue/Date Received 2021-10-08
[0069] In an implementation, the test data collection method also includes:
[0070] Generating a first file path parameter and a second file path parameter according to the output file path parameter;
[0071] Generating a first file corresponding to the first file path parameter, and a second file corresponding to the second file path parameter.
[0072] After step of concurrently collecting the test data generated by each server when the server executes a received testing command according to the sampling interval parameter, including:
[0073] Integrating the collected test data to obtain the first file data with first format and the second file data with second format;
[0074] Storing the first file data to the first file and storing the second file data to the second file.
[0075] In the present implementation, after the data collection terminal obtains the data collection task information, generating a first file path parameter and a second file path parameter according to the output file path parameter, generating a first file corresponding to the first file path parameter, and a second file corresponding to the second file path parameter.
After the data collection terminal completes the work of collecting the test data generated by each server in the target business system, integrating the collected test data to obtain the first file data with first format and the second file data with second format; and storing the first file data to the first file and storing the second file data to the second file.
[0076] For example, in an implementation, the first file can be a report data file such as an Excel file, and the second file can be a chart data file such as an Html format chart. The data collection terminal integrates the test data corresponding to each server of the target business Date Recue/Date Received 2021-10-08 system to obtain the report data (the first file data) and the chart data (the second file data), and then storing the report data in the report data file and the chart data in the chart data file.
[0077] Furthermore, in an implementation, after respectively storing the first file data and the second file data to the first file and the second file, the data collection terminal presents the data in the first file according to a first presentation method and presents the data in the second file according to a second presentation method, so that the tester can understand the first file data and the second file data in time. In a scenario, the first presentation method can be a report, and the second presentation method can be a chart. As an example, the report data can be presented as shown in Figure 4 and the chart data as shown in Figure 5.
[0078] Furthermore, in another implementation, the test data collection method also includes filtering abnormal data corresponding to each server from the collected test data according to the type of each server.
[0079] When the data collection terminal integrates the test data corresponding to each server in the target business system, filtering abnormal data corresponding to each server from the collected test data according to the type of each server, for example, abnormal input file path parameter, sampling internal parameter, execution time parameter, abnormal content of configuration file, abnormal server connection, abnormal network during the process of executing test data collection work. Wherein, server type can be distinguished by the types of application software installed on the server, different server types have different rules for detecting abnormal data.
[0080] Accordingly, presenting the first file data based on the first presentation method includes: presenting the data in the first file according to the first presentation method and identifying the abnormal data corresponding to each server by preset identification method during the presentation.
[0081] When the data collection terminal presents the first file, identifying the abnormal data Date Recue/Date Received 2021-10-08 corresponding to each server by preset identification method during the presentation. For example, in the Figure 4, the CPU usage rate of two servers JBIP-3 and Redis-IP-3 is too high and identified as abnormal data. Therefore, during the presentation, the cell background color corresponding to the abnormal data should be changed to distinguish from the non-abnormal data, so that tester can quickly understand the abnoimal data. Indeed, in addition to changing the background color of cells, the default identification can also be bolding the display font of abnormal data or changing the font type.
[0082] In an implementation, as shown in Figure 6, a test data apparatus is provided, comprising the following modules:
[0083] Server configuration information acquisition module 110 configured to obtain the server configuration information of the target to be tested business system.
The target business system includes plural servers, and the server configuration information includes the server information corresponding to each server.
[0084] Data collection module 120 configured to a data collection module configured to establish the communication connection between local and each server according to the server information corresponding to each server, send a test command to each server through the communication connection corresponding to each server, collect the test data when each server executes the received test command, the test data generated by each server includes test data with plural performance indicators.
[0085] In an implementation, the data collection module includes data collection sub-module, the data collection sub-module includes:
[0086] Thread pool creation unit for creating a thread pool and the thread pool includes multiple threads;
[0087] Performance indicators collection unit for asynchronously collecting test data with Date Recue/Date Received 2021-10-08 plural performance indicators according to each thread when each server executes the received test command;
[0088] Performance indicators storage unit for storing each test data with plural performance indicators collected by each thread to a test data record file with mutex lock after all the threads collected test data with plural performance indicators from the corresponding server.
[0089] In an implementation, the server configuration information acquisition module includes:
[0090] Task information acquisition sub-module configured to obtain user input data through the preset graphical interface, the data collection task information includes an output file path parameter, a sampling interval parameter, an execution duration parameter, and default installation path information;
[0091] Configuration file acquisition sub-module configured to obtain locally prestored configuration files according to the default installation path information;
[0092]
Server configuration information acquisition sub-module configured to obtain configuration information of the target to be tested business system according to the configuration file.
[0093] In an implementation, the data collection sub-module is also used to concurrently collecting the test data generated by each server when the server executes a received testing command according to the sampling interval parameter; determining the data collection duration, when the data collection duration is equal to the execution duration parameter, stopping data collection.
[0094] In an implementation, the test data collection apparatus also includes:

Date Recue/Date Received 2021-10-08
[0095] Path parameter input module configured to generate a first file path parameter and a second file path parameter according to the output file path parameter;
[0096] File generation module configured to generate a first file corresponding to the first file path parameter, and generate a second file corresponding to the second file path parameter;
[0097] The test data collection apparatus also executes following modules after executes the data collection module:
[0098] Data integration module configured to integrate the collected test data to obtain the first file data with first format and the second file data with second format;
[0099] File data storage module configured to store the first file data to the first file and store the second file data to the second file.
[0100] In an implementation, the test data collection apparatus also includes:
[0101] The first presentation module configured to present the data in the first file according to a first presentation method;
[0102] The second presentation module configured to present the data in the second file according to a second presentation method;
[0103] In an implementation, the test data collection apparatus also includes:
[0104] Abnormal data acquisition module configured to filter abnormal data corresponding to each server from the collected test data according to the type of each server;
[0105] Accordingly, the first presentation module also includes presenting the data in the first file according to the first presentation method and identifying the abnormal data corresponding Date Recue/Date Received 2021-10-08 to each server by preset identification method during the presentation.
[0106] For the specific limitation of the test data collection apparatus can refer to the above-mentioned the data cache method, which will not be repeated here. Each module of the above data cache apparatus can be achieved fully or partly by software, hardware, and their combinations. The above modules can be embedded in the processor or independent of the processor in computer device and can store in the memory of computer device in form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0107] In an implementation, a computer device is provided to be a server and whose internal structure diagram is shown in Figure 7. The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. The processor of the computer device is configured to provide calculation and control capabilities.
The memory of computer device includes non-volatile storage medium and internal memory. The memory of non-volatile storage medium has operation system, computer programs and database. The internal memory provides an environment for the operation system and computer program running in a non-volatile storage medium. The database of the computer device is used to store the collected server's test data. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a test data collection method.
[0108] The skilled in the art can understand that the structure shown in Figure 7 is only partial structural diagram related this application solution and not constitute limitation to the computer device applied on the current application solution, the specific computer device can include more or less components than what is shown in the figure, or combinations of some components or different components to what is shown in the figure.
[0109] In an implementation, a computer device is provided which includes a memory, a processor, and a computer program stored on the memory and running on the processor. The Date Recue/Date Received 2021-10-08 processor performs the following steps when executing the computer program:
[0110] obtaining server configuration information of a target to be tested business system, the target business system includes a plurality of servers, the server configuration information includes server information corresponding to each server; and establishing communication connection between local and each server according to the server information corresponding to each server, sending test command to each server through the communication connection corresponding to each server, collecting test data generated by each server when the server receives the test commands, wherein, the test data generated by each server includes test data with plural performance indicators.
[0111] In an implementation, the processor executes the computer program to collect the test data generated by each server when the server executes a received test command, also achieving following steps:
[0112] Creating a thread pool, the thread pool includes a plurality of threads; asynchronously collecting test data with plural performance indicators according to each thread when each server executes the received test command; and storing each test data with plural performance indicators collected by each thread to a test data record file with mutex lock after all the threads collected test data with plural performance indicators from the corresponding server.
[0113] In an implementation, the processor executes the computer program to obtain the server configuration information of the target to be tested business system, also achieving following steps:
[0114] Collecting task information by obtaining user input data through the preset graphical interface, the data collection task information includes an output file path parameter, a sampling interval parameter, an execution duration parameter, and default installation path information;
obtaining locally prestored configuration files according to the default installation path information; and obtaining configuration information of the target to be tested business system Date Recue/Date Received 2021-10-08 according to the configuration file.
[0115] In an implementation, the processor executes the computer program to collect test data when each server executes the received test command, also achieving following steps:
[0116] Concurrently collecting the test data generated by each server when the server executes a received testing command according to the sampling interval parameter; and determining the data collection duration, when the data collection duration is equal to the execution duration parameter, stopping data collection.
[0117] In an implementation, the processor executes the computer program to achieve following steps:
[0118] Generating a first file path parameter and a second file path parameter according to the output file path parameter; and generating a first file corresponding to the first file path parameter, and a second file corresponding to the second file path parameter;
[0119] After steps of concurrently collecting the test data generated by each server when the server executes a received testing command according to the sampling interval parameter to achieve following steps:
[0120] Integrating the collected test data to obtain the first file data with first format and the second file data with second format; and storing the first file data to the first file and storing the second file data to the second file.
[0121] In an implementation, the processor executes the computer program also achieves following steps:
[0122] Presenting the data in the first file according to a first presentation method; and presenting the data in the second file according to a second presentation method;

Date Recue/Date Received 2021-10-08
[0123] In an implementation, the processor executes the computer program to achieve following steps:
[0124] Filtering abnormal data corresponding to each server from the collected test data according to the type of each server;
[0125] Furthermore, the processor executes the computer program to present the data in the first file according to the first presentation method, also including following steps:
[0126] Presenting the data in the first file according to the first presentation method and identifying the abnormal data corresponding to each server by preset identification method during the presentation.
[0127] In an implementation, a computer readable storage medium is provided, wherein the medium stored with a computer program, the following steps are performed when executing the computer program:
[0128] Obtaining server configuration information of a target to be tested business system, the target business system includes a plurality of servers, the server configuration information includes server information corresponding to each server; and establishing communication connection between local and each server according to the server information corresponding to each server, sending test command to each server through the communication connection corresponding to each server, collecting test data generated by each server when the server receives the test commands, wherein, the test data generated by each server includes test data with plural performance indicators.
[0129] In an implementation, the processor executes the computer program to collect the test data generated by each server when the server executes a received test command, also achieving following steps:

Date Recue/Date Received 2021-10-08
[0130] Creating a thread pool, the thread pool includes a plurality of threads; asynchronously collecting test data with plural performance indicators according to each thread when each server executes the received test command; and storing each test data with plural performance indicators collected by each thread to a test data record file with mutex lock after all the threads collected test data with plural performance indicators from the corresponding server.
[0131] In an implementation, the processor executes the computer program to obtain the server configuration information of the target to be tested business system, also achieving following steps:
[0132] Collecting task information by obtaining user input data through the preset graphical interface, the data collection task information includes an output file path parameter, a sampling interval parameter, an execution duration parameter, and default installation path information;
obtaining locally prestored configuration files according to the default installation path information; and obtaining configuration information of the target to be tested business system according to the configuration file.
[0133] In an implementation, the processor executes the computer program to collect test data when each server executes the received test command, also achieving following steps:
[0134] Concurrently collecting the test data generated by each server when the server executes a received testing command according to the sampling interval parameter; and determining the data collection duration, when the data collection duration is equal to the execution duration parameter, stopping data collection.
[0135] In an implementation, the processor executes the computer program to achieve following steps:
[0136] Generating a first file path parameter and a second file path parameter according to Date Recue/Date Received 2021-10-08 the output file path parameter; and generating a first file corresponding to the first file path parameter, and a second file corresponding to the second file path parameter;
[0137] After steps of concurrently collecting the test data generated by each server when the server executes a received testing command according to the sampling interval parameter to achieve following steps:
[0138] Integrating the collected test data to obtain the first file data with first format and the second file data with second format; and storing the first file data to the first file and storing the second file data to the second file.
[0139] In an implementation, the processor executes the computer program also achieves following steps:
[0140] Presenting the data in the first file according to a first presentation method; and presenting the data in the second file according to a second presentation method;
[0141] In an implementation, the processor executes the computer program to achieve following steps:
[0142] Filtering abnormal data corresponding to each server from the collected test data according to the type of each server;
[0143] Furthermore, the processor executes the computer program to present the data in the first file according to the first presentation method, also including following steps:
[0144] Presenting the data in the first file according to the first presentation method and identifying the abnormal data corresponding to each server by preset identification method during the presentation.

Date Recue/Date Received 2021-10-08
[0145] The skilled in the art can understand that all or partial of procedures from the above-mentioned methods can be performed by computer program instructions through related hardware, the mentioned computer program can be stored in a non-volatile material computer readable storage medium, this computer can include various implementation procedures from the abovementioned methods when execution. Any reference to the memory, the storage, the database, or the other media used in each implementation provided in current application can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programable RON (PROM), electrically programmable ROM (EPRPMD), electrically erasable programmable ROM(EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an instruction but not limited to, RAM is available in many forms such as static RAM (SRAM), dynamic RAM
(DRAMD), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SRAM (ESDRAM), synchronal link (Synchlink) DRAM (SLDRAM), memory bus (Rambus), direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0146] The technical features of the above-mentioned implementations can be randomly combined, for concisely statement, not all possible combinations of technical features in the abovementioned implementations are described. However, if there are no conflicts in the combinations of these technical features, it shall be within the scope of this descriptions.
[0147] The above-mentioned implementations are only several implementations in this disclosure and the description is more specific and detailed but cannot be understood as the limitation of the scope of the invention patent. Evidently those ordinary skilled in the art can make various modifications and variations to the disclosure without departing from the spirit and scope of the disclosure. Therefore, the appended claims are intended to be construed as encompassing the described embodiment and all the modifications and variations coming into the scope of the disclosure.

Date Recue/Date Received 2021-10-08

Claims (10)

1. A test data collection method comprises:
obtaining server configuration information of a target to be tested business system, the target business system includes a plurality of servers, the server configuration information includes server information corresponding to each server; and establishing communication connection between local and each server according to the server information corresponding to each server, sending test command to each server through the communication connection corresponding to each server, collecting test data generated by each server when the server receives the test commands, wherein, the test data generated by each server includes test data with plural performance indicators.
2. The test data collection method according to claim 1, collecting the test data generated by each server when the server executes a received test command, comprising:
creating a thread pool, the thread pool includes a plurality of threads;
asynchronously collecting test data with plural performance indicators according to each thread when each server executes the received test command; and storing each test data with plural performance indicators collected by each thread to a test data record file with mutex lock after all the threads collected test data with plural performance indicators from the corresponding server.
3. The test data collection method according to claim 2 characterizes, obtaining the server configuration information of the target to be tested business system, comprising:
collecting task information by obtaining user input data through the preset graphical interface, the data collection task information includes an output file path parameter, a sampling interval parameter, an execution duration parameter, and default installation path information;
obtaining locally prestored configuration files according to the default installation path Date Recue/Date Received 2021-10-08 information; and obtaining configuration information of the target to be tested business system according to the configuration file.
4. The test data collection method according to claim 3 characterizes, collecting test data when each server executes the received test command, comprising:
concurrently collecting the test data generated by each server when the server executes a received testing command according to the sampling interval parameter; and determining the data collection duration, when the data collection duration is equal to the execution duration parameter, stopping data collection.
5. The method according to claim 3 also comprises:
generating a first file path parameter and a second file path parameter according to the output file path parameter; and generating a first file corresponding to the first file path parameter, and a second file corresponding to the second file path parameter;
after step of concurrently collecting the test data generated by each server when the server executes a received testing command according to the sampling interval parameter, including:
integrating the collected test data to obtain the first file data with first format and the second file data with second format; and storing the first file data to the first file and storing the second file data to the second file.
6. The method according to claim 5 also comprises:

Date Recue/Date Received 2021-10-08 presenting the data in the first file according to a first presentation method; and presenting the data in the second file according to a second presentation method;
7. The method according to claim 5 also comprises:
filtering abnormal data corresponding to each server from the collected test data according to the type of each server;
presenting the data in the first file according to the first presentation method, comprising:
presenting the data in the first file according to the first presentation method and identifying the abnormal data corresponding to each server by preset identification method during the presentation.
8. A test data collection apparatus comprises:
a server configuration information acquisition module configured to obtain the server configuration information for the target to be tested business system, the target business system includes plural servers, the server configuration information includes the server information corresponding to each server;
a data collection module configured to establish the communication connection between local and each server according to the server information corresponding to each server, send a test command to each server through the communication connection corresponding to each server, collect the test data when each server executes the received test command, the test data generated by each server includes test data with plural performance indicators.
9. A computer device, including a memory, a processor and a computer program stored in the memory and ran on the processor configured to achieve the steps of any methods in claim 1 to 7 when the processor executes the computer program.
10. A computer readable storage medium stored with a computer program configured to Date Recue/Date Received 2021-10-08 achieve the steps of any methods in claim 1 to 7 when the processor executes the computer program.

Date Recue/Date Received 2021-10-08
CA3127343A 2020-08-11 2021-08-10 Test data acquisition method and device, computer equipment and storage medium Pending CA3127343A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010800473.5A CN112115005B (en) 2020-08-11 2020-08-11 Test data acquisition method and device, computer equipment and storage medium
CN202010800473.5 2020-08-11

Publications (1)

Publication Number Publication Date
CA3127343A1 true CA3127343A1 (en) 2022-02-11

Family

ID=73805615

Family Applications (1)

Application Number Title Priority Date Filing Date
CA3127343A Pending CA3127343A1 (en) 2020-08-11 2021-08-10 Test data acquisition method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112115005B (en)
CA (1) CA3127343A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114595159A (en) * 2022-05-10 2022-06-07 太平金融科技服务(上海)有限公司 Test data generation method, device, equipment and storage medium
CN116467151A (en) * 2023-06-19 2023-07-21 浙江无端科技股份有限公司 Program performance information acquisition method, device, equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968809B (en) * 2021-02-02 2022-09-13 杭州安恒信息技术股份有限公司 Method and device for testing system stability and compatibility
CN113778768B (en) * 2021-08-24 2024-08-23 深圳市联影高端医疗装备创新研究院 Reconstruction server testing method, device, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015744A1 (en) * 2002-07-22 2004-01-22 Finisar Corporation Scalable multithreaded network testing tool
CN102214133A (en) * 2011-07-22 2011-10-12 苏州工业园区七星电子有限公司 System for quickly diagnosing and testing computer hardware
CN111061610B (en) * 2019-12-09 2020-10-20 广州鼎甲计算机科技有限公司 Generation method and device of cluster system performance test report and computer equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114595159A (en) * 2022-05-10 2022-06-07 太平金融科技服务(上海)有限公司 Test data generation method, device, equipment and storage medium
CN114595159B (en) * 2022-05-10 2022-09-02 太平金融科技服务(上海)有限公司 Test data generation method, device, equipment and storage medium
CN116467151A (en) * 2023-06-19 2023-07-21 浙江无端科技股份有限公司 Program performance information acquisition method, device, equipment and storage medium
CN116467151B (en) * 2023-06-19 2023-08-25 浙江无端科技股份有限公司 Program performance information acquisition method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112115005B (en) 2022-11-29
CN112115005A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CA3127343A1 (en) Test data acquisition method and device, computer equipment and storage medium
CN112269697B (en) Equipment storage performance testing method, system and related device
CN109388622B (en) Log information processing method, device and equipment and readable storage medium
US20150074648A1 (en) Software defect verification
CN101887392A (en) Method and device for testing software system operation stability
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
WO2019128299A1 (en) Test system and test method
CN111309579B (en) Test method and related device for system event log quantity acquisition function
CN114328243A (en) Abnormal operation data processing method, device, equipment and storage medium
CN112153375A (en) Front-end performance testing method, device, equipment and medium based on video information
CN114817213A (en) Server database tuning test method, device, terminal and storage medium
CN107656849B (en) Method and device for positioning performance problem of software system
CN107273296A (en) The method of testing and test device of a kind of software
CN117033099A (en) Pressure testing method, system and device for system hard disk and storage medium
CN112612697A (en) Software defect testing and positioning method and system based on byte code technology
CN112162908A (en) Program call link monitoring implementation method and device based on bytecode injection technology
CN111597111A (en) Application program starting speed monitoring method and device
CN111427777A (en) SO L test method, system, equipment and medium
CN111666200A (en) Testing method and terminal for time consumption of cold start of PC software
CN111858208B (en) Standby function testing method, device, equipment and medium of processor chip
CN115543234A (en) Log printing method and related device
CN115617668A (en) Compatibility testing method, device and equipment
CN114626053A (en) Testing method and device for national secret authentication, national secret authentication program and system
CN107506271A (en) A kind of method of testing and device
CN114385428A (en) Terminal equipment testing method and related equipment

Legal Events

Date Code Title Description
EEER Examination request

Effective date: 20220916

EEER Examination request

Effective date: 20220916

EEER Examination request

Effective date: 20220916

EEER Examination request

Effective date: 20220916