CN109614337B - Performance test system and test tool based on linux system - Google Patents

Performance test system and test tool based on linux system Download PDF

Info

Publication number
CN109614337B
CN109614337B CN201811583890.8A CN201811583890A CN109614337B CN 109614337 B CN109614337 B CN 109614337B CN 201811583890 A CN201811583890 A CN 201811583890A CN 109614337 B CN109614337 B CN 109614337B
Authority
CN
China
Prior art keywords
test
unit
tool
parameters
items
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
CN201811583890.8A
Other languages
Chinese (zh)
Other versions
CN109614337A (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.)
ISOFT INFRASTRUCTURE SOFTWARE CO Ltd
Original Assignee
ISOFT INFRASTRUCTURE SOFTWARE 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 ISOFT INFRASTRUCTURE SOFTWARE CO Ltd filed Critical ISOFT INFRASTRUCTURE SOFTWARE CO Ltd
Priority to CN201811583890.8A priority Critical patent/CN109614337B/en
Publication of CN109614337A publication Critical patent/CN109614337A/en
Application granted granted Critical
Publication of CN109614337B publication Critical patent/CN109614337B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention relates to the technical field of software systems, in particular to a performance test system and a test tool based on a linux system, wherein the performance test system comprises: the configuration unit is used for configuring system parameters related to the performance test system; the control unit is used for calling the appointed test item through a data interface according to the command line parameter of the test item; the test unit is used for testing the test items to be tested by adopting a test tool corresponding to the test items according to the execution command input by the user so as to generate test cases corresponding to the test items; the log generating unit is used for generating a corresponding test log for the test case. The beneficial effects are that: the performance test data can be quickly obtained, automatic execution detection can be realized, human power and human error are reduced, a test log is automatically generated, the investigation of a developer is facilitated, in the test process, the test state and data information can be sent through mails, the deployment is convenient, the network and the server are not relied on, and the expansion, the maintenance and the correction are easy.

Description

Performance test system and test tool based on linux system
Technical Field
The invention relates to the technical field of software systems, in particular to a performance test system and a test tool based on a linux system.
Background
In the development and use process of the Linux system, test items in the system are often required to be tested. Currently testing linux system performance mainly performs two options by manual execution and automatic test framework.
The manual test is performed, namely, the manual command input is performed, the test state is required to be monitored manually, and the test is difficult to detect in time after an error occurs. And generating original data after the test is finished, and manually arranging the original data. The Autotest automatic testing framework has a more complex structure, and the framework realizes the full-automatic testing on the linux system. A C/S architecture is used and web management pages are provided. The test server issues the test content to the tested host computer to execute the test, and the test server has a perfect test flow control mechanism. When Autotest performs a test, test driving files and control files need to be written, and the test driving files and the control files depend on an interface provided by the Autotest. Autotest framework structure, as shown in FIG. 1, wherein clients are the tested systems: the web and command line user interface is implemented through django, and test management and execution are performed in units of test tasks (jobs). The information of the test tasks is stored in the mysql database. Test tasks may be created through a web front end or command line, with specific test content being invoked and executed by the test tasks.
The manual performance of the test has the following problems: the labor cost is high, and human errors are easy to generate; problem investigation, manual testing is difficult to form standardized log and test records, and investigation and tracing of problems are difficult; only the test status can be queried manually. However, when the test case does not need to be reused and is only used once or the test process is flexible, the manual test can reduce the test cost. The Autotest automatic test framework has certain requirements on the test environment, and needs to be deployed with a test server, and also needs to have a mature driving script and a control file; such as in some special sites, such as in a corporate intranet.
Disclosure of Invention
Aiming at the problems in the prior art, a performance test system and a test tool based on a linux system are provided.
The specific technical scheme is as follows:
a linux system-based performance testing system, comprising:
a configuration unit for configuring system parameters related to the performance test system;
the system parameters comprise the category of a test system, the test parameters of a test item, the command line parameters of the test item, the acquisition address of a test tool, the name of an installation package of the test tool, the help information of the test tool and the client list information;
the control unit is connected with the configuration unit and used for calling the designated test item through a data interface according to the command line parameters of the test item;
the test unit is connected with the control unit and is used for testing the test items to be tested by adopting the test tools corresponding to the test items according to the execution commands input by the user so as to generate test cases corresponding to the test items;
and the log generating unit is connected with the testing unit and used for generating the corresponding test log for the test case.
Preferably, the system further comprises a sending unit, wherein the sending unit is connected with the log generating unit and is used for sending the test log to a corresponding mail receiver in the client list according to the client list information which is generated in advance.
Preferably, the system further comprises a monitoring unit, wherein the monitoring unit is connected with the control unit and used for detecting the working state of the control unit and judging whether the current working state meets the test requirement or not, and the working state refers to the state that the control unit calls the designated test item;
and when the current working state is judged to be not in accordance with the test requirement, modifying the working state of the control unit.
Preferably, the data interface comprises an analysis interface, the analysis interface calls a parameter analysis unit, and the system parameter is analyzed through the parameter analysis unit;
to generate a list containing the system parameters of the performance testing system;
the test unit is used for calling the list and acquiring the category of the test system and the test parameters of the test items from the list;
the test parameters of the test items are used for the test unit to test so as to generate the test cases corresponding to the test items.
Preferably, the data interface further comprises an installation interface, and the control unit obtains an installation package of the test tool according to the address of the test tool and the installation package name of the test tool so as to call the installation interface to execute the installation operation on the test tool.
Preferably, the data interface further comprises a program execution interface, and the test tool forms a corresponding test instruction according to the corresponding test parameter of the test item;
and the program execution interface calls an execution program to test the test item to be tested according to the test instruction.
Preferably, the data interface further comprises a cleaning interface, and after the test tool finishes testing, the test tool recovers the preconfigured system parameters through the cleaning interface.
Preferably, the system further comprises a test catalog, wherein the test tool stores each test case into the test catalog, and generates a corresponding visual test report, and the visual test report is presented in a form of a table.
The invention further comprises a performance testing tool based on the linux system, wherein the performance testing system based on the linux system is adopted.
The technical scheme of the invention has the beneficial effects that: the performance test system and the test tool based on the linux system can quickly acquire common performance test data of the linux system in a single environment, can realize automatic execution detection, reduce manpower and human errors, can automatically generate test logs, are convenient for developers to investigate problems, can send test states and data information through mails in the test process, are convenient to deploy, do not depend on a network and a server, and are easy to expand and maintain and correct.
Drawings
Embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The drawings, however, are for illustration and description only and are not intended as a definition of the limits of the invention.
FIG. 1 is a schematic block diagram of an Autotest automated test framework in the prior art;
FIG. 2 is a functional block diagram of a linux system-based performance testing system according to an embodiment of the present invention;
fig. 3 is a functional block diagram of a data interface of an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
The invention is further described below with reference to the drawings and specific examples, which are not intended to be limiting.
The invention comprises a performance test system based on a linux system, which is shown in combination with figures 2 and 3, and comprises the following steps:
a configuration unit 1 for configuring system parameters related to the performance test system;
the system parameters comprise the category of the test system, the test parameters of the test item, the command line parameters of the test item, the acquisition address of the test tool, the name of the installation package of the test tool, the help information of the test tool and the client list information;
a control unit 2 connected with the configuration unit 1 for calling the designated test item through a data interface 7 according to the command line parameters of the test item;
the test unit 3 is connected with the control unit 2 and is used for testing the test items to be tested by adopting a test tool corresponding to the test items according to the execution command input by the user so as to generate test cases corresponding to the test items;
and a log generating unit 4 connected with the testing unit 3 for generating a corresponding test log for the test case.
Through the technical scheme of the performance test system based on the linux system, the performance test system based on the linux system is disclosed, test parameters are received and analyzed, the performance test system is realized through getops, a test environment is set, the performance test system comprises a test catalog setting function, a test tool acquiring address setting function, a mail receiver setting function, tool help information function, a tool use method and a tool use range function interpretation function, a shell function is written, a tool use method is described, when the parameters are wrong or an-h parameter is received, a test case is called, and an executed test case is specified through command line parameters.
Further, the test log collecting method receives test information as parameters, redirects the information to a specified log file through echo and tee, checks the service state of the system, receives a service name list and an expected state as parameters, judges the current state through systemctl, modifies the service state if the current state does not meet the test requirement, checks test dependence, receives a dependence package list as parameters, and tries automatic installation if the system is not installed.
Furthermore, in a single machine environment, the common performance test data of the linux system can be quickly obtained, automatic execution detection can be realized, manpower and human errors are reduced, a test log can be automatically generated, the investigation of a developer is facilitated, in the process of testing, the test state and data information can be sent through mails, the deployment is convenient, the network and the server are not relied on, and the expansion, the maintenance and the correction are easy.
In a preferred embodiment, the system further comprises a sending unit 5, and the sending unit 5 is connected with the log generating unit 4 and is used for sending the test log to the corresponding mail receiver in the client list according to the client list information generated in advance.
In a preferred embodiment, the system further comprises a monitoring unit 6, wherein the monitoring unit 6 is connected with the control unit 2 and is used for detecting the working state of the control unit 2 and judging whether the current working state meets the test requirement or not, and the working state refers to the state that the control unit calls the designated test item;
when the current working state is judged to be not in accordance with the test requirement, the working state of the control unit is modified.
In a preferred embodiment, the data interface 7 includes a parsing interface 70, the parsing interface 70 calls a parameter parsing unit 8, and the system parameters are parsed by the parameter parsing unit 8;
to generate a list containing system parameters of the performance testing system;
the test unit is used for calling the list and acquiring the category of the test system and the test parameters of the test items in the list;
the test parameters of the test items are used for the test unit to test so as to generate test cases corresponding to the test items.
In a preferred embodiment, as shown in fig. 3, the data interface 7 further includes an installation interface 71, and the control unit 2 obtains an installation package of the test tool according to the address of the test tool and the name of the installation package of the test tool, so as to call the installation interface to perform an installation operation on the test tool.
Furthermore, in a single machine environment, the common performance test data of the linux system can be quickly obtained, automatic execution detection can be realized, manpower and human errors are reduced, a test log can be automatically generated, the investigation of a developer is facilitated, in the process of testing, the test state and data information can be sent through mails, the deployment is convenient, the network and the server are not relied on, and the expansion, the maintenance and the correction are easy.
In a preferred embodiment, as shown in fig. 3, the data interface 7 further includes a program execution interface 72, and the test tool forms corresponding test instructions according to corresponding test parameters of the test items;
and the program execution interface calls an execution program to test the test item to be tested according to the test instruction.
Furthermore, in a single machine environment, the common performance test data of the linux system can be quickly obtained, automatic execution detection can be realized, manpower and human errors are reduced, a test log can be automatically generated, the investigation of a developer is facilitated, in the process of testing, the test state and data information can be sent through mails, the deployment is convenient, the network and the server are not relied on, and the expansion, the maintenance and the correction are easy.
In a preferred embodiment, as shown in fig. 3, the data interface 7 further includes a cleaning interface 73, through which the test tool resumes the pre-configured system parameters after the test tool has finished testing.
Furthermore, in a single machine environment, the common performance test data of the linux system can be quickly obtained, automatic execution detection can be realized, manpower and human errors are reduced, a test log can be automatically generated, the investigation of a developer is facilitated, in the process of testing, the test state and data information can be sent through mails, the deployment is convenient, the network and the server are not relied on, and the expansion, the maintenance and the correction are easy.
In a preferred embodiment, the system further comprises a test catalog, the test tool stores each test case in the test catalog, a corresponding visual test report is generated, and the visual test report is presented in a table form.
Furthermore, in a single machine environment, the common performance test data of the linux system can be quickly obtained, automatic execution detection can be realized, manpower and human errors are reduced, a test log can be automatically generated, the investigation of a developer is facilitated, in the process of testing, the test state and data information can be sent through mails, the deployment is convenient, the network and the server are not relied on, and the expansion, the maintenance and the correction are easy.
The invention further comprises a performance testing tool based on the linux system, wherein the performance testing system based on the linux system is adopted.
In particular, a performance testing tool based on a linux system is disclosed, in a single machine environment, the common performance testing data of the linux system can be quickly obtained, automatic execution detection can be realized, manpower and human errors are reduced, a testing log can be automatically generated, a developer can conveniently investigate a problem, in the testing process, testing state and data information can be sent through mails, deployment is convenient, the system is independent of a network and a server, and expansion and maintenance correction are easy.
The foregoing description is only illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the scope of the invention, and it will be appreciated by those skilled in the art that equivalent substitutions and obvious variations may be made using the description and illustrations of the present invention, and are intended to be included within the scope of the present invention.

Claims (7)

1. A linux system-based performance test system, comprising:
a configuration unit for configuring system parameters related to the performance test system;
the system parameters comprise the category of a test system, the test parameters of a test item, the command line parameters of the test item, the acquisition address of a test tool, the name of an installation package of the test tool, the help information of the test tool and the client list information;
the control unit is connected with the configuration unit and used for calling the designated test item through a data interface according to the command line parameters of the test item;
the test unit is connected with the control unit and is used for testing the test items to be tested by adopting the test tools corresponding to the test items according to the execution commands input by the user so as to generate test cases corresponding to the test items;
a log generating unit, connected to the testing unit, for generating a corresponding test log for the test case;
the sending unit is connected with the log generating unit and used for sending the test log to corresponding mail receivers in the client list according to the client list information generated in advance;
the monitoring unit is connected with the control unit and used for detecting the working state of the control unit and judging whether the current working state meets the test requirement or not, wherein the working state refers to the state that the control unit calls the designated test item;
and when the current working state is judged to be not in accordance with the test requirement, modifying the working state of the control unit.
2. The linux system-based performance testing system according to claim 1, wherein the data interface comprises an analysis interface, the analysis interface calls a parameter analysis unit, and the system parameters are analyzed by the parameter analysis unit;
to generate a list containing the system parameters of the performance testing system;
the test unit is used for calling the list and acquiring the category of the test system and the test parameters of the test items from the list;
the test parameters of the test items are used for the test unit to test so as to generate the test cases corresponding to the test items.
3. The linux system-based performance testing system according to claim 1, wherein the data interface further comprises an installation interface, and the control unit obtains an installation package of the test tool according to an address of the test tool and an installation package name of the test tool to call the installation interface to perform an installation operation on the test tool.
4. The linux system-based performance testing system according to claim 3, wherein said data interface further comprises a program execution interface, said testing tool forming corresponding test instructions according to said corresponding test parameters of said test items;
and the program execution interface calls an execution program to test the test item to be tested according to the test instruction.
5. The linux system-based performance testing system of claim 1, wherein the data interface further comprises a cleaning interface through which the test tool resumes the pre-configured system parameters after the test tool has finished testing.
6. The linux system-based performance testing system of claim 1, further comprising a test catalog, wherein the test tool stores each of the test cases in the test catalog, and generates a corresponding visual test report, wherein the visual test report is presented in a tabular form.
7. A linux system-based performance testing tool, wherein the linux system-based performance testing system according to any one of claims 1 to 6 is employed.
CN201811583890.8A 2018-12-24 2018-12-24 Performance test system and test tool based on linux system Active CN109614337B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811583890.8A CN109614337B (en) 2018-12-24 2018-12-24 Performance test system and test tool based on linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811583890.8A CN109614337B (en) 2018-12-24 2018-12-24 Performance test system and test tool based on linux system

