CN105701012B - A kind of parameter setting method and device - Google Patents

A kind of parameter setting method and device Download PDF

Info

Publication number
CN105701012B
CN105701012B CN201511033465.8A CN201511033465A CN105701012B CN 105701012 B CN105701012 B CN 105701012B CN 201511033465 A CN201511033465 A CN 201511033465A CN 105701012 B CN105701012 B CN 105701012B
Authority
CN
China
Prior art keywords
parameter
target component
virtual machine
test program
operation result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201511033465.8A
Other languages
Chinese (zh)
Other versions
CN105701012A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201511033465.8A priority Critical patent/CN105701012B/en
Publication of CN105701012A publication Critical patent/CN105701012A/en
Application granted granted Critical
Publication of CN105701012B publication Critical patent/CN105701012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3612Software analysis for verifying properties of programs by runtime analysis

Abstract

The embodiment of the invention discloses a kind of parameter setting method and devices;The embodiment of the present invention is using the parameter setting request for receiving destination application, parameter setting request indicates target component to be placed in the destination application, then, it is requested according to the parameter setting, the parameter of destination application is configured on the virtual machine of terminal, wherein, the virtual machine is before to target component setting with all application programs in the terminal in addition to the virtual machine, test program is run on the virtual machine, and obtain the operation result that test program is run on the virtual machine, judge whether the target component is settable parameter according to the operation result, if, the target component is configured;The program can identify whether the parameter is settable parameter before to parameter setting, avoid the problem of causing terminal to be unable to operate normally after to parameter setting.

Description

