CN111240951B - Data processing method and system in server stability test process - Google Patents

Data processing method and system in server stability test process Download PDF

Info

Publication number
CN111240951B
CN111240951B CN202010094690.7A CN202010094690A CN111240951B CN 111240951 B CN111240951 B CN 111240951B CN 202010094690 A CN202010094690 A CN 202010094690A CN 111240951 B CN111240951 B CN 111240951B
Authority
CN
China
Prior art keywords
stability test
test result
identifier
stability
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010094690.7A
Other languages
Chinese (zh)
Other versions
CN111240951A (en
Inventor
魏浩
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010094690.7A priority Critical patent/CN111240951B/en
Publication of CN111240951A publication Critical patent/CN111240951A/en
Application granted granted Critical
Publication of CN111240951B publication Critical patent/CN111240951B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment

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 invention relates to the technical field of server testing, and provides a data processing method and a system in a server stability testing process, wherein the method comprises the following steps: acquiring a stability test result generated after the server stability test; preprocessing the obtained stability test result according to a pre-configured identifier to obtain a test result corresponding to each stability test in the stability test results; and respectively carrying out standard result comparison analysis on the test results corresponding to each stability test obtained by pretreatment, and judging whether each stability test passes or not, thereby realizing automatic processing of the stability test results, enabling the analysis of the stability test results to be clearer and more definite, and improving the analysis efficiency.

Description

Data processing method and system in server stability test process
Technical Field
The invention belongs to the technical field of server testing, and particularly relates to a data processing method and system in a server stability testing process.
Background
In the server testing process, one important test is a stability test, which requires a large number of long-time tests. In the stability testing process, the testing result of each time needs to be stored, and after the testing is finished, the testing result needs to be analyzed and compared to see whether the testing requirement is met. Therefore, the analysis method for the stability test result becomes an important index of the test efficiency.
However, the automation degree of analysis of the stability test result is low at present, the test result division between adjacent test times is not clear, and the test problem confirmation difficulty is high.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a data processing method in the process of testing the stability of a server, aiming at solving the problems that the automation degree of analysis of stability test results is low, the test results between adjacent test times are not clearly divided, and the test problem confirmation difficulty is high in the prior art.
The technical scheme provided by the invention is as follows: a data processing method in a server stability test process comprises the following steps:
acquiring a stability test result generated after the server stability test;
preprocessing the obtained stability test result according to a pre-configured identifier to obtain a test result corresponding to each stability test in the stability test results;
and respectively carrying out standard result comparison analysis on the test result corresponding to each stability test obtained by preprocessing, and judging whether each stability test passes or not.
As an improved solution, the step of obtaining the stability test result generated after the server stability test further includes the following steps:
an identifier is generated in advance for each stability test, said identifier being arranged for a single row preceding each test result.
As an improved scheme, the step of preprocessing the obtained stability test result according to the preconfigured identifier to obtain the test result corresponding to each stability test in the stability test results specifically includes the following steps:
performing preliminary analysis on the obtained stability test result to obtain each identifier in the stability test result;
acquiring the number of rows of each identifier in the stability test result according to the acquired identifier;
performing difference operation on the line numbers corresponding to the current identifier and the next adjacent identifier to obtain the total line number of the current stability test result;
and segmenting the stability test result according to the total row number of the obtained stability test result of each time, and obtaining the stability test result of each time.
Another object of the present invention is to provide a data processing system in a server stability test process, the system comprising:
the stability test result acquisition module is used for acquiring a stability test result generated after the stability test of the server;
the preprocessing module is used for preprocessing the acquired stability test result according to a pre-configured identifier to acquire a test result corresponding to each stability test in the stability test results;
and the single comparison analysis module is used for respectively carrying out standard result comparison analysis on the test result corresponding to each stability test obtained by preprocessing and judging whether each stability test passes or not.
As an improvement, the system further comprises:
and the identifier generation module is used for generating an identifier for each stability test in advance, wherein the identifier is arranged for a single row before each test result.
As an improved scheme, the preprocessing module specifically includes:
the identifier acquisition module is used for carrying out preliminary analysis on the acquired stability test results to acquire each identifier in the stability test results;
an identifier line number obtaining module, configured to obtain, according to the obtained identifier, a line number of each identifier in the stability test result;
the single stability test result line number obtaining module is used for carrying out difference operation on the line numbers corresponding to the current identifier and the next adjacent identifier to obtain the total line number of the current stability test result;
and the dividing module is used for dividing the stability test result according to the total row number of the obtained stability test result of each time, and obtaining the stability test result of each time.
In the embodiment of the invention, a stability test result generated after the stability test of the server is obtained; preprocessing the obtained stability test result according to a pre-configured identifier to obtain a test result corresponding to each stability test in the stability test result; and respectively carrying out standard result comparison analysis on the test results corresponding to each stability test obtained by preprocessing, and judging whether each stability test passes or not, so that the stability test results are automatically processed, the stability test results are analyzed more clearly and definitely, and the analysis efficiency is improved.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
FIG. 1 is a flow chart of an implementation of a data processing method in a server stability test process provided by the present invention;
fig. 2 is a flowchart illustrating an implementation of preprocessing the obtained stability test result according to a preconfigured identifier to obtain a test result corresponding to each stability test in the stability test result according to the present invention;
FIG. 3 is a block diagram of a data processing system during a server stability test process provided by the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are merely for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby.
Fig. 1 is a flowchart of an implementation of a data processing method in a server stability test process, which specifically includes the following steps:
in step S101, a stability test result generated after the server stability test is obtained;
in step S102, according to a preconfigured identifier, preprocessing the obtained stability test result to obtain a test result corresponding to each stability test in the stability test result;
in step S103, standard result comparison analysis is performed on the test result corresponding to each stability test obtained by the preprocessing, and whether each stability test passes is determined.
Before executing the above step S101, the following steps are further included:
an identifier is generated in advance for each stability test, the identifier is set for a single row before each test result, and the identifier implements the command that:
Count=cat$Cur_Dir/count.txt|wc–l;
Echo‘======$Count====’>$Cur_Dir/result.log。
in this embodiment of the present invention, as shown in fig. 2, the step of preprocessing the obtained stability test result according to the preconfigured identifier to obtain the test result corresponding to each stability test in the stability test result specifically includes the following steps:
in step S201, performing a preliminary analysis on the obtained stability test result, and obtaining each identifier in the stability test result;
in step S202, according to the obtained identifiers, obtaining the number of rows of each identifier in the stability test result;
in this step, the identifier is processed through the shell script, and the corresponding line number is obtained. Since the test result may be obtained only from a part of the log and not all the information is obtained, the number of obtained result lines is not necessarily continuous, and therefore the number of lines needs to be obtained again.
In step S203, a difference operation is performed on the line numbers corresponding to the current identifier and the next adjacent identifier to obtain the total line number of the current stability test result.
In step S204, the stability test result is segmented according to the total number of rows of the obtained stability test results for each time, so as to obtain the stability test result for each time.
Fig. 3 is a block diagram of a data processing system during a server stability test process provided by the present invention, and for convenience of description, only the relevant portions of the data processing system related to the embodiment of the present invention are shown in the diagram.
The data processing system in the server stability test process comprises:
the stability test result obtaining module 11 is configured to obtain a stability test result generated after the server stability test;
the preprocessing module 12 is configured to preprocess the obtained stability test result according to a preconfigured identifier, and obtain a test result corresponding to each stability test in the stability test result;
and the single comparison analysis module 13 is configured to perform standard result comparison analysis on the test result corresponding to each stability test obtained by the preprocessing, and determine whether each stability test passes or not.
Wherein the system further comprises:
an identifier generating module 14, configured to generate an identifier in advance for each stability test, where the identifier is set for a single row before each test result.
In an embodiment of the present invention, as shown in fig. 3, the preprocessing module 12 specifically includes:
the identifier obtaining module 15 is configured to perform preliminary analysis on the obtained stability test results to obtain each identifier in the stability test results;
an identifier line number obtaining module 16, configured to obtain, according to the obtained identifier, a line number of each identifier in the stability test result;
a single stability test result line number obtaining module 17, configured to perform difference operation on the line numbers corresponding to the current identifier and the next adjacent identifier, so as to obtain a total line number of the current stability test result;
and the dividing module 18 is configured to divide the stability test result according to the total row number of the obtained stability test result of each time, and obtain the stability test result of each time.
In the embodiment of the invention, a stability test result generated after the server stability test is obtained; preprocessing the obtained stability test result according to a pre-configured identifier to obtain a test result corresponding to each stability test in the stability test result; and respectively carrying out standard result comparison analysis on the test results corresponding to each stability test obtained by preprocessing, and judging whether each stability test passes or not, so that the stability test results are automatically processed, the stability test results are analyzed more clearly and definitely, and the analysis efficiency is improved.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being covered by the appended claims and their equivalents.

Claims (2)

1. A data processing method in a server stability test process is characterized by comprising the following steps:
obtaining a stability test result generated after the stability test of the server;
preprocessing the obtained stability test result according to a pre-configured identifier to obtain a test result corresponding to each stability test in the stability test result;
respectively carrying out standard result comparison analysis on the test results corresponding to each stability test obtained by preprocessing, and judging whether each stability test passes or not;
the step of obtaining the stability test result generated after the server stability test further comprises the following steps before:
generating an identifier for each stability test in advance, wherein the identifier is arranged for a single row before each test result; the step of preprocessing the obtained stability test result according to the preconfigured identifier to obtain the test result corresponding to each stability test in the stability test result specifically includes the following steps:
performing preliminary analysis on the obtained stability test result to obtain each identifier in the stability test result;
acquiring the number of lines of each identifier in the stability test result according to the acquired identifier;
performing difference operation on the line numbers corresponding to the current identifier and the next adjacent identifier to obtain the total line number of the current stability test result;
and segmenting the stability test result according to the total row number of the obtained stability test result of each time, and obtaining the stability test result of each time.
2. A data processing system during a server stability test, the system comprising:
the stability test result acquisition module is used for acquiring a stability test result generated after the stability test of the server;
the preprocessing module is used for preprocessing the acquired stability test result according to a preconfigured identifier to acquire a test result corresponding to each stability test in the stability test result;
the single comparison and analysis module is used for respectively carrying out standard result comparison and analysis on the test results corresponding to each stability test obtained by pretreatment and judging whether each stability test passes;
the system further comprises:
the identifier generating module is used for generating an identifier for each stability test in advance, and the identifier is arranged in a single row before each test result;
the preprocessing module specifically comprises:
the identifier acquisition module is used for carrying out preliminary analysis on the acquired stability test results to acquire each identifier in the stability test results;
the identifier line number acquisition module is used for acquiring the line number of each identifier in the stability test result according to the acquired identifier;
the single stability test result line number obtaining module is used for carrying out difference operation on the line numbers corresponding to the current identifier and the next adjacent identifier to obtain the total line number of the current stability test result;
and the segmentation module is used for segmenting the stability test result according to the total row number of the obtained stability test result of each time, and obtaining the stability test result of each time.
CN202010094690.7A 2020-02-16 2020-02-16 Data processing method and system in server stability test process Active CN111240951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010094690.7A CN111240951B (en) 2020-02-16 2020-02-16 Data processing method and system in server stability test process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010094690.7A CN111240951B (en) 2020-02-16 2020-02-16 Data processing method and system in server stability test process

Publications (2)

Publication Number Publication Date
CN111240951A CN111240951A (en) 2020-06-05
CN111240951B true CN111240951B (en) 2023-01-10

Family

ID=70874978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010094690.7A Active CN111240951B (en) 2020-02-16 2020-02-16 Data processing method and system in server stability test process

Country Status (1)

Country Link
CN (1) CN111240951B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152215A (en) * 2011-12-06 2013-06-12 鸿富锦精密工业(深圳)有限公司 Testing system and testing method of data center
CN108021479A (en) * 2017-12-05 2018-05-11 郑州云海信息技术有限公司 A kind of test method, device and the equipment of storage medium and server stability

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152215A (en) * 2011-12-06 2013-06-12 鸿富锦精密工业(深圳)有限公司 Testing system and testing method of data center
CN108021479A (en) * 2017-12-05 2018-05-11 郑州云海信息技术有限公司 A kind of test method, device and the equipment of storage medium and server stability

Also Published As

Publication number Publication date
CN111240951A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN108415830B (en) Method and device for generating software test case
CN110058998B (en) Software testing method and device
CN111338657A (en) Template-based palm parameter batch configuration method
CN111651365B (en) Automatic interface testing method and device
CN111625342B (en) Data tracing method, device and server
CN113138927A (en) Software function testing method and device
CN110287104A (en) Method for generating test case, device, terminal and computer readable storage medium
CN110968380A (en) Data visualization method and system
CN111240951B (en) Data processing method and system in server stability test process
CN111367782B (en) Regression testing data automatic generation method and device
CN110176276B (en) Biological information analysis process management method and system
CN116431522A (en) Automatic test method and system for low-code object storage gateway
CN111625330A (en) Cross-thread task processing method and device, server and storage medium
CN115276844B (en) Communication module testing method and device, storage medium and electronic equipment
CN112559313A (en) Test case setting method and device, storage medium and electronic equipment
CN105487925A (en) Data scanning method and device
CN109344836B (en) Character recognition method and equipment
CN114968770A (en) Automatic testing method, device, equipment and storage medium
CN106095875B (en) Method and device for improving ID of live broadcast terminal
CN111258891A (en) Method and system for improving execution efficiency of automatic test
CN105653552B (en) Structured document processing method, device and equipment
CN110943858B (en) Fault positioning method and device
CN110570276B (en) Matching system and method for self-adaptively matching user requirements of server
CN113157558B (en) System testing method and device
CN106294145A (en) A kind of method of software test and software testing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant