CN109376066A - A kind of automatic test approach and device - Google Patents

A kind of automatic test approach and device Download PDF

Info

Publication number
CN109376066A
CN109376066A CN201811360334.4A CN201811360334A CN109376066A CN 109376066 A CN109376066 A CN 109376066A CN 201811360334 A CN201811360334 A CN 201811360334A CN 109376066 A CN109376066 A CN 109376066A
Authority
CN
China
Prior art keywords
test
information
test object
result
software
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.)
Withdrawn
Application number
CN201811360334.4A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811360334.4A priority Critical patent/CN109376066A/en
Publication of CN109376066A publication Critical patent/CN109376066A/en
Withdrawn legal-status Critical Current

Links

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

Abstract

The embodiment of the present application discloses a kind of automatic test approach and device, predefine at least one test object, and the test moment to test object, control pressure surveys software and starts to carry out test object at the test moment, the test result of software is surveyed according to pressure, generates result log, therefore, the automatic test to test object is realized, to improve testing efficiency.

Description

A kind of automatic test approach and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of automatic test approach and device.
Background technique
In network system, the performance of system entirety depends on the balance of various resources, the availability meeting of a certain item resource The serious performance for hindering system.
By taking Linux system as an example, the main resource for influencing system performance has: central processing unit, hard disk, reads speed at memory Rate, network time and application program etc., wherein for central processing unit, operational capability is important reference index, operation Ability generally depends on the build-in attribute of central processing unit, and for hard disk, memory capacity and reading rate are important finger Mark, memory capacity and reading rate depend on two aspects of hard disk itself and bus.
Therefore, the resource in system is tested, is essential one of network system exploitation, how improves resource Testing efficiency is current urgent problem to be solved.
Summary of the invention
In order to solve the above technical problems, the embodiment of the present application provides a kind of automatic test approach, by automatically to test pair As being tested and being generated result log, to improve testing efficiency, to improve the efficiency of network system exploitation.
The embodiment of the present application provides a kind of automatic test approach, which comprises
Determine at least one test object, and the test moment to the test object;
Control pressure surveys software and starts to test the test object at the test moment;
The test result that software is surveyed according to the pressure, generates result log.
Optionally, central processing unit information, kernel version are included at least one of the following: to the test content of the test object This information, storage version information, memory information, hard disk information, host name, IP address, virtual memory statistical information, memory use Situation, system operation time, application information.
Optionally, the method also includes:
The result log is analyzed, judges the test object with the presence or absence of abnormal;
If so, the corresponding result log of the test object is marked.
Optionally, the method also includes:
The result log is packaged, summarized results is formed.
Optionally, the test result includes the temporal information tested the test object.
The embodiment of the present application also provides a kind of automatic testing equipment, described device includes:
Information determination unit, for determining at least one test object, and the test moment to the test object;
Test cell is controlled, presses survey software to start to survey the test object at the test moment for controlling Examination;
As a result acquiring unit generates result log for surveying the test result of software according to the pressure.
Optionally, central processing unit information, kernel version are included at least one of the following: to the test content of the test object This information, storage version information, memory information, hard disk information, host name, IP address, virtual memory statistical information, memory use Situation, system operation time, application information.
Optionally, described device further include:
Judging unit judges the test object with the presence or absence of abnormal for analyzing the result log;
Marking unit, if the judging result for the judging unit is yes, result corresponding to the test object Log is marked.
Optionally, described device further include:
Encapsulation unit forms summarized results for being packaged to the result log.
Optionally, the test result includes the temporal information tested the test object.
The embodiment of the present application provides a kind of automatic test approach and device, predefines at least one test object, with And the test moment to test object, control pressure survey software and start to carry out test object at the test moment, survey software according to pressure Test result, result log is generated, it is thereby achieved that the automatic test to test object, to improve testing efficiency.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations as described in this application Example, for those of ordinary skill in the art, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of automatic test approach provided by the embodiments of the present application;
Fig. 2 is a kind of structural block diagram of automatic testing equipment provided by the embodiments of the present application.
Specific embodiment
Inventor has found that influencing the main resource of system performance has: central processing unit, memory, hard disk, reading Rate, network time and application program etc., wherein for central processing unit, operational capability is important reference index, fortune Calculation ability generally depends on the build-in attribute of central processing unit, and for hard disk, memory capacity and reading rate are important Index, memory capacity and reading rate depend on two aspects of hard disk itself and bus.Therefore, the resource in system is surveyed Examination is essential one of network system exploitation, and how to improve resource testing efficiency is current urgent problem to be solved.
In the prior art, there is pressure and survey software, the resource of system can be tested, such as vdbench can be passed through Software tests the resource of system.However when being tested by pressure survey software, manually identifying test parameter is needed, manually It clicks determination to start, to realize test, manual operation is relatively complicated, therefore user experience is poor.
Based on this, the embodiment of the present application provides a kind of automatic test approach and device, predefines at least one test Object, and to the test moment of test object, control pressure surveys software and starts to carry out test object at the test moment, according to pressure The test result of software is surveyed, result log is generated, it is thereby achieved that the automatic test to test object, to improve test effect Rate.
With reference to the accompanying drawing, automatic test approach and device provided by the embodiments of the present application are described in detail by embodiment Specific implementation.
A kind of flow chart of automatic test approach provided by the embodiments of the present application is shown with reference to Fig. 1, this method can wrap Include following steps.
S101 determines at least one test object, and the test moment to test object.
Test object is the object in network system, and the build-in attribute and/or operating condition of test object can influence net The overall performance of network system.For example, test object can be central processing unit, kernel, store equipment, host, using journey Sequence etc., the test content to test object may include central processing unit information, kernel version information, storage version information, interior Deposit information, hard disk information, host name, IP address, virtual memory statistical information, memory service condition, system operation time, application Program information etc..
In the embodiment of the present application, one or more test objects can be determined, such as determine that central processing unit is test pair As, or determine central processing unit and kernel as test object.
The test moment of test object can be it is preset, such as can be set in advance in 00:00 carry out center The test of processor.Specifically, for the test object setting test moment, it can be specifically, setting start time for test object And test frequency, determine the test moment repeatedly tested accordingly.
A kind of setting means as possible test moment can be the test object when test object is one Set a test moment.
It can be each test when test object is multiple as the setting means at alternatively possible test moment Object sets a test moment, or multiple test objects are grouped, and the test object for being each group sets one Test the moment.
S102, control pressure survey software and start to test test object at the test moment.
It is the test software to system stability, the memory usually except system normal operation range, to examine that pressure, which surveys software, Examine the function and hidden danger of system.In the embodiment of the present application, pressure, which surveys software, can be vdbench software, be also possible to other pressures Software is surveyed, it is not limited here.
Pressure is surveyed software and is tested test object, can be with specifically, operation pressure surveys software, which can be according to setting Test object, test object is tested.Pressure, which surveys software, can pressure parameter, and pressure parameter can be according to the actual situation Adjustment.
It may include central processing unit information, kernel version information, storage to the test content of test object that pressure, which surveys software, Version information, memory information, hard disk information, host name, IP address, virtual memory statistical information, memory service condition, system fortune Row time etc..
Control pressure surveys software and starts to test test object at the test moment, can be specifically, control test software Start a test object corresponding to the test moment at the test moment or one group of test object is tested.At the test moment When corresponding one group of test object, one group of test object can be tested according to testing sequence, specifically, can be in completion pair In the group after the test of a test object, start the test of another test object in the group, until the test pair in the group As being completed.
S103 surveys the test result of software according to pressure, generates result log.
Pressure surveys software after completing test to test object, can generate corresponding test result.
It may include the temporal information tested test object in test result.Specifically, test the moment be for In the case where single test object setting, the temporal information tested test object can be determined according to the test moment;? The test moment is in the case where setting for one group of test object, and the temporal information tested to test object is according to testing pair Time as carrying out actual test determines.
In the embodiment of the present application, the test result that pressure surveys software can be read.Specifically, can be read according to certain frequency Test result is taken, such as the reading of test result can be carried out using the 1/20 of length of testing speech as read access time interval.
After getting pressure and surveying the test result of software, result log can be generated, result log can be hypertext Markup language (Hyper Text Markup Language, html) format.
After generating result log, result log can also be analyzed, judge test object with the presence or absence of abnormal.Tool Body, the standard parameter of each test object can be preset, the test result and mark of the test object in result log When quasi- parameter mismatches, it is believed that test object exists abnormal.For example, the occupancy of central processing unit can be preset Rate is lower than 70%, then when the occupancy of test result characterization central processing unit is 80%, it is abnormal to judge that central processing unit exists.
Judging that test object deposits when abnormal, the corresponding result log of test object can be marked, to use Family passes through label quick obtaining to abnormal data.
After generating result log, result log can also be packaged, form summarized results, summarized results can be Html format, user can check summarized results by browser.
The embodiment of the present application provides a kind of automatic test approach, predefines at least one test object, and to survey It tries the test moment of object, control pressure surveys software and starts to carry out test object at the test moment, and the test of software is surveyed according to pressure As a result, result log is generated, it is thereby achieved that the automatic test to test object, to improve testing efficiency.
Based on the above automatic test approach, the embodiment of the present application also provides a kind of automatic testing equipments, with reference to Fig. 2 institute Show, be a kind of structural block diagram of automatic testing equipment provided by the embodiments of the present application, which includes:
Information determination unit 110, for determining at least one test object, and when to the test of the test object It carves;
Test cell 120 is controlled, presses survey software to start to carry out the test object at the test moment for controlling Test;
As a result acquiring unit 130 generate result log for surveying the test result of software according to the pressure.
Optionally, central processing unit information, kernel version are included at least one of the following: to the test content of the test object This information, storage version information, memory information, hard disk information, host name, IP address, virtual memory statistical information, memory use Situation, system operation time, application information.
Optionally, described device further include:
Judging unit judges the test object with the presence or absence of abnormal for analyzing the result log;
Marking unit, if the judging result for the judging unit is yes, result corresponding to the test object Log is marked.
Optionally, described device further include:
Encapsulation unit forms summarized results for being packaged to the result log.
Optionally, the test result includes the temporal information tested the test object.
The embodiment of the present application provides a kind of automatic testing equipment, predefines at least one test object, and to survey It tries the test moment of object, control pressure surveys software and starts to carry out test object at the test moment, and the test of software is surveyed according to pressure As a result, result log is generated, it is thereby achieved that the automatic test to test object, to improve testing efficiency.
" first " in the titles such as " first ... " mentioned in the embodiment of the present application, " first ... " is used only to do name Word mark, does not represent first sequentially.The rule is equally applicable to " second " etc..
As seen through the above description of the embodiments, those skilled in the art can be understood that above-mentioned implementation All or part of the steps in example method can add the mode of general hardware platform to realize by software.Based on this understanding, The technical solution of the application can be embodied in the form of software products, which can store is situated between in storage In matter, such as read-only memory (English: read-only memory, ROM)/RAM, magnetic disk, CD etc., including some instructions to So that a computer equipment (can be the network communication equipments such as personal computer, server, or router) executes Method described in certain parts of each embodiment of the application or embodiment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for method reality For applying example and apparatus embodiments, since it is substantially similar to system embodiment, so describe fairly simple, related place ginseng See the part explanation of system embodiment.Equipment and system embodiment described above is only schematical, wherein making It may or may not be physically separated for the module of separate part description, the component shown as module can be Or it may not be physical module, it can it is in one place, or may be distributed over multiple network units.It can be with Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment according to the actual needs.The common skill in this field Art personnel can understand and implement without creative efforts.
The above is only the preferred embodiment of the application, is not intended to limit the protection scope of the application.It should refer to Out, for those skilled in the art, it under the premise of not departing from the application, can also make several improvements And retouching, these improvements and modifications also should be regarded as the protection scope of the application.

