CN108509212A - Application program update test method, device, terminal device and storage medium - Google Patents

Application program update test method, device, terminal device and storage medium Download PDF

Info

Publication number
CN108509212A
CN108509212A CN201810121972.4A CN201810121972A CN108509212A CN 108509212 A CN108509212 A CN 108509212A CN 201810121972 A CN201810121972 A CN 201810121972A CN 108509212 A CN108509212 A CN 108509212A
Authority
CN
China
Prior art keywords
module
switch
new
function
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810121972.4A
Other languages
Chinese (zh)
Other versions
CN108509212B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810121972.4A priority Critical patent/CN108509212B/en
Priority to PCT/CN2018/081120 priority patent/WO2019153458A1/en
Publication of CN108509212A publication Critical patent/CN108509212A/en
Application granted granted Critical
Publication of CN108509212B publication Critical patent/CN108509212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The present invention discloses a kind of application program update test method, device, terminal device and storage medium.The application program update test method includes:To each what's new module configuration new function switch or optimization functional switch in application program, and give each original functional module configuration original function switch;Each function module that on off state is in an open state in operation application program, obtains the operation result of each function module;It is abnormal function module by operation result, is determined as objective function module;If the corresponding switch of objective function module is optimization functional switch, optimization functional switch is closed, and opens original function switch corresponding with the original functional module of the corresponding last revision of objective function module, with more new application.The application program update test method can test application program when production function is reached the standard grade, and exception is isolated, realizes the purpose of quickly more new application, saves cost, improves efficiency.

Description

Application program update test method, device, terminal device and storage medium
Technical field
The present invention relates to software test field more particularly to a kind of application program update test method, device, terminal devices And storage medium.
Background technology
With the rapid development of information age, demand is transferred to demand on line under more and more lines, i.e., by specific Application program carries out the interaction of business, to save manpower or cater to the demand of client.In the development process of application program, by It is increasing in the demand of user, in order to meet the needs of users, further upgrade applications are needed, so as to increase in application program Add the new function module for realizing new demand or modifies to original function module.Current developer is based on using When the demand at family more new application, the corresponding function module of a certain portion requirements can be potentially encountered when something goes wrong, only will The corresponding function module of whole demands is rolled back to last revision, is debugged and is reached the standard grade again by developer, leads to final application Program extension is reached the standard grade, and influences the popularization and application of application program, and its process causes the task amount of developer heavy, expends people Power and increasing production cost.
Invention content
A kind of application program update test method of offer of the embodiment of the present invention, device, terminal device and storage medium, with solution When certainly current application program updates, the corresponding function module of portion requirements needs to be rolled back to present in last revision when something goes wrong Problem.
In a first aspect, the embodiment of the present invention provides a kind of application program update test method, including:
To each what's new module configuration new function switch or optimization functional switch in application program, and give each original Beginning function module configures original function switch;
Each function module that on off state in the application program is in an open state is run, each function module is obtained Operation result;
The operation result is judged with the presence or absence of exception, and is abnormal function module by operation result, is determined as target Function module;
If corresponding switch of the objective function module is that the new function switchs, the new function switch is closed, is closed Corresponding objective function module in the application program is closed, to update the application program;
If corresponding switch of the objective function module is the optimization functional switch, closes the optimization function and open It closes, and opens original function switch corresponding with the original functional module of the corresponding last revision of objective function module, To update the application program.
Second aspect, the embodiment of the present invention provide a kind of application program update test device, including:
Functional switch configuration module is used to switch to each what's new module configuration new function in application program or excellent Change functional switch, and gives each original functional module configuration original function switch;
Operation result acquisition module, each function mould being in an open state for running on off state in the application program Block obtains the operation result of each function module;
Objective function determining module is abnormal for judging the operation result with the presence or absence of exception, and by operation result Function module, be determined as objective function module;
First switch processing module, if being that the new function switchs for the corresponding switch of the objective function module, The new function switch is closed, corresponding objective function module in the application program is closed, to update the application program;
Second switch processing module, if being the optimization functional switch for the corresponding switch of the objective function module, The optimization functional switch is then closed, and opens the original functional module of last revision corresponding with the objective function module Corresponding original function switch, to update the application program.
The third aspect, the embodiment of the present invention provide a kind of terminal device, including memory, processor and are stored in storage In device and the computer program that can run on a processor, processor realize application program update test when executing computer program The step of method.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, and computer readable storage medium is deposited The step of containing computer program, application program update test method realized when computer program is executed by processor.
In application program update test method provided in an embodiment of the present invention, device, terminal device and storage medium, pass through Corresponding functional switch is configured to each function module in application program.Then, only on off state is in operation application program Each function module of opening state, obtains the operation result of each function module, to be based on operation result, determines target work( It can module.If the corresponding switch of objective function module is that new function switchs, new function switch and corresponding objective function are closed There is the abnormal corresponding objective function module of new function switch to be isolated, realize the purpose of quickly more new application in module. It is switched if objective function module is corresponding to optimize functional switch, closes optimization functional switch, there is the excellent of exception to be isolated Change the corresponding objective function module of functional switch, and opens the original function mould of last revision corresponding with objective function module The corresponding original function switch of block, only there will be the corresponding objective function module rollbacks of abnormal part optimization functional switch thereon One version, realizes the purpose of quickly more new application, and ensures that abnormal function module is not present in updated application program And its original function will not be deleted, development cost is saved, development efficiency is improved.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a flow chart of the application program update test method provided in the embodiment of the present invention 1.
Fig. 2 is a specific schematic diagram of step S10 in Fig. 1.
Fig. 3 is a specific schematic diagram of step S30 in Fig. 1.
Fig. 4 is a specific schematic diagram of step S32 in Fig. 3.
Fig. 5 is a functional block diagram of the application program update test device provided in the embodiment of the present invention 2.
Fig. 6 is a schematic diagram of the terminal device provided in the embodiment of the present invention 4.
Specific implementation mode
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 describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment 1
Fig. 1 shows the flow chart of application program update test method in the present embodiment.The application program update test method It applies in terminal device, for being updated test to the application program on the terminal device, is worked as with effective solution It is preceding based on production requirement more new application and when reaching the standard grade, encounter a certain portion requirements and go wrong and whole demands can only be returned The problem of being rolled to last revision, causing the corresponding application program of all demands that can only delay to reach the standard grade.As shown in Figure 1, this applies journey Sequence update test method includes the following steps:
S10:To each what's new module configuration new function switch or optimization functional switch in application program, and to every One original functional module configures original function switch.
Wherein, original functional module is to have developed at present and tested the function module reached the standard grade.What's new module is base The function module of exploitation formation is carried out in the demand that user newly increases.The demand newly increased includes new function demand and/or excellent Change functional requirement.New function demand is the demand for the function not having before user increases on the basis of original functional module.It is excellent It is the demand that user advanced optimizes original functional module to change functional requirement.Function module refer in application program for realizing The code module of a certain function.Can new function switch run for controlling the corresponding what's new module of new function demand Switch;If can run, the operating status of new function switch is in an open state;If cannot run, new function switch Operating status is in off state.Can optimization functional switch run for controlling the corresponding what's new module of optimization functional requirement Switch;If can run, the operating status of new function switch is in an open state, on the contrary then be in off state.Original function Can switch be the switch that run for controlling original functional module;If original function switch is in an open state, corresponding Original functional module can be run in this test process, if conversely, original function switch be in off state, it is corresponding original Function module cannot be run in this test process.
Specifically, each what's new module configuration new function switch or the optimization functional switch in application program are given, i.e., Give new function demand corresponding what's new module configuration new function switch, alternatively, giving optimization functional requirement corresponding newly-increased work( It can module configuration optimization functional switch.And each original functional module configuration original function switch is given, subsequently to obtain each work( The operation result of energy module provides technical support.In general, in application program update test process, each what's new mould Block it is corresponding switch (including new function switch or optimization functional switch) on off state default setting be in an open state, so as to Corresponding what's new module is run during follow-up test.Correspondingly, if original functional module is needed in this application program It updates in test process and is tested, then need to be arranged its corresponding original function switch and be in an open state, if conversely, this applies journey Demand does not test corresponding original functional module in sequence update test, then sets the on off state that its corresponding original function switchs It is set to closed state.
Further, after step slo, which further includes following steps:
The on off state of the corresponding new function switch of configuration what's new module or optimization functional switch is in an open state, and The original function switch of the original function template of last revision corresponding with what's new module is set to off closed state.
Specifically, the on off state of the corresponding new function switch of configuration what's new module or optimization functional switch is to open State, and the original function of the original function template of last revision corresponding with what's new module switch is set off State executes the function module that on off state is in an open state so that when application program is tested, and ensures application program more All what's new modules can be run in new test process, to ensure the process tested all what's new modules.
Further, which further includes following steps:
The on off state of each functional switch is indicated in the form of key-value pair, and the on off state of all functional switches is stored In the configuration file or database of application program.
Specifically, the on off state of store function switch has following two ways:When database purchase mode, second is that matching Set document storage mode.
Wherein, by the way of configuration file store function switch, generally with the corresponding switch name of function module=open The form of pass value (key-value pair) is stored in configuration file, and a line indicates a functional switch, is per row format:Key=value (switch value), the switch value include on/off or true/false;Only switch name=switch value need to be increased by one when newly-increased switch Row;It need to only delete when deleting switch and be expert to inductive switch name;Modification on off state need to only change the value to inductive switch name Value.Configuration file in the application program update test method is generally managed using the file of properties formats, but It is not limited to the file of the format.Properties files can be handled using script mode.Wherein, properties files are A kind of configuration file is mainly used for expressing configuration information, and file type is * .properties, and format is text file, file Content be format that format is " key=value ", operation is very convenient.
Wherein, when by the way of database storage function switch, switch list can be prestored in database, the switch Table includes key and value fields corresponding with function module, and a data in switch list indicates a functional switch.It is newly-increased The data of a functional switch need to only be increased when switch;The data to inductive switch name are deleted when deleting switch;Change on off state Value values (i.e. switch value) of the Shi Xiugai to inductive switch name.Database purchase mode can also be used a page function come into Row is safeguarded.Such as:In the switch data inquired in database, key search.user.switch, value are on, It turns off the switch and only needs the value of the functional switch being changed to off.It is to be appreciated that each functional mode is corresponding The name of functional switch is named with functional identity, easy to maintain.
In the present embodiment, when needing to change what's new module or the corresponding on off state of original functional module, number The current time in system can be read as new function switch, optimization functional switch or original function switch according to library or configuration file Renewal time.When an application program is launched, on off state is deposited in caching, periodic refreshing caching.If configuration file is protected The mode of functional switch is deposited, then checks the renewal time of a configuration file every 10s, if it is greater than renewal time last time, then Value in configuration file is flushed in caching, to use.If database preserves the mode of on off state, then examined every 1s Whether the data for looking into database have update, if it is greater than the renewal time of last time, the data in switch list are inquired, by Refresh Data Into caching, to achieve the purpose that timing updates on off state.
S20:Each function module that on off state is in an open state in operation application program, obtains each function module Operation result.
Wherein, on off state includes opening state and closed state.Specifically, it is to beat to run on off state in application program Each function module of open state, to obtain the operation result of each function module.It is to be appreciated that switching shape in application program The switch that state is in an open state includes that original function switchs, and also includes that new function switchs and optimizes functional switch, correspondingly, Corresponding function module includes original functional module and what's new module.The operation result includes abnormality and normal shape Operation result is recorded in running log state, and technical support is provided subsequently to carry out analysis to operation result.Wherein, it runs As a result refer to that application program runs failure or program operation result and the inconsistent state of anticipated output result for abnormality, Normal condition refers to that program runs the operation result successfully and obtained the state consistent with anticipated output result.
S30:Operation result is judged with the presence or absence of exception, and is abnormal function module by operation result, is determined as target Function module.
Wherein, objective function module is that operation result has abnormal function module.Specifically, whether judge operation result There are exceptions, and the application program is illustrated if there is exception, and there are the function modules of operation exception in updating test process, will The function module of the operation exception is determined as objective function module, and support is provided for subsequent processing abnormal function module.
It is to be appreciated that the function module that all on off states are in an open state in application program is this application program Function module that needs to be tested in test process is updated, the operation result of each function module is equal in updating test process May be normal condition or abnormality.If operation result is normal condition, illustrate corresponding function mould in the application program Block can normal operation, without further debugging.Correspondingly, if operation result is abnormality, illustrate in the application program Corresponding function module is unable to operate normally, and need to further be debugged, therefore need to be that abnormal function module is arranged by operation result For objective function module, analyzing processing is carried out to be subsequently based on objective function module.
Specifically, judge that operation result with the presence or absence of exception, specifically comprises the following steps:Judge whether operation result For abnormal function module, and if it exists, then execute the function module that operation result is exception, be determined as objective function module Step (executes step S30);If being not present, Application testing success.In the present embodiment, if Application testing at Work(, and the application program being successfully tested is promoted the use of.
S40:If the corresponding switch of objective function module is that new function switchs, new function switch is closed, closes and applies journey Corresponding objective function module in sequence, with more new application.
Specifically, if the corresponding switch of objective function module is that new function switchs, new function switch is closed, and will apply Corresponding objective function module is closed in program, even if newer application program or not presence exception when program is run Objective function module, to play the abnormal what's new module corresponding with new function switch of isolation.If it is to be appreciated that The corresponding switch of the objective function module is that new function switchs, then illustrates that the objective function module is carried out based on new function demand The function module formed is developed, when this application program update is tested, if the objective function module has exception, needs to close New function switchs and corresponding objective function module, so that newer application program is not reruned when running next time in the presence of abnormal Destination application.For example, when calling banking system to be paid the bill such as in Alipay, if there is event in banking system Barrier, for a long time not returned data may cause the payment function in Alipay occur system exception (do not receive for a long time instead Present data), then the objective function module (payment function) of the exception is closed, so that local system can be quick after encountering exception Restore, isolation is abnormal.
S50:If the corresponding switch of objective function module is optimization functional switch, optimization functional switch is closed, and open Original function switch corresponding with the original functional module of the corresponding last revision of objective function module, journey is applied to update Sequence.
Specifically, if the corresponding switch of objective function module is optimization functional switch, optimization functional switch is closed, and beat Original function switch corresponding with the original functional module of the corresponding last revision of objective function module is opened, with isolation exception Objective function module corresponding with optimization functional switch, and so that updated application program includes and objective function module phase The original functional module of corresponding last revision or not the mesh of the exception when program is run in the updated application program Function module is marked, and runs the original functional module of last revision, since original functional module is the function module that test is reached the standard grade, It can effectively ensure that updated application program can be reached the standard grade on time without influencing operational effect.If it is to be appreciated that objective function mould There is exception in block, then need to close new function switch and corresponding objective function module, so that newer application program is in fortune next time It is not reruned when row in the presence of abnormal destination application.
In application program update test method provided in an embodiment of the present invention, by each function mould in application program Block configures corresponding functional switch.Then, each function module that only on off state is in an open state in operation application program, is obtained The operation result for taking each function module determines objective function module to be based on operation result.If objective function module corresponds to Switch be new function switch, then close new function switch and corresponding objective function module, there is abnormal new work(to be isolated Corresponding objective function module can be switched, realizes the purpose of quickly more new application.If the corresponding switch of objective function module To optimize functional switch, then optimization functional switch is closed, there is the abnormal corresponding objective function of optimization functional switch to be isolated Module, and original function switch corresponding with the original functional module of the corresponding last revision of objective function module is opened, only There will be the corresponding objective function modules of abnormal part optimization functional switch to be rolled back to last revision, realizes quickly update application The purpose of program, and ensure updated application program there is no abnormal function module and its original function will not be deleted, Development cost is saved, development efficiency is improved.
In a specific embodiment, as shown in Fig. 2, in step S10, i.e., to each what's new mould in application program Block configures new function switch or optimization functional switch, specifically comprises the following steps:
S11:Target requirement is obtained, target requirement includes objective function ID and demand type.
Wherein, target requirement is that the demand that developer proposes user is audited, and is being obtained after the approval Demand.Objective function ID is the unique mark of the function to be realized for identification, objective function ID and function module phase It is corresponding.Demand type includes new function demand and optimization functional requirement.Wherein, new function demand refers to user in original function mould Increase the demand of function no before on the basis of block.It refers to that user is further excellent to original functional module to optimize functional requirement The demand of change.
S12:Based on objective function ID, corresponding what's new module is obtained.
Specifically, objective function ID, the code of the function module write in advance in searching data library, acquisition and mesh are based on The corresponding what's new module of functional identity is marked, and the corresponding demand type of what's new module is determined based on database.This implementation In example, the demand type of what's new module may be new function demand, it is also possible to for optimization functional requirement.
S13:If demand type is new function demand, what's new module configuration new function switch is given.
Wherein, new function demand refers to the need for the function not having before user increases on the basis of original functional module It asks.Specifically, if the corresponding demand type of what's new module is new function demand, new function is configured to what's new module Switch, deposits when abnormal so that the abnormal Rule of judgment subsequently based on new function demand determines the what's new module, can lead to Closing new function switch is crossed, to achieve the purpose that quickly isolate in the presence of abnormal what's new module.
S14:If demand type is optimization functional requirement, what's new module configuration optimization functional switch is given.
Wherein, optimization functional requirement refers to the demand that user advanced optimizes original functional module.Specifically, if it is newly-increased The corresponding demand type of function module is optimization functional requirement, then what's new module configuration optimization functional switch is given, with after an action of the bowels The continuous abnormal Rule of judgment based on optimization functional requirement determines the what's new module and deposits when abnormal, can be optimized by closing Functional switch, to reach the original functional module for quickly isolating in the presence of abnormal what's new module and rolling back to last revision Purpose.
In the present embodiment, by obtaining target requirement, target requirement includes objective function ID and demand type, to be based on Objective function ID obtains corresponding what's new module, then judges the corresponding demand type of what's new module;If Demand type is new function demand, then gives what's new module configuration new function switch;If demand type is optimization functional requirement, What's new module configuration optimization functional switch is then given, to realize that inhomogeneity is arranged in the what's new module to different demands type The switch of type can handle different types of switch, to reach when being subsequent processing exception based on different abnormality decision conditions To quickly isolating abnormal purpose.
In a specific embodiment, as shown in figure 3, in step S30, that is, judge operation result with the presence or absence of abnormal, tool Body includes the following steps:
S31:If obtaining new function switchs the output of corresponding what's new module as a result, exporting result not in expected results Interior, then the operation result of what's new module is abnormal.
Wherein, it is contemplated that the result is that the anticipated output result for the function module that developer pre-defines.In the present embodiment, no The abnormal Rule of judgment of what's new module corresponding to the functional switch of same type is different.Specifically, new function switch is obtained The output result of corresponding what's new module simultaneously judges the output result whether in expected results, if output result is not pre- In phase result, then the operation result of what's new module is abnormal.For example, the character of the user name of login module is limited to 8, it is right If being more than 8 in the character length that the expected results of login module are user name input by user, warning message is prompted;And it is transporting When row login module, if the character length of user name input by user is more than 8, but without prompt warning message, then it is assumed that this is stepped on It records module and exception occurs.
S32:The composite index of the corresponding what's new module of optimization functional switch is obtained, if composite index is less than default refer to The operation result of what's new module is then abnormal by number.
Wherein, default index is the index for the reflection system performance that developer is set based on user demand.Specifically, exist In program operation process, optimization function module is tested using third party's performance testing tool, to obtain optimization function Switch the composite index of corresponding what's new module.If composite index is less than default index, the operation of what's new module As a result it is abnormal, exception is judged using different abnormality decision conditions to different types of functional switch to realize, with isolation Occurs abnormal function module in operational process, to quick more new application.
In the present embodiment, the output result by switching corresponding what's new module to obtaining new function judges, If exporting result not in expected results, the operation result of what's new module is abnormal.Alternatively, obtaining optimization functional switch The composite index of corresponding what's new module, if composite index is less than default index, the operation result of what's new module For exception, exception is judged using different abnormality decision conditions to different types of switch to realize, operational process is isolated It is middle abnormal function module occur, to quick more new application.
In a specific embodiment, as shown in figure 4, in step S32, that is, the corresponding newly-increased work(of optimization functional switch is obtained The operation result of what's new module is exception, specifically if composite index is less than default index by the composite index of energy module Include the following steps:
S321:The corresponding what's new module of running optimizatin functional switch, obtains at least one running state parameter.
Wherein, running state parameter is the parameter of the system performance for reflecting the terminal device for installing the application program. The running state parameter includes but not limited to response time, cpu busy percentage and network flow etc..Specifically, running state parameter Third party's performance testing tool (such as LoadRunner) may be used to test and obtain.LoadRunner is a kind of test The load testing tool of system action and performance, the tool can measure end-to-end performance, be diagnosed to be application program and system The performance of bottleneck.
S322:At least one running state parameter is calculated using weighted calculation formula, obtains what's new module Composite index.
Specifically, corresponding weight is set for each running state parameter in advance.Using formula N=a*q/Q+b*y/Y+c* L/L calculates the composite index of each what's new module.Wherein, a is response time corresponding weight, b is that cpu busy percentage corresponds to Weight, c be the corresponding weight of network flow, q is the response time, and Q is the default response time, and y is cpu busy percentage, and Y is default Cpu busy percentage, l are network flow, and L is default network flow.When the composite index of calculated what's new module is more than in advance If when composite index, function optimization switchs corresponding function module and passes through, i.e. the operation result of its corresponding what's new module To be normal, corresponding function optimization switch can be opened, so as to carry the what's new module in newer application program.Conversely, If the composite index of calculated what's new module is not more than preset comprehensive index, the corresponding function mould of optimization functional switch Block does not pass through, i.e., the operation result of its corresponding what's new module is abnormal, then by not by what's new module rollback To the original functional module of last revision.Only need to be the optimization functional switch pair of abnormality by operation result in the present embodiment The new address function module answered rolls back to the original functional module of last revision, without being rolled back to all what's new modules One version, other demands are normally reached the standard grade, and human cost and production cost are saved.
In the present embodiment, by the corresponding what's new module of running optimizatin functional switch, at least one operation shape is obtained Then state parameter calculates at least one running state parameter using weighted calculation formula, what's new module is obtained Composite index promotes user experience to judge whether the performance optimization of system meets user demand.
In the present embodiment, each original functional module configuration original function switch is first given.Then, it is needed by obtaining target It asks, which includes objective function ID and demand type, to be based on objective function ID, obtains corresponding what's new mould Then block judges the corresponding demand type of what's new module;If demand type is new function demand, to newly-increased work( It can module configuration new function switch;If demand type is optimization functional requirement, opened to what's new module configuration optimization function It closes, it, can when being subsequent processing exception to realize that different types of switch is arranged in the what's new module to different demands type Different types of switch is handled based on different abnormality decision conditions, it is abnormal to achieve the purpose that quickly isolate.Then, it runs Each function module that on off state is in an open state in application program, obtains the operation result of each function module, so as to right The output result that new function switchs corresponding what's new module is judged, if exporting result not in expected results, newly The operation result for increasing function module is abnormal.Alternatively, the composite index of the corresponding what's new module of optimization functional switch is obtained, If composite index is less than default index, the operation result of what's new module is abnormal, to realize to different types of switch Judge exception using different abnormality decision conditions, determines objective function module.If the corresponding switch of objective function module is New function switchs, then closes new function switch and corresponding objective function module, there is abnormal new function switch pair to be isolated The objective function module answered realizes the purpose of quickly more new application.If the corresponding switch of objective function module is optimization work( It can switch, then close optimization functional switch, there is the abnormal corresponding objective function module of optimization functional switch to be isolated, and beat Original function switch corresponding with the original functional module of the corresponding last revision of objective function module is opened, only there will be exceptions Corresponding its last revision of objective function module rollback of part optimization functional switch, realize the mesh of quickly more new application , and ensure updated application program there is no abnormal function module and its original function will not be deleted, save exploitation Cost improves development efficiency.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Embodiment 2
Fig. 5 is shown and the one-to-one application program update test device of application program update test method in embodiment 1 Functional block diagram.It is obtained as shown in figure 5, the application program update test device includes functional switch configuration module 10, operation result Modulus block 20, objective function determining module 30, first switch processing module 40, second switch processing module 50, on off state are matched Set module 60 and on off state memory module 70.Wherein, functional switch configuration module 10, operation result acquisition module 20, target Function determining module 30, first switch processing module 40, second switch processing module 50, on off state configuration module 60 and switch The realization function of state-storage module 70 step corresponding with application program update test method in embodiment 1 corresponds, and is It avoids repeating, the present embodiment is not described in detail one by one.
Functional switch configuration module 10, for in application program each what's new module configuration new function switch or Optimize functional switch, and gives each original functional module configuration original function switch.
Operation result acquisition module 20, each function mould being in an open state for running on off state in application program Block obtains the operation result of each function module.
Objective function determining module 30 is abnormal for judging operation result with the presence or absence of exception, and by operation result Function module is determined as objective function module.
First switch processing module 40 is closed new if being that new function switchs for the corresponding switch of objective function module Functional switch closes corresponding objective function module in application program, with more new application.
Second switch processing module 50 is closed if being optimization functional switch for the corresponding switch of objective function module Optimize functional switch, and opens original function corresponding with the original functional module of the corresponding last revision of objective function module Switch, with more new application.
Preferably, functional switch configuration module 10 includes target requirement acquiring unit 11, what's new module acquiring unit 12, the first demand type processing unit 13 and the second demand type processing unit 14.
Target requirement acquiring unit 11, for obtaining target requirement, target requirement includes objective function ID and demand type.
What's new module acquiring unit 12 obtains corresponding what's new module for being based on objective function ID.
First demand type processing unit 13 is new function demand for demand type, then gives what's new module to configure New function switchs.
Second demand type processing unit 14 is optimization functional requirement for demand type, then matches to what's new module Set optimization functional switch.
Preferably, objective function determining module 30 includes the first result treatment unit 31 and the second result treatment unit 32.
First result treatment unit 31, if for obtain new function switch corresponding what's new module output as a result, Result is exported not in expected results, then the operation result of what's new module is abnormal.Alternatively,
Second result treatment unit 32, the composite index for obtaining the corresponding what's new module of optimization functional switch, If composite index is less than default index, the operation result of what's new module is abnormal.
Preferably, the second result treatment unit 32 includes that running state parameter acquiring unit 321 and composite index obtain list Member 322.
Running state parameter acquiring unit 321 is used for the corresponding what's new module of running optimizatin functional switch, obtains extremely A few running state parameter.
Composite index acquiring unit 322, based on being carried out at least one running state parameter using weighted calculation formula It calculates, obtains the composite index of what's new module.
Preferably, objective function determining module 30, the function module for being abnormal for judging whether operation result, if In the presence of the step of then executing the function module that operation result is exception, be determined as objective function module.If being not present, answer With program test success.
Preferably, which further includes on off state configuration module 60 and on off state storage mould Block 70.
On off state configuration module 60, for configuring the corresponding new function switch of what's new module or optimization functional switch On off state be in an open state, and by the original work(of the original function template of last revision corresponding with what's new module It can switch and be set to off closed state.
On off state memory module 70, the on off state for indicating each functional switch in the form of key-value pair, and by institute The on off state of functional switch is stored in the configuration file or database of application program.、
Embodiment 3
The present embodiment provides a computer readable storage medium, computer journey is stored on the computer readable storage medium Sequence realizes application program update test method in embodiment 1 when the computer program is executed by processor, to avoid repeating, this In repeat no more.Alternatively, being realized when the computer program is executed by processor in embodiment 2 in application program update test device The function of each module/unit, to avoid repeating, which is not described herein again.
Embodiment 4
Fig. 6 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in fig. 6, the terminal of the embodiment is set Standby 80 include:Processor 81, memory 82 and it is stored in the computer journey that can be run in memory 82 and on processor 81 Sequence 83.Processor 81 realizes the step of each application program update test method in above-described embodiment 1 when executing computer program 83 Such as step S10 to S50 shown in FIG. 1 suddenly,.Alternatively, above-mentioned in realization embodiment 2 when processor 81 executes computer program 83 The function of each device modules/unit, for example, module 10 to 70 shown in Fig. 5 function.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of application program update test method, which is characterized in that including:
To each what's new module configuration new function switch or optimization functional switch in application program, and give each original work( It can module configuration original function switch;
Each function module that on off state in the application program is in an open state is run, the operation of each function module is obtained As a result;
The operation result is judged with the presence or absence of exception, and is abnormal function module by operation result, is determined as objective function Module;
If corresponding switch of the objective function module is that the new function switchs, the new function switch is closed, institute is closed Corresponding objective function module in application program is stated, to update the application program;
If corresponding switch of the objective function module is the optimization functional switch, the optimization functional switch is closed, and Original function switch corresponding with the original functional module of the corresponding last revision of objective function module is opened, with Update the application program.
2. application program update test method as described in claim 1, which is characterized in that described to each in application program What's new module configures new function switch or optimization functional switch, including:
Target requirement is obtained, the target requirement includes objective function ID and demand type;
Based on the objective function ID, corresponding what's new module is obtained;
If the demand type is new function demand, what's new module configuration new function switch is given;
If the demand type is optimization functional requirement, the what's new module configuration optimization functional switch is given.
3. application program update test method as described in claim 1, which is characterized in that described to judge that the operation result is No presence is abnormal, including:
If obtain new function switch corresponding what's new module output as a result, the output result not in expected results, Then the operation result of the what's new module is abnormal;Alternatively,
The composite index of the corresponding what's new module of optimization functional switch is obtained, if the composite index is less than default index, Then the operation result of the what's new module is abnormal.
4. application program update test method as claimed in claim 3, which is characterized in that the acquisition optimizes functional switch pair The composite index for the what's new module answered, including:
The corresponding what's new module of running optimizatin functional switch, obtains at least one running state parameter;
At least one running state parameter is calculated using weighted calculation formula, obtains the what's new module Composite index.
5. application program update test method as described in claim 1, which is characterized in that described to judge that the operation result is No presence is abnormal, including:
Judge whether the function module that operation result is abnormal, and if it exists, it by operation result is abnormal then to execute described Function module, the step of being determined as objective function module;If being not present, the Application testing success.
6. application program update test method as described in claim 1, which is characterized in that the application program update test side Method further includes:
The on off state for configuring the corresponding new function switch of the what's new module or optimization functional switch is in an open state;And The original function switch of the original function template of last revision corresponding with the what's new module is set off shape State.
7. application program update test method as described in claim 1, which is characterized in that the application program update test side Method further includes:
The on off state of each functional switch is indicated in the form of key-value pair, and the on off state of all functional switches is stored in institute In the configuration file or database of stating application program.
8. a kind of application program update test device, which is characterized in that including:
Functional switch configuration module, for each what's new module configuration new function switch or optimization work(in application program It can switch, and give each original functional module configuration original function switch;
Operation result acquisition module, each function module being in an open state for running on off state in the application program, Obtain the operation result of each function module;
Objective function determining module is abnormal work(for judging the operation result with the presence or absence of exception, and by operation result Energy module, is determined as objective function module;
First switch processing module is closed if being that the new function switchs for the corresponding switch of the objective function module The new function switch, closes corresponding objective function module in the application program, to update the application program;
Second switch processing module is closed if being the optimization functional switch for the corresponding switch of the objective function module The optimization functional switch is closed, and is opened corresponding with the original functional module of the corresponding last revision of objective function module Original function switch, to update the application program.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one application program update test method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In realization application program update test side as described in any one of claim 1 to 7 when the computer program is executed by processor The step of method.
CN201810121972.4A 2018-02-07 2018-02-07 Application program update test method and device, terminal equipment and storage medium Active CN108509212B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810121972.4A CN108509212B (en) 2018-02-07 2018-02-07 Application program update test method and device, terminal equipment and storage medium
PCT/CN2018/081120 WO2019153458A1 (en) 2018-02-07 2018-03-29 Application update testing method, device, terminal device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810121972.4A CN108509212B (en) 2018-02-07 2018-02-07 Application program update test method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108509212A true CN108509212A (en) 2018-09-07
CN108509212B CN108509212B (en) 2021-06-25

Family

ID=63374538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810121972.4A Active CN108509212B (en) 2018-02-07 2018-02-07 Application program update test method and device, terminal equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108509212B (en)
WO (1) WO2019153458A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471647A (en) * 2018-11-06 2019-03-15 北京字节跳动网络技术有限公司 A kind of update method of data, device, electronic equipment and readable medium
CN109683944A (en) * 2018-11-16 2019-04-26 平安科技(深圳)有限公司 Application function switch management method, apparatus, equipment and readable storage medium storing program for executing
CN110275701A (en) * 2019-06-19 2019-09-24 网易传媒科技(北京)有限公司 Data processing method, device, medium and calculating equipment
CN111159030A (en) * 2019-12-24 2020-05-15 联想(北京)有限公司 Program testing method, device, equipment and storage medium
CN111240756A (en) * 2019-12-31 2020-06-05 西安翔腾微电子科技有限公司 Application program execution method and device, electronic equipment and storage medium
WO2021051590A1 (en) * 2019-09-18 2021-03-25 平安科技(深圳)有限公司 Application environment file configuration method and apparatus, computer device, and storage medium
CN112965910A (en) * 2021-03-19 2021-06-15 携程旅游信息技术(上海)有限公司 Automatic regression testing method and device, electronic equipment and storage medium
CN113032037A (en) * 2021-02-19 2021-06-25 视若飞信息科技(上海)有限公司 Method and device for dynamically configuring chromium functional module and electronic equipment
CN114036032A (en) * 2022-01-10 2022-02-11 北京搜狐互联网信息服务有限公司 Real-time program monitoring method and device
CN115408031A (en) * 2022-09-29 2022-11-29 北京亚控科技发展有限公司 Application updating method and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653338A (en) * 2015-12-30 2016-06-08 广东欧珀移动通信有限公司 Application updating method and device
CN105786502A (en) * 2016-02-26 2016-07-20 成都雅骏新能源汽车科技股份有限公司 Scheduling embedded application software architecture and implementation method thereof
CN106201552A (en) * 2016-07-22 2016-12-07 北京智能管家科技有限公司 A kind of method for upgrading software, client, server and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653338A (en) * 2015-12-30 2016-06-08 广东欧珀移动通信有限公司 Application updating method and device
CN105786502A (en) * 2016-02-26 2016-07-20 成都雅骏新能源汽车科技股份有限公司 Scheduling embedded application software architecture and implementation method thereof
CN106201552A (en) * 2016-07-22 2016-12-07 北京智能管家科技有限公司 A kind of method for upgrading software, client, server and system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471647B (en) * 2018-11-06 2022-02-22 北京字节跳动网络技术有限公司 Data updating method and device, electronic equipment and readable medium
CN109471647A (en) * 2018-11-06 2019-03-15 北京字节跳动网络技术有限公司 A kind of update method of data, device, electronic equipment and readable medium
CN109683944A (en) * 2018-11-16 2019-04-26 平安科技(深圳)有限公司 Application function switch management method, apparatus, equipment and readable storage medium storing program for executing
CN110275701A (en) * 2019-06-19 2019-09-24 网易传媒科技(北京)有限公司 Data processing method, device, medium and calculating equipment
CN110275701B (en) * 2019-06-19 2023-05-23 网易传媒科技(北京)有限公司 Data processing method, device, medium and computing equipment
WO2021051590A1 (en) * 2019-09-18 2021-03-25 平安科技(深圳)有限公司 Application environment file configuration method and apparatus, computer device, and storage medium
CN111159030A (en) * 2019-12-24 2020-05-15 联想(北京)有限公司 Program testing method, device, equipment and storage medium
CN111159030B (en) * 2019-12-24 2022-02-18 联想(北京)有限公司 Program testing method, device, equipment and storage medium
CN111240756A (en) * 2019-12-31 2020-06-05 西安翔腾微电子科技有限公司 Application program execution method and device, electronic equipment and storage medium
CN111240756B (en) * 2019-12-31 2023-05-16 西安翔腾微电子科技有限公司 Execution method of application program with configurable processing mode of graphic function
CN113032037B (en) * 2021-02-19 2023-03-10 视若飞信息科技(上海)有限公司 Method and device for dynamically configuring chromium functional module and electronic equipment
CN113032037A (en) * 2021-02-19 2021-06-25 视若飞信息科技(上海)有限公司 Method and device for dynamically configuring chromium functional module and electronic equipment
CN112965910A (en) * 2021-03-19 2021-06-15 携程旅游信息技术(上海)有限公司 Automatic regression testing method and device, electronic equipment and storage medium
CN114036032A (en) * 2022-01-10 2022-02-11 北京搜狐互联网信息服务有限公司 Real-time program monitoring method and device
CN115408031A (en) * 2022-09-29 2022-11-29 北京亚控科技发展有限公司 Application updating method and related equipment
CN115408031B (en) * 2022-09-29 2023-09-05 北京亚控科技发展有限公司 Application updating method and related equipment

Also Published As

Publication number Publication date
CN108509212B (en) 2021-06-25
WO2019153458A1 (en) 2019-08-15

Similar Documents

Publication Publication Date Title
CN108509212A (en) Application program update test method, device, terminal device and storage medium
CN108764674B (en) Risk control method and device based on rule engine
CN104461858B (en) software compatibility pre-testing method and system
US20110179398A1 (en) Systems and methods for per-action compiling in contact handling systems
US20190138431A1 (en) Conditional upgrade and installation of software based on risk-based validation
US20110178946A1 (en) Systems and methods for redundancy using snapshots and check pointing in contact handling systems
US20110179304A1 (en) Systems and methods for multi-tenancy in contact handling systems
US7328134B1 (en) Enterprise integration test tool
US20130080983A1 (en) Functional simulation redundancy reduction by state comparison and pruning
CN109828750B (en) Method and device for automatically configuring data embedded points, electronic equipment and storage medium
CN104346279A (en) Method and device for software testing
CN109710214A (en) Construction method, device, terminal device and the storage medium of electronic signature software
CN111538659B (en) Interface testing method, system, electronic equipment and storage medium of business scene
CN109614312A (en) Method for generating test case, device, electronic equipment and storage medium
CN111352612A (en) Scheduling method and device for code deployment, electronic equipment and storage medium
CN113609011B (en) Testing method, device, medium and equipment of insurance product factory
CN107122271A (en) A kind of method of recovery nodes event, apparatus and system
US10769307B2 (en) Processing system using natural language processing for performing dataset filtering and sanitization
CN112558966B (en) Depth model visualization data processing method and device and electronic equipment
CN115495372A (en) Analog data processing method, device, equipment and medium
CN114693116A (en) Method and device for detecting code review validity and electronic equipment
CN113868531A (en) Information acquisition method and device, electronic device and medium
CN114443057A (en) Deployment of conversation model, conversation method, device, electronic equipment and storage medium
CN113934444A (en) Gray scale distribution method and device, computer storage medium and electronic equipment
CN110738384B (en) Event sequence checking method and system

Legal Events

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