CN107577597A - Installation kit automated testing method, device, equipment and storage medium - Google Patents

Installation kit automated testing method, device, equipment and storage medium Download PDF

Info

Publication number
CN107577597A
CN107577597A CN201710684411.0A CN201710684411A CN107577597A CN 107577597 A CN107577597 A CN 107577597A CN 201710684411 A CN201710684411 A CN 201710684411A CN 107577597 A CN107577597 A CN 107577597A
Authority
CN
China
Prior art keywords
installation kit
different information
test
system snapshot
snapshot
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.)
Granted
Application number
CN201710684411.0A
Other languages
Chinese (zh)
Other versions
CN107577597B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710684411.0A priority Critical patent/CN107577597B/en
Publication of CN107577597A publication Critical patent/CN107577597A/en
Application granted granted Critical
Publication of CN107577597B publication Critical patent/CN107577597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of installation kit automated testing method, device, equipment and storage medium, wherein method comprises the following steps:Obtain the initial system snapshot of installation kit and current system to be tested;Compare initial system snapshot and run the final system snapshot obtained after installation kit to be tested, obtain both different informations;Different information is compared with the different information in default system snapshot contrastive test template, obtains comparison result;Meet the event of anticipated conditions in response to comparison result, judge that installation kit to be measured passes through test.Above-mentioned installation kit automated testing method, using snapping technique, compare the front and rear system snapshot of installation kit operation and obtain different information, different information and system snapshot contrastive test template are contrasted, it can quickly confirm whether installation kit can pass through test, and complete and comprehensive test (such as the test such as UI, file system, registration table is carried out to installation kit to be measured) can be carried out to installation kit to be measured, coverage is big.

Description

