CN105630672A - Automatic application monitoring method and device - Google Patents

Automatic application monitoring method and device Download PDF

Info

Publication number
CN105630672A
CN105630672A CN201510945581.0A CN201510945581A CN105630672A CN 105630672 A CN105630672 A CN 105630672A CN 201510945581 A CN201510945581 A CN 201510945581A CN 105630672 A CN105630672 A CN 105630672A
Authority
CN
China
Prior art keywords
application
monitoring
virtual machine
similar application
test
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.)
Pending
Application number
CN201510945581.0A
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510945581.0A priority Critical patent/CN105630672A/en
Publication of CN105630672A publication Critical patent/CN105630672A/en
Pending legal-status Critical Current

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

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)

Abstract

The invention provides an automatic application monitoring method and device. The method comprises the following steps: setting a virtual machine and constructing a simulative network environment, in which a testes application and a similar application coexist, on the virtual machine; calling a monitoring process on the virtual machine to monitor the version updating progress of the similar application; when monitoring that the similar application has a new version, automatically updating the similar application by using an updating script so as to ensure that the similar application is in the newest version; and executing a monitoring test case on the similar application in the newest version by utilizing the tested application so as to obtain a test result. By adopting the method provided by the invention, lots of manpower is not required for carrying out monitoring and test, so that the labor cost is reduced; and by adopting an automatic monitoring and automatic test method, the consumed time is short and the efficiency is improved.

Description