Claims (10)

1. a kind of automatic test approach, which is characterized in that the described method includes:
Determine at least one test object, and the test moment to the test object;
Control pressure surveys software and starts to test the test object at the test moment;
The test result that software is surveyed according to the pressure, generates result log.
2. the method according to claim 1, wherein to the test content of the test object include it is following at least One: central processing unit information, kernel version information, storage version information, memory information, hard disk information, host name, IP Location, virtual memory statistical information, memory service condition, system operation time, application information.
3. the method according to claim 1, wherein the method also includes:
The result log is analyzed, judges the test object with the presence or absence of abnormal;
If so, the corresponding result log of the test object is marked.
4. method according to claim 1 to 3, which is characterized in that the method also includes:
The result log is packaged, summarized results is formed.
5. method according to claim 1 to 3, which is characterized in that the test result includes to the test The temporal information that object is tested.
6. a kind of automatic testing equipment, which is characterized in that described device includes:
Information determination unit, for determining at least one test object, and the test moment to the test object;
Test cell is controlled, presses survey software to start to test the test object at the test moment for controlling;
As a result acquiring unit generates result log for surveying the test result of software according to the pressure.
7. device according to claim 6, which is characterized in that the test content to the test object include it is following at least One: central processing unit information, kernel version information, storage version information, memory information, hard disk information, host name, IP Location, virtual memory statistical information, memory service condition, system operation time, application information.
8. device according to claim 6, which is characterized in that described device further include:
Judging unit judges the test object with the presence or absence of abnormal for analyzing the result log;
Marking unit, if the judging result for the judging unit is yes, result log corresponding to the test object It is marked.
9. according to device described in claim 6-8 any one, which is characterized in that described device further include:
Encapsulation unit forms summarized results for being packaged to the result log.
10. according to device described in claim 6-8 any one, which is characterized in that the test result includes to the survey The temporal information that examination object is tested.
CN201811360334.4A 2018-11-15 2018-11-15 A kind of automatic test approach and device Withdrawn CN109376066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811360334.4A CN109376066A (en) 2018-11-15 2018-11-15 A kind of automatic test approach and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811360334.4A CN109376066A (en) 2018-11-15 2018-11-15 A kind of automatic test approach and device

Publications (1)

Publication Number Publication Date
CN109376066A true CN109376066A (en) 2019-02-22

Family

ID=65388836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811360334.4A Withdrawn CN109376066A (en) 2018-11-15 2018-11-15 A kind of automatic test approach and device

Country Status (1)

Country Link
CN (1) CN109376066A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110008072A (en) * 2019-04-08 2019-07-12 苏州浪潮智能科技有限公司 A kind of method and device of testing hard disk performance and programming count result

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110008072A (en) * 2019-04-08 2019-07-12 苏州浪潮智能科技有限公司 A kind of method and device of testing hard disk performance and programming count result

Similar Documents

Publication Publication Date Title
US11822919B2 (en) Auto-generation of API documentation via implementation-neutral analysis of API traffic
CN109302522B (en) Test method, test device, computer system, and computer medium
CN107391359B (en) Service testing method and device
EP1576487B1 (en) Web server hit multiplier and redirector
CN105099811A (en) Interface testing method and device
CN108363662A (en) A kind of applied program testing method, storage medium and terminal device
CN107608874A (en) Method of testing and device
CN109976995B (en) Method and apparatus for testing
US20150135018A1 (en) Analysis method, analysis apparatus, computer-readable storage medium storing analysis program
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
WO2016093871A1 (en) Method and system for automating submission of issue reports
CN108073506A (en) Test method and device
KR20180050608A (en) Machine learning based identification of broken network connections
US10775751B2 (en) Automatic generation of regular expression based on log line data
CN109324956B (en) System testing method, apparatus and computer readable storage medium
CN112597018A (en) Interface test case generation method, device, equipment and storage medium
CN109376066A (en) A kind of automatic test approach and device
US11048735B2 (en) Operation of a computer based on optimal problem solutions
CN112615873A (en) Internet of things equipment safety detection method, equipment, storage medium and device
JP6508327B2 (en) Text visualization system, text visualization method, and program
CN111258904A (en) Webpage element testing method and related device
CN107402883B (en) A kind of data test treating method and apparatus
US20220276862A1 (en) Methods and systems for scoring quality of open source software documentation
CN110209577A (en) A kind of test method and device
CN112988560A (en) Method and device for testing system robustness

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190222