Installation kit automated testing method, device, equipment and storage medium
Technical field
The present invention relates to program installation kit detection field, more particularly to a kind of installation kit automated testing method, device, Computer equipment and storage medium.
Background technology
With the development of Internet technology, the application program species installed in terminal is more and more, and application program is generally all It is to be distributed in a manner of installation kit.Installation kit is the transmitting carrier of software product, particularly important to its quality testing.
At present, conventional installation packet inspection method is broadly divided into artificial detection and conventional automated detection.Artificial detection side Method mainly performs installation procedure by running installation kit, then tester's inspection system file, registration table, fire wall one by one Whether meet expected change etc. information.Conventional automated detection method mainly by writing script, utilizes computer program Come the information such as system file, registration table, fire wall after automatic detection installation kit is run, system text after analysis application program installation The change of the information such as part, registration table, fire wall is so as to verifying the quality of installation kit.
Artificial detection method takes that long, testing efficiency is low, easy occurs slipping and mistake.Conventional automated detection side Cycle method script development time is long, test coverage is limited.Therefore, either detection or conventional automated detection manually, The problem of time-consuming, test coverage is small all be present.
The content of the invention
Based on this, it is necessary to the problem of time-consuming, test coverage is small for existing method of testing, there is provided one kind installation Bag automated testing method, device, equipment and storage medium.
One embodiment of the invention provides a kind of installation kit automated testing method, comprises the following steps:
Obtain the initial system snapshot of installation kit and current system to be tested;
Compare the initial system snapshot and run the final system snapshot obtained after the installation kit to be tested, obtain Both different informations;
The different information is compared with the different information in default system snapshot contrastive test template, obtains ratio To result;
Meet the event of preparatory condition in response to the comparison result, judge that the installation kit to be measured passes through test.
One embodiment of the invention provides a kind of installation kit automatization test system, including:
Data obtaining module, for obtaining the initial system snapshot of installation kit and current system to be tested;
Different information obtains module, for being obtained after comparing the initial system snapshot and the operation installation kit to be tested The final system snapshot obtained, obtains both different informations;
Comparison result acquisition module, for by the difference in the different information and default system snapshot contrastive test template Different information is compared, and obtains comparison result;
Determining module is tested, for meeting the event of preparatory condition in response to the comparison result, judges the peace to be measured Dress bag passes through test.
One embodiment of the invention additionally provides a kind of equipment, including memory, processor and storage are on a memory simultaneously The computer program that can be run on a processor, following steps are realized during the computing device described program:
Obtain the initial system snapshot of installation kit and current system to be tested;
Compare the initial system snapshot and run the final system snapshot obtained after the installation kit to be tested, obtain Both different informations;
The different information is compared with the different information in default system snapshot contrastive test template, obtains ratio To result;
Meet the event of anticipated conditions in response to the comparison result, judge that the installation kit to be measured passes through test.
One embodiment of the invention additionally provides a kind of storage medium, is stored thereon with computer program, and the program is located Reason device realizes following steps when performing:
Obtain the initial system snapshot of installation kit and current system to be tested;
Compare the initial system snapshot and run the final system snapshot obtained after the installation kit to be tested, obtain Both different informations;
The different information is compared with the different information in default system snapshot contrastive test template, obtains ratio To result;
Meet the event of anticipated conditions in response to the comparison result, judge that the installation kit to be measured passes through test.
The embodiment of the present invention uses snapping technique, shoots the preceding system snapshot with after installation of installation kit installation to be measured respectively, And the system snapshot before being installed to installation kit to be measured and after installation contrasts, to system during can rapidly installation kit be run Caused modification includes and carrys out and be integrated into different information, then carries out different information and system snapshot contrastive test template pair Than, it can quickly confirm whether installation kit by test, can effectively improve the speed of installation kit test, and can be to peace to be measured Dress bag carries out complete and comprehensive test (such as the test such as UI, file system, registration table is carried out to installation kit to be measured), coverage Greatly.Snapping technique is used in addition, obtained different information is very accurate, considerably increases test ground accuracy.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Fig. 1 is the schematic flow sheet of the installation kit automated testing method of the present invention in one embodiment;
Fig. 2 is the schematic flow sheet of the installation kit automated testing method of the present invention in one of the embodiments;
Fig. 3 is the schematic flow sheet of the installation kit automated testing method of the present invention in one of the embodiments;
Fig. 4 is the schematic flow sheet of the installation kit automated testing method of the present invention in one of the embodiments;
Fig. 5 is the schematic flow sheet of the installation kit automated testing method of the present invention in one of the embodiments;
Fig. 6 is the structural representation of the installation kit automatic test device of the present invention in one embodiment;
Fig. 7 is the structural representation of the installation kit automatic test device of the present invention in one embodiment;
Fig. 8 is the structural representation of the equipment of the present invention in one embodiment.
Embodiment
Present disclosure is described in further detail below in conjunction with preferred embodiment and accompanying drawing.Obviously, hereafter institute The embodiment of description is only used for explaining the present invention, rather than limitation of the invention.It is general based on the embodiment in the present invention, this area The every other embodiment that logical technical staff is obtained under the premise of creative work is not made, belong to what the present invention protected Scope.It should be noted that for the ease of describing, part related to the present invention rather than full content are illustrate only in accompanying drawing.
Fig. 1 is the schematic flow sheet of the installation kit automated testing method of the present invention in one embodiment, such as Fig. 1 institutes Show, the installation kit automated testing method in the embodiment of the present invention, comprise the following steps:
Step S110, obtain the initial system snapshot of installation kit and current system to be tested.
Specifically, snapshot (Snapshot) refers to mirror image of some data set in a certain particular moment, is that one kind is based on The data copy technology at time point, therefore also referred to as copy immediately, it is a complete available copy of this data set.Deposit It is a completely available copy on specifying data acquisition system to store up definition of the networking industry association to snapshot, and the copy includes corresponding Image of the data at some time point (time point that copy starts).Snapshot can be a copy of the data represented by it (duplicate) or data a duplicate (replicate).Snapshot is able to record out the number at some moment , can be by snapshot by data recovery if some failures occur afterwards need data recovery it is believed that cease and preserved To time dotted state before, all data messages at certain time point can be preserved and backed up using snapping technique, do not influence industry The normal operation of business.In the present embodiment, before installation kit test, computer system is shot using snapping technique, Obtain initial system snapshot, system mode before record installation kit operation, wherein system mode include internal system fileinfo, Registry information, firewall information etc..In addition, installation kit to be measured can be random procedure installation kit, such as chat tool installation Bag, office software installation kit and mapping software installation kit etc..
Step S120, compare initial system snapshot and run the final system snapshot obtained after installation kit to be tested, obtain Obtain both different informations.
Specifically, run and installation kit to be measured is installed, after installation kit installation, system mode can change, these changes Change be due to operation installation kit and it is caused, therefore, in the present embodiment, installation kit to be measured installation after, utilize snapping technique Computer system is shot, obtains final system snapshot.In the present embodiment, different information is due to operation installation to be measured Caused by bag, including document change information, registration table modification information, firewall rule modification information, system service additions and deletions are converted to Breath etc..
Step S130, different information is compared with the different information in default system snapshot contrastive test template, Obtain comparison result.
In the present embodiment, system snapshot contrastive test template mainly stores some different informations, and these different informations are Installation kit to be measured is in some system files caused by installation and operation.Specifically, in one embodiment, it is being for the first time to certain When individual installation kit is tested, the front and rear system snapshot of installation kit operation is recorded respectively, before and after then the installation kit is run System snapshot contrasted to obtain different information, then manual analysis is carried out to these different informations, filters out and meet expected change Different information more.It is last that a system snapshot contrastive test is generated according to the different information for meeting expected change screened Template.When testing congener installation kit in the later stage, it is possible to directly using this masterplate as standard, determine whether to lead to automatically Test is crossed, fast and easy determines test result.In addition, by the different information in different information and system snapshot contrastive test template Contrasted, obtain comparison result.
Step S140, the event of anticipated conditions is met in response to comparison result, judge that installation kit to be measured passes through test.
In the present embodiment, the event of anticipated conditions is met in response to comparison result, i.e., meets expected bar in comparison result During part, judge that installation kit to be measured passes through test.
In one of the embodiments, comparison result meets the event of anticipated conditions, including:
In response to the different information event consistent with the different information in system snapshot contrastive test template, judge to compare knot Fruit meets anticipated conditions.
Specifically, when different information is consistent with the different information in system snapshot contrastive test template, difference letter is judged The result that breath compares with the different information in system snapshot contrastive test template meets anticipated conditions.I.e. anticipated conditions can be poor Different information is completely the same with the different information in system snapshot contrastive test template.When the different information of installation kit to be measured is with being When different information in snapshot contrastive test template of uniting is completely the same, judge that installation kit passes through test.
As an alternative embodiment, tester can compare all or portion in masterplate to system snapshot manually Divide different information to carry out one by one test grades to set, wherein test grades are divided into two kinds:" mistake " and " warning "." mistake " rank It is bigger to represent that the different information influences on the quality of installation kit to be measured, is that must match the information that snapshot compares masterplate completely; It is smaller that " warning " rank represents that the different information influences on the quality of installation kit to be measured, it is not necessary to the letter of masterplate is compared with snapshot Breath matching completely.Tested for the different information of " mistake " rank, once different information caused by installation kit to be measured and system are fast According to the different information Incomplete matching in contrastive test template, then it is judged to not meeting expection, that is, tests and do not pass through.For " alert Accuse " test of the different information of rank, even if there is unmatched situation, it is also contemplated that test result be substantially conform to it is contemplated that It is not determined as test not by but being determined as " essentially by ", and export warning message to tester.It is if all " wrong The test of mistake " and " warning " rank is all by being then determined as that test result meets complete expection, test result is " completely logical Cross ".Using aforesaid way, tester can be facilitated quickly to confirm the problem of installation kit to be measured is present according to test result, and The order of severity of decision problem.
For example, in an exemplary application scene, can be in desktop and start menu column after installation kit installation to be measured Middle establishment shortcut.From the perspective of user, the shortcut click frequency on desktop will be significantly larger than in start menu Shortcut, so if desktop shortcuts lack, Consumer's Experience can be had a strong impact on, and shortcut in start menu column Missing, though it is that defect does not affect the whole.In consideration of it, tester is when configuration snapshot compares masterplate, generation desktop is fast square Test item of the formula as " mistake " rank, and the test using generation start menu shortcut as " warning " rank .
If the 1, desktop shortcuts and start menu shortcut properly generate, judge " passing through completely ", peace to be measured Dress bag can be issued;
If the 2, desktop shortcuts normally generate, but shortcut does not properly generate in start menu column, judges " base Originally pass through ", installation kit to be measured can be issued, but export warning message to tester;
If the 3, desktop shortcuts do not properly generate, but shortcut normally generates in start menu column, judges " to survey Examination does not pass through ", installation kit to be measured can not be issued, and output error message requires that developer remodifies and treated to tester Survey installation kit;
If the 4, desktop shortcuts and start menu shortcut do not properly generate, installation kit can not be issued, defeated False information malfunction to tester, and requires that developer remodifies installation kit to be tested.
The embodiment of the present invention uses snapping technique, shoots the preceding system snapshot with after installation of installation kit installation to be measured respectively, And the system snapshot before being installed to installation kit to be measured and after installation contrasts, to system during can rapidly installation kit be run Caused modification includes and carrys out and be integrated into different information, then carries out different information and system snapshot contrastive test template pair Than, it can quickly confirm whether installation kit by test, can effectively improve the speed of installation kit test, and can be to peace to be measured Dress bag carries out complete and comprehensive test (such as the test such as UI, file system, registration table is carried out to installation kit to be measured), coverage Greatly.Snapping technique is used in addition, obtained different information is very accurate, considerably increases test ground accuracy.
In one of the embodiments, as shown in Fig. 2 the present invention installation kit automated testing method, in addition to:
Step S150, the event of anticipated conditions is unsatisfactory in response to comparison result, judges installation kit to be measured not by testing, And export differences information inconsistent with the different information in system snapshot contrastive test template in different information.
Specifically, when different information and the different information of " mistake " rank in system snapshot contrastive test template are endless When complete consistent, judge installation kit to be measured not by test, and by different information with the difference in system snapshot contrastive test template The inconsistent differences output of different information.It is easy to tester to check such differences information, the weight beneficial to the later stage to installation kit Newly developed or modification.
In one of the embodiments, as shown in figure 3, also including the establishment step of system snapshot contrastive test template, its In, the establishment step of system snapshot contrastive test template includes:
Step S160, the event of expected alteration command is met in response to receiving different information, is established according to different information System snapshot contrastive test template.
Specifically, meet that expected change refers to run the more change that some installation kit to be measured is bound to occur.For example, peace to be measured Dress bag is written with a log.txt file to C disks, shone into soon by initial system snapshot and final system in installation process Row is compared, and log.txt files can be found in the different information of C disks, then the different information log.txt files in C disks are exactly It is expected that the different information of change.Typically when testing certain installation kit to be measured first, compared in system and in the absence of system snapshot Test template, different information can be analyzed by manual analysis method, when all different informations all meet expected change, behaviour Command adapted thereto (i.e. expected alteration command) can be sent to computer by making personnel, and computer system (responds when receiving instruction In the event for receiving the expected alteration command of different information satisfaction) system can be established according to the different information for meeting expected change Snapshot contrastive test template, it is easy to test the installation kit of same type again.Wherein send the mode of instruction can have it is a variety of, such as Computer issues the user with the selection the information whether different information meets expected change when exporting different information, when user selects When selecting "Yes", after computer receives the instruction of "Yes", different information is created as system snapshot contrastive test template.
It should be understood that the mode of above-mentioned transmission instruction can have a variety of, can set according to demand, specifically herein not It is construed as limiting.
In one of the embodiments, as shown in figure 4, also including:
Step S161, the event of expected alteration command is met in response to not receiving different information, obtains operating personnel's hand The different information of the expected change of satisfaction of dynamic configuration, and the system snapshot ratio is established according to the different information for meeting expected change To test template.
Specifically, after the different information refers to installation kit operation installation to be measured, some files caused by system.Do not connecing When the different information of receipts all meets to be expected alteration command, illustrate that different information does not meet expected change all, i.e., at least one Different information is unsatisfactory for being expected change.In this case, operating personnel can analyze installation kit to be measured, analyze peace to be measured one by one Caused different information after dress bag installation and operation, and installation kit self character to be measured is combined, manual configuration (selecting) meets pre- The different information of phase change, and system snapshot contrastive test template is established according to the different information for meeting expected change.Utilize hand Dynamic configuration meets that the different information of expected change establishes system snapshot contrastive test template, easy to operate.In addition, it is fast to establish system (or same) installation kit of the same race is tested according to the later stage is also allowed for after contrastive test template.
In one of the embodiments, as shown in figure 3, after the step of installation kit to be measured passes through test is judged, also wrap Include:
Step S170, according to initial system snapshot recovery system.
In one of the embodiments, as shown in figure 3, judging installation kit to be measured not by test, and difference letter is exported In breath the step of the differences inconsistent with the different information in system snapshot contrastive test template after, in addition to:
Step S170, according to initial system snapshot recovery system.
In one of the embodiments, as shown in figure 3, after the step of establishing system snapshot contrastive test template, also Including:
Step S170, according to initial system snapshot recovery system.
Specifically, after the completion of installation kit to be measured test, it is corresponding to recover the initial system snapshot according to initial system snapshot System, i.e., by system recover to test installation kit before state.So installation kit to be measured on the one hand can be reduced to system Destructive change, on the other hand also ensure that the uniformity of system environments when repeatedly test starts.
For the ease of understanding this programme, a specific embodiment is provided, as shown in figure 5, installation kit automated testing method, Comprise the following steps that:
Step 510, camera system snapshot A, the system mode before installation kit to be measured (such as system file, registration will be run Table, service etc.) shoot and preserve by using snapping technique, system snapshot A is designated as, follow-up snapshot compares and system reducing will Based on system snapshot A.In actual mechanical process, due to the particularity of installation kit test itself and based on to shooting snapshot Energy is considered, and in camera system snapshot, tester can be set in snapshot testing tool excludes item, and excluding item will not go out In different information list caused by present snapshot comparison.
Step 511, run installation kit to be measured and perform installation, installation kit to be measured will perform change to system, produce one A little system variations, including document change information, registration table modification information, firewall rule modification information, system service additions and deletions change Information etc..
Step 512, camera system snapshot B, in actual mechanical process, during camera system snapshot B, coverage and bat Parameter setting during taking the photograph is identical with camera system snapshot A.Camera system snapshot B is to be compared with system snapshot A.
Step 513, Compare System snapshot A and system snapshot B, the differences between both, generation differences row are found out Table.Specifically, by carrying out parsing comparison to system snapshot A and system snapshot B, differences therein are included to come.Due to The shooting time node of the two snapshots of system snapshot A and system snapshot B respectively installation kit to be measured execution before and after, therefore, absolutely Most differences be as installation kit in itself caused by, only fraction of difference be operating system in itself or other software exercises It is caused.In actual mechanical process, in order to exclude some distracters, tester when using snapshot contrastive test instrument, Some common distracters (such as antivirus software daily record) can be added in Exclude Lists, the project being excluded will not be shown Show in differences list.
Step 514, judgement is existing standardized system snapshot contrastive test templateIf so, operating procedure 515;If it is not, Operating procedure 518.
Step 515, differences list is compared with standardized system snapshot contrastive test template.
Step 516, it is pre- to judge whether differences list meets with standardized system snapshot contrastive test template matching result Phase conditionIf so, operating procedure 517;If it is not, operating procedure 524.
Step 517, installation kit passes through test, operating procedure 524.
Step 518, manual analysis differences list.Specifically, when typically testing for the first time some installation kit, The masterplate of one standardization of generation.Tester is needed in the differences list generated first, selects some to become Differences more, some unnecessary distracters are excluded, and amended differences list is saved as into standardized system snapshot ratio To testing masterplate.When running installation kit test again from now on, testing tool will be automatically using the masterplate as change standard, so as to judge Test whether to pass through.
Step 519, judge whether the differences information in differences list meets expected changeIf so, operating procedure 520;If it is not, operating procedure 521.
Step 520, standardized system snapshot contrastive test template, operating procedure 525 are generated.
Step 521, judge whether to remodify installation kit;If so, operating procedure 522;If it is not, operating procedure 523.
Step 522, installation kit is remodified, then operating procedure 510.
Step 523, manual configuration meets the differences of anticipated conditions, operating procedure 520.
Step 524, test is not by listing the differences for not meeting anticipated conditions, operating procedure 525.Specifically, surveying In examination, testing tool automatically can be compared the differences list got and standardized system snapshot contrastive test masterplate It is right.If some change items do not have the occurrence that produces or change incorrect or unnecessary change item occur, will carry Show test not by and the change for not meeting anticipated conditions being reported into tester to further confirm that.
Step 525, according to system snapshot A recovery systems.Specifically, every time test after the completion of, no matter test whether by, The testing tool compared based on system snapshot all can be according to system snapshot A recovery systems.By this recovery ways, will can survey The state before environment restoration performs to installation kit is tried, on the one hand can so ensure that, when testing next time, test environment will be with this Secondary test environment is consistent.On the other hand, installation kit to be measured can be repaired to the issuable destruction of system, if installation kit to be measured Some destructive changes (as mistakenly deleted some registry entries) are performed, can also quickly be obtained in this way Repair.
In one of the embodiments, the installation kit automated detection method and Jenkins that will be compared based on system snapshot With reference to.Jenkins is a kind of continuous integrating instrument based on Java exploitations, and for monitoring the work for continuing to repeat, function includes: The work that lasting software version issue/test event and monitoring external call performs.Specifically, installation kit is automated and examined Survey a link as Jenkins continuous integratings.After tester, which generates standardized system snapshot, compares masterplate, Jenkins can after installation kit is successfully built every time automatic calling system snapshot contrastive test instrument interface.System snapshot ratio To testing tool after Jenkins request is received, associated documents can be copied in special test virtual machine automatically, with Snapshot contrastive test is performed afterwards.If snapshot contrastive test is by the way that can return to error code can pass through to Jenkins, Jenkins The modes such as mail inform that developer Jenkins packings flow does not pass through.
After system snapshot contrastive test instrument integrates with Jenkins, quality control and exception to installation kit are fed back on all Rise and arrived new height.
According to the installation kit automated testing method of the invention described above, it is automatic that the embodiment of the present invention also provides a kind of installation kit Change test device, below in conjunction with the accompanying drawings and preferred embodiment is carried out specifically to the installation kit automatic test device of the present invention It is bright.
Fig. 6 is the structural representation of the installation kit automatic test device of the present invention in one embodiment.Such as Fig. 6 institutes Show, the installation kit automatic test device in the embodiment, including:
Data obtaining module 10, for obtaining the initial system snapshot of installation kit and current system to be tested.
Different information obtains module 20, for being obtained most after comparing initial system snapshot and operation installation kit to be tested Whole system snapshot, obtain both different informations.
Comparison result acquisition module 30, for by the difference in different information and default system snapshot contrastive test template Information is compared, and obtains comparison result.
Determining module 40 is tested, for meeting the event of preparatory condition in response to comparison result, judges that installation kit to be measured leads to Cross test.
In one of the embodiments, shown in reference picture 7, in addition to:Message output module:
Test determining module 40 is used for the event that preparatory condition is unsatisfactory in response to comparison result, judges installation kit to be measured not Pass through test.
Message output module 50, for being unsatisfactory for the event of preparatory condition in response to comparison result, export in different information The inconsistent differences information with the different information in system snapshot contrastive test template.
In one of the embodiments, shown in reference picture 7, in addition to:
Anticipated conditions determination module 60, for believing in response to the difference in different information and system snapshot contrastive test template Consistent event is ceased, judges that comparison result meets anticipated conditions.
In one of the embodiments, shown in reference picture 7, in addition to:
Contrastive test template establishes module 70, for meeting the thing of expected alteration command in response to receiving different information Part, system snapshot contrastive test template is established according to different information.
In one of the embodiments, shown in reference picture 7, contrastive test template is established module 70 and is additionally operable in response to not connecing The event that different information meets expected alteration command is received, obtains the difference letter of the expected change of satisfaction of operating personnel's manual configuration Breath, and system snapshot contrastive test template is established according to the different information for meeting expected change.
In one of the embodiments, shown in reference picture 7, in addition to:
System recovery module 80, after judging installation kit to be measured by test, it is first to recover this according to initial system snapshot System corresponding to beginning system snapshot.
In one of the embodiments, shown in reference picture 7, system recovery module 80 is additionally operable to judging installation kit to be measured not By test, and after exporting differences inconsistent with the different information in system snapshot contrastive test template in different information, According to initial system snapshot recovery system.
In one of the embodiments, shown in reference picture 7, system recovery module 80 is additionally operable to putting forward condition in advance according to satisfaction Different information establish system snapshot contrastive test template after, according to initial system snapshot recovery system.
Above-mentioned installation kit automatization test system can perform the installation kit automatic test side that the embodiment of the present invention is provided Method, possess the corresponding functional module of execution method and beneficial effect.As for the processing method performed by wherein each functional module, Such as data obtaining module 10, contrastive test template establish module 70, system recovery module 80 etc., above method implementation can refer to Description in example, is no longer repeated herein.
According to the installation kit automated testing method and system of the invention described above, the present invention also provides a kind of computer and set Standby, below in conjunction with the accompanying drawings and the computer equipment of the present invention is described in detail for preferred embodiment.
Fig. 8 is the structural representation of the equipment of the present invention in one embodiment.As shown in figure 8, setting in the embodiment Standby 800, including memory 801, processor 802 and storage are on a memory and the computer program that can run on a processor, Wherein computing device program when realize following steps:
Obtain the initial system snapshot of installation kit and current system to be tested;
Compare initial system snapshot and run the final system snapshot obtained after installation kit to be tested, obtain both differences Different information;
Different information is compared with the different information in default system snapshot contrastive test template, obtains and compares knot Fruit;
Meet the event of anticipated conditions in response to comparison result, judge that installation kit to be measured passes through test.
In one of the embodiments, following steps can also be realized when processor holds 802 line program:
The event of anticipated conditions is unsatisfactory in response to comparison result, judges installation kit to be measured not by testing, and output difference The differences information inconsistent with the different information in system snapshot contrastive test template in different information.
In one of the embodiments, following steps can also be realized during 802 configuration processor of processor:
In response to the different information event consistent with the different information in the system snapshot contrastive test template, ratio is judged Anticipated conditions is met to result.
In one of the embodiments, following steps can also be realized during 802 configuration processor of processor:
Meet the event of expected alteration command in response to receiving different information, it is fast that the system is established according to different information According to contrastive test template.
In one of the embodiments, following steps can also be realized during 802 configuration processor of processor:
Meet the event of expected alteration command in response to not receiving different information, obtain expiring for operating personnel's manual configuration The different information of the expected change of foot, and system snapshot contrastive test template is established according to the different information for meeting expected change.
In one of the embodiments, following steps can also be realized during 802 configuration processor of processor:
After the step of installation kit to be measured passes through test is judged, recover the initial system snapshot according to initial system snapshot Corresponding system.
In one of the embodiments, following steps can also be realized during 802 configuration processor of processor:
Judging installation kit to be measured not by test, and export in different information with system snapshot contrastive test template After the step of different information inconsistent differences, recover according to initial system snapshot be corresponding to the initial system snapshot System.
In one of the embodiments, following steps can also be realized during 802 configuration processor of processor:
After the step of establishing system snapshot contrastive test template, it is fast to recover the initial system according to initial system snapshot According to corresponding system.
Processor 802 can perform the installation kit automated testing method that the embodiment of the present invention is provided in the said equipment 800, Possesses the corresponding beneficial effect of execution method.The description in above method embodiment is can refer to, is no longer repeated herein.
According to the installation kit automated testing method, system and equipment of the invention described above, the present invention also provides a kind of storage Medium, below in conjunction with the accompanying drawings and the storage medium of the present invention is described in detail for preferred embodiment.
Computer-readable recording medium in the embodiment of the present invention, is stored thereon with computer program, and the program is processed Device realizes following steps when performing:
Obtain the initial system snapshot of installation kit and current system to be tested;
Compare initial system snapshot and run the final system snapshot obtained after installation kit to be tested, obtain both differences Different information;
Different information is compared with the different information in default system snapshot contrastive test template, obtains and compares knot Fruit;
Meet the event of anticipated conditions in response to comparison result, judge that installation kit to be measured passes through test.
In one of the embodiments, following steps can also be realized when the program is executed by processor:
The event of anticipated conditions is unsatisfactory in response to comparison result, judges installation kit to be measured not by testing, and output difference The differences information inconsistent with the different information in system snapshot contrastive test template in different information.
In one of the embodiments, following steps can also be realized when the program is executed by processor:
In response to the different information event consistent with the different information in system snapshot contrastive test template, judge to compare knot Fruit meets anticipated conditions.
In one of the embodiments, following steps can also be realized when the program is executed by processor:
Meet the event of expected alteration command in response to receiving different information, system snapshot ratio is established according to different information To test template.
In one of the embodiments, following steps can also be realized when the program is executed by processor:
Meet the event of expected alteration command in response to not receiving different information, obtain expiring for operating personnel's manual configuration The different information of the expected change of foot, and system snapshot contrastive test template is established according to the different information for meeting expected change.
In one of the embodiments, following steps can also be realized when the program is executed by processor:
After the step of installation kit to be measured passes through test is judged, recover the initial system snapshot according to initial system snapshot Corresponding system.
In one of the embodiments, following steps can also be realized when the program is executed by processor:
Judging installation kit to be measured not by test, and export in different information with system snapshot contrastive test template After the step of different information inconsistent differences, recover according to initial system snapshot be corresponding to the initial system snapshot System.
In one of the embodiments, following steps can also be realized when the program is executed by processor:
After the step of establishing system snapshot contrastive test template, it is fast to recover the initial system according to initial system snapshot According to corresponding system.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with Instruct the hardware of correlation to complete by computer program, program can be stored in a computer read/write memory medium, The program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, storage medium can be magnetic disc, CD, Read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc. ".
The program that above-mentioned storage medium is used to store the installation kit automatic test approach that the embodiment of the present invention is provided (refers to Make), wherein the installation kit automated testing method that the embodiment of the present invention is provided can be performed by performing the program, possess the side of execution The corresponding beneficial effect of method.The description in above method embodiment is can refer to, is no longer repeated herein.
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, lance is not present in the combination of these technical characteristics Shield, all it is considered to be the scope of this specification record.
Above example only expresses the several embodiments of the present invention, and its description is more specific and detailed, but can not Therefore it is construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, On the premise of not departing from present inventive concept, various modifications and improvements can be made, these belong to protection scope of the present invention. Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of installation kit automated testing method, it is characterised in that comprise the following steps:
Obtain the initial system snapshot of installation kit and current system to be tested;
Compare the initial system snapshot and run the final system snapshot obtained after the installation kit to be tested, obtain both Different information;
The different information is compared with the different information in default system snapshot contrastive test template, obtains and compares knot Fruit;
Meet the event of anticipated conditions in response to the comparison result, judge that the installation kit to be measured passes through test.
2. installation kit automated testing method according to claim 1, it is characterised in that also include:
The event of anticipated conditions is unsatisfactory in response to the comparison result, judges the installation kit to be measured not by testing, and defeated Go out differences information inconsistent with the different information in the system snapshot contrastive test template in the different information.
3. installation kit automated testing method according to claim 1, it is characterised in that the comparison result meets to be expected The event of condition, including:
In response to the different information event consistent with the different information in the system snapshot contrastive test template, institute is judged State comparison result and meet anticipated conditions.
4. according to the installation kit automated testing method described in claim any one of 1-3, it is characterised in that also fast including system According to the establishment step of contrastive test template, the establishment step of the system snapshot contrastive test template includes:
Meet the event of expected alteration command in response to receiving the different information, the system is established according to the different information System snapshot contrastive test template.
5. installation kit automatic test approach according to claim 4, it is characterised in that also include:
Meet the event of expected alteration command in response to not receiving the different information, obtain expiring for operating personnel's manual configuration The different information of the expected change of foot, and the system snapshot contrastive test is established according to the different information for meeting expected change Template.
6. installation kit automated testing method according to claim 1, it is characterised in that judging the installation kit to be measured After the step of passing through test, in addition to:
Recover the system according to the initial system snapshot.
A kind of 7. installation kit automatic test device, it is characterised in that including:
Data obtaining module, for obtaining the initial system snapshot of installation kit and current system to be tested;
Different information obtains module, for comparing the initial system snapshot and running what is obtained after the installation kit to be tested Final system snapshot, obtain both different informations;
Comparison result acquisition module, for the difference in the different information and default system snapshot contrastive test template to be believed Breath is compared, and obtains comparison result;
Determining module is tested, for meeting the event of preparatory condition in response to the comparison result, judges the installation kit to be measured Pass through test.
8. installation kit automatization test system according to claim 7, it is characterised in that also include:Message output module:
The test determining module is used for the event that preparatory condition is unsatisfactory in response to the comparison result, judges the peace to be measured Dress Bao Wei passes through test;
Described information output module, for being unsatisfactory for the event of preparatory condition in response to the comparison result, export the difference The differences information inconsistent with the different information in the system snapshot contrastive test template in information.
9. a kind of equipment, including memory, processor and storage are on a memory and the computer journey that can run on a processor Sequence, it is characterised in that the step of any one of claim 1-6 methods described is realized during the computing device described program.
10. a kind of storage medium, is stored thereon with computer program, it is characterised in that the program is realized when being executed by processor The step of any one of claim 1-6 methods described.
CN201710684411.0A 2017-08-08 2017-08-08 Installation package automatic testing method, device, equipment and storage medium Active CN107577597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710684411.0A CN107577597B (en) 2017-08-08 2017-08-08 Installation package automatic testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710684411.0A CN107577597B (en) 2017-08-08 2017-08-08 Installation package automatic testing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107577597A true CN107577597A (en) 2018-01-12
CN107577597B CN107577597B (en) 2020-06-16