The automatic monitoring method of application and device
Technical field
The present invention relates to field of computer technology, particularly relate to automatic monitoring method and the device of a kind of application.
Background technology
In prior art, generally there is multiple application with identity function in same terminal simultaneously. When having when being applied in unified terminal operation of identity function, there will be the situation of contention resource, therefore, as client application, not only to realize the basic function of application itself, it is contemplated that when application similar to other coexists, if can take advantage in the process simultaneously run to similar application, ensure that the function of this application is properly functioning. It addition, the incompatible problem that also likely to be present between similar application between similar functions. For determining the influence degree between different similar application, it is necessary to similar application being monitored, understands the dynamic of similar application, and it is tested, currently mainly means of testing is manual monitoring.
Manual monitoring is by manually tested application being arranged at consolidated network environment, implementation of test cases to similar application. The time that this monitor mode expends is long, and efficiency is low, it is impossible to understands the dynamic of similar application in time, and then can not obtain the result of test case in time. If needing to set up multiple test platform when there is multiple similar application, simultaneously need to substantial amounts of manpower, cost of labor is high.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide a kind of automatic monitoring method of application and device overcoming the problems referred to above or solving the problems referred to above at least in part.
Based on one aspect of the present invention, it is provided that the automatic monitoring method of a kind of application, including:
One virtual machine is set, and on described virtual machine, builds the analog network environment that tested application coexists to similar application;
Call the monitoring process arranged on described virtual machine the version updating progress of described similar application is monitored;
Monitor described similar application when new version occurs, utilize more new script that described similar application is automatically updated, make described similar application be in latest edition;
Utilize described tested application that the similar application of described latest edition is performed monitoring test case, obtain test result.
Alternatively, after described virtual machine builds the analog network environment that tested application coexists to similar application, call on described virtual machine arrange monitoring process the version updating progress of described similar application is monitored before, described method also includes:
Whether the test module monitoring described tested application is updated;
If so, then the test module of described tested application is updated, and triggers the monitoring process of the version updating progress of described similar application;
If it is not, then directly trigger the monitoring process of the version updating progress of described similar application.
Alternatively, call on described virtual machine arrange monitoring process the version updating progress of described similar application is monitored after, also include:
Within the setting time, if the test module of described tested application is not updated, and do not monitor described similar application when new version occurs, in the data base of described virtual machine, read the last test result of described tested application;
Described last test result is re-write as this test result the data base of described virtual machine.
Alternatively, call the monitoring process arranged on described virtual machine and the version updating progress of described similar application is monitored, including:
When described similar application is multiple, call a plurality of monitoring process arranged on described virtual machine;
Each monitoring process is utilized to monitor the version updating progress of different similar application respectively.
Alternatively, if described test result is test crash, described method also includes:
Described tested application for test crash provides alarm, informs that described tested application is not over test.
Alternatively, after test crash, also include:
Described test crash scene is carried out mirror image preservation by the image feature utilizing described virtual machine.
Alternatively, if described test result is for being successfully tested, described method also includes:
It is that described successful use-case sets up data list according to preset data form;
The data list being loaded with described successful use-case data is preserved to the data base of described virtual machine.
Alternatively, described preset data form at least includes following parameters: field name, field type, length, major key are no, explanation of field.
Based on another aspect of the present invention, additionally provide the automatic monitoring device of a kind of application, be applied to virtual machine, including:
Environmental simulation module, is suitable to build the analog network environment that tested application coexists to similar application on described virtual machine;
Monitoring module, is suitable to call the monitoring process arranged on described virtual machine and the version updating progress of described similar application is monitored;
More new module, is suitable to monitor described similar application when there is new version, utilizes more new script that described similar application is automatically updated, make described similar application be in latest edition;
Test module, is suitable to utilize described tested application that the similar application of described latest edition is performed monitoring test case, obtains test result.
Alternatively,
Described monitoring module is further adapted for monitoring whether the test module of described tested application is updated;
If it is yes that described more new module is further adapted for the monitoring result of described monitoring module, then the test module of described tested application is updated, and triggers the described monitoring module monitoring process to the version updating progress of described similar application;
If it is no that described monitoring module is further adapted for the monitoring result of described monitoring module, then directly trigger the monitoring process of the version updating progress self carrying out described similar application.
Alternatively, also include:
Read module, was suitable within the setting time, if the test module of described tested application is not updated, and does not monitor described similar application when there is new version, reads the last test result of described tested application in the data base of described virtual machine;
Writing module, is suitable to re-write described last test result as this test result the data base of described virtual machine.
Alternatively, described monitoring module is further adapted for:
When described similar application is multiple, call a plurality of monitoring process arranged on described virtual machine;
Each monitoring process is utilized to monitor the version updating progress of different similar application respectively.
Alternatively, described device also includes:
Alarm module, if being suitable to described test result is test crash, the described tested application for test crash provides alarm, informs that described tested application is not over test.
Alternatively, described device also includes:
Mirror image preserves module, is suitable to after test crash, utilizes the image feature of described virtual machine that described test crash scene is carried out mirror image preservation.
Alternatively, described device also includes:
Data set up module, if being suitable to described test result for being successfully tested, are that described successful use-case sets up data list according to preset data form;
Data base preserves module, is suitable to preserve to the data base of described virtual machine the data list being loaded with described successful use-case data.
Alternatively, described preset data form at least includes following parameters: field name, field type, length, major key are no, explanation of field.
Method according to embodiments of the present invention, builds the analog network environment that tested application coexists to similar application on a virtual machine, and same analog network environment ensure that the environment uniqueness of tested application and similar application, it is to avoid because environment difference interferes. By analog network ambient As on virtual machine, employ the virtual characteristics of virtual machine, virtual machine can create a kind of environment between computer platform and terminal use, terminal use is then based on virtual environment that this virtual machine creates to operate process, the memory headroom that when ensure that actual motion, user needs is likely to be far longer than the memory size of physical machine, but actual functional capability and test result are but true transparent believable. Further, monitoring process is set on a virtual machine, this monitoring process can automatic phasing seemingly should version be monitored, therefore, it is possible to monitor whether similar application new version occurs in time. If monitoring similar application new version occurs, similar application being updated, and then utilizes tested application to test to the similar application of latest edition in time, obtaining test result. Compared with manual monitoring mode of the prior art, each execution step in the embodiment of the present invention is all be automatically performed on the virtual machine arranged, it is no longer necessary to substantial amounts of manpower be monitored and test, reduce cost of labor, the method simultaneously adopting monitoring and test automatically automatically, the time expended is short, improve efficiency, and can in time the carrying out of tested application to the similar application of latest edition be tested, test result is obtained, it is simple to user or developer adjust the exploitation of tested application in time or use strategy according to test result within the very first time.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of description, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
According to below in conjunction with the accompanying drawing detailed description to the specific embodiment of the invention, those skilled in the art will understand the above-mentioned of the present invention and other purposes, advantage and feature more.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit those of ordinary skill in the art be will be clear from understanding. Accompanying drawing is only for illustrating the purpose of preferred implementation, and is not considered as limitation of the present invention. And in whole accompanying drawing, it is denoted by the same reference numerals identical parts. In the accompanying drawings:
Fig. 1 illustrates the process chart of the automatic monitoring method applied according to an embodiment of the invention;
Fig. 2 illustrates the another kind of process chart of the automatic monitoring method applied according to an embodiment of the invention;
Fig. 3 illustrates the structural representation of the automatic monitoring device applied according to an embodiment of the invention; And
Fig. 4 illustrates the another kind of structural representation of the automatic monitoring device applied according to an embodiment of the invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings. Although accompanying drawing showing the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and should do not limited by embodiments set forth here. On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
For solving above-mentioned technical problem, embodiments provide the automatic monitoring method of a kind of application. Fig. 1 illustrates the process chart of the automatic monitoring method applied according to an embodiment of the invention. Referring to Fig. 1, the method at least comprises the following steps S102 to step S108.
In the embodiment of the present invention, step S102 is first carried out, a virtual machine is set, and builds the analog network environment that tested application coexists to similar application on a virtual machine.
Build on a virtual machine after analog network environment, perform step S104, call the monitoring process arranged on virtual machine and the version updating progress of similar application is monitored.
Perform step S106, monitor similar application when new version occurs, utilize more new script that similar application is automatically updated, make similar application be in latest edition.
Finally, perform step S108, utilize tested application that the similar application of latest edition is performed monitoring test case, obtain test result.
Method according to embodiments of the present invention, builds the analog network environment that tested application coexists to similar application on a virtual machine, and same analog network environment ensure that the environment uniqueness of tested application and similar application, it is to avoid because environment difference interferes. by analog network ambient As on virtual machine, employ the virtual characteristics of virtual machine, virtual machine can create a kind of environment between computer platform and terminal use, terminal use is then based on virtual environment that this virtual machine creates to operate process, the memory headroom that when ensure that actual motion, user needs is likely to be far longer than the memory size of physical machine, but actual functional capability and test result are but true transparent believable. further, monitoring process is set on a virtual machine, this monitoring process can automatic phasing seemingly should version be monitored, therefore, it is possible to monitor whether similar application new version occurs in time. if monitoring similar application new version occurs, similar application being updated, and then utilizes tested application to test to the similar application of latest edition in time, obtaining test result. compared with manual monitoring mode of the prior art, each execution step in the embodiment of the present invention is all be automatically performed on the virtual machine arranged, it is no longer necessary to substantial amounts of manpower be monitored and test, reduce cost of labor, the method simultaneously adopting monitoring and test automatically automatically, the time expended is short, improve efficiency, and can in time the carrying out of tested application to the similar application of latest edition be tested, test result is obtained within the very first time, it is easy to user or developer adjust the exploitation of tested application according to test result in time or use strategy.
In a preferred embodiment of the invention, after building the analog network environment that tested application coexists to similar application on a virtual machine, before the renewal progress of the version of similar application is monitored by the monitoring process arranged on virtual machine, the monitoring process on virtual machine also needs to the renewal progress of the version to tested application and is monitored.
For monitoring the renewal progress of the version of tested application, owing to different users would be likely to occur different demands, therefore can set that the different opportunitys triggering the monitoring process arranged on virtual machine. Specifically, the triggering of the setting cycle monitoring process to tested application, for instance, set every 5 minutes, the version of tested application is performed once to monitor by the monitoring process on virtual machine, it is determined that whether tested application new version occurs. Within 5 minutes, being one to enumerate, the actual monitoring time can determine as the case may be, or determines according to the old version more new record of tested application, for instance within 2 hours, monitors once, etc. The triggering of all right occasionality of the temporary demand according to the user monitoring process to tested application. Furthermore it is also possible to the monitoring process that the triggering of timing is to tested application.
If the monitoring process on virtual machine monitors tested application new version occurs, now, utilize more new script that tested application is automatically updated, trigger the policer operation to the renewal progress of the version of similar application of the monitoring process on virtual machine simultaneously. Such as, the test module of tested application or updating functional modules, make tested application that new version occur, after the monitoring process on virtual machine monitors the version that tested application appearance is new, tested application is automatically updated, and then the monitoring process on virtual machine continues the renewal progress of the version of similar application is monitored.
If the monitoring process on virtual machine monitors tested application new version does not occur, the monitoring process on successor virtual machine continues the renewal progress of the version of similar application is monitored operation.
Monitoring process on virtual machine monitors any one application in tested application or similar application when there is new version, all need to perform to monitor test case with similar application to tested application, obtain a new test result, and test result is write in the data base of virtual machine.
Specifically, the premise obtaining a new test result can be divided into following three kinds of situations to understand.
The first, the monitoring process on virtual machine monitors tested application and new version occurs, and new version does not occur in similar application, at this time, it may be necessary to the tested application after automatically updating is performed monitoring test case with similar application, obtains a new test result.
The second, the monitoring process on virtual machine monitors tested application and new version does not occur, and new version occurs in similar application, at this time, it may be necessary to tested application with automatically update after similar application perform monitoring test case, obtain a new test result.
The third, monitoring process on virtual machine monitors tested application and new version all occurs with similar application, then tested application automatically updates with similar application, then the more tested application after updating or similar application is performed monitoring test case, obtains a new test result.
In a preferred embodiment of the invention, if the test result of monitoring test case is test crash, then provides alarm for the tested application of test crash, inform that tested application is not over test. Such as, when tested application runs to similar application simultaneously, due to the quantity of kind of basic function and the difficulty action accomplishment of tested application, not as good as similar application, or owing to tested application is by the attacking and defending to similar application, in contention system resource, not as good as similar application, cause test crash, now, need to provide alarm to tested application, and inform that tested application is not over test.
When tested application is not over test, virtual machine utilizes image feature that test crash scene is carried out mirror image preservation. Image feature adopts mirror image-forming principle, namely test crash scene is formed image, in the image intercepting formation the data base being saved in virtual machine, so can be complete all information that test crash is on-the-spot be preserved, can obtain the functional status of tested application and the relevant information of attacking and defending state in time for user and developer. User and developer, by analyzing miss data, formulate corresponding strategy, continue to optimize tested application.
If the test result of monitoring test case is for being successfully tested, then virtual machine is that successfully use-case sets up data list according to preset data form, the data list being loaded with successfully use-case data is preserved to the data base of virtual machine. Wherein, preset data form at least includes following parameters: field name, field type, length, major key are no, explanation of field. Table 1 is the data list being loaded with successfully use-case data according to an embodiment of the invention, and as shown in table 1, the parameter of preset data form includes: field name, field type, length, major key be no and explanation of field.
Table 1
Field name Field type Length Major key is no Explanation of field
Id Int 4 It is Automatic numbering
software varchar 100 No Similar Apply Names
safemark varchar 100 No Tested application current version
caseres Int 4 No Test result (1: success; 0: failure;-1: abnormal)
time datetime 8 No The execution time
env varchar 50 No Perform platform
filebackpath varchar 100 No Tested application testing file backup path
logpath varchar 100 No Use-case execution journal path
comment varchar 100 No Remarks
It is with requiring supplementation with, if within the time set, such as, setting 5 minutes, there is not new version in tested application, i.e. test module or the attacking and defending module of tested application are not updated, and when also there is new version in similar application, now, it is not necessary to tested application and similar application are performed monitoring test case, in the data base of virtual machine, reads the test result of last update.
In a preferred embodiment of the invention, if there is multiple similar application simultaneously, call a plurality of monitoring process arranged on virtual machine, utilize each monitoring process to monitor the version updating progress of different similar application respectively. Such as, the tested application on virtual machine is 360 security guards, and similar application is Jinshan anti-virus software, QQ computer house keeper, calls two monitoring process on virtual machine, monitors the version more degree of traveling of Jinshan anti-virus software, QQ computer house keeper respectively. If new version all occur in Jinshan anti-virus software, QQ computer house keeper, then respectively the Jinshan anti-virus software after automatically updating, QQ computer house keeper are performed monitoring test case with 360 security guards, finally obtain two new test results.
Below, using 360 security guards as tested application, Jinshan anti-virus software is example as similar application, illustrates the handling process of the automatic monitoring method of the application that the embodiment of the present invention provides. Fig. 2 illustrates the another kind of process chart of the automatic monitoring method applied according to an embodiment of the invention. Referring to Fig. 2, the method at least comprises the following steps S202 to step S216.
First, the embodiment of the present invention performs step S202, arranges a virtual machine, and builds the analog network environment that 360 security guards coexist with Jinshan anti-virus software on a virtual machine. Then, call the monitoring process arranged on virtual machine, perform step S204, monitor whether 360 security guards new version occur with Jinshan anti-virus software. If 360 security guards new version occur with any one application in Jinshan anti-virus software, or all there is new version with Jinshan anti-virus software in 360 security guards, perform step S206, utilize more new script that the application new version occur is automatically updated. After renewal, perform step S208, utilize the Jinshan anti-virus software of 360 security guards couple to perform monitoring test case, obtain test result. If 360 security guards new version all do not occur with any one application in Jinshan anti-virus software, perform step S210, in the data base of virtual machine, read the test result of last update.
Further, performing step S212, it is judged that the execution use-case of Jinshan anti-virus software is tested whether successfully by 360 security guards, if test result is unsuccessfully, perform step S214, virtual machine utilizes image feature that test crash scene is carried out mirror image preservation. If test result is for passing through, performing step S216, virtual machine sets up data list, the data list being loaded with successfully use-case data is preserved to the data base of virtual machine.
Based on same inventive concept, the embodiment of the present invention additionally provides the automatic monitoring device of a kind of application. Fig. 3 illustrates the structural representation of the automatic monitoring device applied according to an embodiment of the invention. Referring to Fig. 3, this device at least includes:
Environmental simulation module 300, is suitable to build the analog network environment that tested application coexists to similar application on a virtual machine;
Monitoring module 310, couples with environmental simulation module 300, is suitable to call the monitoring process arranged on virtual machine and the version updating progress of similar application is monitored;
More new module 320, couple with monitoring module 310, are suitable to monitor similar application when there is new version, utilize more new script that similar application is automatically updated, make similar application be in latest edition;
Test module 330 couples, and couples with more new module 320, is suitable to utilize tested application that the similar application of latest edition is performed monitoring test case, obtains test result.
In a preferred embodiment of the invention, whether monitoring module 310 is further adapted for monitoring the test module of tested application and is updated;
If more new module 320 is further adapted for the monitoring result of monitoring module is yes, then the test module of tested application is updated, and triggers the monitoring module monitoring process to the version updating progress of similar application;
If it is no that monitoring module 310 is further adapted for the monitoring result of monitoring module, then directly trigger the monitoring process of the version updating progress self carrying out similar application.
In a preferred embodiment of the invention, also include:
Read module 340, couples with monitoring module 310, is suitable within the setting time, if the test module of tested application is not updated, and does not monitor similar application when there is new version, reads the last test result of tested application in the data base of virtual machine;
Writing module 350, couples with read module 340, is suitable to re-write last test result as this test result the data base of virtual machine.
In a preferred embodiment of the invention, monitoring module 310 is further adapted for:
When similar application is multiple, call a plurality of monitoring process arranged on virtual machine;
Each monitoring process is utilized to monitor the version updating progress of different similar application respectively.
In a preferred embodiment of the invention, referring to Fig. 4, the automatic monitoring device of application also includes:
Alarm module 360, couples with test module 330, if being suitable to test for test crash, the tested application for test crash provides alarm, informs that tested application is not over test.
In a preferred embodiment of the invention, referring to Fig. 4, the automatic monitoring device of application also includes:
Mirror image preserves module 370, couples with alarm module 360, is suitable to after test crash, utilizes the image feature of virtual machine that test crash scene is carried out mirror image preservation.
In a preferred embodiment of the invention, referring to Fig. 4, the automatic monitoring device of application also includes:
Data set up module 380, coupling with test module 330, if being suitable to test result for being successfully tested, being that successfully use-case sets up data list according to preset data form;
Data base preserves module 390, sets up module 380 with data and couples, and is suitable to preserve to the data base of virtual machine the data list being loaded with successfully use-case data.
In a preferred embodiment of the invention, preset data form at least includes following parameters: field name, field type, length, major key are no, explanation of field.
To sum up, the automatic monitoring method and the device that adopt the application of embodiment of the present invention offer can reach following beneficial effect:
Method according to embodiments of the present invention and device, build the analog network environment that tested application coexists to similar application on a virtual machine, same analog network environment ensure that the environment uniqueness of tested application and similar application, it is to avoid because environment difference interferes. By analog network ambient As on virtual machine, employ the virtual characteristics of virtual machine, virtual machine can create a kind of environment between computer platform and terminal use, terminal use is then based on virtual environment that this virtual machine creates to operate process, the memory headroom that when ensure that actual motion, user needs is likely to be far longer than the memory size of physical machine, but actual functional capability and test result are but true transparent believable. Further, monitoring process is set on a virtual machine, this monitoring process can automatic phasing seemingly should version be monitored, therefore, it is possible to monitor whether similar application new version occurs in time. If monitoring similar application new version occurs, similar application being updated, and then utilizes tested application to test to the similar application of latest edition in time, obtaining test result. Compared with manual monitoring mode of the prior art, each execution step in the embodiment of the present invention is all be automatically performed on the virtual machine arranged, it is no longer necessary to substantial amounts of manpower be monitored and test, reduce cost of labor, the method simultaneously adopting monitoring and test automatically automatically, the time expended is short, improve efficiency, and can in time the carrying out of tested application to the similar application of latest edition be tested, test result is obtained, it is simple to user or developer adjust the exploitation of tested application in time or use strategy according to test result within the very first time.
In description mentioned herein, describe a large amount of detail. It is to be appreciated, however, that embodiments of the invention can be put into practice when not having these details. In some instances, known method, structure and technology it are not shown specifically, in order to do not obscure the understanding of this description.
Similarly, it is to be understood that, one or more in order to what simplify that the disclosure helping understands in each inventive aspect, herein above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or descriptions thereof sometimes. But, the method for the disclosure should be construed to and reflect an intention that namely the present invention for required protection requires feature more more than the feature being expressly recited in each claim. More precisely, as the following claims reflect, inventive aspect is in that all features less than single embodiment disclosed above. Therefore, it then follows claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, wherein each claim itself as the independent embodiment of the present invention.
Those skilled in the art are appreciated that, it is possible to carry out the module in the equipment in embodiment adaptively changing and they being arranged in one or more equipment different from this embodiment. Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition. Except at least some in such feature and/or process or unit excludes each other, it is possible to adopt any combination that all processes or the unit of all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment are combined. Unless expressly stated otherwise, each feature disclosed in this specification (including adjoint claim, summary and accompanying drawing) can be replaced by the alternative features providing purpose identical, equivalent or similar.
In addition, those skilled in the art it will be appreciated that, although embodiments more described herein include some feature included in other embodiments rather than further feature, but the combination of the feature of different embodiment means to be within the scope of the present invention and form different embodiments. Such as, in detail in the claims, the one of any of embodiment required for protection can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or realizes with the software module run on one or more processor, or realizes with their combination. It will be understood by those of skill in the art that the some or all functions of some or all parts in the automatic monitoring device of the application that microprocessor or digital signal processor (DSP) can be used in practice to realize according to embodiments of the present invention. The present invention is also implemented as part or all the equipment for performing method as described herein or device program (such as, computer program and computer program). The program of such present invention of realization can store on a computer-readable medium, or can have the form of one or more signal. Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment without departing from the scope of the appended claims. In the claims, any reference marks that should not will be located between bracket is configured to limitations on claims. Word " comprises " and does not exclude the presence of the element or step not arranged in the claims. Word "a" or "an" before being positioned at element does not exclude the presence of multiple such element. The present invention by means of including the hardware of some different elements and can realize by means of properly programmed computer. In the unit claim listing some devices, several in these devices can be through same hardware branch and specifically embody. Word first, second and third use do not indicate that any order. Can be title by these word explanations.
So far, those skilled in the art will recognize that, although the detailed multiple exemplary embodiments illustrate and describing the present invention herein, but, without departing from the spirit and scope of the present invention, still can directly determine according to present disclosure or derive other variations or modifications many meeting the principle of the invention. Therefore, the scope of the present invention is it is understood that cover all these other variations or modifications with regarding as.
Based on one aspect of the present invention, it is disclosed that the automatic monitoring method of A1, a kind of application, including:
One virtual machine is set, and on described virtual machine, builds the analog network environment that tested application coexists to similar application;
Call the monitoring process arranged on described virtual machine the version updating progress of described similar application is monitored;
Monitor described similar application when new version occurs, utilize more new script that described similar application is automatically updated, make described similar application be in latest edition;
Utilize described tested application that the similar application of described latest edition is performed monitoring test case, obtain test result.
A2, method according to A1, wherein, after described virtual machine builds the analog network environment that tested application coexists to similar application, call on described virtual machine arrange monitoring process the version updating progress of described similar application is monitored before, described method also includes:
Whether the test module monitoring described tested application is updated;
If so, then the test module of described tested application is updated, and triggers the monitoring process of the version updating progress of described similar application;
If it is not, then directly trigger the monitoring process of the version updating progress of described similar application.
A3, method according to A2, wherein, call after the version updating progress of described similar application is monitored by the monitoring process arranged on described virtual machine, also include:
Within the setting time, if the test module of described tested application is not updated, and do not monitor described similar application when new version occurs, in the data base of described virtual machine, read the last test result of described tested application;
Described last test result is re-write as this test result the data base of described virtual machine.
A4, method according to any one of A1 to A3, wherein, call the monitoring process arranged on described virtual machine and the version updating progress of described similar application be monitored, including:
When described similar application is multiple, call a plurality of monitoring process arranged on described virtual machine;
Each monitoring process is utilized to monitor the version updating progress of different similar application respectively.
A5, method according to any one of A1 to A4, wherein, if described test result is test crash, described method also includes:
Described tested application for test crash provides alarm, informs that described tested application is not over test.
A6, method according to A5, wherein, after test crash, also include:
Described test crash scene is carried out mirror image preservation by the image feature utilizing described virtual machine.
A7, method according to any one of A1 to A4, wherein, if described test result is for being successfully tested, described method also includes:
It is that described successful use-case sets up data list according to preset data form;
The data list being loaded with described successful use-case data is preserved to the data base of described virtual machine.
A8, method according to A7, wherein, described preset data form at least includes following parameters: field name, field type, length, major key are no, explanation of field.
Based on another aspect of the present invention, it is disclosed that the automatic monitoring device of B9, a kind of application, it is applied to virtual machine, including:
Environmental simulation module, is suitable to build the analog network environment that tested application coexists to similar application on described virtual machine;
Monitoring module, is suitable to call the monitoring process arranged on described virtual machine and the version updating progress of described similar application is monitored;
More new module, is suitable to monitor described similar application when there is new version, utilizes more new script that described similar application is automatically updated, make described similar application be in latest edition;
Test module, is suitable to utilize described tested application that the similar application of described latest edition is performed monitoring test case, obtains test result.
B10, device according to B9, wherein,
Described monitoring module is further adapted for monitoring whether the test module of described tested application is updated;
If it is yes that described more new module is further adapted for the monitoring result of described monitoring module, then the test module of described tested application is updated, and triggers the described monitoring module monitoring process to the version updating progress of described similar application;
If it is no that described monitoring module is further adapted for the monitoring result of described monitoring module, then directly trigger the monitoring process of the version updating progress self carrying out described similar application.
B11, device according to B10, wherein, also include:
Read module, was suitable within the setting time, if the test module of described tested application is not updated, and does not monitor described similar application when there is new version, reads the last test result of described tested application in the data base of described virtual machine;
Writing module, is suitable to re-write described last test result as this test result the data base of described virtual machine.
B12, device according to any one of B9 to B11, wherein, described monitoring module is further adapted for:
When described similar application is multiple, call a plurality of monitoring process arranged on described virtual machine;
Each monitoring process is utilized to monitor the version updating progress of different similar application respectively.
B13, device according to any one of B9 to B12, wherein, described device also includes:
Alarm module, if being suitable to described test result is test crash, the described tested application for test crash provides alarm, informs that described tested application is not over test.
B14, device according to B13, wherein, described device also includes:
Mirror image preserves module, is suitable to after test crash, utilizes the image feature of described virtual machine that described test crash scene is carried out mirror image preservation.
B15, device according to any one of B9 to B12, wherein, described device also includes:
Data set up module, if being suitable to described test result for being successfully tested, are that described successful use-case sets up data list according to preset data form;
Data base preserves module, is suitable to preserve to the data base of described virtual machine the data list being loaded with described successful use-case data.
B16, device according to B15, wherein, described preset data form at least includes following parameters: field name, field type, length, major key are no, explanation of field.

