Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of applied program testing method, is intended to solve the existing Application testing stage and all carries out in real operating environment, causes the low problem of development efficiency.
The embodiment of the invention is achieved in that a kind of applied program testing method, and described method comprises:
Make up the sandbox environment, described sandbox environment is used for simulating the true environment of described application program operation;
The beta version that loads described application program moves to described sandbox environment, so that the user finishes functional test and debugging to described beta version in described sandbox environment;
After the user finished the functional test of described beta version and debugging, the application program access true environment of debugging being finished by default data-interface was with operation.
Another purpose of the embodiment of the invention is to provide a kind of Application testing device, comprising:
Construction unit is used for making up the sandbox environment, and described sandbox environment is used for simulating the true environment of described application program operation;
Loading unit moves for the beta version that loads described application program to described sandbox environment, so that the user finishes functional test and debugging to described beta version in described sandbox environment;
Access unit, after the functional test and debugging finished as the user described beta version, the application program of debugging being finished by default data-interface accesses true environment to move.
In embodiments of the present invention, by making up the sandbox environment of Reality simulation operating environment, the test phase of application development is put into the sandbox environment to carry out, and by corresponding data-interface is provided, after finishing, test directly will move in the formal operating environment of all data access, effectively improve application development efficient, reduced developer's development difficulty.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, by making up the sandbox environment of Reality simulation operating environment, the test phase of application development is put into the sandbox environment to carry out, and by corresponding data-interface is provided, after finishing, test directly will move in the formal operating environment of all data access, effectively improve application development efficient, reduced developer's development difficulty.
Fig. 1 shows the realization flow of the applied program testing method that first embodiment of the invention provides, and details are as follows:
In step S101, make up the sandbox environment, described sandbox environment is used for simulating the true environment of described application program operation.
In the present embodiment, can pass through the required professional critical workflow of analytical test performance history, with being deployed in a structure of independently finishing the sandbox environment in the environment after the entire flow cutting on the line, consistent with true environment with the interactive mode that guarantees test environment in the process of application development.Concrete sandbox environment construction method is not emphasis of the present invention, is not repeated herein.
Particularly, involved all functions in the necessary support application program operational process of the sandbox environment of structure.To possess the application program of payment function, for example the program of topping up is example, the sandbox environment that makes up must support the behavior of supplementing with money, payment result inquiry, application program user interface (User Interface, UI) and the platform UI of user account login, unlimited amount of money number of times in conjunction with base of applications functions such as effect displayings.
In step S102, the beta version that loads described application program moves to described sandbox environment, so that the user finishes functional test and debugging to described application program in described sandbox environment.
In the present embodiment, after application program is developed according to relevant standard and technical text by the developer, generate the beta version of application program, by the beta version of loading application programs in the sandbox environment, so that this beta version moves in the sandbox environment.
Because the real operating environment of sandbox environmental simulation makes up, therefore, the user can finish the test of each function of application programs in the sandbox environment, comprise account login test, payment test, query function etc., and the problem that occurs in time to test process in the sandbox environment debugs, until the beta version of application program is debugged successfully.
In step S103, after the user finished the functional test of described beta version and debugging, the application program of debugging being finished by default data-interface accessed described true environment with operation.
In the present embodiment, application program is as follows by the main flow process of sandbox environment access true environment:
1, after the developer finishes exploitation, carries out the application program application of reaching the standard grade by corresponding administration page;
2, system's automatic sealing package version transfers to true environment with the version snapshot;
3, use the white list test that enters formal environments;
4, be completed to whole user's issues.
The user is by testing and debug the application program of developing in the sandbox environment, and the basic function support that utilizes the sandbox environment to provide comes the various functions of the application program that test development goes out, thereby finishes the debugging of application programs.For the application program of having finished debugging, by default data-interface this application program is directly accessed real operating environment with operation.
As one embodiment of the present of invention, after the application program that debugging is finished accesses real operating environment, the every setting of application program in the sandbox environment can be synchronized in the true environment, the developer can change various developments over to the true environment operation, need not loaded down with trivial details conversion operations.
Simultaneously, in real operating environment, can open the white list user of predetermined number this application program is carried out the white list test, further improve the feedback effects of test.Because application program has obtained sufficient test in the sandbox environment, this moment is open white list test again, can guarantee that some rudimentary program errors do not occur at the white list test phase, so that the feedback effects of white list test has more substance and specific aim.
In the present embodiment, make up the sandbox environment of Reality simulation operating environment, the test phase of application development is put into the sandbox environment to carry out, simplified the step of test in the test of the links such as payment function, and can debug while testing, greatly improve the development efficiency of application program.
Fig. 2 shows the realization flow of the applied program testing method that second embodiment of the invention provides, and present embodiment is the refinement to step shown in Figure 1, and details are as follows:
Before execution in step S103, in step S203, detecting also, recording user generates the monitoring daily record, so that the operation personnel judges according to described monitoring daily record whether application program meets default access conditions to functional test and the debugging of described beta version.
In the present embodiment, the each feature operation of developer in test process and debugging all can be detected and record by the sandbox environment, and generate corresponding monitoring daily record.Described monitoring daily record is by the corresponding report that produces after the sandbox system automatic analysis, be used for making things convenient for operation personnel's test process of application program that follows up, whether the exploitation of monitoring application program meets standard, simultaneously, also made things convenient for the operation personnel according to this monitoring daily record the developer to be developed guidance accordingly.
Correspondingly, the step S103 of Fig. 1 is refined as step S204: when the user finishes feature operation and debugging operations to described beta version, and when judging that according to described monitoring daily record described application program meets default access conditions, the application program of debugging being finished by default data-interface accesses described true environment with operation.
By this monitoring daily record, the operation personnel can judge whether this application program allows to be access in real operating environment according to default access conditions.Wherein, default access conditions includes but not limited to that look ﹠ feel meets design specifications, does not have pop-up window, finished at the sandbox environment and shared the login test, finished the payment test, finished the test of payment readjustment, finished notice inquiry test etc. at the sandbox environment at the sandbox environment at the sandbox environment.Only have application program to meet default access conditions, just can be allowed to access in the real operating environment, if do not meet default access conditions, the modification of then notifying the developer to carry out application program by the operation personnel is until application program meets default access conditions.
As one embodiment of the present of invention, the user's who also can timing scan generates monitoring daily record, and according to default rule monitored results is added up and stored, for example, whether the monitoring daily record of each generation is met default access conditions carry out statistic of classification and storage.When the user applies for accessing true operating environment, then according to the statistics of storing, make the action by application or prevention application, and when application is prevented from, the operation personnel can return the relevant information that does not meet default access conditions according to the statistics of monitoring daily record to the user, to guarantee that the developer in time corrects, can both meet the related specifications of platform in each stage of exploitation.
As one embodiment of the present of invention, also can load at the beta version of application program before the sandbox environment, for each beta version distributes corresponding test account, each test account all possesses the test conditions such as fund of testing when initial, develop debugging to make things convenient for the developer.
Fig. 3 shows the structured flowchart of the Application testing device that third embodiment of the invention provides, and this device is used for realizing the present invention's applied program testing method illustrated in figures 1 and 2.For convenience of explanation, only show the part relevant with present embodiment.
With reference to Fig. 3, this device comprises:
Construction unit 31 makes up the sandbox environment, and described sandbox environment is used for simulating the true environment of described application program operation.
Loading unit 32, the beta version that loads described application program moves to described sandbox environment, so that the user finishes functional test and debugging to described beta version in described sandbox environment.
Access unit 33, after the user finished the functional test of described beta version and debugging, the application program access true environment of debugging being finished by default data-interface was with operation.
Also comprise:
White list acquiring unit 34 obtains the white list user of predetermined number, so that the application program that described white list user finishes the debugging of access true environment is carried out the white list test.
Also comprise:
Monitoring daily record generation unit 35, detection and recording user generate the monitoring daily record to functional test and the debugging of described beta version, so that the operation personnel judges according to described monitoring daily record whether debug the application program of finishing meets default access conditions.
Correspondingly, at this moment, when access unit 33 meets default access conditions for the application program of finishing when debugging, carry out describedly after the user finishes the functional test of described beta version and debugging, the application program access true environment of debugging being finished by default data-interface is with the step of operation.
In embodiments of the present invention, by making up the sandbox environment of Reality simulation operating environment, the test phase of application development is put into the sandbox environment to carry out, and by corresponding data-interface is provided, after finishing, test directly will move in the formal operating environment of all data access, effectively improve application development efficient, reduced developer's development difficulty.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.