CN103377120B - A kind of applied program testing method and device - Google Patents

A kind of applied program testing method and device Download PDF

Info

Publication number
CN103377120B
CN103377120B CN201210122923.5A CN201210122923A CN103377120B CN 103377120 B CN103377120 B CN 103377120B CN 201210122923 A CN201210122923 A CN 201210122923A CN 103377120 B CN103377120 B CN 103377120B
Authority
CN
China
Prior art keywords
application program
environment
user
debugging
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210122923.5A
Other languages
Chinese (zh)
Other versions
CN103377120A (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.)
Tenpay Payment Technology Co Ltd
Original Assignee
Tenpay Payment Technology 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 Tenpay Payment Technology Co Ltd filed Critical Tenpay Payment Technology Co Ltd
Priority to CN201210122923.5A priority Critical patent/CN103377120B/en
Publication of CN103377120A publication Critical patent/CN103377120A/en
Application granted granted Critical
Publication of CN103377120B publication Critical patent/CN103377120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention is applied to software technology field, there is provided a kind of applied program testing method and device, including: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 completes the functional test and debugging to the beta version in the sandbox environment;After user completes functional test and debugging to the beta version, the application program for completing will be debugged by default data-interface and access true environment to run.In the present invention, by the sandbox environment for building the true operating environment of simulation, the test phase of application development is put into sandbox environment to be carried out, and by providing corresponding data-interface, to directly be run in the formal operating environment of all data access after the completion of test, application development efficiency is effectively improved, the development difficulty of developer is reduced.

Description

A kind of applied program testing method and device
Technical field
The invention belongs to software technology field, more particularly to a kind of applied program testing method and device.
Background technology
With continuing to develop for computer and Internet technology, such as open platform as third-party application platform is not Disconnected to emerge in large numbers, it provides platform by the company for possessing platform resource, and partner developer develops various types of application program And run on the platform, with user-friendly.On third-party application platform, the exploitation of various application programs, reach the standard grade, Operation has to meet the related specifications of the platform side.
The existing Application testing stage is carried out in real operating environment.For example, for payment function, it is necessary to It is cumbersome payment test, later stage reimbursement etc. to be carried out using real money;For page presentation function, typically using white list Mode, batch open page is tested to a small amount of user, and feedback effects are not comprehensive;And whole application program is in test process In can not be debugged in time.In sum, existing applied program testing method is easily caused the exploitation of application program Inefficiency, improves the development difficulty of developer.
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.
Brief description of the drawings
Fig. 1 is that the applied program testing method that first embodiment of the invention is provided realizes flow chart;
Fig. 2 is that the applied program testing method that second embodiment of the invention is provided realizes flow chart;
Fig. 3 is the structured flowchart of the Application testing device that third embodiment of the invention is provided.
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.

Claims (4)

