CN103455423B - A kind of automatic testing arrangement for softwares based on aggregated structure and system - Google Patents

A kind of automatic testing arrangement for softwares based on aggregated structure and system Download PDF

Info

Publication number
CN103455423B
CN103455423B CN201310395655.9A CN201310395655A CN103455423B CN 103455423 B CN103455423 B CN 103455423B CN 201310395655 A CN201310395655 A CN 201310395655A CN 103455423 B CN103455423 B CN 103455423B
Authority
CN
China
Prior art keywords
test
examining system
module
script
communication module
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
CN201310395655.9A
Other languages
Chinese (zh)
Other versions
CN103455423A (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.)
Shanghai Wave Cloud Computing Service Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201310395655.9A priority Critical patent/CN103455423B/en
Publication of CN103455423A publication Critical patent/CN103455423A/en
Application granted granted Critical
Publication of CN103455423B publication Critical patent/CN103455423B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a kind of automatic testing arrangement for softwares based on aggregated structure and system, this device comprises: Socket communication module transmission operation treats that the command execution results that examining system returns is treated in the order of examining system and reception; Test script running module collects all test case scripts treating examining system, by Socket communication module to treating that examining system sends the operational order of implementation of test cases script, and time of performing with case script of statistical test and result, statistics is exported to test process logging modle; Operation module to be measured will treat that the operational order of examining system exports to test script running module; The expected results of test process logging modle record testing procedure and each step, and expected results and statistics are compared, to judge the correctness of test case.The present invention reaches the effect of automatic test in highly available cluster system.

Description