A kind of parameter setting method and device
Technical field
The present invention relates to field of terminal technology, and in particular to a kind of parameter setting method and device.
Background technique
With the rapid development of mobile communication technology, more and more users are learnt using intelligent terminal, are entertained etc., User's life is not only enriched, is also brought advantage to the user, and along with the development of intelligent terminal, the application journey of various intelligent terminals Sequence is also developed, and to meet the different application demand of user, is constantly carried out to cell-phone function by types of applications program Expand.
Currently, user usually can the parameter of application program be configured, to meet the needs of oneself personalization, existing parameter The plan of establishment are as follows: be directly configured according to parameter of the parameter setting instruction of user to application program.
However, using existing parameter setting scheme to the parameter setting of application program when, since user or terminal are usual Do not know whether the parameter is settable parameter, i.e., will not influence the parameter of terminal operating after setting, therefore, terminal is in correspondence After the parameter setting of program, it will lead to terminal and be unable to operate normally, for example, after the memory space parameter of setting application program, It will lead to terminal and be unable to run other applications, for another example, after the display parameters of application program are arranged, will lead to terminal can not Normal display picture etc..
From the foregoing, it will be observed that existing parameter setting scheme is after the parameter to application program is configured, will lead to terminal can not It operates normally.
Summary of the invention
It is an object of that present invention to provide a kind of parameter setting method and devices, to solve to use existing parameter setting scheme pair After the parameter of application program is configured, the technical issues of terminal is unable to operate normally will lead to.
The embodiment of the present invention provides a kind of parameter setting method, comprising:
The parameter setting request of destination application is received, the parameter setting request indicates in the destination application Target component to be placed;
It is requested according to the parameter setting, the target component of institute's target application is set on the virtual machine of terminal It sets, wherein the virtual machine is before to target component setting with the institute in the terminal in addition to the virtual machine There is application program;
Test program is run on the virtual machine, and obtains the operation knot that test program is run on the virtual machine Fruit;
Judge whether the target component is settable parameter according to the operation result;
If so, being configured to the target component.
Wherein, described to judge that the step of whether target component is settable parameter is specifically wrapped according to the operation result It includes:
When the test program normal operation, determine that the target component is settable parameter;
When the test program is operating abnormally, determine that the target component is not settable parameter.
Further, the test program includes multiple and different sub- test program, described to be sentenced according to the operation result The step of whether target component is settable parameter of breaking specifically 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 it is not, then determining the target ginseng Number is settable parameter, if so, determining that the target component is not settable parameter.
Further, described that the step of whether target component is settable parameter tool is judged according to the operation result Body further include: after obtaining operation result, before obtaining the sub- test program being operating abnormally according to the operation result, judgement It obtains whether the sub- test program being operating abnormally is sky according to the operation result, if not empty, then executes and judge the operation If it is empty the step of whether abnormal sub- test program is default test program then determines that the target component is settable ginseng Number.
Further, parameter setting method provided in this embodiment further include: judge the target component for not described When being settable parameter, prompt target component described in user not settable, and abandon the setting to the target component.
Further, parameter setting method provided in this embodiment further include: accounted for according to the resource applied in the terminal Resource needed for distributing creation virtual machine with information;
Blank virtual machine is established in the terminal using the resource of distribution;
All applications in the terminal in addition to the blank virtual machine are installed on the blank virtual machine, to obtain The virtual machine of the terminal.
The embodiment of the invention also provides a kind of parameter setting apparatus, comprising:
Receiving module, the parameter setting for receiving destination application are requested, described in the parameter setting request instruction Target component to be placed in destination application;
First setup module, for being requested according to the parameter setting, to institute's target application on the virtual machine of terminal The target component is configured, wherein the virtual machine, which has before to target component setting in the terminal, to be removed All application programs other than the virtual machine;
Test module for running test program on the virtual machine, and obtains and runs test on the virtual machine The operation result of program;
First judgment module, for judging whether the target component is settable parameter according to the operation result;
Second setup module is used for when the judgment module judges the target component for settable parameter, to described Target component is configured.
Wherein, the first judgment module is specifically used for:
When the test program normal operation, determine that the target component is settable parameter;
When the test program is operating abnormally, determine that the target component is not settable parameter.
Further, the test program includes multiple and different sub- test program, and the first judgment module is specifically wrapped It includes: program acquisition submodule and program judging submodule;
Described program acquisition submodule, for obtaining the sub- test program being operating abnormally according to the operation result;
Described program judging submodule, for judging whether the sub- test program of the operation exception is default test journey Sequence, if it is not, then determining that the target component is settable parameter, if so, determining that the target component is not settable parameter.
Further, parameter setting apparatus provided in this embodiment further include: the second judgment module;
Second judgment module, for after the test module obtains operation result, described program to obtain submodule Before root tuber obtains the sub- test program being operating abnormally according to the operation result, judge different according to operation result acquisition operation Whether normal sub- test program is sky, if not empty, then executes and judges whether the sub- test program of the operation exception is default If it is empty the step of test program, then determines that the target component is settable parameter.
Further, parameter setting apparatus provided in this embodiment further include: cue module;
The cue module, for it is described judge the target component to be not settable parameter when, prompt user institute It states that target component is not settable, and abandons the setting to the target component.
Further, parameter setting apparatus provided in this embodiment further include: resource distribution module establishes module and peace Die-filling piece;
The resource distribution module, for receive destination application parameter setting request before, according to the end Resource needed for the resource occupation information distribution creation virtual machine applied on end;
It is described to establish module, blank virtual machine is established in the terminal for the resource using distribution;
The installation module, for being installed to all application programs in the terminal in addition to the blank virtual machine On the blank virtual machine, to obtain the virtual machine of the terminal.
The embodiment of the present invention indicates the mesh using the parameter setting request for receiving destination application, parameter setting request Target component to be placed in application program is marked, then, is requested according to the parameter setting, target is answered on the virtual machine of terminal It is configured with the parameter of program, wherein the virtual machine has in the terminal before to target component setting except this is virtual All application programs other than machine run test program on the virtual machine, and obtain and run test program on the virtual machine Operation result, judge whether the target component is settable parameter according to the operation result, if so, to the target component carry out Setting;Since the program can identify whether the parameter is settable parameter before to parameter setting, only to settable Parameter setting avoids the technical issues of causing terminal to be unable to operate normally after to parameter setting, improves the reliable of terminal Property.
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 for parameter setting method that the embodiment of the present invention one provides;
Fig. 2 is a kind of schematic diagram of parameter setting method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for parameter setting apparatus that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram for second of parameter setting apparatus that the embodiment of the present invention three provides;
Fig. 5 is the structural schematic diagram for the third parameter setting apparatus that the embodiment of the present invention three provides;
Fig. 6 is the method signal that the storage path for a kind of pair of application program that the embodiment of the present invention four provides is configured Figure.
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 a kind of parameter setting method and device.It will be described in detail respectively below.
Embodiment one,
The present embodiment will be described from the angle of parameter setting apparatus, which specifically can integrate at end In end or other equipment for needing to be configured Application Parameters.
Wherein, the parameter setting apparatus be integrated in terminal mode can there are many, for example, can be with the shape of terminal applies Formula is installed in the terminal.
A kind of parameter setting method, comprising: receive the parameter setting request of destination application, parameter setting request refers to Show target component to be placed in destination application, requested according to parameter setting, institute's target is answered on the virtual machine of terminal Target component is configured, wherein virtual machine has in terminal before target component is arranged in addition to virtual machine All application programs run test program on a virtual machine, and obtain the operation result for running test program on a virtual machine, root Judge whether target component is settable parameter according to operation result, if so, being configured to target component.
As shown in Figure 1, the flow chart of the parameter setting method is specific as follows:
Step S101 receives the parameter setting request of destination application, above-mentioned parameter setting request instruction target application Target component to be placed in program.
Specifically, receive user in such a way that the parameter setting of application program that terminal trigger is requested can there are many, For example, receiving the parameter setting request of application program etc. that user is triggered by terminal touch screen.
The parameter setting requests that the parameter identification and parameter information (parameter value to be placed of Application Parameters can be carried Deng), wherein the parameter identification indicates target component to be placed.
Target component may include a variety of in the present embodiment, for example, the installation path of application program, permission, display parameters, Access parameter, mode parameter etc..
In embodiments of the present invention, the application program for needing to be arranged parameter is the application program installed in terminal, for example, trip Play application, social application, software management application etc..
Step S102 is arranged according to above-mentioned parameter and requests, to the target component of institute's target application on the virtual machine of terminal It is configured.
Wherein, above-mentioned virtual machine is before being arranged target component with all using journey in addition to virtual machine in terminal Sequence.
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, can be applied on the terminal according in the terminal in advance before the parameter setting request for receiving application program Resource needed for the resource occupation information distribution creation virtual machine of program, establishes blank in above-mentioned terminal using the resource of distribution Then all application programs in terminal in addition to above-mentioned blank virtual machine are installed on the blank virtual machine by virtual machine, with The virtual machine of terminal is obtained, there is the identical whole application program in terminal on the virtual machine of the terminal.
In embodiments of the present invention, it is requested according to above-mentioned parameter setting to application program in above-mentioned virtual machine system Parameter is configured, specifically, can be according to the setting information of the Application Parameters setting request parameter received, so Corresponding application program is found according to the setting information in virtual machine afterwards, and its parameter is configured.
Step S103 runs test program on above-mentioned virtual machine, and obtains and run test program on the virtual machine Operation result.
Specifically, after being configured in the virtual machine to the parameter of application program according to above-mentioned parameter setting request, Test program is run, which is the operating condition for testing the case where virtual machine is run namely terminal, the test journey Sequence can be corresponding with the common function program of user, wherein and the test program can be set in actual demand according to, than Such as, which can be operation program, the switching on and shutting down program, parameter setting that will run other application programs on virtual machine Program etc..
Optionally, there are many test programs, for example, the test program includes multiple and different sub- test program, at this point, fortune Row result includes: the operation result of every sub- test program, and the operation result is for indicating user terminal according to parameter setting Request the operating condition after being configured.For example, test program includes: boot program, using opening program, setting program etc. Deng.
Step S104 judges whether above-mentioned target component is settable parameter according to operation result, if so, thening follow the steps S106, if it is not, thening follow the steps S105.
In embodiments of the present invention, judge that the step of whether target component is settable parameter is specifically wrapped according to operation result It includes:
When test program normal operation, judgement target component is settable parameter;
When test program is operating abnormally, judgement target component is not settable parameter.
Specifically, above-mentioned operation result includes that the first operation result that test program operates normally or test program operation are different The second normal operation result, if test program normal operation, it is determined that operation result includes above-mentioned first operation result, and determining should Target component is settable parameter;If test program is operating abnormally, for example, report an error, dodge move back, function cannot achieve etc., it is determined that Operation result includes above-mentioned second operation result, and determining the target component not is settable parameter.
In practical applications, certain application program is configured according to parameter setting request in virtual machine, is then run Test program, that is, test run is carried out respectively to other application programs above the virtual machine of the terminal, such as to logical Function is talked about, Bluetooth function, video/audio playing function carries out test run etc., so that the operation result of test program is obtained, Operation result indicates whether test run is normal, if normal operation illustrates that the target component is settable parameter;If running different Often such as certain programs operation report an error (operation slowly, Caton, sudden strain of a muscle move back, BUG occur etc.) illustrate that the target component is not can Be arranged parameter, such as when the application is installed by installation path be arranged inside system disk, it will keep EMS memory occupation excessively high from And cause the operation of whole system slow, or when installing software (such as QQ address list) of backup address list, close the journey Sequence obtains the permission of system communication record, then will lead to program operation error, do not obtain the case where information etc..
Step S105 abandons the setting to target component.
It in embodiments of the present invention, can be with after can not being settable parameter determining the target component of application program It generates a prompt information and is shown in terminal, which, which contains, is configured application program according to parameter setting request The error information of virtual machine test program operation error afterwards, and abandon being configured the target component of application program.
For example, a prompting interface displayed on the terminals, is settable parameter to prompt the target component not, wherein mention Show that interface includes to run for prompting user to be configured rear virtual machine test program to application program according to parameter setting request The error information (such as text information) of error, and abandon being configured the target component of application program.
Further to promote user experience, convenient for choosing whether to request according to parameter setting to using journey according to user demand Sequence is configured, and instruction can also be arranged in prompting interface and obtain for the present embodiment, and such subsequent user can pass through the instruction Interface triggering terminal is obtained to abandon being arranged, that is, the step of " abandoning the setting to target component " can specifically include:
Display reminding interface, which includes for prompting the target component not be settable parameter prompt letter Breath, and instruction obtain interface;
Receive instruction acquisition interface triggering abandons setting instruction;
Setting instruction is abandoned according to this to abandon being configured the target component.
In the present embodiment, instruction obtains interface and can be indicated by diversified forms, for example, can be the shape of icon Formula, alternatively, being also possible to form of input frame, etc., the quantity which obtains interface can be according to the demand of practical application It is configured, details are not described herein.
Optionally, target component is configured for the convenience of the user, another can also be set in the prompting interface and be used for The instruction interface of triggering setting instruction;For example, at terminal display reminding interface, prompt the target component not and be settable parameter it Afterwards, it requests to be configured the parameter of application program if user is also intended to be arranged according to above-mentioned parameter, user is by being somebody's turn to do at this time Instruction interface triggering setting instruction, terminal can be instructed according to the setting and be configured to target component.
Step S106, is configured target component.
Specifically, if determining that the target component of application program is settable parameter according to the operation result of test run, Terminal is directly configured the target component.For example, terminal shows that for prompting user's target component be settable parameter Prompt information, then, according to above-mentioned parameter setting request target component is configured;For another example, can join to target After number is configured, prompt user's target component is settable parameter.
From the foregoing, it will be observed that the embodiment of the present invention, using the parameter setting request for receiving destination application, which asks It asks and indicates target component to be placed in the destination application, then, requested according to the parameter setting, in the virtual machine of terminal On the parameter of destination application is configured, wherein the virtual machine to the target component setting before have the terminal On all application programs in addition to the virtual machine, test program is run on the virtual machine, and obtain and transport on the virtual machine The operation result of row test program judges whether the target component is settable parameter according to the operation result, if so, to the mesh Mark parameter is configured;This programme can identify whether the parameter is settable parameter before to parameter setting, only right Settable parameter setting, avoids the technical issues of causing terminal to be unable to operate normally after to parameter setting, improves terminal Reliability and stability.
Embodiment two,
The present embodiment will be further described on the basis of one method of embodiment.
As shown in Fig. 2, the flow chart schematic diagram of the parameter setting method is specific as follows:
Step S201 receives the parameter setting request of destination application.
For example, when the application is installed, it is for this application to receive user by the touch screen or keyboard of terminal Parameter setting information.
Step S202 is configured on a virtual machine and is run to the target component test program, obtains test program Operation result.
In the present embodiment, the virtual machine system of terminal can be pre-created, according to upper in above-mentioned virtual machine system It states parameter setting to request after being configured the parameter of application program, runs test program and simultaneously obtain operation result.
Step S203 obtains the sub- test program being operating abnormally according to operation result.
Wherein, test program includes multiple and different sub- test program, i.e., above-mentioned operation result contains multiple sub- tests The sub- operation result of program, the self-operating the result shows that sub- test program operating condition, obtain the son of operation exception therein Test program.
Step S204 judges whether the sub- test program of above-mentioned operation exception is empty, if so, S207 is thened follow the steps, if It is no, then follow the steps S205.
In embodiments of the present invention, the sub- test program being operating abnormally is obtained according to operation result, judges the sub- test journey Whether sequence is empty, if so, determining that target component is settable parameter, if it is not, then determining target component not is settable parameter.
Specifically, above-mentioned test program includes multiple and different sub- test program, the sub- test program is respectively to virtual machine On each application program carry out test run, then be program operation after obtain operation result, above-mentioned operation result contains often The operation result of a Application testing operation, the sub- test program being operating abnormally is obtained according to the operation result, judges the son Whether test program is empty.
Step S205 judges whether the sub- test program being operating abnormally is default test program, if so, thening follow the steps S206, if it is not, thening follow the steps S207.
In embodiments of the present invention, judge whether target component is the accurate of settable parameter to further increase It spends, judges that the step of whether target component is settable parameter can specifically include according to operation result in the embodiment of the present invention: The sub- test program being operating abnormally is obtained according to operation result, judges whether the sub- test program being operating abnormally is default test journey Sequence, if it is not, then determining that target component is settable parameter, if so, determining that target component is not settable parameter.
Specifically, above-mentioned operation on a virtual machine, which is surveyed after setting program, obtains operation result, operation is included in the operation result The sub- test program of normal sub- test program and operation exception, obtains the sub- test program being wherein operating abnormally and judgement is No is default test program, which can be configured according to actual needs.
Step S206 determines that target component is not settable parameter, and abandons the setting to target component.
Step S207, judgement target component is settable parameter, and is configured to target component.
In embodiments of the present invention, determine target component be settable parameter after, terminal directly to target component into Row setting, for example, terminal shows that for prompting user's target component be the prompt information of settable parameter, then, according to upper Parameter setting request is stated to be configured target component;For another example, user can be prompted after being configured to target component The target component is settable parameter.
From the foregoing, it will be observed that the embodiment of the present invention, using the parameter setting request for receiving destination application, which asks It asks and indicates target component to be placed in the destination application, then, requested according to the parameter setting, in the virtual machine of terminal On the parameter of destination application is configured, wherein the virtual machine to the target component setting before have the terminal On all application programs in addition to the virtual machine, test program is run on the virtual machine, and obtain and transport on the virtual machine The operation result of row test program judges whether the target component is settable parameter according to the operation result, if so, to the mesh Mark parameter is configured;This programme can identify whether the parameter is settable parameter before to parameter setting, only right Settable parameter setting, avoids the technical issues of causing terminal to be unable to operate normally after to parameter setting, improves terminal Reliability and stability.
Embodiment three,
In order to better implement above method, the embodiment of the present invention also provides a kind of parameter setting apparatus, as shown in figure 3, The parameter setting apparatus include: receiving module 301, the first setup module 302, test module 303, first judgment module 304 with And second setup module 305, it is as follows:
The receiving module 301, the parameter setting for receiving destination application are requested, parameter setting request instruction target Target component to be placed in application program;
First setup module 302, for being requested according to parameter setting, to institute's target application on the virtual machine of terminal Target component is configured, wherein virtual machine is before being arranged target component with all in addition to virtual machine in terminal Application program;
The test module 303 for running test program on a virtual machine, and obtains and runs test program on a virtual machine Operation result;
The first judgment module 304, for judging whether target component is settable parameter according to operation result;
Second setup module 305 is used for when judgment module judges target component for settable parameter, to target component It is configured.
Specifically, first judgment module 304 is specifically used for:
When test program normal operation, judgement target component is settable parameter;
When test program is operating abnormally, judgement target component is not settable parameter.
Preferably, test program includes multiple and different sub- test program, and with reference to Fig. 4, first judgment module 304 is specifically wrapped It includes: program acquisition submodule 3041 and program judging submodule 3042.
The program acquisition submodule 3041, for obtaining the sub- test program being operating abnormally according to operation result;
The program judging submodule 3042, for judging whether the sub- test program being operating abnormally is default test program, If it is not, then determining that target component is settable parameter, if so, determining that target component is not settable parameter.
Preferably, as shown in figure 5, parameter setting apparatus provided in an embodiment of the present invention can also include: the second judgement mould Block 306;
Second judgment module 306, for after test module obtains operation result, program acquisition submodule to be according to fortune Before row result obtains the sub- test program being operating abnormally, judge that obtaining the sub- test program being operating abnormally according to operation result is It is no then to execute and the step of whether sub- test program being operating abnormally is default test program judged if not empty for sky, if Sky then determines that target component is settable parameter.
Preferably, device provided in this embodiment can also include: cue module;
The cue module, for prompting ownership goal parameter can not when judging target component to be not settable parameter Setting, and abandon the setting to target component.
In device provided in an embodiment of the present invention, it can also include: resource distribution module, establish module and installation mould Block;
The resource distribution module, for being answered according in terminal before receiving the parameter setting request of destination application Resource needed for resource occupation information distribution creation virtual machine;
This establishes module, and blank virtual machine is established in terminal for the resource using distribution;
The installation module, for all application programs in terminal in addition to blank virtual machine to be installed to blank virtual machine On, to obtain the virtual machine of terminal.
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.
Example IV,
According to parameter setting method provided by the above embodiment and device, citing is described further below.
It in originally implementing, will be specifically integrated in smart phone with the parameter setting apparatus, target component is using journey It is described in detail for the storage path of sequence.
As shown in fig. 6, it is a kind of to the method being configured using program storage routing information, specifically it can be such that
Step S401, smart phone receive the storage path setup response of application program.
In embodiments of the present invention, parameter setting request carries the mark and the target component of target component to be placed Setting information, being provided with information can be for parameter value etc..
In practical applications, smart phone needs to select the storage path of the application program when the application is installed, should Storing path can also include that the storage path of application program and application program generate the storage path cached.Such as user installation When Online Video APP (such as youku.com, potato video software), need to select the APP storage path (be installed to mobile phone rom or It is SD card etc.) and (some file for being stored in mobile phone rom is stored in SD card in the storage path of Online Video caching It is medium).
Step S402 on a virtual machine sets the storage path of application program according to the storage path setup response It sets.
Wherein, virtual machine can be the virtual machine system created on user's smart phone, or in of user One created on people's computer is directed to the virtual machine of smart phone, and computer and mobile phone are connected with each other.Have on the virtual machine and intelligence Identical whole application programs on energy mobile phone.Then the storage path of above-mentioned video APP is carried out in the virtual machine system Setting, specifically, storage path setting information can be obtained according to the storage path setup response received, then further according to storage Path setup response information is deposited to be configured.
Step S403 runs test program on above-mentioned virtual machine, and obtains the operation result of operation test program.
Specifically, being carried out in the virtual machine to the storage path of application program according to above-mentioned storage path setup response After setting, test program is run, which is the operation for testing the case where virtual machine is run namely smart phone Situation, the test program can be corresponding with the common function program of user, wherein the test program can the actual demand according to It is set, for example, the test program can be operation program, the switching on and shutting down journey that will run other application programs on virtual machine Sequence, setting program etc..
Step S404 judges whether the storage path setting information is settable according to operation result, if so, thening follow the steps S406, if it is not, thening follow the steps S405.
In embodiments of the present invention, judge that the whether settable step of the storage path setting information can according to operation result To specifically include:
When test program normal operation, determine that the storage path setting information is settable;
When test program is operating abnormally, determine that the storage path setting information is not settable.
Specifically, above-mentioned test program normal operation is the other applications normal operation on smart phone, such as Call function, Bluetooth function, video/audio playing function etc. can operate normally;It is certain that above-mentioned test program, which is operating abnormally, A little programs operations report an error, for example, program operation slowly, Caton, sudden strain of a muscle move back, BUG occur etc..
Step S405 abandons the storage path to the application program in smart phone and is configured.
Specifically, a prompt information (such as text can also be produced after determining that the storage path setting information is not settable Information) and be shown in above the display screen of smart phone, for prompting user according to storage path setup response to application program Storage path be configured the error information of rear virtual machine test program operation error.
Step S406 is configured the storage path of the application program in smart phone.
Specifically, if determining that the storage path setting information is settable according to the operation result of test run, intelligent hand Machine is directly configured the storage path of the application program.For example, terminal is shown for prompting the user storage path that can set Then the prompt information set is configured according to storage path of the above-mentioned storage path setup response to destination application;Again For example, the storage of user's destination application can be prompted after the storage path to destination application is configured Path is settable.
From the foregoing, it will be observed that the embodiment of the present invention receives the storage path setup response of application program using smart phone, then, According to the storage path setup response, the storage path of application program is configured on a virtual machine, on above-mentioned virtual machine Test program is run, and obtains the operation result of operation test program, which is judged according to operation result It is whether settable, if so, being configured in smart phone to the storage path of the application program;This programme can be in correspondence With the storage path of program be configured before identify the path setting information whether be it is settable, avoid to application program The setting of storage path after the technical issues of causing smart phone to be unable to operate normally, improve the reliability of smart phone and steady It is qualitative.
It should be noted that those of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are relevant hardware can be instructed to complete by program, which can store in computer-readable storage medium It in matter, is such as stored in the memory of terminal, and is executed by least one processor in the terminal, can be wrapped in the process of implementation Include the process of the embodiment such as information issuing method.Wherein, storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
A kind of parameter setting method provided in an embodiment of the present invention and device are described in detail above, each function Module can integrate in a processing chip, is also possible to modules and physically exists alone, can also two or two with Upper module is integrated in a module.Above-mentioned integrated module both can take the form of hardware realization, can also use software The form of functional module is realized.It is used herein that a specific example illustrates the principle and implementation of the invention, with The explanation of upper embodiment is merely used to help understand method and its core concept of the invention;Meanwhile for the technology of this field Personnel, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this theory Bright book content should not be construed as limiting the invention.

Claims (13)

1. a kind of parameter setting method, which comprises the following steps:
The parameter setting for receiving the destination application that user is triggered by terminal is requested, described in the parameter setting request instruction Target component to be placed in destination application;
It is requested according to the parameter setting, the target component of the target application is set on the virtual machine of terminal It sets, wherein the virtual machine is before to target component setting with the institute in the terminal in addition to the virtual machine There is application program;
Test program is run on the virtual machine, and obtains the operation result that test program is run on the virtual machine, institute Stating test program includes multiple and different sub- test programs, and the operation result includes: the operation result of every sub- test program;
Judge whether the target component is settable parameter according to the operation result;
If so, being configured to the target component;
If it is not, then abandoning the setting to target component.
2. parameter setting method as described in claim 1, which is characterized in that described to judge the mesh according to the operation result The step of whether mark parameter is settable parameter specifically includes:
When the test program normal operation, determine that the target component is settable parameter;
When the test program is operating abnormally, determine that the target component is not settable parameter.
3. parameter setting method as described in claim 1, which is characterized in that described to judge the mesh according to the operation result The step of whether mark parameter is settable parameter specifically 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 it is not, then determining that the target component is settable parameter;
If so, determining that the target component is not settable parameter.
4. parameter setting method as claimed in claim 3, which is characterized in that described to judge the mesh according to the operation result It is specific to mark the step of whether parameter is settable parameter further include: after obtaining operation result, obtain according to the operation result Before taking the sub- test program of operation exception, judge according to the operation result obtain be operating abnormally sub- test program whether be It is empty;
If not empty, then it executes and the step of whether sub- test program of the operation exception is default test program is judged;
If it is empty, then determine that the target component is settable parameter.
5. parameter setting method as described in claim 1, which is characterized in that further include:
It is described judge the target component to be not settable parameter when, prompt user described in target component it is not settable, and Abandon the setting to the target component.
6. parameter setting method as described in claim 1, which is characterized in that asked in the parameter setting for receiving destination application Before asking, 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;
All applications in the terminal in addition to the blank virtual machine are installed on the blank virtual machine, it is described to obtain The virtual machine of terminal.
7. a kind of parameter setting apparatus characterized by comprising
Receiving module, the parameter setting for receiving the destination application that user is triggered by terminal are requested, and the parameter is set It sets request and indicates target component to be placed in the destination application;
First setup module, for being requested according to the parameter setting, to the institute of the target application on the virtual machine of terminal It states target component to be configured, wherein the virtual machine has before to target component setting removes institute in the terminal State all application programs other than virtual machine;
Test module for running test program on the virtual machine, and obtains and runs test program on the virtual machine Operation result, the test program includes multiple and different sub- test program, and the operation result includes: every height test journey The operation result of sequence;
First judgment module, for judging whether the target component is settable parameter according to the operation result;
Second setup module is used for when the judgment module judges the target component for settable parameter, to the target Parameter is configured;When it is settable parameter that the judgment module, which judges the target component not, abandon to target component Setting.
8. parameter setting apparatus as claimed in claim 7, which is characterized in that the first judgment module is specifically used for:
When the test program normal operation, determine that the target component is settable parameter;
When the test program is operating abnormally, determine that the target component is not settable parameter.
9. parameter setting dress as claimed in claim 7, which is characterized in that the first judgment module specifically includes: program obtains Take submodule and program judging submodule;
Described program acquisition submodule, for obtaining the sub- test program being operating abnormally according to the operation result;
Described program judging submodule, for judging whether the sub- test program of the operation exception is default test program;
If it is not, then determining that the target component is settable parameter;
If so, determining that the target component is not settable parameter.
10. parameter setting apparatus as claimed in claim 9, which is characterized in that further include: the second judgment module;
Second judgment module is used for after the test module obtains operation result, described program acquisition submodule root Before obtaining the sub- test program being operating abnormally according to the operation result, judge to obtain operation exception according to the operation result Whether sub- test program is empty;
If not empty, then it executes and the step of whether sub- test program of the operation exception is default test program is judged;
If it is empty, then determine that the target component is settable parameter.
11. parameter setting apparatus as claimed in claim 7, which is characterized in that further include: cue module;
The cue module, for it is described judge the target component to be not settable parameter when, prompt user described in mesh It is not settable to mark parameter, and abandons the setting to the target component.
12. parameter setting apparatus as claimed in claim 7, which is characterized in that further include: resource distribution module establishes module And installation module;
The resource distribution module, for receive destination application parameter setting request before, according in the terminal Resource needed for the resource occupation information distribution creation virtual machine of application;
It is described to establish module, blank virtual machine is established in the terminal for the resource using distribution;
The installation module, it is described for being installed to all application programs in the terminal in addition to the blank virtual machine On blank virtual machine, to obtain the virtual machine of the terminal.
13. a kind of computer readable storage medium, storage is used for the computer program of parameter setting, wherein the computer Program makes computer execute the method as described in claim 1.
CN201511033465.8A 2015-12-30 2015-12-30 A kind of parameter setting method and device Active CN105701012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511033465.8A CN105701012B (en) 2015-12-30 2015-12-30 A kind of parameter setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511033465.8A CN105701012B (en) 2015-12-30 2015-12-30 A kind of parameter setting method and device

Publications (2)

Publication Number Publication Date
CN105701012A CN105701012A (en) 2016-06-22
CN105701012B true CN105701012B (en) 2019-02-12

Family

ID=56226790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511033465.8A Active CN105701012B (en) 2015-12-30 2015-12-30 A kind of parameter setting method and device

Country Status (1)

Country Link
CN (1) CN105701012B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641444A (en) * 2020-04-27 2021-11-12 南通华信中央空调有限公司 Virtual test method, virtual test device and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736944A (en) * 2012-06-25 2012-10-17 腾讯科技(深圳)有限公司 Method and device for detecting application program sample
CN103778373A (en) * 2014-01-10 2014-05-07 深圳市深信服电子科技有限公司 Virus detection method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5870126B2 (en) * 2014-01-29 2016-02-24 株式会社Sji Application test system, method and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736944A (en) * 2012-06-25 2012-10-17 腾讯科技(深圳)有限公司 Method and device for detecting application program sample
CN103778373A (en) * 2014-01-10 2014-05-07 深圳市深信服电子科技有限公司 Virus detection method and device

Also Published As

Publication number Publication date
CN105701012A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN105511805B (en) The data processing method and device of cluster file system
CN109729131B (en) Application request processing method and device and router
CN105005532B (en) A kind of system and method for automatic test application programming interfaces stability
CN109586952A (en) Method of server expansion, device
CN110765024A (en) Simulation test method, simulation test device, electronic equipment and computer-readable storage medium
CN110324793A (en) A kind of method, apparatus and electric terminal of information reminding
CN108874324B (en) Access request processing method, device, equipment and readable storage medium
EP2994828A1 (en) Apps store with integrated test support
CN107533596B (en) Fingerprint identification method and mobile terminal
CN106375102B (en) A kind of service registration method, application method and relevant apparatus
CN109633351A (en) Intelligent IT O&M Fault Locating Method, device, equipment and readable storage medium storing program for executing
CN109474459A (en) Domain name configuring management method, device, computer equipment and storage medium
CN108628732B (en) Traversal test method and device for application interface control
CN104346279A (en) Method and device for software testing
CN109726830A (en) Equipment routing inspection method, apparatus, electronic equipment and storage medium
CN110046100B (en) Packet testing method, electronic device and medium
CN105701012B (en) A kind of parameter setting method and device
CN108614763A (en) A kind of adjustment method and device of application
CN109634838A (en) Position method, apparatus, storage medium and the electronic equipment of application failure
CN107018039B (en) Method and device for testing performance bottleneck of server cluster
CN109034416A (en) A kind of method of Breakdown Maintenance, system and equipment
CN106482742B (en) The acquisition methods and device of step counting data
CN107846294A (en) A kind of active and standby service switch method and device
CN109491822A (en) A kind of system reboot detection method, device, terminal and storage medium
CN114328196A (en) Method, device and equipment for testing data leakage prevention system and storage medium

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