Family

ID=61035780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710684411.0A Active CN107577597B (en) 2017-08-08 2017-08-08 Installation package automatic testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107577597B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804314A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 Installation kit test method, device, equipment and computer readable storage medium
CN109101426A (en) * 2018-08-16 2018-12-28 郑州云海信息技术有限公司 A kind of business contrastive test system
CN109189686A (en) * 2018-08-30 2019-01-11 中国平安人寿保险股份有限公司 Automation regression testing method, apparatus, storage medium and computer equipment
CN109800022A (en) * 2019-01-25 2019-05-24 郑州云海信息技术有限公司 A kind of method, system, terminal and the storage medium of automation comparison BIOS information difference
CN110417718A (en) * 2018-12-27 2019-11-05 腾讯科技(深圳)有限公司 Handle method, apparatus, equipment and the storage medium of the risk data in website
CN111240928A (en) * 2020-01-06 2020-06-05 上海闻泰信息技术有限公司 Automatic detection method, device and equipment for equipment drive and storage medium
CN113672514A (en) * 2021-08-24 2021-11-19 平安国际智慧城市科技股份有限公司 Test method, test device, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382914A (en) * 2008-10-15 2009-03-11 北大方正集团有限公司 Testing method and device for software update file
GB2518458A (en) * 2013-09-23 2015-03-25 Inst Information Industry Method for pre-testing software compatibility and system thereof.
CN104750612A (en) * 2015-03-31 2015-07-01 腾讯科技(深圳)有限公司 File operation testing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382914A (en) * 2008-10-15 2009-03-11 北大方正集团有限公司 Testing method and device for software update file
GB2518458A (en) * 2013-09-23 2015-03-25 Inst Information Industry Method for pre-testing software compatibility and system thereof.
CN104750612A (en) * 2015-03-31 2015-07-01 腾讯科技(深圳)有限公司 File operation testing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈能技: ""安装测试"", 《软件测试技术大全:测试基础、流行工具、项目实战》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804314A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 Installation kit test method, device, equipment and computer readable storage medium
CN109101426A (en) * 2018-08-16 2018-12-28 郑州云海信息技术有限公司 A kind of business contrastive test system
CN109101426B (en) * 2018-08-16 2021-08-03 郑州云海信息技术有限公司 Business comparison test system
CN109189686A (en) * 2018-08-30 2019-01-11 中国平安人寿保险股份有限公司 Automation regression testing method, apparatus, storage medium and computer equipment
CN110417718A (en) * 2018-12-27 2019-11-05 腾讯科技(深圳)有限公司 Handle method, apparatus, equipment and the storage medium of the risk data in website
CN110417718B (en) * 2018-12-27 2022-04-05 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for processing risk data in website
CN109800022A (en) * 2019-01-25 2019-05-24 郑州云海信息技术有限公司 A kind of method, system, terminal and the storage medium of automation comparison BIOS information difference
CN109800022B (en) * 2019-01-25 2022-07-08 郑州云海信息技术有限公司 Method, system, terminal and storage medium for automatically comparing BIOS information difference
CN111240928A (en) * 2020-01-06 2020-06-05 上海闻泰信息技术有限公司 Automatic detection method, device and equipment for equipment drive and storage medium
CN111240928B (en) * 2020-01-06 2024-04-09 上海闻泰信息技术有限公司 Automatic detection method, device, equipment and storage medium for equipment drive
CN113672514A (en) * 2021-08-24 2021-11-19 平安国际智慧城市科技股份有限公司 Test method, test device, server and storage medium