A kind of automatic testing arrangement for softwares based on aggregated structure and system
Technical field
The present invention relates to computer software testing technology, particularly relate to the software automatic test system based on aggregated structure and device.
Background technology
Along with Internet service and the development of informatization, the scalability of server and the requirement of high availability are also become more and more higher.The appearance of Clustering and the fast development of IA framework (IntelArchitecture) server are that the demand of society provides new selection.Intel Architecture server refers to the server that have employed Intel processors.Because this IA frame serverPC have employed opening system, and achieve industrial standardization technology and the support obtaining a large amount of software and hardware supplier both at home and abroad, on the basis of producing in enormous quantities, the cost performance high with it and in the world, being especially widely used in China.Intel Architecture server is cheap, is easy to operation and maintenance, and adopts Clustering to construct supercomputer, and its superpower processing power can replace expensive medium-and-large-sized machine, and the high-end applications for industry opens new direction.Especially recent years, Clustering develops rapidly, has become one of main flow framework building supercomputer system.
The group of statistics is provided for high-performance computer at the TOP500(of up-to-date issue, belong to computer system part) in, hardware system based on aggregated structure has increased to 500, proportion reaches 72%, and quantitatively still having ever-increasing trend, visible Clustering has vigorous vitality and vast potential for future development at high-performance computing sector.
But the software test in current highly available cluster system is also mainly tested by hand, and the framework of its test macro as shown in Figure 1.At the software test initial stage, need to build test environment by manual type, write the test case of flood tide, and perform each test case one by one, and carry out dispersing test.Along with the progress of software version rising push to test and the shortening of software development cycle, the cycle of each software version test but cannot shorten, and testing efficiency also cannot improve, and does not protect preferably software iteration version.Therefore, in the period of current cluster technology high-speed development, require more and more higher to clustered software construction cycle, quality etc., provide a kind of software automated testing system being applicable to highly available cluster system just to seem very necessary.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of automatic testing arrangement for softwares based on aggregated structure and system, can be applicable to the software automatic test of highly available cluster system.
In order to solve the problems of the technologies described above, the invention provides a kind of automatic testing arrangement for softwares based on aggregated structure, comprise the test process logging modle and test script running module that connect successively, also comprise the operation module to be measured and Socket communication module that are connected with test script running module, wherein:
For transmitting operation, Socket communication module, treats that the command execution results that examining system returns is treated in the order of examining system and reception;
Test script running module, for collecting all test case scripts treating examining system, by Socket communication module to treating that examining system sends the operational order of implementation of test cases script, and time of performing with case script of statistical test and result, statistics is exported to test process logging modle;
Operation module to be measured, for treating that the operational order of examining system exports to test script running module;
Test process logging modle, for recording the expected results of testing procedure and each step, and compares expected results and statistics, to judge the correctness of test case.
Further, this device also comprises the clustered control module be connected with operation module to be measured, wherein:
Clustered control module, for exporting to test script running module by the operational order of the clustered software to be measured treating certain packet format in examining system;
What test script running module was collected treats that all test case scripts of examining system comprise the test case script of all clustered softwares; By Socket communication module to treating that operational order that examining system sends implementation of test cases script comprises the operational order of all clustered software implementation of test cases scripts, and the statistics exported comprises time and result that the test case script added up all clustered softwares performs.
Further, clustered software to be measured provides interface to Socket communication module, calls this interface by Socket communication module.
Further, Socket communication module comprises Socket service end and Socket client; Wherein Socket service end is deployed in and treats on examining system, and Socket client deployment is on this automatic testing equipment.
In order to solve the problems of the technologies described above, the invention provides a kind of software automatic test system based on aggregated structure, comprise foregoing proving installation and treating examining system, wherein:
For transmitting operation, Socket communication module, treats that the command execution results that examining system returns is treated in the order of examining system and reception;
Test script running module, for collecting all test case scripts treating examining system, by Socket communication module to treating that examining system sends the operational order of implementation of test cases script, and time of performing with case script of statistical test and result, statistics is exported to test process logging modle;
Operation module to be measured, for treating that the operational order of examining system exports to test script running module;
Test process logging modle, for recording the expected results of testing procedure and each step, and compares expected results and statistics, to judge the correctness of test case;
Treat examining system, for being carried out the execution of operational order for test script running module by Socket communication module as tested object, and return command execution result.
Further, this device also comprises the clustered control module be connected with operation module to be measured, wherein:
Clustered control module, for exporting to test script running module by the operational order of the clustered software to be measured treating certain packet format in examining system;
What test script running module was collected treats that all test case scripts of examining system comprise the test case script of all clustered softwares; By Socket communication module to treating that operational order that examining system sends implementation of test cases script comprises the operational order of all clustered software implementation of test cases scripts, and the statistics exported comprises time and result that the test case script added up all clustered softwares performs.
Further, clustered software to be measured provides interface to described Socket communication module, calls this interface by Socket communication module.
Further, Socket communication module comprises Socket service end and Socket client; Wherein Socket service end is deployed in and treats on examining system, and Socket client deployment is on this automatic testing equipment.
Proving installation based on aggregated structure of the present invention has the characteristic of modular division and flexible expansion transplanting, when being embodied in expansion or transplanting a certain module, substantially or seldom need not modify to other module, thus reduces the complexity of frame application.Treat examining system and the characteristic returned results by the operation of Socket communication mode, test result can be checked by test script, thus reach the effect of automatic test.Above-mentioned advantage, makes high-availability cluster software version issue Quality advance, and improves script edit efficiency and testing efficiency, thus in high-availability cluster application system, have boundless development prospect.
Accompanying drawing explanation
Fig. 1 is the software test configuration diagram of existing manual mode test highly available cluster system;
Fig. 2 is the structural representation of the software automatic test system embodiment based on aggregated structure of the present invention.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment, technical scheme of the present invention is set forth in detail.Should be appreciated that, the embodiment below enumerated only for instruction and explanation of the present invention, and does not form the restriction to technical solution of the present invention.
As shown in Figure 1, illustrate the structure of the software automatic test system embodiment based on aggregated structure provided by the invention, comprise: proving installation and treat examining system, wherein proving installation comprises the test process logging modle and test script running module that connect successively, also comprise the operation module to be measured and Socket communication module that are connected with test script running module, wherein:
Socket communication module, for the core as proving installation, transmission operation treats that the command execution results that examining system returns is treated in the order of examining system and reception;
Test script running module, for collecting all test case scripts treating examining system, by Socket communication module to treating that examining system sends the operational order of implementation of test cases script, and time of performing with case script of statistical test and result, statistics is exported to test process logging modle;
Operation module to be measured, for treating that the operational order of examining system exports to test script running module;
Test process logging modle, for recording the expected results of testing procedure and each step, and compares expected results and statistics, to judge the correctness of test case.
Said system embodiment also comprises the clustered control module be connected with operation module to be measured, wherein:
Clustered control module, for exporting to test script running module by the operational order of the clustered software to be measured treating certain packet format in examining system;
What test script running module was collected treats that all test case scripts of examining system comprise the test case script of all clustered softwares, by Socket communication module to treating that operational order that examining system sends implementation of test cases script comprises the operational order of all clustered software implementation of test cases scripts, and the statistics exported comprises time and result that the test case script added up all clustered softwares performs;
Treat examining system, for being carried out the execution of operational order for test script running module by Socket communication module as tested object, and return command execution result.
The Socket communication module mentioned in said system embodiment, mainly comprises Socket service end and Socket client; Wherein Socket service end is affixed one's name on the system under test, and Socket client deployment is on proving installation.
This Socket communication module, as the nucleus module of this proving installation, plays the core reciprocation of the bottom, thus requires this Socket service end start self-starting.The transmission of Socket communication module primary responsibility performs the order of test script and treats the execution result that examining system returns, and adopts question-response mode to realize.
In said system embodiment,
Because this proving installation requires to control clustered software, thus need clustered software to be measured to provide interface to Socket communication module, called by Socket communication module, clustered software to be measured can be operated.
In a typical configuration surroundings, 2 station servers can be adopted as cluster server to be measured, 1 PC or server are as proving installation, Socket communication module is responsible for proving installation and is communicated with cluster server to be measured, be responsible for operating this 2 cluster servers by operation module to be measured, check the operation result of wherein clustered software, by clustered control module in charge, clustered software is started, the operations such as stopping, be responsible for collecting all test scripts of this clustered software by test script running module and test process logging modle, and perform all test scripts, finally form test result and statistical information, thus construct the automation software testing framework of clustered software system.
The present invention is compared with traditional manual high-availability cluster software test, and this high-availability cluster software automated testing framework has high portable, Highly Scalable, and the characteristic such as high test execution efficiency.Wherein, high portable implementation refers to: in this high-availability cluster software automated testing framework, operation module to be measured, clustered control module are all realized by the mode of encapsulation, when test script needs to transplant between different systems, only need the module bottom layer realization by modifier, do not need to revise any test script itself, thus improve portability.The implementation of Highly Scalable refers to: in this high-availability cluster software automated testing framework, realized by the mode of object in operation module to be measured, clustered control module, add any module and be module add function, all can not have any impact to original test script.
The above-mentioned advantage that high-availability cluster software automated testing framework of the present invention has, make to which raises high-availability cluster software version and issue quality, improve efficiency and the script development efficiency of Current manual test, thus there is boundless development prospect.

Claims (8)

1. the automatic testing arrangement for softwares based on aggregated structure, it is characterized in that, comprise the test process logging modle and test script running module that connect successively, also comprise the operation module to be measured and Socket communication module that are connected with test script running module, wherein:
For transmitting operation, Socket communication module, treats that the command execution results that examining system returns is treated in the order of examining system and reception;
Test script running module, for collecting all test case scripts treating examining system, by Socket communication module to treating that examining system sends the operational order of implementation of test cases script, and time of performing with case script of statistical test and result, statistics is exported to test process logging modle;
Operation module to be measured, for treating that the operational order of examining system exports to test script running module;
Test process logging modle, for recording the expected results of testing procedure and each step, and compares expected results and statistics, to judge the correctness of test case;
Wherein, what described test script running module was collected treats that all test case scripts of examining system comprise the test case script of all clustered softwares;
The statistics exported comprises the time and result that the test case script added up all clustered softwares performs.
2. according to device according to claim 1, it is characterized in that, also comprise the clustered control module be connected with described operation module to be measured, wherein:
Clustered control module, for exporting to described test script running module by the operational order of the clustered software to be measured treating certain packet format in examining system;
Wherein, by described Socket communication module to treating that operational order that examining system sends implementation of test cases script comprises the operational order of all clustered software implementation of test cases scripts.
3. according to device according to claim 2, it is characterized in that, described clustered software to be measured provides interface to described Socket communication module, calls described interface by described Socket communication module.
4. according to the device described in any one of claims 1 to 3, it is characterized in that, described Socket communication module comprises Socket service end and Socket client; Wherein Socket service end is deployed in and treats on examining system, and Socket client deployment is on described automatic testing equipment.
5., based on a software automatic test system for aggregated structure, comprise automatic testing equipment as claimed in claim 1 and treat examining system, it is characterized in that,
For transmitting operation, Socket communication module, treats that the command execution results that examining system returns is treated in the order of examining system and reception;
Test script running module, for collecting all test case scripts treating examining system, by Socket communication module to treating that examining system sends the operational order of implementation of test cases script, and time of performing with case script of statistical test and result, statistics is exported to test process logging modle;
Operation module to be measured, for treating that the operational order of examining system exports to test script running module;
Test process logging modle, for recording the expected results of testing procedure and each step, and compares expected results and statistics, to judge the correctness of test case;
Treat examining system, for being carried out the execution of described operational order for test script running module by Socket communication module as tested object, and return described command execution results;
Wherein, what described test script running module was collected treats that all test case scripts of examining system comprise the test case script of all clustered softwares;
The statistics exported comprises the time and result that the test case script added up all clustered softwares performs.
6. according to system according to claim 5, it is characterized in that, described device also comprises the clustered control module be connected with described operation module to be measured, wherein:
Clustered control module, for exporting to described test script running module by the operational order of the clustered software to be measured treating certain packet format in examining system;
Wherein, by described Socket communication module to treating that operational order that examining system sends implementation of test cases script comprises the operational order of all clustered software implementation of test cases scripts.
7. according to system according to claim 5, it is characterized in that, clustered software to be measured provides interface to described Socket communication module, calls described interface by described Socket communication module.
8. according to the system described in any one of claim 5 to 7, it is characterized in that, described Socket communication module comprises Socket service end and Socket client; Wherein Socket service end is deployed in and treats on examining system, and Socket client deployment is on described automatic testing equipment.
CN201310395655.9A 2013-09-03 2013-09-03 A kind of automatic testing arrangement for softwares based on aggregated structure and system Active CN103455423B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310395655.9A CN103455423B (en) 2013-09-03 2013-09-03 A kind of automatic testing arrangement for softwares based on aggregated structure and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310395655.9A CN103455423B (en) 2013-09-03 2013-09-03 A kind of automatic testing arrangement for softwares based on aggregated structure and system