1. a kind of applied program testing method, it is characterised in that 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 complete in the sandbox environment The functional test and debugging of the paired beta version;
After user completes functional test and debugging to the beta version, will debug what is completed by default data-interface Application program accesses true environment to run;
After it will debug the application program for completing and access the true environment, also include:Obtain the white name of predetermined number Single user, so that the white list user carries out white list test to the application program that the debugging for accessing true environment is completed;
After it will debug the application program for completing and access the true environment, by the application program in the sandbox ring Every setting in border is synchronized in the true environment;The monitoring daily record of the user of timing scan generation, and according to default Rule is counted and stored to monitored results;When user's application accesses the true environment, then according to the statistics knot of storage Really, the action by applying for or preventing application is made, and when application is prevented from, according to the statistics of the monitoring daily record Result returns to the relevant information for not meeting default access conditions to user.
2. the method for claim 1, it is characterised in that described when user completes to survey the function of the beta version Examination and debugging after, by default data-interface will debug complete application program access true environment to run the step of it Before, also include:
Functional test and debugging of the user to the beta version are detected and recorded, the monitoring daily record is generated, so that operation people Member judges whether the application program that debugging is completed meets default access conditions according to the monitoring daily record;
When the application program that debugging is completed meets default access conditions, perform described when user is completed to the beta version Functional test and debugging after, the application program for completing will be debugged by default data-interface and access true environment to run Step.
3. a kind of Application testing device, it is characterised in that including:
Construction unit, for building sandbox environment, the sandbox environment is used to simulate the true environment of the application program operation;
Loading unit, for being run in beta version to the sandbox environment for loading the application program, so that user is in institute State the functional test and debugging completed in sandbox environment to the beta version;
Access unit, for completing after the functional test and debugging to the beta version, to be connect by default data as user Mouth will debug the application program for completing and access true environment to run;
Described device also includes:White list acquiring unit, for the application program for completing access true environment will to be debugged to transport After row, the white list user of predetermined number is obtained, so that what the white list user completed to the debugging for accessing true environment Application program carries out white list test;
Described device is additionally operable to after it will debug the application program for completing and access the true environment, by the application journey Every set of the sequence in the sandbox environment is synchronized in the true environment;The monitoring day of the user of timing scan generation Will, and monitored results are counted and stored according to default rule;When user's application accesses the true environment, then root According to the statistics of storage, the action by applying for or preventing application is made, and when application is prevented from, according to the monitoring The statistics of daily record returns to the relevant information for not meeting default access conditions to user.
4. device as claimed in claim 3, it is characterised in that also include:
Monitoring daily record generation unit, for detecting and records functional test and debugging of the user to the beta version, generation prison Control daily record, so that operation personnel judges whether the application program that debugging is completed meets default access bar according to the monitoring daily record Part;
Correspondingly, the access unit is used to, when the application program that debugging is completed meets default access conditions, perform described After user completes functional test and debugging to the beta version, the application for completing will be debugged by default data-interface The step of program accesses true environment to run.
CN201210122923.5A 2012-04-24 2012-04-24 A kind of applied program testing method and device Active CN103377120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210122923.5A CN103377120B (en) 2012-04-24 2012-04-24 A kind of applied program testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210122923.5A CN103377120B (en) 2012-04-24 2012-04-24 A kind of applied program testing method and device

Publications (2)

Publication Number Publication Date
CN103377120A CN103377120A (en) 2013-10-30
CN103377120B true CN103377120B (en) 2017-06-30

Family

ID=49462270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210122923.5A Active CN103377120B (en) 2012-04-24 2012-04-24 A kind of applied program testing method and device

Country Status (1)

Country Link
CN (1) CN103377120B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065537B (en) * 2014-07-04 2017-09-26 中国联合网络通信集团有限公司 Using exterior measuring method, exterior trajectory measurement equipment management server and using outer examining system
CN106708722A (en) * 2015-11-13 2017-05-24 北京金山安全软件有限公司 Application testing method and device and electronic equipment
CN105740705A (en) * 2015-12-28 2016-07-06 哈尔滨安天科技股份有限公司 LXC container-based host defense method and system
CN105975393B (en) * 2016-05-04 2020-09-15 腾讯科技(深圳)有限公司 Page display detection method and system
CN105975394B (en) * 2016-05-06 2019-04-19 华为技术有限公司 A kind of program testing method and device
CN107395586A (en) * 2017-07-17 2017-11-24 深信服科技股份有限公司 A kind of method for updating network security product, experiment node and related system
CN107797932A (en) * 2017-11-13 2018-03-13 广州唯品会网络技术有限公司 Pay acquisition methods, device and the storage medium of readjustment
CN107908415A (en) * 2017-11-30 2018-04-13 北京小米移动软件有限公司 Processing method, device, equipment and storage medium
CN109829296B (en) * 2019-01-29 2021-04-02 中化能源科技有限公司 Sandbox implementation method of intelligent contract based on alliance chain
CN111966426A (en) * 2019-05-20 2020-11-20 顺丰科技有限公司 API (application program interface) docking method, system, equipment and storage medium
CN112448860B (en) * 2019-08-30 2023-04-07 北京奇艺世纪科技有限公司 Application program testing method and related equipment
CN110597723A (en) * 2019-09-18 2019-12-20 达疆网络科技(上海)有限公司 Lightweight joint debugging system for rapid test of merchant system docking
CN111210296A (en) * 2019-12-03 2020-05-29 佛山欧神诺云商科技有限公司 E-commerce platform management method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425016A (en) * 2007-11-01 2009-05-06 珠海金山软件股份有限公司 Method and system for operating and installing software
CN102184356A (en) * 2011-04-21 2011-09-14 奇智软件(北京)有限公司 Method, device and safety browser by utilizing sandbox technology to defend
CN102682229A (en) * 2011-03-11 2012-09-19 北京市国路安信息技术有限公司 Malicious code behavior detection method based on virtualization technology

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080127142A1 (en) * 2006-11-28 2008-05-29 Microsoft Corporation Compiling executable code into a less-trusted address space
US8793291B2 (en) * 2010-03-15 2014-07-29 Salesforce.Com, Inc. System, method and computer program product for deploying an update between environments of a multi-tenant on-demand database system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425016A (en) * 2007-11-01 2009-05-06 珠海金山软件股份有限公司 Method and system for operating and installing software
CN102682229A (en) * 2011-03-11 2012-09-19 北京市国路安信息技术有限公司 Malicious code behavior detection method based on virtualization technology
CN102184356A (en) * 2011-04-21 2011-09-14 奇智软件(北京)有限公司 Method, device and safety browser by utilizing sandbox technology to defend