Publications (2)

Publication Number Publication Date
CN109614337A CN109614337A (en) 2019-04-12
CN109614337B true CN109614337B (en) 2023-07-21

Family

ID=66010879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811583890.8A Active CN109614337B (en) 2018-12-24 2018-12-24 Performance test system and test tool based on linux system

Country Status (1)

Country Link
CN (1) CN109614337B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026669B (en) * 2019-12-11 2023-08-18 广州品唯软件有限公司 Test log management method, test log management device and storage medium
CN113609015A (en) * 2021-08-05 2021-11-05 先进操作系统创新中心(天津)有限公司 Automatic test framework based on Bash Shell

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684921A (en) * 2013-12-18 2014-03-26 创新科存储技术有限公司 Testing method and system for cloud storage system
CN105577475A (en) * 2015-12-28 2016-05-11 上海瀚之友信息技术服务有限公司 Automatic performance test system and method
CN106776314A (en) * 2016-12-14 2017-05-31 普华基础软件股份有限公司 A kind of test system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9135150B2 (en) * 2013-02-27 2015-09-15 International Business Machines Corporation Automated execution of functional test scripts on a remote system within a unit testing framework

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684921A (en) * 2013-12-18 2014-03-26 创新科存储技术有限公司 Testing method and system for cloud storage system
CN105577475A (en) * 2015-12-28 2016-05-11 上海瀚之友信息技术服务有限公司 Automatic performance test system and method
CN106776314A (en) * 2016-12-14 2017-05-31 普华基础软件股份有限公司 A kind of test system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘汉烨 ; .面向C/S结构的软件自动化测试工具的设计.电子设计工程.2010,(06),全文. *

Also Published As

Publication number Publication date
CN109614337A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN110471831B (en) Automatic method and device for compatibility test
CN109361562B (en) Automatic testing method based on associated network equipment access
US20150100829A1 (en) Method and system for selecting and executing test scripts
US20150100832A1 (en) Method and system for selecting and executing test scripts
US9189317B1 (en) Software sustaining system
KR101008977B1 (en) Method of testing OSGi service platform and test tool thereof
CN106970880B (en) Distributed automatic software testing method and system
CN105302722B (en) CTS automatic testing method and device
CN107577597B (en) Installation package automatic testing method, device, equipment and storage medium
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
US20150100830A1 (en) Method and system for selecting and executing test scripts
CN111124919A (en) User interface testing method, device, equipment and storage medium
US20150100831A1 (en) Method and system for selecting and executing test scripts
CN112241360A (en) Test case generation method, device, equipment and storage medium
CN109614337B (en) Performance test system and test tool based on linux system
CN109460268B (en) Application parameter configuration method, device and system
CN113672502A (en) Program multi-system testing method and corresponding device, equipment and medium
US8327189B1 (en) Diagnosing an incident on a computer system using a diagnostics analyzer database
CN111813655A (en) Embedded point testing method and device, embedded point management system and storage medium
CN110908674A (en) Automatic deployment method and device of application program
CN106445541B (en) Software construction method, software construction device and software construction system
CN112543478B (en) WiFi module automatic test method and device, computer equipment and storage medium
CN112911283A (en) Smart television testing method and device
KR20110025171A (en) Method system and computer program for identifying software problems
CN111581081B (en) Automatic test system and method

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