Claims (10)

1. an automatic monitoring method for application, including:
One virtual machine is set, and on described virtual machine, builds the analog network environment that tested application coexists to similar application;
Call the monitoring process arranged on described virtual machine the version updating progress of described similar application is monitored;
Monitor described similar application when new version occurs, utilize more new script that described similar application is automatically updated, make described similar application be in latest edition;
Utilize described tested application that the similar application of described latest edition is performed monitoring test case, obtain test result.
2. method according to claim 1, wherein, after described virtual machine builds the analog network environment that tested application coexists to similar application, call on described virtual machine arrange monitoring process the version updating progress of described similar application is monitored before, described method also includes:
Whether the test module monitoring described tested application is updated;
If so, then the test module of described tested application is updated, and triggers the monitoring process of the version updating progress of described similar application;
If it is not, then directly trigger the monitoring process of the version updating progress of described similar application.
3. method according to claim 2, wherein, call on described virtual machine arrange monitoring process the version updating progress of described similar application is monitored after, also include:
Within the setting time, if the test module of described tested application is not updated, and do not monitor described similar application when new version occurs, in the data base of described virtual machine, read the last test result of described tested application;
Described last test result is re-write as this test result the data base of described virtual machine.
4. the method according to any one of claims 1 to 3, wherein, calls the monitoring process arranged on described virtual machine and the version updating progress of described similar application is monitored, including:
When described similar application is multiple, call a plurality of monitoring process arranged on described virtual machine;
Each monitoring process is utilized to monitor the version updating progress of different similar application respectively.
5. the method according to any one of Claims 1-4, wherein, if described test result is test crash, described method also includes:
Described tested application for test crash provides alarm, informs that described tested application is not over test.
6. method according to claim 5, wherein, after test crash, also includes:
Described test crash scene is carried out mirror image preservation by the image feature utilizing described virtual machine.
7. the method according to any one of Claims 1-4, wherein, if described test result is for being successfully tested, described method also includes:
It is that described successful use-case sets up data list according to preset data form;
The data list being loaded with described successful use-case data is preserved to the data base of described virtual machine.
8. method according to claim 7, wherein, described preset data form at least includes following parameters: field name, field type, length, major key are no, explanation of field.
9. an automatic monitoring device for application, is applied to virtual machine, including:
Environmental simulation module, is suitable to build the analog network environment that tested application coexists to similar application on described virtual machine;
Monitoring module, is suitable to call the monitoring process arranged on described virtual machine and the version updating progress of described similar application is monitored;
More new module, is suitable to monitor described similar application when there is new version, utilizes more new script that described similar application is automatically updated, make described similar application be in latest edition;
Test module, is suitable to utilize described tested application that the similar application of described latest edition is performed monitoring test case, obtains test result.
10. device according to claim 9, wherein,
Described monitoring module is further adapted for monitoring whether the test module of described tested application is updated;
If it is yes that described more new module is further adapted for the monitoring result of described monitoring module, then the test module of described tested application is updated, and triggers the described monitoring module monitoring process to the version updating progress of described similar application;
If it is no that described monitoring module is further adapted for the monitoring result of described monitoring module, then directly trigger the monitoring process of the version updating progress self carrying out described similar application.
CN201510945581.0A 2015-12-16 2015-12-16 Automatic application monitoring method and device Pending CN105630672A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510945581.0A CN105630672A (en) 2015-12-16 2015-12-16 Automatic application monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510945581.0A CN105630672A (en) 2015-12-16 2015-12-16 Automatic application monitoring method and device

Publications (1)

Publication Number Publication Date
CN105630672A true CN105630672A (en) 2016-06-01

Family

ID=56045642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510945581.0A Pending CN105630672A (en) 2015-12-16 2015-12-16 Automatic application monitoring method and device

Country Status (1)

Country Link
CN (1) CN105630672A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526673A (en) * 2017-08-25 2017-12-29 郑州云海信息技术有限公司 A kind of storage system Log backup internal storage testing method
CN108763072A (en) * 2018-05-18 2018-11-06 郑州云海信息技术有限公司 A kind of efficient automatic test environmental structure method
CN109560990A (en) * 2018-12-17 2019-04-02 同盾控股有限公司 A kind of Internet application test method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279796A (en) * 2011-08-25 2011-12-14 北京神州绿盟信息安全科技股份有限公司 Method and device for testing software compatibility
US8839222B1 (en) * 2011-09-21 2014-09-16 Amazon Technologies, Inc. Selecting updates for deployment to a programmable execution service application
CN104572473A (en) * 2015-01-29 2015-04-29 无锡江南计算技术研究所 Compatibility testing method of Web applications supporting multi-type and multi-version browsers
CN104636250A (en) * 2013-11-12 2015-05-20 财团法人资讯工业策进会 Cloud automatic test system and method
CN104751056A (en) * 2014-12-19 2015-07-01 中国航天科工集团第二研究院七〇六所 Vulnerability verification system and method based on attack library

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279796A (en) * 2011-08-25 2011-12-14 北京神州绿盟信息安全科技股份有限公司 Method and device for testing software compatibility
US8839222B1 (en) * 2011-09-21 2014-09-16 Amazon Technologies, Inc. Selecting updates for deployment to a programmable execution service application
CN104636250A (en) * 2013-11-12 2015-05-20 财团法人资讯工业策进会 Cloud automatic test system and method
CN104751056A (en) * 2014-12-19 2015-07-01 中国航天科工集团第二研究院七〇六所 Vulnerability verification system and method based on attack library
CN104572473A (en) * 2015-01-29 2015-04-29 无锡江南计算技术研究所 Compatibility testing method of Web applications supporting multi-type and multi-version browsers

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526673A (en) * 2017-08-25 2017-12-29 郑州云海信息技术有限公司 A kind of storage system Log backup internal storage testing method
CN107526673B (en) * 2017-08-25 2021-02-02 苏州浪潮智能科技有限公司 Method for testing log backup memory of storage system
CN108763072A (en) * 2018-05-18 2018-11-06 郑州云海信息技术有限公司 A kind of efficient automatic test environmental structure method
CN109560990A (en) * 2018-12-17 2019-04-02 同盾控股有限公司 A kind of Internet application test method and device

