CN105653338B - A kind of update method and device of application - Google Patents
A kind of update method and device of application Download PDFInfo
- Publication number
- CN105653338B CN105653338B CN201511030340.XA CN201511030340A CN105653338B CN 105653338 B CN105653338 B CN 105653338B CN 201511030340 A CN201511030340 A CN 201511030340A CN 105653338 B CN105653338 B CN 105653338B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- terminal
- update
- test program
- target application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/004—Error avoidance
Abstract
The embodiment of the invention discloses a kind of update method of application and devices;The embodiment of the present invention is requested by receiving the update of target application in terminal, then requested according to the update, the target application is updated on the virtual machine of the terminal, then test program is run on the virtual machine, and obtain the operation result that the test program is run on the virtual machine, then judge whether the operation result meets default update condition, if so, being updated to the target application;This method is by being on a virtual machine updated the target application for needing to update in terminal, and test run terminal, to judge to update whether the target application influences normal operation of terminal;When target application in more new terminal, the influence after updating to terminal can be known, in advance so as to avoid the collapse of terminal system.
Description
Technical field
The invention belongs to field of terminal technology more particularly to the update methods and device of a kind of application.
Background technique
With the development of internet with the development of mobile communications network, while also along with the processing capacity of terminal and storage
The fast development of ability, the application program of magnanimity have obtained rapid propagation and use;Common application program is facilitating user's work
While making and live, it is no lack of the daily life that application program newly developed also enters user, improves the life matter of user
Amount, the frequency of using terminal and the amusement sense in use.
Currently, installed in terminal device (such as smart phone, tablet computer) using more and more, in the prior art,
When new version is issued in application, terminal can prompt user to be updated the application in the form of push, but this mode can
It can cause after updating the application, a large amount of memory of occupied terminal causes terminal to be unable to operate normally.
It is unable to operate normally from the foregoing, it will be observed that may cause the terminal after applying update in existing terminal.
Summary of the invention
The present invention provides a kind of update method of application and device, can solve in existing terminal using possible after updating
The problem of causing the terminal to be unable to operate normally.
The embodiment of the invention provides a kind of update methods of application, which comprises
Receive the update request of target application in terminal;
It is requested, the target application is updated on the virtual machine of the terminal, wherein described according to the update
Virtual machine is before updating the target application with the application in the terminal in addition to the virtual machine;
Test program is run on the virtual machine, and obtains the operation that the test program is run on the virtual machine
As a result;
Judge whether the operation result meets default update condition, if so, being updated to the target application.
In an embodiment of the present invention, the test program includes multiple and different sub- test program;Described in the judgement
It the step of whether operation result meets default update condition, specifically includes:
The number of the sub- test program of normal operation is obtained according to the operation result;
Judge whether the number is greater than predetermined number;
If so, determining to meet the default update condition;
If it is not, then determining to be unsatisfactory for the default update condition.
In an embodiment of the present invention, after the judgement number is greater than predetermined number, the judgement meets institute
Before stating default update condition, the method also includes:
The sub- test program being operating abnormally is obtained according to the operation result;
Whether the sub- test program for judging the operation exception is default test program;
If so, executing the step of judgement meets the default update condition.
In an embodiment of the present invention, described to judge the step of whether operation result meets default update condition, tool
Body includes:
The runing time of the test program is obtained from the operation result;
Judge whether the runing time meets preset time requirement;
If so, determining to meet the default update condition;
If it is not, then determining to be unsatisfactory for the default update condition.
In an embodiment of the present invention, in the reception terminal before the update request of target application, the method is also
Include:
According to resource needed for the resource occupation information distribution creation virtual machine applied in the terminal;
Blank virtual machine is established in the terminal using the resource of distribution;
Application in the terminal in addition to the virtual machine is installed on the blank virtual machine, to obtain the end
The virtual machine at end.
In an embodiment of the present invention, it is specifically included the step of running test program on the virtual machine:
The test program is installed on the virtual machine, and runs the test program on the virtual machine.
In an embodiment of the present invention, the method also includes:
When the operation result is unsatisfactory for default update condition, prompt target application described in user non-renewable.
Correspondingly, the embodiment of the invention also provides a kind of updating device of application, described device includes: receiving module,
Update for receiving target application in terminal is requested;
Update module carries out the target application on the virtual machine of the terminal for being requested according to the update
It updates, wherein the virtual machine has in the terminal before updating to the target application in addition to the virtual machine
Using;
Test module for running test program on the virtual machine, and obtains on the virtual machine described in operation
The operation result of test program;
Execution module, for judging whether the operation result meets default update condition, if so, answering the target
With being updated.
In an embodiment of the present invention, the test program includes multiple and different sub- test program;The execution module
It specifically includes: the first acquisition submodule and the first judging submodule;
First acquisition submodule, of the sub- test program for obtaining normal operation according to the operation result
Number;
First judging submodule, is used for:
Judge whether the number is greater than predetermined number;
If so, determining to meet the default update condition;
If it is not, then determining to be unsatisfactory for the default update condition.
In an embodiment of the present invention, the execution module is specifically used for:
After the judgement number is greater than predetermined number, before the judgement meets the default update condition,
The sub- test program being operating abnormally is obtained according to the operation result;
Whether the sub- test program for judging the operation exception is default test program;
If so, executing the step of judgement meets the default update condition.
In an embodiment of the present invention, the execution module specifically includes: the second acquisition submodule and second judging submodule
Block;
Second acquisition submodule, for obtaining the runing time of the test program from the operation result;
The second judgment submodule, for judging whether the runing time meets preset time requirement;
If so, determining to meet the default update condition;
If it is not, then determining to be unsatisfactory for the default update condition.
The embodiment of the invention provides a kind of update method of application and devices, more by target application in reception terminal
New request is then requested according to the update, is updated on the virtual machine of the terminal to the target application, then in the void
Test program is run on quasi- machine, and obtains the operation result for running the test program on the virtual machine, then judges the operation
As a result whether meet default update condition, if so, being updated to the target application;This method passes through on a virtual machine to end
The target application for needing to update in end is updated, and test run terminal, to judge to update whether the target application influences end
End operates normally;When target application in more new terminal, the influence after updating to terminal can be known, in advance so as to avoid application
The problem of update causes terminal to be unable to operate normally, for example avoid collapsing using terminal system after updating.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of flow diagram of the update method for application that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of the update method for application that the embodiment of the present invention three provides;
Fig. 3 a is the structural schematic diagram of the updating device for the first application that the embodiment of the present invention four provides;
Fig. 3 b is the structural schematic diagram of the updating device for second of application that the embodiment of the present invention four provides;
Fig. 3 c is the structural schematic diagram of the updating device for the third application that the embodiment of the present invention four provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides the update method and device of a kind of application.It will be described in detail respectively below.
Embodiment one,
The angle of updating device from application is described the present embodiment, and the updating device of the application specifically can integrate
In the equipment such as terminal.
Referring to Fig. 1, Fig. 1 is the flow diagram of the update method for the application that the embodiment of the present invention one provides.The application
Update method may include:
101, the update request of target application in terminal is received.
Specifically, which can be any application program or system file etc. to be updated in the terminal;
For example the destination application can be social client (QQ, wechat etc.).
Wherein, update request can be the update request that the target application automatically initiates, and be also possible to be passed through by user
The target application detects the update request that new version is initiated.For example, the target application can detect new version information automatically, work as inspection
When measuring new version publication, the update upgraded to terminal sending application is requested.
102, it is requested, target application is updated on the virtual machine of the terminal, the virtual machine is right according to the update
The target application has the application in the terminal in addition to the virtual machine before updating.
In the present embodiment, virtual machine refer to by software simulate with complete hardware system function, operate in one
Complete computer in completely isolated environment, virtual system pass through the new virtual mirror image for generating existing operating system, it
With the duplicate function of real system, into after virtual system, all operations are all completely new independent virtual at this
It is carried out inside system, can save data with independently installed runs software, possess the independent table of oneself, it will not be to real system
System generates any influence, and has the type operating system that can flexibly switch between existing system and virtual image.
Specifically, the virtual machine of terminal can be pre-created, wherein be pre-created the virtual machine of terminal mode have it is more
Kind, for example, the terminal need to construct the void with the application in terminal in addition to the virtual machine before updating to the target application
Quasi- machine;I.e. before step 101 " the update request for receiving target application in terminal ", the update method of the application can also be wrapped
It includes:
According to resource needed for the resource occupation information distribution creation virtual machine applied in the terminal;
Blank virtual machine is established in the terminal using the resource of distribution;
Application in the terminal in addition to the virtual machine is installed on the blank virtual machine, to obtain the virtual of the terminal
Machine.
It should be noted that the virtual machine and the terminal are in identical running environment, the i.e. virtual machine system and its version
This is identical as the terminal, and the version for the application being mounted in the virtual machine is also consistent with the version applied in terminal.Terminal to
Server, which is sent, updates request, after device response to be serviced, is updated to the destination application installed in the virtual machine.
103, test program is run on the virtual machine, and obtains the operation knot that the test program is run on the virtual machine
Fruit.
Specifically, which may include multiple sub- test programs, can run test program on the virtual machine
Before, test program is installed in the virtual machine, a series of automatic test is carried out to the virtual machine, may include to the void
Intend the test of application program in machine, to test of system function etc., to obtain test result.
Wherein, there are many modes for installing the test program, for example, test program can be copied in the virtual machine,
Or existing test program is called from the terminal etc..
The operating condition of the case where test program is for testing virtual machine operation namely terminal, which can
With corresponding with the common function program of user, wherein the test program can be set in actual demand according to, for example, should
Test program can be operation program, switching on and shutting down program, the parameter setting program that will run other application programs on virtual machine
Etc..
For example, the test to the updated target application, runs updated target application in virtual machine, to its function
It can be carried out test, judge whether and system compatible or report an error, and shown in terminal display screen;For another example, to terminal
Switching on and shutting down are tested, and can see normal switch machine etc..
104, judge whether the operation result meets default update condition, if so, step 105 is executed, if it is not, executing step
106。
Specifically, before step 103 " running test program on the virtual machine ", it is renewable to set the target application
Condition in multiple sub- test programs, can set the number of the sub- test program of normal operation, by judging the normal operation
The number of sub- test program whether reach predetermined number to determine whether the operation result meets default update condition;" sentence
Whether the operation result that breaks meets default update condition " the step of can specifically include:
The number of the sub- test program of normal operation is obtained according to the operation result;
Judge whether the number is greater than predetermined number;
If so, determining to meet default update condition;
If it is not, then determining to be unsatisfactory for default update condition.
For example, three sub- test programs of setting, such as test to terminal switch machine, the test to function of surfing the Net and right
The test that disk is read, runs these three sub- test programs, obtains operation result, obtains of the sub- test program of normal operation
Number is judged to meeting default update condition, is otherwise unsatisfactory for when can operate normally more than wherein the two and the two such as setting
Default update condition.
Preferably, after whether the number for the sub- test program for judging normal operation is greater than predetermined number, determining to be somebody's turn to do
Before operation result meets the default update condition, this method can also include:
The sub- test program being operating abnormally is obtained according to the operation result;
Whether the sub- test program for judging the operation exception is default test program;
The step of meeting default update condition is determined if so, executing.
It should be noted that when in the presence of the sub- test program being operating abnormally, but the sub- test program of the misoperation is pre-
If when test program, terminal can be ignored, i.e., terminal judges the default update condition of operation result satisfaction, such as the sudden strain of a muscle applied
Test is moved back, if test is moved back in the sudden strain of a muscle applied determines operation result when moving back test run exception using sudden strain of a muscle for default test program
Meet default update condition;If the sub- test program of the exception is not default test program, it is pre- to determine that operation result is unsatisfactory for
If update condition, for example, switching on and shutting down are tested, if switching on and shutting down test is not default test program, when switching on and shutting down test run is different
Chang Shi determines that operation result is unsatisfactory for default update condition, wherein the default test program can be set according to actual needs,
For example can preset test program can be that application exit the program, using opening program, switching on and shutting down program etc..
105, the target application is updated.
Specifically, when determining that operation result meets default update condition, prompt user's target application renewable and right
The target application in terminal is updated.
106, prompt user's target application is non-renewable.
Specifically, when determining that operation result is unsatisfactory for default update condition, prompt user's target application non-renewable.
The prompt letter of " update the application may cause terminal be unable to operate normally " for example, can be shown in terminal display screen
Breath, user can choose whether to continue to update the destination application according to the prompt information;For another example, voice can also be passed through
Form prompt user's target application it is non-renewable.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of update method of application, by receiving target application in terminal
Update request, then according to the update request, the target application is updated on the virtual machine of the terminal, then at this
Test program is run on virtual machine, and obtains the operation result for running the test program on the virtual machine, then judges the fortune
Whether row result meets default update condition, if so, being updated to the target application;It is right on a virtual machine that this method passes through
The target application for needing to update in terminal is updated, and test run terminal, to judge to update whether the target application influences
Normal operation of terminal;When target application in more new terminal, the influence after updating to terminal can be known, in advance so as to avoid end
The collapse of end system.
Embodiment two,
The present embodiment will on the basis of example 1, and the update method applied to the present invention is described further.By reality
It applies example one and judges the number of sub- test program whether normal operation it is found that passing through, to determine whether the target application may be updated, nothing
Method reaches ideal effect, for example can not can only judge that terminal can be run, and can not judge the response speed of terminal operating
Degree.In order to further increase test quality, the present embodiment proposes that another kind judges whether operation result meets default update condition
Method;The step of " judging whether operation result meets default update condition " can specifically include:
The runing time of the test program is obtained from the operation result;
Judge whether the runing time meets preset time requirement;
If so, determining to meet the default update condition;
If it is not, then determining to be unsatisfactory for the default update condition.
Specifically, test program runing time reflects the response speed of system, when the runing time mistake of the test program
When long, then show to run the corresponding application of the test program or the response speed of process is slow.It is surveyed for example, restarting to terminal
Examination, preset time 30s then run the test program in virtual machine, and terminal will close corresponding process, and shut down, with
After open corresponding process, boot up, can normally execute and restart test, but time-consuming 60s, the runing time of the test program is not
Meet preset time requirement, then determines that the operation result is unsatisfactory for default update condition.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of update method of application, by receiving target application in terminal
Update request, then according to the update request, the target application is updated on the virtual machine of the terminal, then at this
It runs test program on virtual machine, and obtains the operation result for running the test program on the virtual machine, and from the operation knot
The runing time that the test program is obtained in fruit, judges whether the runing time meets preset time requirement, if so, determining full
The foot default update condition, is updated the target application;This method is determined by obtaining test program runing time
The response speed of terminal improves test quality, avoids the problem of influencing terminal operating after update is applied.
Embodiment three,
According to method described in embodiment one and embodiment two, citing is described in further detail below.
In the present embodiment, it will be specifically integrated in smart phone with the updating device of the application, to the smart phone sheet
The wechat client on ground is described in detail for being updated.
As shown in Fig. 2, a kind of update method of application, detailed process can be such that
201, smart phone receives the update request of local wechat client.
Specifically, update request can be the update request that the wechat client automatically initiates, and be also possible to by user
The update request that new version is initiated is detected by the wechat client.For example, the wechat client can detect new version automatically
Information send the update of application upgrade to request when detecting new version publication to the smart phone eventually.
202, smart phone is requested according to the update, is updated on a virtual machine to wechat client.
In the present embodiment, which has all applications in the smart phone, the virtual machine system and its version
It is identical as the smart phone, and the version for the application being mounted in the virtual machine also with the version one applied in the smart phone
It causes, i.e. virtual machine and the smart phone is in identical running environment.Such as the wechat client edition of smart phone local
This is 6.3.7, then accordingly, the version of wechat client is also 6.3.7 on the virtual machine, the update carried in update request
Version is 6.3.8, then the smart phone is requested the wechat client 6.3.7 version updating in virtual machine extremely according to the update
6.3.8。
203, test program is installed on virtual machine by smart phone, the test program is run on the virtual machine, and obtain
Take the number of the sub- test program of normal operation.
Specifically, which may include multiple sub- test programs, for example test can be run on the virtual machine
Before program, test program is installed in the virtual machine, a series of automatic test is carried out to the virtual machine, may include pair
The test of application program in the virtual machine, to test of system function etc., to obtain the number of the sub- test program of normal operation.
For example, the test to updated wechat client, runs updated wechat client, to it in virtual machine
Function is tested, and is judged whether and system compatible or is reported an error, and shows operation result in terminal display screen;Compare again
Such as, the switching on and shutting down of the smart phone are tested, can see normal switch machine etc..
204, smart phone judges whether the number is greater than predetermined number;If so, step 205 is executed, if it is not, executing step
208。
Preferably, after the number for the sub- test program for judging normal operation is greater than predetermined number, according to the operation
As a result the sub- test program for obtaining operation exception judges whether the sub- test program of the operation exception is default test program, if
It is to then follow the steps 205, if it is not, executing step 208.
It should be noted that when in the presence of the sub- test program being operating abnormally, but the sub- test program of the misoperation is pre-
If when test program, which can be ignored, for example test is moved back in the sudden strain of a muscle applied, and is surveyed if test is moved back in the sudden strain of a muscle of application to be default
Program is tried, then when moving back test run exception using sudden strain of a muscle, thens follow the steps 204;If the sub- test program of the exception is not default
Test program thens follow the steps 208, for example, switching on and shutting down are tested, if switching on and shutting down test is not default test program, works as switch
When machine test run exception, 208 are thened follow the steps.
205, smart phone obtains the runing time of the test program.
Specifically, smart phone obtains the runing time of the test program from the operation result.
206, smart phone judges whether the runing time meets preset time requirement;If so, step 207 is executed, if it is not,
Execute step 208.
It is tested for example, restarting to the smart phone, preset time 30s, then runs the test journey in virtual machine
Sequence, terminal will close corresponding process, shut down, and later on corresponding process boots up, and can normally execute and restart survey
Examination, but time-consuming 60s then judge that the runing time of the test program does not meet preset time requirement, will execute step 208 at this time.
207, smart phone is updated local wechat client.
Specifically, when smart phone judges that the runing time meets preset time requirement, to the wechat of smart phone local
Client is updated operation.
208, smart phone prompt user's wechat client is non-renewable.
Specifically, when determining that operation result is unsatisfactory for default update condition, prompt user's target application non-renewable;
For example, smart phone judge when the number is no more than predetermined number or smart phone to judge that the runing time is not met default
When time requirement, and abnormal sub- test program is not when presetting test program, to prompt the micro- of user's smart phone local
Believe that client is non-renewable.
For example, can show " update wechat client will lead to system and be unable to operate normally " in the smart phone display screen
Prompt information, user can choose whether to continue to update the application according to the prompt information;For another example, voice can also be passed through
Form prompt user's wechat client it is non-renewable.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of update method of application and device, by receiving mesh in terminal
The update request of mark application, then requests according to the update, is updated on the virtual machine of the terminal to the target application, so
Test program is run on the virtual machine afterwards, and obtains the operation result for running the test program on the virtual machine, is then sentenced
Whether the operation result that breaks meets default update condition, if so, being updated to the target application;This method passes through virtual
The target application for needing to update in terminal is updated on machine, and test run terminal, updating the target application with judgement is
No influence normal operation of terminal;When target application in more new terminal, the influence after updating to terminal can be known in advance, to keep away
The collapse of terminal system is exempted from.
Example IV,
In order to better implement above method, the embodiment of the present invention also provides a kind of updating device of application, the application
Updating device can integrate in the terminal, which can specifically include mobile phone, tablet computer, laptop or individual calculus
Equipment such as (PC, Personal Computer).
As shown in Figure 3a, the updating device of the application may include signal receiving module 301, update module 302, test and obtain
Modulus block 303 and execution module 304 are as follows:
Receiving module 301, the update for receiving target application in terminal are requested;
Update module 302 carries out more the target application on the virtual machine of the terminal for being requested according to the update
Newly, wherein there is the virtual machine this in the terminal to state the application other than virtual machine before updating to the target application;
Test module 303 for running test program on the virtual machine, and obtains and runs the test on the virtual machine
The operation result of program;
Execution module 304, for judging whether the operation result meets default update condition, if so, answering the target
With being updated.
Preferably, on the basis of the updating device of above-mentioned application, the more new clothes of second of application are present embodiments provided
It sets, as shown in Figure 3b;Wherein, which can specifically include: the first acquisition submodule 3041 and first judge submodule
Block 3042;Specifically,
First acquisition submodule 3041, of the sub- test program for obtaining normal operation according to the operation result
Number;
First judging submodule 3042, is used for:
Judge whether the number is greater than predetermined number;
If so, determining to meet the default update condition;
If it is not, then determining to be unsatisfactory for the default update condition.
Wherein, which is specifically used for:
After the first judgment module 3041 judges that the number is greater than predetermined number, judgement meets the default update
Before condition, the sub- test program being operating abnormally is obtained according to operation result;
Whether the sub- test program for judging the operation exception is default test program;
If so, executing the step of judgement meets the default update condition.
Preferably, in order to improve testing efficiency, the updating device of the third application is present embodiments provided, such as Fig. 3 c institute
Show;Wherein, which can specifically include: the second acquisition submodule 3043 and second judgment submodule 3044;Specifically
Ground,
Second acquisition submodule 3043, for obtaining the runing time of the test program from the operation result;
The second judgment submodule 3044, is used for:
Judge whether the runing time meets preset time requirement;
If so, determining to meet the default update condition;
If it is not, then determining to be unsatisfactory for the default update condition.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made
It is realized for same or several entities, the specific implementation of the above modules can be found in the embodiment of the method for front, herein not
It repeats again.
From the foregoing, it will be observed that receiving terminal by receiving module 301 the embodiment of the invention provides a kind of updating device of application
The update of upper target application is requested, and update module 302 is requested according to the update, to the target application on the virtual machine of the terminal
It is updated, test module 303 runs test program on the virtual machine, and obtains and run the test program on the virtual machine
Operation result, execution module 304 judges whether the operation result meets default update condition, if so, to the target application
It is updated;This method is by being on a virtual machine updated the target application for needing to update in terminal, and test run is whole
End, to judge to update whether the target application influences normal operation of terminal;When target application in more new terminal, it can know in advance
To the influence of terminal after update, so as to avoid the collapse of terminal system.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
The update method and device for being provided for the embodiments of the invention a kind of application above are described in detail, herein
In apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to sides
Assistant solves method and its core concept of the invention;Meanwhile for those skilled in the art, according to the thought of the present invention, exist
There will be changes in specific embodiment and application range, in conclusion the content of the present specification should not be construed as to this hair
Bright limitation.
Claims (10)
1. a kind of update method of application, which is characterized in that the described method includes:
Receive the update request of target application in terminal;
It is requested according to the update, the target application is updated on the virtual machine of the terminal, wherein is described virtual
Machine is before updating the target application with the application in the terminal in addition to the virtual machine;
Test program is run on the virtual machine, and obtains the operation knot that the test program is run on the virtual machine
Fruit, the test program include multiple and different sub- test programs;
The number of the sub- test program of normal operation is obtained according to the operation result;
Judge whether the number is greater than predetermined number;
If so, determining to meet the default update condition, then the target application is updated.
2. the update method applied as described in claim 1, which is characterized in that further include:
When the number is not more than predetermined number, judgement is unsatisfactory for the default update condition.
3. the update method applied as described in claim 1, which is characterized in that be greater than default in the judgement number
After number, before the judgement meets the default update condition, the method also includes:
The sub- test program being operating abnormally is obtained according to the operation result;
Whether the sub- test program for judging the operation exception is default test program;
If so, executing the step of judgement meets the default update condition.
4. the update method applied as described in claim 1, which is characterized in that target application is more in the reception terminal
Before new request, the method also includes:
According to resource needed for the resource occupation information distribution creation virtual machine applied in the terminal;
Blank virtual machine is established in the terminal using the resource of distribution;
Application in the terminal in addition to the virtual machine is installed on the blank virtual machine, to obtain the terminal
Virtual machine.
5. the update method applied as described in claim 1, which is characterized in that run test program on the virtual machine
Step specifically includes:
The test program is installed on the virtual machine, and runs the test program on the virtual machine.
6. update method as described in claim 1, which is characterized in that the method also includes:
When the operation result is unsatisfactory for default update condition, prompt target application described in user non-renewable.
7. a kind of updating device of application, which is characterized in that described device includes:
Receiving module, the update for receiving target application in terminal are requested;
Update module, for being updated to the target application on the virtual machine of the terminal according to update request,
Wherein, the virtual machine is before updating the target application with the application in the terminal in addition to the virtual machine;
Test module for running test program on the virtual machine, and obtains and runs the test on the virtual machine
The operation result of program, the test program include multiple and different sub- test programs;
Execution module, comprising: the first acquisition submodule and the first judging submodule;
First acquisition submodule, the number of the sub- test program for obtaining normal operation according to the operation result;
First judging submodule, is used for: judging whether the number is greater than predetermined number;
If so, determining to meet the default update condition, the target application is updated.
8. updating device the use as claimed in claim 7, which is characterized in that
First judging submodule, is also used to: when the number is not more than predetermined number, judgement is unsatisfactory for described preset more
New Terms.
9. updating device the use as claimed in claim 7, which is characterized in that the execution module is specifically used for:
After the judgement number is greater than predetermined number, before the judgement meets the default update condition, according to
The operation result obtains the sub- test program being operating abnormally;
Whether the sub- test program for judging the operation exception is default test program;
If so, executing the step of judgement meets the default update condition.
10. a kind of computer readable storage medium is stored with the computer program of the update for application, wherein the meter
Calculation machine program makes computer execute the method as described in claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511030340.XA CN105653338B (en) | 2015-12-30 | 2015-12-30 | A kind of update method and device of application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511030340.XA CN105653338B (en) | 2015-12-30 | 2015-12-30 | A kind of update method and device of application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105653338A CN105653338A (en) | 2016-06-08 |
CN105653338B true CN105653338B (en) | 2019-02-12 |
Family
ID=56491246
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511030340.XA Active CN105653338B (en) | 2015-12-30 | 2015-12-30 | A kind of update method and device of application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105653338B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108509212B (en) * | 2018-02-07 | 2021-06-25 | 平安科技(深圳)有限公司 | Application program update test method and device, terminal equipment and storage medium |
CN108459867A (en) * | 2018-02-28 | 2018-08-28 | 国云科技股份有限公司 | A kind of cloud terminal staging method |
CN108881386A (en) * | 2018-05-11 | 2018-11-23 | 郑州易湃科技有限公司 | The remote firmware updating method and remote firmware updating device of communication equipment |
CN109324872B (en) * | 2018-09-21 | 2020-12-25 | 北京隆普智能科技有限公司 | Method and system for verifying virtual machine change request |
CN109358996B (en) * | 2018-10-08 | 2021-09-24 | 北京天弘瑞智科技有限公司 | Processing method and processing system for change request |
CN109324820B (en) * | 2018-11-01 | 2021-12-17 | 郑州云海信息技术有限公司 | Host updating method, device, equipment and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625658A (en) * | 2009-08-04 | 2010-01-13 | 卓望信息技术(北京)有限公司西城分公司 | Method for testing software system performance |
CN102279796A (en) * | 2011-08-25 | 2011-12-14 | 北京神州绿盟信息安全科技股份有限公司 | Method and device for testing software compatibility |
CN102420717A (en) * | 2011-11-04 | 2012-04-18 | 展讯通信(上海)有限公司 | Test method and system for mobile terminal protocol stack |
CN102567198A (en) * | 2010-12-30 | 2012-07-11 | 中国移动通信集团公司 | System and method for testing application program in physical system environment |
CN103019752A (en) * | 2011-09-20 | 2013-04-03 | 金蝶软件(中国)有限公司 | Upgrading method and device of application program |
CN104461858A (en) * | 2013-09-23 | 2015-03-25 | 财团法人资讯工业策进会 | Software Compatibility Pre-testing Method and System |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2510874B (en) * | 2013-02-15 | 2020-09-16 | Ncr Corp | Server system supporting remotely managed IT services |
-
2015
- 2015-12-30 CN CN201511030340.XA patent/CN105653338B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625658A (en) * | 2009-08-04 | 2010-01-13 | 卓望信息技术(北京)有限公司西城分公司 | Method for testing software system performance |
CN102567198A (en) * | 2010-12-30 | 2012-07-11 | 中国移动通信集团公司 | System and method for testing application program in physical system environment |
CN102279796A (en) * | 2011-08-25 | 2011-12-14 | 北京神州绿盟信息安全科技股份有限公司 | Method and device for testing software compatibility |
CN103019752A (en) * | 2011-09-20 | 2013-04-03 | 金蝶软件(中国)有限公司 | Upgrading method and device of application program |
CN102420717A (en) * | 2011-11-04 | 2012-04-18 | 展讯通信(上海)有限公司 | Test method and system for mobile terminal protocol stack |
CN104461858A (en) * | 2013-09-23 | 2015-03-25 | 财团法人资讯工业策进会 | Software Compatibility Pre-testing Method and System |
Also Published As
Publication number | Publication date |
---|---|
CN105653338A (en) | 2016-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105653338B (en) | A kind of update method and device of application | |
CN109302522B (en) | Test method, test device, computer system, and computer medium | |
US20200293436A1 (en) | Validation of mobile device workflows | |
US9830252B2 (en) | System, method and non-transitory computer readable medium for software testing | |
US10789111B2 (en) | Message oriented middleware with integrated rules engine | |
CN108614767A (en) | A kind of remote debugging method and device | |
CN102981949A (en) | Method for on-line automatic tests of server | |
CN104346279A (en) | Method and device for software testing | |
CN107038120A (en) | A kind of method for testing software and equipment | |
CN111352836A (en) | Pressure testing method and related device | |
CN104809054A (en) | Method and system for realizing program testing | |
CN109697164A (en) | Test method, device, storage medium and the terminal of App have been adjusted in browser | |
CN112041818A (en) | System for adjusting application performance based on platform horizontal benchmarking | |
CN105893233A (en) | Method and system used for automatically testing firmware | |
CN108875368A (en) | A kind of safety detection method, apparatus and system | |
CN110865931B (en) | Simulation method, simulation device, electronic equipment and storage medium | |
KR20170044320A (en) | Method of analyzing application objects based on distributed computing, method of providing item executable by computer, server performing the same and storage media storing the same | |
CN110471828A (en) | A kind of operating system testing method, apparatus and its equipment | |
CN105701012B (en) | A kind of parameter setting method and device | |
CN109324802B (en) | Method and device for configuring server | |
CN113656268B (en) | Performance test method and device for business service, electronic equipment and storage medium | |
CN109324962B (en) | Method and equipment for testing application program based on cloud Internet of things technology | |
CN114448823B (en) | NFS service testing method and system and electronic equipment | |
CN110798385B (en) | Method, device, equipment and medium for testing wide area network access setting function | |
US20230155904A1 (en) | Customizable visualization of a traffic topology of a service mesh |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |