Movatterモバイル変換


[0]ホーム

URL:


CN105868097B - System detection method and its device - Google Patents

System detection method and its device
Download PDF

Info

Publication number
CN105868097B
CN105868097BCN201510033668.0ACN201510033668ACN105868097BCN 105868097 BCN105868097 BCN 105868097BCN 201510033668 ACN201510033668 ACN 201510033668ACN 105868097 BCN105868097 BCN 105868097B
Authority
CN
China
Prior art keywords
failure
task
test
pressure test
timed task
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
CN201510033668.0A
Other languages
Chinese (zh)
Other versions
CN105868097A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding LtdfiledCriticalAlibaba Group Holding Ltd
Priority to CN201510033668.0ApriorityCriticalpatent/CN105868097B/en
Publication of CN105868097ApublicationCriticalpatent/CN105868097A/en
Application grantedgrantedCritical
Publication of CN105868097BpublicationCriticalpatent/CN105868097B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The invention discloses a kind of system detection method and its devices.The system detection method includes the following steps:Config failure timed task, each failure timed task include one or more failed operations;Pressure test task and failure timed task are associated;And execute pressure test task, during executing pressure test task, Dynamic injection and each failed operation in the failure timed task associated by pressure test task, and monitor the indices of each system on service link in real time, obtain the monitoring data of corresponding failed operation period.Robustness testing and performance pressures test by being realized the integrated of loose coupling by this method, the automatic injection system failure in pressure test sequence, and the indices for monitoring each system on chain road in real time in pressure test sequence solve the problems, such as it is big it is concurrent in the case of also effectively specific fault can be tested.

Description

System detection method and its device
Technical field
The present invention relates to testing field, more particularly to a kind of system testing technology.
Background technology
Automatic test is a kind of process for the behavioral test taking human as driving being converted into machine execution.In general, settingCounted test case and by evaluation after, test is executed by regulation of the tester described in test case step by step,Obtain the comparison of actual result and expected result.In the process, in order to save manpower, time or hardware resource, test is improvedEfficiency just introduces the concept of automatic test.
Can be with operation exception use-case in current automated test frame, most exception use-case is all by constructing nothingWhether effect or illegal request verify the exception use-case by the abnormal logic capture of code with single thread.Test report can showWhether test case passes through.Partial fault injects frame can be by the way of bytecode injection come dynamically simulated failure, to seeExamine the performance of system or business under a certain fault condition.It, can be by default in current performance test automation frameworkPressure test script and other configurations automatically to trigger performance pressures test, the generation performance of collecting performance data and automationReport, the performance of assessment system or business under different high concurrents is assessed with this.
But in existing test mode, there is following defects.Although having very in current automated test frameMore abnormal use-cases, but most of is all by constructing invalid or illegal request, verifying the exception use-case with single thread isThe no abnormal logic by code captures, and lays particular stress on functional test, in test report only comprising use-case whether by the case where, not withPressure test module is done integrated, can seldom consider in the case of big concurrent, disturbance degree of certain class specific fault to business.PropertyIn energy test process, only observation is under different high concurrents most of the time, the performance of system or business.Not with thereforeBarrier injection module does integrated, seldom focuses in the service link under high concurrent the case where certain system breaks down, does not have substantiallyFault-tolerance and recovery sex expression to service link are analyzed.Although partial fault injection frame uses the side of direct fault locationFormula simulates abnormal conditions, but in report analysis module, substantially not the failure of the system dimensions and link traffic dimensionScene is associated, and does not account for more carrying out modeling analysis to the trend of operating lag failure.It can be seen that urgent in this fieldNeed a kind of test method that can be tested out and be tested specific fault in the case of big concurrent.
Invention content
The purpose of the present invention is to provide a kind of system detection method and its devices, also can be effective in the case of big concurrentSpecific fault is tested on ground.
In order to solve the above technical problems, embodiments of the present invention disclose a kind of system detection method, by healthy and strongProperty test realize the integrated of loose coupling, the automatic injection system failure in pressure test sequence with performance pressures test, and pressingMonitor the indices of each system in chain road in power test process in real time, this approach includes the following steps:
Config failure timed task, each failure timed task include one or more failed operations;
Pressure test task and failure timed task are associated;And
Pressure test task is executed, during executing pressure test task, Dynamic injection and pressure test task instituteEach failed operation in associated failure timed task, and monitor the indices of each system on service link in real time, it obtainsThe monitoring data of corresponding failed operation period.
Embodiments of the present invention also disclose a kind of opening machine system test device, including:
Fault configuration unit, is used for config failure timed task, and each failure timed task includes one or more eventsBarrier operation;
Task associative cell, for pressure test task and specific failure timed task to be associated;And
Pressure test unit, for executing pressure test task, during executing pressure test task, Dynamic injectionWith each failed operation in the failure timed task associated by pressure test task, and each system on service link is monitored in real timeIndices, obtain the monitoring data of each failure period.
Compared with prior art, the main distinction and its effect are embodiment of the present invention:
By the way that robustness testing and performance pressures test are realized the integrated of loose coupling, noted automatically in pressure test sequenceEnter the system failure, and monitor the indices of each system on chain road in real time in pressure test sequence, solves big concurrent feelingsThe problem of also effectively specific fault can be tested under condition.
Further, after pressure test task, by in the failure timed task associated by pressure test taskEach failed operation be associated with the monitoring data of corresponding failed operation period and business scenario, automatically generate test reportIt accuses, so as to analyze the scene of the failure of system dimensions and link traffic dimension with being associated, it is accurate to improveDegree.
Further, after automatically generating test report, to index average comparison, trend also in a manner of tendency modellingComparison and operating lag are analyzed, and to carry out modeling analysis in the failure for considering operating lag, it is accurate to improveDegree.
Description of the drawings
Fig. 1 is a kind of flow diagram of system detection method in first embodiment of the invention.
Fig. 2 is the flow diagram of config failure timed task in the system detection method in Fig. 1.
Fig. 3 is a kind of structural schematic diagram of opening machine system test device in second embodiment of the invention.
Specific implementation mode
In the following description, in order to make the reader understand this application better, many technical details are proposed.But thisThe those of ordinary skill in field is appreciated that even if without these technical details and many variations based on the following respective embodimentsAnd modification, each claim of the application technical solution claimed can also be realized.
To make the object, technical solutions and advantages of the present invention clearer, the implementation below in conjunction with attached drawing to the present inventionMode is described in further detail.
In order to help to understand the present invention, now the term in some specifications is illustrated.
Business scenario typically refers to complete a process of a certain business objective.The implementation procedure of a usual business scenarioIt can include the multiple calling to multiple interfaces of the multiple systems in chain road.Can include multiple operating procedures in business scenario,Each operating procedure includes one or more page requests, and each page request can include the interface of one or more dependence systemsIt calls.
Direct fault location operation is the base unit of robustness testing.One direct fault location operation generally includes following information:Failure title, injection means (bytecode, script or other), by the system domain name of injection failure, the operating lag size of injection,The Exception Type etc. dished out.During robustness testing, tester can carry out failure note from the granularity of system interfaceEnter operation, to monitor and assess disturbance degree of the failed operation to business scenario.
Little's Law (Little's Law) being widely used in performance test is general, is mainly used for results of propertyVerification, the formula of rule are as follows:
TPS=U_concurrent/ (T_response+T_think)
Wherein:
A) TPS is the handling capacity of system or business;
B) U_concurrent is the number of concurrent of pressure test;
C) T_response is the average response time of system or business;
D) T_think is average think time.
According to Little's Law, as long as keeping pressure test number of concurrent U_concurrent constant, failure can be utilized to noteEnter technology dynamically to control T_response+T_think, so that quantization system or business are under some failure delaying stateTPS performance.
First embodiment of the invention is related to a kind of system detection method.Fig. 1 is the flow signal of the system detection methodFigure.
Specifically, the system detection method passes through the collection robustness testing and performance pressures test realization loose couplingAt, the automatic injection system failure in pressure test sequence, and monitor each system on chain road in real time in pressure test sequenceIndices.As shown in Figure 1, the system detection method includes the following steps:
In step S101, config failure timed task, each failure timed task includes one or more failure behaviourMake.
Failed operation is the basic object of robustness testing.Failed operation may include much information, such as including followingInformation:Failed operation title, injection means, action type, (by injecting) system domain name, (by injecting) service class name (are injectedInterface) method name, injection delay, (dishing out) exception class name.
Such as the following information for included by an illustrative failed operation.
Failed operation title:SystemA-serviceB.methodC- injects 500ms delays,
Injection means:Bytecode injects,
Action type:Direct fault location,
System domain name:SystemA.xxx.yyy.net,
Service class name:Net.yyy.xxx.systemA.serviceB,
Method name:MethodC,
Injection delay:500ms,
Abnormal class name:java.lang.NullPointerException.
One or more failed operations are assembled into a failure timed task.For example, in the event of an entitled testTask1Barrier timed task includes three failed operations, i.e. failed operation testAction1, testAction3, testAction4, and threeThe relative time of a failed operation is 5min, 10min, 15min respectively.
The configuration process that an illustrative failure timed task is shown in Fig. 2 creates failure in fault configuration moduleOperation, can create any number of failed operation as needed, then create failure timed task again, institute newly-built beforeFaulty operation is added to this failure timed task, and the plan for configuring each failed operation executes the time.
Optionally, other than establishment, it can also inquire, edit or delete failed operation and failure timed task.
Then into step S102, pressure test task and failure timed task are associated.
Then into step S103, pressure test task, during executing pressure test task, Dynamic injection are executedWith each failed operation in the failure timed task associated by pressure test task, and each system on service link is monitored in real timeIndices, obtain the monitoring data of corresponding failed operation period.
The indices of system may include various indexs, for example, including hardware resource, Java Virtual Machine (JVM) state,System log etc..
Monitoring data may include various data, such as including business dimension data and system dimensions data etc..
It is an exemplary embodiment below, can be modified according to actual needs.It is being configured with failure timed taskAnd after being associated pressure test task and failure timed task, pressure test task is triggered, and enable associated thereFailure timed task.In the implementation procedure of pressure test task, according to the failure timed task configured before, with service linkOn related application system where agent (intelligent body) on machine communicated, dynamically inject failure.Appoint in pressure testIn the implementation procedure of business, interacted with the agent (intelligent body) on machine where each application system on service link, it is realWhen acquire relevant business dimension and system dimensions achievement data.
Hereafter terminate this flow.
The system detection method is preferably further comprising the steps of:It, will be with pressure test after pressure test taskThe monitoring data and business of each failed operation and corresponding failed operation period in failure timed task associated by taskScene is associated, and automatically generates test report.Thus, can be by the field of the failure of system dimensions and link traffic dimensionScape is analyzed with being associated, and improves accuracy.
Moreover, after automatically generating test report, further preferably test report is analyzed.Analysis to test reportVarious ways may be used, such as index average comparison, trend comparison and operating lag are carried out in a manner of tendency modellingAnalysis etc..Thus, carry out modeling analysis in the failure for considering operating lag, accuracy is improved.
In conclusion by the way that robustness testing and performance pressures test are realized the integrated of loose coupling, in pressure testAutomatic injection system failure in journey, and monitor in pressure test sequence the indices of each system on chain road in real time, it solvesThe problem of also effectively specific fault can be tested in the case of big concurrent.
The each method embodiment of the present invention can be realized in a manner of software, hardware, firmware etc..No matter the present invention be withSoftware, hardware or firmware mode realize that instruction code may be stored in any kind of computer-accessible memoryIn (such as permanent either revisable volatibility is either non-volatile solid or non-solid, it is fixed orThe replaceable medium etc. of person).Equally, memory may, for example, be programmable logic array (Programmable ArrayLogic, referred to as " PAL "), random access memory (Random Access Memory, referred to as " RAM "), programmable read-only depositReservoir (Programmable Read Only Memory, referred to as " PROM "), read-only memory (Read-Only Memory, letterClaim " ROM "), electrically erasable programmable read-only memory (Electrically Erasable Programmable ROM, referred to as" EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc, referred to as " DVD ") etc..
Second embodiment of the invention is related to a kind of opening machine system test device.Fig. 3 is the structural representation of the opening machine system test deviceFigure.The practical structures of the present invention can make necessary adjustment according to actual needs, it is not limited to the structure in Fig. 3.
Specifically, the opening machine system test device passes through the collection robustness testing and performance pressures test realization loose couplingAt, the automatic injection system failure in pressure test sequence, and monitor each system on chain road in real time in pressure test sequenceIndices.As shown in figure 3, the opening machine system test device 100 includes:
Fault configuration unit 101, is used for config failure timed task, and each failure timed task includes one or moreFailed operation;
Task associative cell 102, for pressure test task and specific failure timed task to be associated;And
Pressure test unit 103, for executing pressure test task, during executing pressure test task, dynamicInjection and each failed operation in the failure timed task associated by pressure test task, and monitor in real time each on service linkThe indices of system obtain the monitoring data of each failure period.
First embodiment is method embodiment corresponding with present embodiment, and present embodiment can be implemented with firstMode is worked in coordination implementation.The relevant technical details mentioned in first embodiment are still effective in the present embodiment, in order toIt reduces and repeats, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in the first implementationIn mode.
Optionally but not necessarily, opening machine system test device 100 further includes that report generation unit 104 (does not show in figure 3Go out), for after pressure test task, by with each failure in the failure timed task associated by pressure test taskOperation is associated with the monitoring data of corresponding failure period and business scenario, automatically generates test report.
Optionally but not necessarily, fault configuration unit 101 includes following subelement (being not shown in figure 3):FailureCreating unit 201 is operated, for creating one or more failed operations;Failure timed task creating unit 202, for creating eventHinder timed task;And adding device 203, it is added by the failure timed task that failure timed task creating unit 202 createsThe execution time of failed operation and the failed operation each created that failed operation creating unit 201 is created.
Optionally but not necessarily, opening machine system test device 100 further includes that report analysis unit 105 (does not show in figure 3Go out), for analyzing test report.
It should be noted that each unit mentioned in each equipment embodiment of the present invention is all logic unit, physically,One logic unit can be a physical unit, can also be a part for a physical unit, can also be with multiple physicsThe combination of unit realizes that the Physical realization of these logic units itself is not most important, these logic units institute is realThe combination of existing function is only the key for solving technical problem proposed by the invention.In addition, in order to protrude the innovation of the present inventionPart, there is no the technical problem relationship proposed by the invention with solution is less close for the above-mentioned each equipment embodiment of the present inventionUnit introduce, this does not indicate above equipment embodiment and there is no other units.
It should be noted that in the claim and specification of this patent, such as first and second or the like relationshipTerm is only used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implyingThere are any actual relationship or orders between these entities or operation.Moreover, the terms "include", "comprise" or itsAny other variant is intended to non-exclusive inclusion so that including the processes of a series of elements, method, article orEquipment includes not only those elements, but also includes other elements that are not explicitly listed, or further include for this process,Method, article or the intrinsic element of equipment.In the absence of more restrictions, being wanted by what sentence " including one " limitedElement, it is not excluded that there is also other identical elements in the process, method, article or apparatus that includes the element.
Although by referring to some of the preferred embodiment of the invention, the present invention is shown and described,It will be understood by those skilled in the art that can to it, various changes can be made in the form and details, without departing from this hairBright spirit and scope.

Claims (10)

CN201510033668.0A2015-01-222015-01-22System detection method and its deviceActiveCN105868097B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510033668.0ACN105868097B (en)2015-01-222015-01-22System detection method and its device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510033668.0ACN105868097B (en)2015-01-222015-01-22System detection method and its device

Publications (2)

Publication NumberPublication Date
CN105868097A CN105868097A (en)2016-08-17
CN105868097Btrue CN105868097B (en)2018-09-14

Family

ID=56623584

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510033668.0AActiveCN105868097B (en)2015-01-222015-01-22System detection method and its device

Country Status (1)

CountryLink
CN (1)CN105868097B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109614307B (en)*2018-09-292022-05-31创新先进技术有限公司Online pressure testing method and device of service system and server
CN109600280B (en)*2018-12-172021-02-02北京车和家信息技术有限公司Pressure testing system, method, device and computer readable storage medium
CN109670316A (en)*2018-12-192019-04-23杭州安恒信息技术股份有限公司A kind of leak detection method and device based on Java exception
CN109710539A (en)*2019-01-172019-05-03南京大学 An Android software enhancement testing method based on bytecode operation
CN110533809B (en)*2019-08-222022-05-03中国电子技术标准化研究院Method and device for determining performance of non-inductive passing system and computing equipment
CN110618924B (en)*2019-09-192023-06-23浙江诺诺网络科技有限公司Link pressure testing method of web application system
CN112564996B (en)*2019-09-262024-09-17阿里巴巴集团控股有限公司Pressure test flow scheduling, control method, equipment and computer readable medium
CN113312247B (en)*2020-02-262025-09-23阿里巴巴集团控股有限公司 Fault simulation method and system, and distributed system testing method
CN111651353B (en)2020-05-292023-07-18北京百度网讯科技有限公司 Method, device, electronic device and storage medium for fault injection
CN113777476B (en)*2021-08-302024-02-23苏州浪潮智能科技有限公司GPU fault diagnosis system, diagnosis method, equipment and readable storage medium
CN115604164B (en)*2022-08-292025-05-27支付宝(杭州)信息技术有限公司 A distributed timing message system testing method, device and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101576844A (en)*2008-05-092009-11-11北京世纪拓远软件科技发展有限公司Method and system for testing software system performances
CN102043711A (en)*2009-10-222011-05-04上海杉达学院Auxiliary testing device for software system
CN102419733A (en)*2011-12-302012-04-18苏州汉清投资管理有限公司System for testing comprehensive performance of software
CN102521128A (en)*2011-12-082012-06-27华中科技大学Software fault tolerance method facing cloud platform
CN103984625A (en)*2014-05-122014-08-13浪潮电子信息产业股份有限公司System robustness testing method based on use rate analysis
CN104182340A (en)*2014-08-212014-12-03浪潮(北京)电子信息产业有限公司Database compatibility test method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7246258B2 (en)*2004-04-282007-07-17Lenovo (Singapore) Pte. Ltd.Minimizing resynchronization time after backup system failures in an appliance-based business continuance architecture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101576844A (en)*2008-05-092009-11-11北京世纪拓远软件科技发展有限公司Method and system for testing software system performances
CN102043711A (en)*2009-10-222011-05-04上海杉达学院Auxiliary testing device for software system
CN102521128A (en)*2011-12-082012-06-27华中科技大学Software fault tolerance method facing cloud platform
CN102419733A (en)*2011-12-302012-04-18苏州汉清投资管理有限公司System for testing comprehensive performance of software
CN103984625A (en)*2014-05-122014-08-13浪潮电子信息产业股份有限公司System robustness testing method based on use rate analysis
CN104182340A (en)*2014-08-212014-12-03浪潮(北京)电子信息产业有限公司Database compatibility test method and system

Also Published As

Publication numberPublication date
CN105868097A (en)2016-08-17

Similar Documents

PublicationPublication DateTitle
CN105868097B (en)System detection method and its device
CN107870933B (en)Method, device and system for counting android application page browsing behaviors
Xu et al.POD-Diagnosis: Error diagnosis of sporadic operations on cloud applications
Swanson et al.Beyond the rainbow: Self-adaptive failure avoidance in configurable systems
CN106681913A (en)Application not responding positioning system and method
US8732525B2 (en)User-coordinated resource recovery
CN110245077A (en)A kind of response method and equipment of program exception
CN107451040A (en)Localization method, device and the computer-readable recording medium of failure cause
AlGhamdi et al.Towards reducing the time needed for load testing
CN112115005A (en) Test data acquisition method, device, computer equipment and storage medium
CN106294162B (en)A kind of third party's component method for testing security based on data mining
Ehlers et al.A self-adaptive monitoring framework for component-based software systems
CN105868626B (en)The method of monitoring software business conduct based on control stream coarseness integrality
CN109005162A (en)Industrial control system method for auditing safely and device
CN111061610B (en)Generation method and device of cluster system performance test report and computer equipment
CN106201689B (en) A multi-queue event injection device and method with timing control
CN112162908A (en)Program call link monitoring implementation method and device based on bytecode injection technology
CN117349830A (en)Application safety monitoring system and method
CN116610575A (en)Software testing method and device and electronic equipment
Hewson et al.Performance regression testing on the java virtual machine using statistical test oracles
Huang et al.Anomaly detection by monitoring filesystem activities
CN105844176A (en)Security strategy generation method and equipment
Sun et al.KubeChecker: Detecting Configuration Bugs in Container Orchestration
CN115277137B (en) Data collection supervision method, system and device based on governance chain
Pedroza et al.Timed-model-based method for security analysis and testing of smart grid systems

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20200921

Address after:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after:Innovative advanced technology Co.,Ltd.

Address before:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before:Advanced innovation technology Co.,Ltd.

Effective date of registration:20200921

Address after:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after:Advanced innovation technology Co.,Ltd.

Address before:A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before:Alibaba Group Holding Ltd.


[8]ページ先頭

©2009-2025 Movatter.jp