CN103377120A - Test method and device for application programs - Google Patents

Test method and device for application programs Download PDF

Info

Publication number
CN103377120A
CN103377120A CN2012101229235A CN201210122923A CN103377120A CN 103377120 A CN103377120 A CN 103377120A CN 2012101229235 A CN2012101229235 A CN 2012101229235A CN 201210122923 A CN201210122923 A CN 201210122923A CN 103377120 A CN103377120 A CN 103377120A
Authority
CN
China
Prior art keywords
debugging
application program
environment
test
beta version
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
CN2012101229235A
Other languages
Chinese (zh)
Other versions
CN103377120B (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.)
Shenzhen Tenpay Technology Co Ltd
Original Assignee
Shenzhen Tenpay 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 Shenzhen Tenpay Technology Co Ltd filed Critical Shenzhen Tenpay 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

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a test method and device for application programs. The test method and device for the application programs is suitable for the software technical field. The test method comprises building the sandbox environment which is used for simulating the real environment in which the application programs operate; loading a test version of the application programs to operate in the sandbox environment to enable a user to achieve function testing and debugging on the test version in the sandbox environment; enabling the debugged application programs to be accessed to the real environment to operate through a preset data interface after the user achieves the function testing and debugging on the test version. According to the test method and device for the application programs, the sandbox environment for simulating the real operation environment is built, a test phase of development of the application programs is placed into the sandbox environment to be performed, the corresponding data interface is provided, and all data are directly accessed to the formal operation environment to operate after the testing is achieved, so that the development efficiency of the application programs is effectively improved and the development difficulty of developers is reduced.

Description

A kind of applied program testing method and device
Technical field
The invention belongs to software technology field, relate in particular to a kind of applied program testing method and device.
Background technology
Development along with computing machine and Internet technology, for example the so open platform of third party's application platform continues to bring out, it provides platform by the company that possesses platform resource, the developer of partner develops various dissimilar application programs and runs on this platform, with user-friendly.On third party's application platform, the exploitation of various application programs, reach the standard grade, move the related specifications that must meet this platform side.
The existing Application testing stage all carries out in real operating environment.For example, for payment function, need to use real money to pay test, the complex operations such as later stage reimbursement; For page display function, generally adopt the mode of white list, open page tests for a small amount of user in batches, and feedback effects is not comprehensive; And whole application program all can not be debugged in test process in time.In sum, existing applied program testing method causes the development efficiency of application program low easily, has improved developer's development difficulty.
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.
Description of drawings
Fig. 1 is the realization flow figure of the applied program testing method that provides of first embodiment of the invention;
Fig. 2 is the realization flow figure of the applied program testing method that provides of second embodiment of the invention;
Fig. 3 is the structured flowchart of the Application testing device that provides of third embodiment of the invention.
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.

Claims (6)

1. an applied program testing method is characterized in that, 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.
2. the method for claim 1 is characterized in that, also comprises:
Obtain 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.
3. the method for claim 1 is characterized in that,, before the step of application program access true environment with operation of debugging being finished by default data-interface, also comprises after the user finishes the functional test of described beta version and debugging described:
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;
When the application program of finishing when debugging meets default access conditions, carry out describedly after the user finishes functional test and debugging to described beta version, the application program access true environment of debugging being finished by default data-interface is with the step of operation.
4. an Application testing device is characterized in that, 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.
5. device as claimed in claim 4 is characterized in that, also comprises:
The white list acquiring unit is for the white list user who obtains 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.
6. device as claimed in claim 4 is characterized in that, also comprises:
Monitoring daily record generation unit, for detection of also recording user is to functional test and the debugging of described beta version, generation monitoring daily record is so that the operation personnel judges according to described monitoring daily record whether the application program that debugging is finished meets default access conditions;
Correspondingly, when described access unit 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.
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 true CN103377120A (en) 2013-10-30
CN103377120B 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)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065537A (en) * 2014-07-04 2014-09-24 中国联合网络通信集团有限公司 Application external measurement method, external measurement device management server and application external measurement system
CN105740705A (en) * 2015-12-28 2016-07-06 哈尔滨安天科技股份有限公司 LXC container-based host defense method and system
CN105975394A (en) * 2016-05-06 2016-09-28 华为技术有限公司 Program testing method and device
CN105975393A (en) * 2016-05-04 2016-09-28 腾讯科技(深圳)有限公司 Page display detection method and system
CN106708722A (en) * 2015-11-13 2017-05-24 北京金山安全软件有限公司 Application testing method and device and electronic equipment
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
CN109829296A (en) * 2019-01-29 2019-05-31 中化能源科技有限公司 The sandbox implementation method of intelligent contract based on alliance's chain
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
CN111966426A (en) * 2019-05-20 2020-11-20 顺丰科技有限公司 API (application program interface) docking method, system, equipment and storage medium
CN112448860A (en) * 2019-08-30 2021-03-05 北京奇艺世纪科技有限公司 Application program testing method and related equipment

Citations (5)

* 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
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
US20110225217A1 (en) * 2010-03-15 2011-09-15 Salesforce.Com, Inc. System, method and computer program product for deploying an update between environments of a multi-tenant on-demand database system
CN102682229A (en) * 2011-03-11 2012-09-19 北京市国路安信息技术有限公司 Malicious code behavior detection method based on virtualization technology

Patent Citations (5)

* 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
CN101425016A (en) * 2007-11-01 2009-05-06 珠海金山软件股份有限公司 Method and system for operating and installing software
US20110225217A1 (en) * 2010-03-15 2011-09-15 Salesforce.Com, Inc. System, method and computer program product for deploying an update between environments of a multi-tenant on-demand database system
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

Cited By (16)

* 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
CN104065537A (en) * 2014-07-04 2014-09-24 中国联合网络通信集团有限公司 Application external measurement method, external measurement device management server and application external measurement 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
CN105975393A (en) * 2016-05-04 2016-09-28 腾讯科技(深圳)有限公司 Page display detection method and system
CN105975394A (en) * 2016-05-06 2016-09-28 华为技术有限公司 Program testing method and device
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
CN109829296A (en) * 2019-01-29 2019-05-31 中化能源科技有限公司 The sandbox implementation method of intelligent contract based on alliance's chain
CN111966426A (en) * 2019-05-20 2020-11-20 顺丰科技有限公司 API (application program interface) docking method, system, equipment and storage medium
CN112448860A (en) * 2019-08-30 2021-03-05 北京奇艺世纪科技有限公司 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

Also Published As

Publication number Publication date
CN103377120B (en) 2017-06-30

Similar Documents

Publication Publication Date Title
CN103377120A (en) Test method and device for application programs
US9465725B2 (en) Software defect reporting
US9201758B2 (en) System and method for display of software quality
Amalfitano et al. Testing android mobile applications: Challenges, strategies, and approaches
US9495543B2 (en) Method and apparatus providing privacy benchmarking for mobile application development
US20130117855A1 (en) Apparatus for automatically inspecting security of applications and method thereof
CN104407980A (en) Mobile application automated testing device and method
CN110046479B (en) Link library file anti-debugging method and device based on android operating system
WO2014035463A1 (en) System and methods for generating and managing a virtual device
CN112241360B (en) Test case generation method, device, equipment and storage medium
Li et al. Peruim: Understanding mobile application privacy with permission-ui mapping
Lin et al. Improving the accuracy of automated GUI testing for embedded systems
CN103186463B (en) Determine the method and system of the test specification of software
CN107391362A (en) Application testing method, mobile terminal and storage medium
KR20150069455A (en) Test scenario generating device, allication testing system comprising the same, test scenario generating method, and recordable meduim thereof
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
Singh Different Software Quality Model
Faiz et al. Flutter framework code portability measurement on multiplatform applications with iso 9126
CN103823665A (en) SDK (software development kit) activeness analyzing method, network server and system
CN114168471A (en) Test method, test device, electronic equipment and storage medium
Borges Jr et al. Speeding up GUI testing by on-device test generation
Wu et al. CydiOS: A Model-Based Testing Framework for iOS Apps
Seo et al. Automating embedded software testing on an emulated target board
Kaestner et al. Model-driven code generation and analysis
Esbjörnsson ANDROID GUI TESTING: A comparative study of open source Android GUI testing frameworks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent of 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