Also Published As

Publication number Publication date
CN107577597B (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN107577597A (en) Installation kit automated testing method, device, equipment and storage medium
US8312322B2 (en) System for automated generation of computer test procedures
US9720816B2 (en) Software development assistant method and system
US9141519B2 (en) Accurate identification of software tests based on changes to computer software code
CN111104315A (en) Test script generation method and device and computer readable storage medium
CN111309505B (en) Page exception handling method and device and electronic equipment
JP4859821B2 (en) Application program test program
JP2006268666A (en) Automatic test system with correction function, automatic test method, and program
US20200174911A1 (en) Detection of graphical user interface element of application undergoing functional testing
CN108572895B (en) Stability test method for automatically checking software and hardware configuration under Linux
CN107608848A (en) Method of testing and system
CN109522181B (en) Performance test method, device and equipment of distributed storage system
CN110806965A (en) Automatic test method, device, equipment and medium
CN108009085B (en) Channel package testing method
CN114546881A (en) Application software testing method, electronic device and computer readable storage medium
US6427233B1 (en) Method for addressing the dynamic windows
CN110134558B (en) Method and device for detecting server
CN116662197A (en) Automatic interface testing method, system, computer and readable storage medium
US8739130B2 (en) Quality assurance testing
JP2000322283A (en) Fault detecting method of electronic computer
CN113238935A (en) Application testing method, system, device, medium, and computer program product
CN112860509A (en) Dial testing alarm method and device
CA2420008C (en) Panic message analyzer
CN113360366A (en) Web page testing method, testing device, electronic equipment and storage medium
CN112416735A (en) Application program detection method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant