CN102023033B - Automatic test method and system - Google Patents

Automatic test method and system Download PDF

Info

Publication number
CN102023033B
CN102023033B CN 200910092852 CN200910092852A CN102023033B CN 102023033 B CN102023033 B CN 102023033B CN 200910092852 CN200910092852 CN 200910092852 CN 200910092852 A CN200910092852 A CN 200910092852A CN 102023033 B CN102023033 B CN 102023033B
Authority
CN
China
Prior art keywords
information
status information
auto
test system
file
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.)
Expired - Fee Related
Application number
CN 200910092852
Other languages
Chinese (zh)
Other versions
CN102023033A (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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN 200910092852 priority Critical patent/CN102023033B/en
Publication of CN102023033A publication Critical patent/CN102023033A/en
Application granted granted Critical
Publication of CN102023033B publication Critical patent/CN102023033B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an automatic test method and an automatic test system for solving the problems of difficult problem search and low reproduction process efficiency in an automatic test process of the prior art. The method comprises the following steps of: acquiring second state information of attribute information in the automatic test system according to the set monitoring plan; and comparing the second state information with the stored first state information, generating a second backup file according to the comparison result, and outputting the second backup file. In the embodiment of the invention, by setting the monitoring plan, backing up the state information of the attribute information in the test process through the automatic test system, determining changed information of the state information of the attribute information and outputting the changed information, a test person can judge whether a fault occurs in the automatic test process according to the output information and recover the test process according to the second state information when the automatic test process has the fault.

Description

A kind of automatic test approach and system
Technical field
The present invention relates to the automatic test technology field, relate in particular to a kind of automatic test approach and system.
Background technology
In present automatic testing process; Need to accomplish the task of test automatically; And need the mistake of finding in the test process be reproduced out; While when catastrophic failure appears in Auto-Test System, can be recovered the operation of this Auto-Test System automatically in automatic testing process, thereby this process of testing automatically can be gone on smoothly.
Prior art is generally all passed through artificial the observation to the mistake that occurs in this process and is confirmed in the process of testing automatically, but because Auto-Test System need be handled in the process of test automatically process and thread are a lot; Even this Auto-Test System has run into mistake in the process of test automatically; Also can only error result be carried out record, and the operation of on the basis of this error result, leaving a mistake uncorrected and making the best of it down, when reproducing wrong in this Auto-Test System operational process through manual type; Because this Auto-Test System; Only error result has been carried out record, and the tester can't judge accurately when appearance should mistake, the condition of this Auto-Test System and state; Cause automatic tester when carrying out the error condition reproduction; Need the workload of processing bigger, be easy to make mistakes, therefore cause the mistake of this automatic testing process is reproduced the lower problem of efficient.
Summary of the invention
In view of this, the embodiment of the invention provides automatic test approach and system, and in order to solve in the prior art automatic testing process, problem is searched difficulty, reproduces the low problem of process efficiency.
A kind of automatic test approach that the embodiment of the invention provides comprises:
Auto-Test System monitors the trigger condition that is provided with in the Supervisory Surveillance Program when being triggered, and obtains second status information of each attribute information in this Auto-Test System;
With said second status information; Compare with first status information of corresponding attribute information in first backup file of preserving; Wherein, said first backup file is that the status information backup to each attribute information obtains said Auto-Test System based on configuration file;
Generate second backup file according to result relatively, and export said second backup file.
A kind of Auto-Test System that the embodiment of the invention provides comprises:
Acquisition module when being used for monitoring trigger condition that Supervisory Surveillance Program is provided with and being triggered, obtains second status information of each attribute information in this Auto-Test System;
Comparison module; Be used for said second status information; Compare with first status information of corresponding attribute information in first backup file, wherein, said first backup file is that the status information backup to each attribute information obtains said Auto-Test System according to configuration file;
Generate output module, be used for generating second backup file, and export said second backup file according to result relatively.
The embodiment of the invention provides a kind of automatic test approach and system, and this method comprises: Auto-Test System obtains second status information of each attribute information in this Auto-Test System according to the monitoring plan that is provided with; With this second status information, compare with first status information of corresponding attribute information in first backup file of preserving, generate second backup file according to result relatively, and said second backup file is exported.The embodiment of the invention is through being provided with monitoring plan; This Auto-Test System is backed up the status information of each attribute information in this test process; Confirm the change information of each attribute information status information, and with this change information output, thereby make the tester judge whether this automatic testing process breaks down based on the information of this output; And when this automatic testing process breaks down, can recover this test process based on this second status information.
Description of drawings
The automatic testing process that Fig. 1 provides for the embodiment of the invention;
The structural representation of the Auto-Test System that Fig. 2 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention is in order effectively to improve the efficient of reproducing fault in the automatic testing process; A kind of automatic test approach is provided; This method comprises: according to the monitoring plan that is provided with; When the trigger condition that is provided with in the Supervisory Surveillance Program is triggered, obtain second status information of each attribute information in the Auto-Test System; With second status information, compare with first status information of corresponding attribute information in first backup file of preserving, wherein, first backup file is that the status information backup to each attribute information obtains said Auto-Test System according to configuration file; Generate second backup file according to result relatively, and second backup file is exported.The embodiment of the invention is through being provided with monitoring plan; This Auto-Test System is backed up the status information of each attribute information in this test process; Confirm the change information of each attribute information status information, and with this change information output, thereby make the tester judge whether this automatic testing process breaks down based on the information of this output; And when this automatic testing process breaks down, can recover this test process based on this second status information.
Below in conjunction with Figure of description, the embodiment of the invention is elaborated.
In embodiments of the present invention in order to write down this process of test automatically accurately; And can be when this Auto-Test System be found Problem-Error; This Auto-Test System of correct reproduction is found the state of Problem-Error each attribute information constantly; Guarantee that the tester can accurately reproduce the Problem-Error of finding in the automatic testing process at any time, need be in this Auto-Test System the configuration file, thereby when this Auto-Test System is brought into operation; Can content corresponding in this Auto-Test System be filed according to the configuration information of this configuration file.
The process of Fig. 1 for testing automatically in the embodiment of the invention, this process may further comprise the steps:
S101: Auto-Test System according to the configuration file that is provided with, backs up first status information of each attribute information in this Auto-Test System when testing automatically, obtains first backup file.
Wherein, this Auto-Test System can be obtained this first backup file at the beginning of automatic testing process, or is obtaining this first backup file in the test run process automatically.
S102: Auto-Test System when the trigger condition that is provided with in this Supervisory Surveillance Program is triggered, is obtained second status information of each attribute information of this Auto-Test System according to the Supervisory Surveillance Program that is provided with.
The trigger condition of the Supervisory Surveillance Program that is provided with in this Auto-Test System is: Time Triggered conditioned disjunction trigger conditions.
S103: this second status information is compared with the first corresponding status information,, generate second backup file, and this second backup file output is shown according to result relatively.
In embodiments of the present invention; The process that generates second backup file according to comparative result comprises: when first status information of each attribute information and second status information not simultaneously; Obtain the conditional information that this second status information takes place; According to this second status information and the conditional information of this second status information takes place, generate second backup file;
When first status information of each attribute information is identical with second status information, generate second backup file according to this second status information.
Embodiment of the invention Auto-Test System compares first status information and second status information of each attribute information; When generating second backup file based on result relatively; Can confirm in this second status information different information in first status information, i.e. the change information of each attribute information status information is when existing this change information; Obtain the conditional information that this change information takes place; Generate second backup file based on this change information and conditional information that this change information takes place, or, second backup file generated based on this second status information and conditional information that this change information takes place; When not having change information, can directly preserve this first status information information identical in this second backup file with the information of second status information, or, directly generate second backup file based on this second status information.
In embodiments of the present invention, because at the beginning of Auto-Test System is tested automatically, or in automatic testing process, first status information of each attribute information of this Auto-Test System is backed up, obtained first backup file.In the process of test automatically; When the trigger condition in this Supervisory Surveillance Program is triggered, obtain second status information of each attribute information in this Auto-Test System, this second status information is compared with first status information of corresponding each attribute information; When both not simultaneously; Variation has taken place in the state of confirming corresponding attribute information in this Auto-Test System, confirms the change information of each attribute information, obtains the conditional information that this change information takes place; And according to this second status information and the conditional information of this second status information takes place; Backup is second backup file, with this second backup file real-time be shown to the tester so that the tester can understand this automatic testing process timely.When second status information of each attribute information is identical with first status information, then preserve this second status information information identical in this second backup file with the information of first status information.
This Auto-Test System in embodiments of the present invention, needs to back up, so that can judge in this process of testing automatically mistake whether occurs to the status information of each attribute information in this Auto-Test System.When Auto-Test System backs up the status information of each attribute information; To different attribute informations different configuration file content is set, makes this Auto-Test System can carry out the backup of the status information of respective attributes information according to the content of different configuration files.
Bibliographic structure attribute information to this Auto-Test System disposes first configuration file in embodiments of the present invention; Be directed against the status information of the bibliographic structure of this Auto-Test System in this first configuration file; Make this Auto-Test System can back up first status information of the bibliographic structure of this Auto-Test System successively; Thereby obtain the first working directory structured file, wherein, the bibliographic structure of this Auto-Test System comprises: multilayer bibliographic structure and distributed directory structure etc.; The status information of bibliographic structure comprises the information of preserving which file in this multilayer catalogue or the distributed directory, and the storage address information of this each file.In embodiments of the present invention can be during this first configuration file in configuration, according to this multilayer bibliographic structure, and the characteristics of this distributed directory structure, dispose the content of this first configuration file successively.In the time of for example can disposing this first configuration file for this multilayer bibliographic structure; When making this Auto-Test System carry out this first configuration file; According to the subordinate relation between this multilayer bibliographic structure, the status information with this multilayer bibliographic structure in layer backs up.
Because subprogram maybe be important in Auto-Test System, when this program went wrong, this Auto-Test System will go wrong; Or can't normally move; Therefore need monitor this subprogram, and the normal operation of this Auto-Test System be unable to do without the operate as normal of this database and Runtime Library, after the file in this Runtime Library or the file in the database are deleted or be modified; This Auto-Test System possibly go wrong, and causes it normally to move.Therefore to the program attribute information that exists in this Auto-Test System, dispose second configuration file, the program attribute information that in Auto-Test System, exists comprises: executable program, database and Runtime Library etc.And, the present invention can dispose the content of this second configuration file in implementing as required; When making this Auto-Test System operation; Can first status information of the program of existence such as this executable program and Runtime Library, database be backed up; Obtain first program file, the status information of the program of this existence comprises: this test macro is current to move what program in the program of this existence, and this program is carried out information such as what operation.
In Auto-Test System; (the for example version of IIS and configuration information, the version of .Net and configuration information, the version of operating system because the configuration information relevant with operating system; The configuration of the configuration of security of system strategy, system's fire wall; And information such as some network settings) and crucial serviced component (for example WorldWide Web service, Spool service, MS XML resolver, AppleTalk network agreement etc.) the normal operation of this Auto-Test System is also had than significant effects, when the serviced component of this configuration information relevant with operating system, key goes wrong, or quilt is deleted; Or after being modified, this Auto-Test System may go wrong.Therefore, in embodiments of the present invention, the status information that can be directed against the attribute informations such as serviced component of this configuration information relevant with operating system, key disposes the 3rd configuration file.When this Auto-Test System operation the 3rd configuration file; Can be according to the content of the 3rd configuration file; Will the configuration information relevant with operating system, and first status information of crucial attribute informations such as serviced component backs up, and obtains first operating system file; Should comprise with the status information of operating system file: in this operating system with operating system relevant configuration information, configuration requirement information, and the configuration information of the serviced component of key and configuration requirement information etc.
In the process that the embodiment of the invention is tested automatically; Need be to this process of testing automatically configuration monitoring plan; Wherein this monitoring plan is used for monitoring this process of test automatically; The running status of this Auto-Test System of different time points is promptly monitored the status information of each attribute information in this Auto-Test System.In embodiments of the present invention, to the difference of the status information of each attribute information in this automatic testing process, the plan of configuration different monitoring.
Be directed against the status information of the bibliographic structure in this automatic testing process in embodiments of the present invention; Dispose first monitoring plan, this first monitoring plan can be according to the Time Triggered condition, and perhaps trigger conditions is triggered; When the time that is provided with arrives or the incident of setting when being triggered; Obtain second status information of this bibliographic structure of current time, second status information and first status information of this bibliographic structure compared, when second status information of this bibliographic structure and first status information not simultaneously; Obtain the change information in this second status information; Then obtain the conditional information that this change information takes place, and, back up the second working directory structured file according to second status information of this bibliographic structure and the conditional information that this second state takes place.When this second status information is identical with first status information, then in the second working directory structured file, preserve this second status information information identical with the information of first status information.The status information of this bibliographic structure comprises: preserve the information of which file in this working directory, and the address information of each file of preserving.
In concrete backup procedure; Can be according to content corresponding in this first configuration file; Obtain second status information of the bibliographic structure in this Auto-Test System, when this second status information and first status information not simultaneously, obtain the change information in this second status information; And obtain the conditional information that this change information takes place; The conditional information of this second status information promptly takes place, and backs up according to this second status information and conditional information that this second status information takes place, thereby obtains the second working directory structured file.For example this Auto-Test System is carried out this first monitoring plan; When time of being provided with in this first monitoring plan arrives or the incident of setting when being triggered; This Auto-Test System will this moment second status information of bibliographic structure back up; Promptly obtain the information of the file of preserving in each catalogue; The information of having preserved which file in promptly definite each catalogue; When the information of the file of preserving in the structure of each catalogue changes, promptly first status information in this second status information and the first working directory structured file not simultaneously, the file of for example preserving in this catalogue increase or the storage address of certain file not simultaneously; Obtain this increase file information or obtain the change information of this document address; Promptly obtaining the conditional information that this second state changes, is the second working directory structured file with the information back-up of the file of the information of the file of preserving in this catalogue and this increase, is the second working directory structured file with the address information of the file of preserving in this catalogue and the address change information back-up of file maybe.This second working directory structured file is shown, and when concrete the demonstration, also comprise the temporal information of obtaining this second working directory structured file.
The time that should be provided with in embodiments of the present invention can for; According to the time point one by one that this automatic testing process is provided with, the time interval between per two adjacent time points can be identical, also can be different; This time interval can be several seconds; Somewhat, several hours or several days etc. can be provided with as required flexibly.The incident of this setting can finish or the operation of a certain catalogue finishes or the like for, some program run.
Second status information of the bibliographic structure that in this Auto-Test System, obtains; When identical with first status information of this corresponding bibliographic structure; The information that is the file preserved in each catalogue is identical; When the storage address information of each file is identical, then in this second working directory structured file, write down this first status information information identical, and this second working directory structured file output is shown with second status information.
Above-mentioned in the process that first status information and second status information are compared; This first status information is the status information in the first working directory structured file, and this first working directory structured file can obtain for this bibliographic structure status information being backed up at the beginning of testing automatically in Auto-Test System.
In embodiments of the present invention, carry out the backup of bibliographic structure status information in this Auto-Test System, wherein in concrete backup procedure, the content part that this bibliographic structure status information is changed backs up and shows.So that the tester can search according to the content of this second working directory structured file timely, and can be according to the state of the structure of this this catalogue of time point of content recovery of this second working directory structured file.
Because this Auto-Test System backs up this second working directory structured file, the tester can judge whether this Auto-Test System is normal based on this second working directory structured file; When judging that this Auto-Test System is undesired; The tester can recover based on this second working directory structured file, reverts to the running status of this this Auto-Test System of moment, thereby based on this running status; The concrete root of judging that this Auto-Test System goes wrong, and solve.Therefore this implementation is convenient to the fault that the tester analyzes the automatic testing process appearance, thereby the function of this Auto-Test System is optimized more.And when this test macro significant trouble occurs and can't move; Can adopt the first working directory structured file and/or the second working directory structured file of this backup to recover the bibliographic structure of this Auto-Test System, thereby make this Auto-Test System by returning to normal operating condition in the significant trouble.
To the status information of the program that exists in this Auto-Test System, dispose second monitoring plan in embodiments of the present invention, the time that in this second monitoring plan, is provided with arrives; Or the incident that is provided with is when being triggered; Obtain second status information of the program of this existence of current time, second status information and first status information of the program of this existence compared, when this first status information and second status information not simultaneously; Variation has taken place in the state of the program of confirming to exist in this Auto-Test System; Obtain the change information in this second status information, and obtain the conditional information that this change information takes place, the conditional information of this second status information promptly takes place; According to second status information of the program of this existence and the conditional information of this second state takes place, backup is second program file.When this second status information is identical with first status information, then in second program file, preserve this first status information information identical with second status information.Wherein, the program information of the existence of disposing in the information of the program of this existence and this second configuration file is identical, can comprise: executable program, database and function library etc.
In the process that second program file is backed up; Can obtain second status information of the program of the existence in this Auto-Test System according to content corresponding in this second configuration file, this first status information and second status information are compared; According to result relatively; Obtain the change information in this second status information, and obtain the conditional information that this change information takes place, the conditional information of this second status information promptly takes place; Back up according to this second status information and conditional information that this second status information takes place, thereby obtain this second program file.When first status information and second status information are compared; When this first status information identical with second status information, backup this first status information information identical in this second program file then with second status information, when this first status information and second status information not simultaneously; For example there is not program run in first status information; Scanning sequence brings into operation in this second status information, obtains the occurrence condition that this scanning sequence brings into operation at needs, the conditional information of i.e. second status information generation of this condition; There is new file to occur in the catalogue of the conditional information of this generation for this scanning sequence monitoring; The information that then this scanning sequence is brought into operation, and information that new file occurs is arranged in the catalogue of this scanning sequence monitoring as second program file, and this second program file output is shown.
The time that should be provided with in embodiments of the present invention can for; According to the time point one by one that this automatic testing process is provided with, the time interval between per two adjacent time points can be identical, also can be different; This time interval can be several seconds; Somewhat, several hours or several days etc. can be provided with as required flexibly.The incident of this setting can finish or the operation of a certain catalogue finishes or the like for, some program run.
Above-mentioned in the process that first status information and second status information are compared; This first status information is the status information of the program of the existence in first program file, and this first program file can obtain for the status information of the program that exists being backed up at the beginning of testing automatically in Auto-Test System.
In embodiments of the present invention, the status information to the program that exists in this Auto-Test System backs up, and wherein in concrete backup procedure, the information that status information content in the program information of this existence is changed backs up and shows.So that the tester can search according to the content of this second program file timely, and the state of the program run that can should exist according to this time point of content recovery of this second program file.
Because this Auto-Test System backs up this second program file, the tester can judge whether this Auto-Test System is normal according to this second program file; When judging that this Auto-Test System is undesired; The tester can recover according to this second program file, reverts to the running status of the program of this this Auto-Test System of moment, thereby according to this running status; The concrete root of judging that this Auto-Test System goes wrong, and solve.Therefore this implementation is convenient to the fault that the tester analyzes the automatic testing process appearance, thereby the function of this Auto-Test System is optimized more.And when this test macro significant trouble occurs and can't move; Can adopt first program file and/or second program file of this backup to recover the program of moving of this Auto-Test System, thereby make this Auto-Test System by returning to normal operating condition in the significant trouble.
To the status information of the configuration information relevant in this Auto-Test System, reach the status information of key service assembly in embodiments of the present invention, dispose the 3rd monitoring plan with operating system; The 3rd monitoring plan can be according to the Time Triggered condition; Perhaps trigger conditions when the time that is provided with arrives or the incident of setting when being triggered, is obtained second status information of this operating system of current time; Second status information and first status information of this operating system are compared; When this first status information and second status information not simultaneously, obtain the change information in this second status information, then obtain the conditional information that this change information takes place; According to second status information of operating system and the conditional information of this second state takes place, backup is second operating system file.When this second status information is identical with first status information, then in second operating system file, preserve this first status information information identical with second status information.
In the process that second operating system file is backed up; Can obtain second status information of the configuration information relevant in this Auto-Test System according to content corresponding in the 3rd configuration file, and second status information of key service assembly backs up with operating system; This first status information and second status information are compared; According to result relatively, when this second status information and first status information not simultaneously, obtain the change information in this second status information; And obtain the conditional information that this change information takes place; The conditional information of this second status information promptly takes place, and backs up according to this second status information and conditional information that this second status information takes place, thereby obtains this second operating system file.When first status information and second status information are compared, when this first status information identical with second status information, this first status information of backup information identical in this second operating system file then with second status information; When this first status information and second status information not simultaneously, for example have the configuration information of a certain operating system in first status information, or during certain serviced component; And do not have the configuration information of this operating system in this second status information, or during this serviced component, then need obtain the configuration information of this operating system; Or the conditional information that lacks of this serviced component; For example the condition of this generation is that some programs can not normally be moved, and the conditional information of second state promptly takes place, with the configuration information that lacks in this operating system; Or the information that lacks of serviced component; And the information that can not move of this certain program, backup in second operating system file, and this second operating system file is exported demonstration.
The time that should be provided with in embodiments of the present invention can for; According to the time point one by one that this automatic testing process is provided with, the time interval between per two adjacent time points can be identical, also can be different; This time interval can be several seconds; Somewhat, several hours or several days etc. can be provided with as required flexibly.The incident of this setting can finish or the operation of a certain catalogue finishes or the like for, some program run.
Above-mentioned in the process that first status information and second status information are compared; This first status information is status information, and the dress proposal message of key service assembly of configuration information relevant with operating system in first operating system file, and this first operating system file can obtain for the status information of the configuration information relevant with operating system, the status information that reaches the key service assembly being backed up at the beginning of testing automatically in Auto-Test System.
In embodiments of the present invention, the status information to operation system information in this Auto-Test System backs up, and wherein in concrete backup procedure, the content part of state information change in this operation system information is backed up and shows.So that the tester can search according to the content of this second operating system file, and can be according to the content of the status information of this operation system information of this time point of content recovery of this second operating system file.
Because this Auto-Test System backs up this second operating system file, the tester can judge whether this Auto-Test System is normal according to this second operating system file; When judging that this Auto-Test System is undesired; The tester can recover this second operating system file, reverts to the running status of this this Auto-Test System of moment, thereby according to this running status; The concrete root of judging that this Auto-Test System goes wrong, and solve.Therefore this implementation is convenient to the fault that the tester analyzes the automatic testing process appearance, and can get rid of this fault timely, thereby the function of this Auto-Test System is optimized more.And when this test macro significant trouble occurs and can't move; Can adopt first operating system file and/or second operating system file of this backup to recover configuration information relevant and crucial serviced component in this Auto-Test System, thereby make this Auto-Test System by returning to normal operating condition in the significant trouble with operating system.
When carrying out the recovery of bibliographic structure according to this second working directory structured file in the above-described embodiments; Need at first obtain this first working directory structure; In conjunction with this first working directory structure and this second working directory structure, recover the status information of the bibliographic structure of this moment Auto-Test System.Simultaneously when recovering according to this second program file and second operating system file, process is similar with the process of recovering according to this second working directory structured file, does not here just give unnecessary details one by one.
In embodiment of the invention Auto-Test System; When in the process of testing automatically, significant trouble occurring; For example the master routine of this automatic testing process withdraws from, and when withdrawing from unusually, this Auto-Test System judges that this automatic testing process breaks down; The second working directory structured file according to backup; Second program file and second operating system file recover the corresponding content in this Auto-Test System and restart automatic testing process, and this process of testing automatically can be gone on smoothly.
In packet of preservation that the bibliographic structure status information of filing in embodiments of the present invention, the program state information of existence and operation system state information can be independent,, and be convenient to maintenance management so that appear to the tester.
For the ease of Auto-Test System resuming reproduction test process, in embodiments of the present invention, this Auto-Test System is preserved the data of handling in the automatic testing process; Thereby make this Auto-Test System judge this automatically process of test occur when wrong, can be according to the data message of program state information, operation system state information and the processing of the bibliographic structure status information of this preservation, existence, with this automatically process of test recover; When wherein specifically recovering, owing in the process of filing, all hold temporal information in the file of each file; According to this temporal information; The content of each file is recovered, can be recovered this process of test automatically, therefore; For the ease of recovery, the time that is provided with in each monitoring plan or the incident of setting should be identical as far as possible.
Carry out in the rejuvenation of state of bibliographic structure in the embodiment of the invention; When having the state of bibliographic structure in this automatic testing process, the deletion of the state of the bibliographic structure that this Auto-Test System will exist, the content in this first working directory structured file and the second working directory structured file is adopted in the deletion back; As the status information of being somebody's turn to do bibliographic structure constantly in this automatic testing process; Concrete rejuvenation comprises: Auto-Test System is obtained first status information of bibliographic structure according to this first working directory structured file, and according to the second working directory structured file; Obtain second status information of bibliographic structure; And obtain the conditional information that this second status information takes place, according to this second status information and the conditional information of this second status information takes place, recover running status that Auto-Test System should be constantly.In the process of recovering according to this first working directory structured file and the second working directory structured file; Need recover according to these bibliographic structure characteristics; For example for the distributed work bibliographic structure; All adopt the mode of independent processing for each catalogue wherein, be about to each catalogue, in the process of recovering, each catalogue is independently recovered as a unit independently.
In embodiments of the present invention; Preserve the information different in second status information in this second backup file with first status information; Adopt this mode can save the internal memory of Auto-Test System, Auto-Test System is at first obtained first status information in this first backup file when recovering automatic test run process according to this first, second backup file; And second in the backup file and the different information of this first status information content; Thereby confirm second status information, and, obtain the conditional information that this second status information takes place according to this second backup file; Thereby, recover this automatic test run process according to this second status information and conditional information that this second status information takes place.Certainly this second backup file also can directly be preserved this second status information; And the conditional information that this second status information takes place; And with this second backup file output demonstration, when recovering this automatic testing process according to this second backup file, directly can be according to second status information of preserving in this second backup file; And the conditional information that this second status information takes place, recover this automatic testing process.
In order to guarantee in the Auto-Test System operational process; Can the information of filing be returned in this Auto-Test System; When recovering, need this Auto-Test System is suspended in embodiments of the present invention, make it be in off working state; Start again after recovering makes this Auto-Test System operation.
A kind of Auto-Test System that Fig. 2 provides for the embodiment of the invention, this device comprises:
Acquisition module 21 when being used for monitoring trigger condition that Supervisory Surveillance Program is provided with and being triggered, obtains second status information of each attribute information in this Auto-Test System;
Comparison module 22; Be used for said second status information; Compare with first status information of corresponding attribute information in first backup file, wherein, said first backup file is that the status information backup to each attribute information obtains said Auto-Test System according to configuration file;
Generate output module 23, be used for generating second backup file, and export said second backup file based on result relatively.
Said generation output module 23 comprises:
First generation unit 231; Be used for confirming said first status information and second status information not simultaneously; Obtain the conditional information that said second status information takes place, according to said second status information and the conditional information of said second status information takes place, generate second backup file;
Second generation unit 232 when being used for confirming that said first status information is identical with second status information, generates second backup file according to said second status information;
Output unit 233 is used for second backup file is exported.
Said device also comprises:
Recover module 24, when being used for confirming that automatic testing process breaks down,, recover the state of each the corresponding attribute information in the said Auto-Test System automatic testing process according to said first backup file and/or second backup file.
The embodiment of the invention provides a kind of automatic test approach and system, and this method comprises: Auto-Test System obtains second status information of each attribute information in this Auto-Test System according to the monitoring plan that is provided with; With this second status information, compare with first status information of corresponding attribute information in first backup file of preserving, generate second backup file according to result relatively, and said second backup file is exported.The embodiment of the invention is through being provided with monitoring plan; This Auto-Test System is backed up the status information of each attribute information in this test process; Confirm the change information of each attribute information status information, and with this change information output, thereby make the tester judge whether this automatic testing process breaks down based on the information of this output; And when this automatic testing process breaks down, can recover this test process based on this second status information.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (7)

1. an automatic test approach is characterized in that, comprising:
Auto-Test System monitors the trigger condition that is provided with in the monitoring plan when being triggered, and obtains second status information of each attribute information in this Auto-Test System;
With said second status information; Compare with first status information of corresponding attribute information in first backup file of preserving; Wherein, said first backup file is that the status information backup to each attribute information obtains said Auto-Test System based on configuration file;
Generate second backup file according to result relatively, and export said second backup file;
Wherein, said result according to relatively generates second backup file and comprises:
When said first status information and second status information not simultaneously, obtain the conditional information that said second status information takes place, according to said second status information and the conditional information of said second status information takes place, generate second backup file;
When said first status information is identical with second status information, generate second backup file according to said second status information.
2. the method for claim 1 is characterized in that, each attribute information comprises in the said Auto-Test System:
The bibliographic structure information of Auto-Test System, the program information that exists in the Auto-Test System and the configuration information of Auto-Test System, serviced component information.
3. method as claimed in claim 2 is characterized in that, the program that exists in the said Auto-Test System comprises:
Executable program, database and Runtime Library.
4. the method for claim 1 is characterized in that, said method also comprises:
Said Auto-Test System according to said first backup file and/or second backup file, is recovered the state of each the corresponding attribute information in the said Auto-Test System automatic testing process when judging that automatic testing process breaks down.
5. method as claimed in claim 4 is characterized in that, before the state of each the corresponding attribute information in the said Auto-Test System automatic testing process of said recovery, suspends this Auto-Test System.
6. an Auto-Test System is characterized in that, said system comprises:
Acquisition module when being used for monitoring trigger condition that Supervisory Surveillance Program is provided with and being triggered, obtains second status information of each attribute information in this Auto-Test System;
Comparison module; Be used for said second status information; Compare with first status information of corresponding attribute information in first backup file, wherein, said first backup file is that the status information backup to each attribute information obtains said Auto-Test System according to configuration file;
Generate first generation unit of output module; Be used for confirming said first status information and second status information not simultaneously; Obtain the conditional information that said second status information takes place, based on said second status information and the conditional information of said second status information takes place, generate second backup file;
Generate second generation unit of output module, when being used for confirming that said first status information is identical with second status information, generate second backup file according to said second status information;
Generate the output unit of output module, be used for second backup file is exported.
7. system as claimed in claim 6 is characterized in that, said device also comprises:
Recover module, when being used for confirming that automatic testing process breaks down,, recover the state of each the corresponding attribute information in the said Auto-Test System automatic testing process according to said first backup file and/or second backup file.
CN 200910092852 2009-09-09 2009-09-09 Automatic test method and system Expired - Fee Related CN102023033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910092852 CN102023033B (en) 2009-09-09 2009-09-09 Automatic test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910092852 CN102023033B (en) 2009-09-09 2009-09-09 Automatic test method and system

Publications (2)

Publication Number Publication Date
CN102023033A CN102023033A (en) 2011-04-20
CN102023033B true CN102023033B (en) 2012-12-05

Family

ID=43864603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910092852 Expired - Fee Related CN102023033B (en) 2009-09-09 2009-09-09 Automatic test method and system

Country Status (1)

Country Link
CN (1) CN102023033B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198004B (en) * 2013-04-25 2015-11-11 北京搜狐新媒体信息技术有限公司 A kind of information processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101033989A (en) * 2006-03-10 2007-09-12 罗瑞真 Environmental monitoring device and method
JP4110731B2 (en) * 2000-11-09 2008-07-02 コニカミノルタビジネステクノロジーズ株式会社 Movie processing apparatus, movie processing method, and recording medium
CN100458729C (en) * 2006-09-29 2009-02-04 上海科泰世纪科技有限公司 Automatic operating method for interface test in embedded operating system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4110731B2 (en) * 2000-11-09 2008-07-02 コニカミノルタビジネステクノロジーズ株式会社 Movie processing apparatus, movie processing method, and recording medium
CN101033989A (en) * 2006-03-10 2007-09-12 罗瑞真 Environmental monitoring device and method
CN100458729C (en) * 2006-09-29 2009-02-04 上海科泰世纪科技有限公司 Automatic operating method for interface test in embedded operating system

Also Published As

Publication number Publication date
CN102023033A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
US10747591B2 (en) Endpoint process state collector
CN109144789B (en) Method, device and system for restarting OSD
CN104268061B (en) A kind of storage state monitoring method suitable for virtual machine
US9189348B2 (en) High availability database management system and database management method using same
CN107688531A (en) Geo-database integration method of testing, device, computer equipment and storage medium
CN110008129B (en) Reliability test method, device and equipment for storage timing snapshot
WO2013102812A1 (en) A fault tolerant system in a loosely-coupled cluster environment
CN105354102B (en) A kind of method and apparatus of file system maintenance and reparation
CN104601668A (en) State management based data push method, device and system
CN110471909A (en) A kind of data base management method, device, server and storage medium
CN111339118A (en) Kubernetes-based resource change history recording method and device
CN106649000A (en) Fault recovery method for real-time processing engine, and corresponding server
CN114328009A (en) Unified disaster recovery backup method and device for heterogeneous database based on virtualization and snapshot
CN102023033B (en) Automatic test method and system
CN108011783B (en) Backup method and backup system of diagnosis server
CN113726553A (en) Node fault recovery method and device, electronic equipment and readable storage medium
CN105025179A (en) Method and system for monitoring service agents of call center
CN109104314B (en) Method and device for modifying log configuration file
CN105373549A (en) Data migration method and device and data node server
US20040064784A1 (en) Document management system, method and computer program
CN115080309A (en) Data backup system, method, storage medium, and electronic device
CN104346233A (en) Fault recovery method and device for computer system
CN110109934B (en) Database management method, device, server and storage medium
CN102693171B (en) A kind of restoration methods of Message Entry System and system
CN113127435A (en) Intelligent synchronization method and system for files of main and standby systems

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121205

Termination date: 20190909