Similar Documents

Publication Publication Date Title
CN105610987B (en) Method, application and the system of management server cluster
CN102833258B (en) Network address access method and system
CN103647816A (en) Method and device for upgrading application software
CN103150513A (en) Method and device for intercepting embedded information in application program
CN108255708B (en) Method, device, storage medium and equipment for accessing production file in test environment
CN110334126B (en) Timing task processing method and device based on Spring MVC and computer equipment
CN104834555A (en) Method for invoking functional module, related device and device repairing method
CN103761178A (en) Method for realizing application uninstalling surveys
CN112039900B (en) Network security risk detection method, system, computer device and storage medium
CN110147241A (en) Program configures update method, electronic device, computer equipment and storage medium
CN105512015A (en) Android target application crash calculation method and device
CN103677898A (en) Method for checking loaded extension and/or plug-in on server side and server
CN104537308A (en) System and method for providing application security auditing function
CN105528251B (en) Processing method, device and the mobile terminal of applicative notifications information
CN109672553A (en) Gateway Dynamic Configuration, system, computer equipment and storage medium
CN105915546A (en) Traffic monitoring method and device of android application
CN104579765A (en) Disaster tolerance method and device for cluster system
CN105630672A (en) Automatic application monitoring method and device
CN109725912A (en) Application program configuration method, device, terminal, server and readable storage medium storing program for executing
CN104346206A (en) Method and system for recovering installation of unloaded software
CN103647811A (en) A method and an apparatus for application's accessing backstage service
CN104915593A (en) Binding removing processing method and system for software
CN105159545A (en) Method and device for processing popup box on intelligent terminal for test
CN113077260A (en) Data access method and device based on block chain and electronic equipment
CN105447384A (en) Anti-monitoring method and system and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160601

RJ01 Rejection of invention patent application after publication