Also Published As

Publication number Publication date
CN103377120A (en) 2013-10-30

Similar Documents

Publication Publication Date Title
CN103377120B (en) A kind of applied program testing method and device
CN104407980B (en) Mobile solution automatic test device and method
US9697108B2 (en) System, method, and apparatus for automatic recording and replaying of application executions
Molyneaux The art of application performance testing: from strategy to tools
Lou A comparison of Android native app architecture MVC, MVP and MVVM
US9459994B2 (en) Mobile application testing systems and methods
Silva et al. A survey on the tool support for the automatic evaluation of mobile accessibility
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
US20200050534A1 (en) System error detection
Strandberg et al. Information flow in software testing–an interview study with embedded software engineering practitioners
CN112860556B (en) Coverage rate statistics method, coverage rate statistics device, computer system and readable storage medium
Tuovenen et al. MAuto: Automatic mobile game testing tool using image-matching based approach
US9477582B2 (en) Executable software specification generation
Nordeen Learn Software Testing in 24 Hours: Definitive Guide to Learn Software Testing for Beginners
CN103186459B (en) JAVA graphic user interface automatic test approach based on script
US10025697B2 (en) Generation of automated unit tests for a controller layer system and method
Mainkar Expert Android Programming: Master skills to build enterprise grade Android applications
Usman et al. An automated model‐based approach for unit‐level performance test generation of mobile applications
Segura et al. Automated variability analysis and testing of an E-commerce site. an experience report
Baker et al. Automated usability testing using HUI analyzer
Cruz Tools and Techniques for Energy-Efficient Mobile Application Development
Esbjörnsson ANDROID GUI TESTING: A comparative study of open source Android GUI testing frameworks
Potter et al. Mastering DICOM with DVTk
US20080066005A1 (en) Systems and Methods of Interfacing with Enterprise Resource Planning Systems
Ascate et al. Mobile App Testing: Tools, Frameworks, and Challenges

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 518000 Nanshan District science and Technology Park, Guangdong, Zhejiang Province, science and technology in the Tencent Building, the first floor of the 8 layer

Applicant after: Tenpay Payment Technology Co., Ltd.

Address before: 518000 Nanshan District science and Technology Park, Guangdong, Zhejiang Province, science and technology in the Tencent Building, the first floor of the 8 layer

Applicant before: Shenzhen Tenpay Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN TENPAY TECHNOLOGY CO., LTD. TO: TENPAY PAYMENT TECHNOLOGY CO., LTD.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant