The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of applied program testing method, it is intended to solve existing application program
Test phase is carried out in real operating environment, causes the problem that development efficiency is low.
The embodiment of the present invention is achieved in that a kind of applied program testing method, and methods described includes:
Sandbox environment is built, the sandbox environment is used to simulate the true environment of the application program operation;
Operation in beta version to the sandbox environment of the application program is loaded, so that user is in the sandbox environment
Functional test and debugging of the middle completion to the beta version;
After user completes functional test and debugging to the beta version, will be debugged by default data-interface
Into application program access true environment running.
The another object of the embodiment of the present invention is to provide a kind of Application testing device, including:
Construction unit, for building sandbox environment, the sandbox environment is used to simulate the true of the application program operation
Environment;
Loading unit, for being run in beta version to the sandbox environment for loading the application program, so that user
The functional test and debugging to the beta version are completed in the sandbox environment;
Access unit, for being completed as user after the functional test and debugging to the beta version, by default number
The application program for completing will be debugged according to interface to access true environment to run.
In embodiments of the present invention, by building the sandbox environment of the true operating environment of simulation, by application development
Test phase is carried out in being put into sandbox environment, and by providing corresponding data-interface, directly by all numbers after the completion of test
According to being run in the formal operating environment of access, application development efficiency is effectively improved, the exploitation for reducing developer is difficult
Degree.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In embodiments of the present invention, by building the sandbox environment of the true operating environment of simulation, by application development
Test phase is carried out in being put into sandbox environment, and by providing corresponding data-interface, directly by all numbers after the completion of test
According to being run in the formal operating environment of access, application development efficiency is effectively improved, the exploitation for reducing developer is difficult
Degree.
Fig. 1 shows that the applied program testing method that first embodiment of the invention is provided realizes flow, and details are as follows:
In step S101, sandbox environment is built, the sandbox environment is used to simulate the true of the application program operation
Environment.
In the present embodiment, business critical workflow that can be needed for by analyzing test development process, will be complete on line
Flow is deployed in an independent environment to complete the structure of sandbox environment after cutting, to ensure process of application development
The interactive mode of middle test environment is consistent with true environment.Specific sandbox environment construction method emphasis not of the invention,
This is not repeated.
Specifically, the sandbox environment of structure must support that involved institute in application program running is functional.With
Possesses the application program of payment function, such as a example by the program that tops up, the sandbox environment of structure must support user's account
Family log in, unlimited amount of money number of times supplement with money behavior, payment result inquiry, application program user interface (User Interface,
UI) and platform UI combinations effect displaying etc. base of applications function.
In step s 102, run in beta version to the sandbox environment for loading the application program, so that user
The functional test and debugging to the application program are completed in the sandbox environment.
In the present embodiment, it is raw after application program is developed by developer according to related standard and technical text
Into the beta version of application program, by the beta version of the loading application programs in sandbox environment so that the beta version exists
Behaved in sandbox environment.
Real operating environment is simulated due to sandbox environment to build, therefore, user can complete correspondence in sandbox environment
Tested, paid test, query function etc. with the test of each function of program, including Account Logon, and in sandbox environment in time
Produced problem in test process is debugged, until the beta version of application program is debugged successfully.
In step s 103, after user completes functional test and debugging to the beta version, by default number
The application program for completing will be debugged according to interface to access the true environment to run.
In the present embodiment, it is application program is as follows by the main flow that sandbox environment accesses true environment:
1st, after developer completes exploitation, application program is carried out by corresponding administration page and is reached the standard grade application;
2nd, system automatic sealing package version, version snapshot is transmitted to true environment;
3rd, tested using the white list for entering formal environments;
4th, it is completed and is issued to whole users.
User is tested and is debugged by the application program to developing in sandbox environment, is carried using sandbox environment
The basic function of confession is supported to carry out the various functions of the application program that test development goes out, so as to complete the debugging to application program.It is right
In the application program for completing debugging, by default data-interface by the application program be directly accessed real operating environment with
Operation.
As one embodiment of the present of invention, after it will debug the application program for completing and access real operating environment,
Every setting that can be by application program in sandbox environment is synchronized in true environment, and developer can develop into various
Fruit is transferred to true environment operation, without cumbersome conversion operation.
Meanwhile, in real operating environment, the white list user of predetermined number can be opened and entered with to the application program
Row white list is tested, and further improves the feedback effects of test.Obtained sufficiently in sandbox environment due to application program
Test, now opens white list test again, it can be ensured that some rudimentary program errors do not occur in white list test phase, make
The feedback effects of white list test are obtained with more substantive and specific aim.
In the present embodiment, the sandbox environment of the true operating environment of simulation is built, by the test phase of application development
Being put into sandbox environment is carried out, the step of simplify test in the test of the links such as payment function, and can be while testing one
Side is debugged, and substantially increases the development efficiency of application program.
Fig. 2 shows that the applied program testing method that second embodiment of the invention is provided realizes flow, and the present embodiment is
Refinement to step shown in Fig. 1, details are as follows:
Before step S103 is performed, in step S203, detect and record user and the function of the beta version is surveyed
Examination and debug, generation monitoring daily record, so that operation personnel is according to the monitoring daily record, and to judge whether application program meets default
Access conditions.
In the present embodiment, each feature operation and debugging of the developer in test process all can be by sandbox environment institute
Detection and record, and generate corresponding monitoring daily record.The monitoring daily record is automatically analyzed produce afterwards corresponding by sandbox system
Whether form, the test process for facilitating operation personnel's follow-up application program, the exploitation for monitoring application program meets specification, together
When, be also convenient for operation personnel carries out corresponding exploitation guidance to developer according to the monitoring daily record.
Correspondingly, the step of Fig. 1 S103 are refined as step S204:When user completes the function behaviour to the beta version
When making and debugging operations, and judging that the application program meets default access conditions according to the monitoring daily record, by default
Data-interface will debug the application program for completing and access the true environment to run.
By the monitoring daily record, operation personnel can judge whether the application program allows to be connect according to default access conditions
Enter real operating environment.Wherein, default access conditions include but is not limited to look & feel meet design specification, without ejection
Window, complete in sandbox environment shared to log in test, complete to pay test in sandbox environment, in sandbox environment completed branch
Pay readjustment test, tested in the inquiry of sandbox environment completion notice etc..Only application program meets default access conditions,
Can be allowed to access in real operating environment, if not meeting default access conditions, developer be notified by operation personnel
The modification of application program is carried out, until application program meets default access conditions.
As one embodiment of the present of invention, it is also possible to the monitoring daily record of the user of timing scan generation, and according to default
Rule monitored results are counted and stored, for example, whether meeting default access bar to the monitoring daily record that each is generated
Part carries out statistic of classification and stores.When user's application accesses true operating environment, then according to the statistics of storage, make logical
Cross application or prevent the action of application, and when application is prevented from, operation personnel can be according to the statistics of monitoring daily record
The relevant information for not meeting default access conditions is returned to user, to ensure that developer is corrected in time, in exploitation
Each stage can meet the related specifications of platform.
As one embodiment of the present of invention, can also be loaded into before sandbox environment in the beta version of application program, be
The corresponding test account of each beta version distribution, each test account is provided with the tests such as the fund tested when initial
Condition, to facilitate developer to develop debugging.
Fig. 3 shows the structured flowchart of the Application testing device that third embodiment of the invention is provided, and the device is used for
Realize the applied program testing method shown in Fig. 1 and Fig. 2 of the present invention.For convenience of description, illustrate only related to the present embodiment
Part.
Reference picture 3, the device includes:
Construction unit 31, builds sandbox environment, and the sandbox environment is used to simulate the true ring of the application program operation
Border.
Loading unit 32, loads operation in beta version to the sandbox environment of the application program, so that user exists
The functional test and debugging to the beta version are completed in the sandbox environment.
Access unit 33, after user completes functional test and debugging to the beta version, by default data
Interface will debug the application program for completing and access true environment to run.
Also include:
White list acquiring unit 34, obtains the white list user of predetermined number, so that the white list user is true to accessing
The application program that the debugging of real environment is completed carries out white list test.
Also include:
Monitoring daily record generation unit 35, detects and records functional test and debugging of the user to the beta version, generates
Monitoring daily record, so that operation personnel judges whether the application program that debugging is completed meets default access according to the monitoring daily record
Condition.
Correspondingly, now, access unit 33 is used to, when the application program that debugging is completed meets default access conditions, hold
Row is described after functional test and debugging of user's completion to the beta version, will be debugged by default data-interface and completed
Application program access true environment to run the step of.
In embodiments of the present invention, by building the sandbox environment of the true operating environment of simulation, by application development
Test phase is carried out in being put into sandbox environment, and by providing corresponding data-interface, directly by all numbers after the completion of test
According to being run in the formal operating environment of access, application development efficiency is effectively improved, the exploitation for reducing developer is difficult
Degree.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in essence of the invention
Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.