Publications (2)

Publication Number Publication Date
CN103455423A CN103455423A (en) 2013-12-18
CN103455423B true CN103455423B (en) 2016-01-13

Family

ID=49737823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310395655.9A Active CN103455423B (en) 2013-09-03 2013-09-03 A kind of automatic testing arrangement for softwares based on aggregated structure and system

Country Status (1)

Country Link
CN (1) CN103455423B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795711A (en) * 2014-01-10 2014-05-14 宁波金信通讯技术有限公司 Automated test method and system based on mobile phone client sides
CN104035872B (en) * 2014-06-27 2017-01-11 浪潮(北京)电子信息产业有限公司 Method and device for testing clustering software
US9703690B2 (en) * 2015-01-22 2017-07-11 International Business Machines Corporation Determining test case efficiency
CN105205003A (en) * 2015-10-28 2015-12-30 努比亚技术有限公司 Automated testing method and device based on clustering system
CN107332897A (en) * 2017-06-26 2017-11-07 武汉精测电子技术股份有限公司 A kind of management system, the method and device of automatic optical detecting system software
CN107273299A (en) * 2017-07-07 2017-10-20 广东中星电子有限公司 Software testing device, software test platform and method
CN107622013B (en) * 2017-09-21 2020-07-14 北京东土科技股份有限公司 Distributed system testing method and device
CN109086218B (en) * 2018-11-09 2021-09-28 郑州云海信息技术有限公司 Automatic testing method, system and testing terminal based on ant colony algorithm
CN111240749B (en) * 2018-11-28 2023-07-21 中国移动通信集团浙江有限公司 Suspending control method, device, equipment and storage medium of instance in cluster system
CN109933519A (en) * 2019-01-22 2019-06-25 泰康保险集团股份有限公司 Automated testing method, device, system, medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101933001A (en) * 2008-01-31 2010-12-29 雅虎公司 Executing software performance test jobs in a clustered system
CN102141962A (en) * 2011-04-07 2011-08-03 北京航空航天大学 Safety distributed test framework system and test method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2939532B1 (en) * 2008-12-10 2011-01-21 Airbus France METHOD AND DEVICE FOR DETECTING NON-REGRESSION OF AN INPUT / OUTPUT SYSTEM IN A SIMULATION ENVIRONMENT

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101933001A (en) * 2008-01-31 2010-12-29 雅虎公司 Executing software performance test jobs in a clustered system
CN102141962A (en) * 2011-04-07 2011-08-03 北京航空航天大学 Safety distributed test framework system and test method thereof

Also Published As

Publication number Publication date
CN103455423A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
CN103455423B (en) A kind of automatic testing arrangement for softwares based on aggregated structure and system
CN101937392B (en) Dynamic defect detection system for embedded software
CN104182288A (en) Method for automatically testing power consumption of server cluster system
CN101382915B (en) Software debugging system and debugging method
CN110519100A (en) A kind of more cluster management methods, terminal and computer readable storage medium
CN105446933A (en) Debugging system and debugging method adopting multi-core processor
CN105740142A (en) Pressure test management system for SSR (Server Security Reinforcement) centralized management platform
CN111813419A (en) Method for managing life cycle of bare computer based on kubernets declaration
CN108234246B (en) Method and system for multi-directionally testing network performance of server
Li et al. Microservice migration using strangler fig pattern: A case study on the green button system
CN114356714A (en) Resource integration monitoring and scheduling device based on Kubernetes intelligent board card cluster
WO2017113835A1 (en) Installation tool for large database system
CN103927244A (en) Plug-in scheduling process monitoring method implemented based on dynamic proxy
CN108111578B (en) Method for accessing power distribution terminal data acquisition platform into terminal equipment based on NIO
CN104461832B (en) A kind of method and device for monitoring application server resource
CN102636998A (en) Automatic control method for air exhaust of spatial environment simulator and automatic control system
CN110007597A (en) The optimization method of status poll and event driven software state machine design mode
CN1848093A (en) Method for debugging high configuration and power supply interface module in basic inputting and outputting system
CN111880811A (en) Method for realizing resource arrangement of cloud platform
CN201556230U (en) Enterprise-oriented high performance computing private line service system
Huang et al. A Rapid Development Method of Communication Function in Distribution Network Based on Plug-In Technology
CN102567206B (en) Method for analyzing CUDA (compute unified device architecture) program behavior
CN108108301A (en) A kind of computer software technology develops debugging system
CN109951384A (en) A kind of application method of API gateway system flexible management
Chen Application of intelligent technology in electrical engineering automation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180821

Address after: 200436 Room 411, No. three, JIANGCHANG Road, Jingan District, Shanghai, 411

Patentee after: Shanghai wave Cloud Computing Service Co., Ltd.

Address before: 100085 floor 1, C 2-1, No. 2, Shang Di Road, Haidian District, Beijing.

Patentee before: Electronic information industry Co.,Ltd of the tide (Beijing)

TR01 Transfer of patent right