[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105095063A - Application program testing method, apparatus and system - Google Patents

Application program testing method, apparatus and system Download PDF

Info

Publication number
CN105095063A
CN105095063A CN201410198097.1A CN201410198097A CN105095063A CN 105095063 A CN105095063 A CN 105095063A CN 201410198097 A CN201410198097 A CN 201410198097A CN 105095063 A CN105095063 A CN 105095063A
Authority
CN
China
Prior art keywords
application program
version application
user data
test
measured terminal
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.)
Pending
Application number
CN201410198097.1A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410198097.1A priority Critical patent/CN105095063A/en
Publication of CN105095063A publication Critical patent/CN105095063A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to an application program testing method, apparatus and system. The method comprises: installing an application program of a previous version to at least one tested terminal; generating user data of the application program of the previous version in the tested terminal; installing an application program of a late version in the tested terminal in a manner of reserving the user data of the application program of the previous version; and running the application program of the late version and generating a testing report according to a running result. According to the application program testing method, apparatus and system, the automation of overwrite installation testing of the application program can be realized, so that the manpower is saved and the test efficiency is improved; and user data of different user scenes can be generated and then overwrite installation is performed, so that the test effect is improved; and in addition, the overwrite installation testing also can be expanded to a plurality of terminals for running, so that the model adaptation performance is improved.

Description

Applied program testing method, Apparatus and system
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of applied program testing method, Apparatus and system.
Background technology
At present, the covering of the application program of Android phone or equipment install substantially be manually or simple robotization install: the application program of first installing legacy version, and then the application program of redaction is installed, finally start redaction application program and test it and whether normally run.
The covering of existing this application program is installed, due to user data (the such as log-on message that cannot produce legacy version application program, historical record etc.) carry out simulating or generating, therefore cause the covering installation testing of application program not produce and well test effect.
Summary of the invention
The embodiment of the present invention provides a kind of applied program testing method, Apparatus and system, is intended to the test effect and the testing efficiency that improve application program coverage test installation.
The embodiment of the present invention proposes a kind of applied program testing method, comprising:
To be installed at least one measured terminal in first version application program;
Described measured terminal generates the user data in first version application program;
To retain the described mode at the user data of first version application program, version application program after described measured terminal is arranged on;
Run described in rear version application program, generate test report according to operation result.
The embodiment of the present invention also proposes a kind of Application testing device, comprising:
First installation module, for being installed at least one measured terminal in first version application program;
User data generation module, for generating the user data in first version application program on described measured terminal;
Second installation module, for retain the described mode at the user data of first version application program, version application program after described measured terminal is arranged on;
Testing results module, described in rear version application program for running, generate test report according to operation result.
The embodiment of the present invention also proposes a kind of Application testing system, comprising: test terminal and at least one measured terminal communicated to connect with described test terminal; Wherein:
Described test terminal comprises device as above;
Described measured terminal, for being controlled by described test terminal, installing in first version application program, generating the user data in first version application program, to retain the described mode at the user data of first version application program, is arranged on rear version application program; And run described in rear version application program, this is tested in rear version application program.
A kind of applied program testing method, Apparatus and system that the embodiment of the present invention proposes, by being installed at least one measured terminal in first version application program; Measured terminal well generates the user data in first version application program; To retain the mode at the user data of first version application program, measured terminal covers version application program after being arranged on; Last automatic operating is in rear version application program, judge that whether operation result is normal, test report is generated according to operation result, not only can realize the robotization that application program covers installation testing, save manpower, improve testing efficiency, the user data of different user scene can be generated simultaneously, then cover installation, improve test effect; In addition, covering installation testing can also be expanded to multiple stage terminal operating, improve type Adapter Property.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of applied program testing method preferred embodiment of the present invention;
Fig. 2 is the high-level schematic functional block diagram of Application testing device of the present invention preferred embodiment;
Fig. 3 is the configuration diagram of Application testing system of the present invention preferred embodiment;
Fig. 4 is a kind of structural representation of test terminal in embodiment of the present invention Application testing system.
In order to make technical scheme of the present invention clearly, understand, be described in further detail below in conjunction with accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The primary solutions of the embodiment of the present invention is: by being installed at least one measured terminal in first version application program; Measured terminal well generates the user data in first version application program; To retain the mode at the user data of first version application program, measured terminal covers version application program after being arranged on; Last automatic operating is in rear version application program, judge that whether operation result is normal, test report is generated according to operation result, realize the robotization that application program covers installation testing, save manpower, improve testing efficiency, the user data of different user scene can be generated simultaneously, then cover installation, improve test effect; In addition, covering installation testing can also be expanded to multiple stage terminal operating, improve type Adapter Property.
As shown in Figure 1, present pre-ferred embodiments proposes a kind of applied program testing method, comprising:
Step S101, will be installed at least one measured terminal in first version application program;
The present embodiment method running environment relates to test terminal, one or more measured terminal, wherein, test terminal can be PC or other servers, measured terminal is the mobile terminal such as mobile phone, panel computer needing set up applications and need application programs to carry out testing, and this mobile terminal can be the mobile terminal of Andriod operating system or other operating systems.
Take test terminal as PC, measured terminal is that mobile phone is illustrated, wherein, the application program referring to and mobile phone installed at first version is installed in the covering of application program, from web download or by data line copy in the application program of rear version to mobile phone, then version application program after being arranged on mobile phone, wherein, the application program first developed is referred in first version application program, i.e. legacy version application program, the application program of exploitation after rear version application program refers to, i.e. redaction application program, be later than in first version application program in the issuing time of rear version application program.
Because the covering of existing application program is installed, user data (the such as log-on message that cannot produce legacy version application program, historical record etc.) carry out simulating or generating, therefore cause the covering installation testing of application program not produce and well test effect, the present embodiment can realize carrying out covering to the application program on one or more mobile phone by PC and install, and the data of legacy version application program can be retained, the a lot of information of such user can be retained, and can improve testing efficiency and test effect.
Particularly, in the present embodiment, the Application testing scheme of the present embodiment (Windows/Mac/Linux) on PC is run.
First mobile phone (can have multiple stage) of being correlated with is connected to PC, and wherein, the connection of mobile phone and PC can adopt the wired connection modes such as USB data line to connect, and also can be connected by wireless modes such as wifi.
Then, on PC, be connected to pushing in first version application program and be installed on one or more mobile phones of PC by script (can be Python or Java etc.).
Step S102, described measured terminal generates the user data in first version application program;
Wherein, user data refers to that user is using the data generated in application program process, such as, after using mobile phone QQ, has associated login information after login, and friend information etc.These information general all can be stored in below catalogue data/data/Apps (Apply Names).
Measured terminal generates version application program after being arranged on again after the user data of first version application program, and then rolling inspection is at the whether normal script of the application program of rear version, if script runs through, so covers and is fitted through; If script runs unsuccessfully, so cover and install unsuccessfully.
Wherein, measured terminal generates specifically can adopt following three kinds of schemes at the user data of first version application program:
The first scheme: run the random key script generated in advance on measured terminal, such as MTTF script, generates the user data in first version application program thus.Described random key script comprises analog subscriber and to click arbitrarily at random on tested mobile phone, double-click, to slide and/or long by generated script.
Run random key script, can generate the user data in first version application program, its randomness is larger.For MTTF script, then the monkey instrument that Andriod can be used to carry generates, and also can be write the script of random key by developer.
First scheme: the user data generated in the daily test process of first version application program is backed up, the Backup Data obtained is sent to tested mobile phone.
Such as, the user data generated in the daily test process of first version application program is backed up, and then under being sent to certain catalogue of tested mobile phone (the position possibility that different application stores user data is different, under being generally all stored in path data/data/App (application name)).
Under normal circumstances, in first version application program, some manual tests can be done, will user data be generated like this, such user data backup out (directly can be copied) below application catalog, can Backup Data be obtained.
The third scheme: commonly use scene composition automatized script for user on measured terminal, run the automatized script write, such as mobile phone QQ, then can realize the script etc. of QQ login, messaging, thus by user being commonly used the user data of scene robotization generation in first version application program.
Step S103, to retain the described mode at the user data of first version application program, version application program after described measured terminal is arranged on;
Version application program after being arranged on measured terminal afterwards, after being arranged on during version application program, covering and installs in first version application program, and needs to retain version application program after the mode of the user data of first version application program is arranged on.
Step S104, runs described in rear version application program, generates test report according to operation result.
Finally, operate in rear version application program, test at rear version application program whether normal operation, then can generate corresponding test report according to operation result.
Wherein, test whether normal operation can adopt following two kinds of modes in rear version application program:
First kind of way: commonly use scene script in run user in rear version application program, such as log in mobile phone QQ, just can realize the script etc. of mobile phone QQ login, messaging, commonly use scene script validates by run user whether normal in rear version application program.If there is not Crash (program is collapsed in operational process favorite outer appearance, dodged the phenomenon of moving back) in rear version application program in operational process, then verify at rear version application program normal operation, test is passed through, if there is Crash in rear version application program in operational process, then verify and run abnormal in rear version application program, test is not passed through.
The second way: run random key script (MTTF script) schedule time described in rear version application program, such as 30 minutes, whether namely analog subscriber must be clicked arbitrarily at random on mobile phone, double-click, slides, longly to press etc., verify in rear version application program normal with this; If there is not Crash in rear version application program in operational process, then verify that test is passed through at rear version application program normal operation, if there is Crash in rear version application program in operational process, then verify and run abnormal in rear version application program, test is not passed through.
The present embodiment passes through such scheme, by being installed at least one measured terminal in first version application program; Measured terminal well generates the user data in first version application program; To retain the mode at the user data of first version application program, measured terminal covers version application program after being arranged on; Last automatic operating is in rear version application program, judge that whether operation result is normal, test report is generated according to operation result, not only can realize the robotization that application program covers installation testing, save manpower, improve testing efficiency, the user data of different user scene can be generated simultaneously, then cover installation, improve test effect; In addition, covering installation testing can also be expanded to multiple stage terminal operating, improve type Adapter Property.
As shown in Figure 2, present pre-ferred embodiments proposes a kind of Application testing device, comprising: the first installation module 201, user data generation module 202, second installation module 203 and testing results module 204, wherein:
First installation module 201, for being installed at least one measured terminal in first version application program;
User data generation module 202, for generating the user data in first version application program on described measured terminal;
Second installation module 203, for retain the described mode at the user data of first version application program, version application program after described measured terminal is arranged on;
Testing results module 204, described in rear version application program for running, generate test report according to operation result.
The present embodiment Application testing device can be arranged on test terminal, this test terminal can be PC or other servers, measured terminal is the mobile terminal such as mobile phone, panel computer needing set up applications and need application programs to carry out testing, and this mobile terminal can be the mobile terminal of Andriod operating system or other operating systems.
Take test terminal as PC, measured terminal is that mobile phone is illustrated, wherein, the application program referring to and mobile phone installed at first version is installed in the covering of application program, from web download or by data line copy in the application program of rear version to mobile phone, then version application program after being arranged on mobile phone, wherein, the application program first developed is referred in first version application program, i.e. legacy version application program, the application program of exploitation after rear version application program refers to, i.e. redaction application program, be later than in first version application program in the issuing time of rear version application program.
Because the covering of existing application program is installed, user data (the such as log-on message that cannot produce legacy version application program, historical record etc.) carry out simulating or generating, therefore cause the covering installation testing of application program not produce and well test effect, the present embodiment can realize carrying out covering to the application program on one or more mobile phone by PC and install, and the data of legacy version application program can be retained, the a lot of information of such user can be retained, and can improve testing efficiency and test effect.
Particularly, in the present embodiment, the Application testing scheme of the present embodiment (Windows/Mac/Linux) on PC is run.
First mobile phone (can have multiple stage) of being correlated with is connected to PC, and wherein, the connection of mobile phone and PC can adopt the wired connection modes such as USB data line to connect, and also can be connected by wireless modes such as wifi.
Then, on PC, be connected to pushing in first version application program and be installed on one or more mobile phones of PC by script (can be Python or Java etc.).
Wherein, user data refers to that user is using the data generated in application program process, such as, after using mobile phone QQ, has associated login information after login, and friend information etc.These information general all can be stored in below catalogue data/data/Apps (Apply Names).
Measured terminal generates version application program after being arranged on again after the user data of first version application program, and then rolling inspection is at the whether normal script of the application program of rear version, if script runs through, so covers and is fitted through; If script runs unsuccessfully, so cover and install unsuccessfully.
Wherein, measured terminal generates specifically can adopt following three kinds of schemes at the user data of first version application program:
The first scheme: run the random key script generated in advance on measured terminal, such as MTTF script, generates the user data in first version application program thus.Described random key script comprises analog subscriber and to click arbitrarily at random on tested mobile phone, double-click, to slide and/or long by generated script.
Run random key script, can generate the user data in first version application program, its randomness is larger.For MTTF script, then the monkey instrument that Andriod can be used to carry generates, and also can be write the script of random key by developer.
First scheme: the user data generated in the daily test process of first version application program is backed up, the Backup Data obtained is sent to tested mobile phone.
Such as, the user data generated in the daily test process of first version application program is backed up, and then under being sent to certain catalogue of tested mobile phone (the position possibility that different application stores user data is different, under being generally all stored in path data/data/App (application name)).
Under normal circumstances, in first version application program, some manual tests can be done, will user data be generated like this, such user data backup out (directly can be copied) below application catalog, can Backup Data be obtained.
The third scheme: commonly use scene composition automatized script for user on measured terminal, run the automatized script write, such as mobile phone QQ, then can realize the script etc. of QQ login, messaging, thus by user being commonly used the user data of scene robotization generation in first version application program.
Version application program after being arranged on measured terminal afterwards, after being arranged on during version application program, covering and installs in first version application program, and needs to retain version application program after the mode of the user data of first version application program is arranged on.
Finally, operate in rear version application program, test at rear version application program whether normal operation, then can generate corresponding test report according to operation result.
Wherein, test whether normal operation can adopt following two kinds of modes in rear version application program:
First kind of way: commonly use scene script in run user in rear version application program, such as log in mobile phone QQ, just can realize the script etc. of mobile phone QQ login, messaging, commonly use scene script validates by run user whether normal in rear version application program.If there is not Crash (program is collapsed in operational process favorite outer appearance, dodged the phenomenon of moving back) in rear version application program in operational process, then verify at rear version application program normal operation, test is passed through, if there is Crash in rear version application program in operational process, then verify and run abnormal in rear version application program, test is not passed through.
The second way: run random key script (MTTF script) schedule time described in rear version application program, such as 30 minutes, whether namely analog subscriber must be clicked arbitrarily at random on mobile phone, double-click, slides, longly to press etc., verify in rear version application program normal with this; If there is not Crash in rear version application program in operational process, then verify that test is passed through at rear version application program normal operation, if there is Crash in rear version application program in operational process, then verify and run abnormal in rear version application program, test is not passed through.
The present embodiment passes through such scheme, by being installed at least one measured terminal in first version application program; Measured terminal well generates the user data in first version application program; To retain the mode at the user data of first version application program, measured terminal covers version application program after being arranged on; Last automatic operating is in rear version application program, judge that whether operation result is normal, test report is generated according to operation result, not only can realize the robotization that application program covers installation testing, save manpower, improve testing efficiency, the user data of different user scene can be generated simultaneously, then cover installation, improve test effect; In addition, covering installation testing can also be expanded to multiple stage terminal operating, improve type Adapter Property.
As shown in Figure 3, present pre-ferred embodiments proposes a kind of Application testing system, comprising: test terminal 301 and at least one measured terminal 302 communicated to connect with described test terminal 301; Wherein:
Described test terminal 301 comprises the device described in above-described embodiment;
Described measured terminal 302, for being controlled by described test terminal 301, installing in first version application program, generating the user data in first version application program, to retain the described mode at the user data of first version application program, is arranged on rear version application program; And run described in rear version application program, this is tested in rear version application program.
Particularly, the present embodiment test terminal 301 can be PC or other servers, measured terminal 302 is for needing set up applications and the mobile terminal such as mobile phone, panel computer needing application programs to carry out testing, and this mobile terminal can be the mobile terminal of Andriod operating system or other operating systems.
With test terminal 301 for PC, measured terminal 302 is illustrated for mobile phone, wherein, the application program referring to and mobile phone installed at first version is installed in the covering of application program, from web download or by data line copy in the application program of rear version to mobile phone, then version application program after being arranged on mobile phone, wherein, the application program first developed is referred in first version application program, i.e. legacy version application program, the application program of exploitation after rear version application program refers to, i.e. redaction application program, be later than in first version application program in the issuing time of rear version application program.
Because the covering of existing application program is installed, user data (the such as log-on message that cannot produce legacy version application program, historical record etc.) carry out simulating or generating, therefore cause the covering installation testing of application program not produce and well test effect, the present embodiment can realize carrying out covering to the application program on one or more mobile phone by PC and install, and the data of legacy version application program can be retained, the a lot of information of such user can be retained, and can improve testing efficiency and test effect.
Particularly, in the present embodiment, the Application testing scheme of the present embodiment (Windows/Mac/Linux) on PC is run.
First mobile phone (can have multiple stage) of being correlated with is connected to PC, and wherein, the connection of mobile phone and PC can adopt the wired connection modes such as USB data line to connect, and also can be connected by wireless modes such as wifi.
Then, on PC, be connected to pushing in first version application program and be installed on one or more mobile phones of PC by script (can be Python or Java etc.).
Wherein, user data refers to that user is using the data generated in application program process, such as, after using mobile phone QQ, has associated login information after login, and friend information etc.These information general all can be stored in below catalogue data/data/Apps (Apply Names).
Measured terminal 302 generates version application program after being arranged on again after the user data of first version application program, and then rolling inspection is at the whether normal script of the application program of rear version, if script runs through, so covers and is fitted through; If script runs unsuccessfully, so cover and install unsuccessfully.
Wherein, measured terminal 302 generates specifically can adopt following three kinds of schemes at the user data of first version application program:
The first scheme: run the random key script generated in advance on measured terminal 302, such as MTTF script, generates the user data in first version application program thus.Described random key script comprises analog subscriber and to click arbitrarily at random on tested mobile phone, double-click, to slide and/or long by generated script.
Run random key script, can generate the user data in first version application program, its randomness is larger.For MTTF script, then the monkey instrument that Andriod can be used to carry generates, and also can be write the script of random key by developer.
First scheme: the user data generated in the daily test process of first version application program is backed up, the Backup Data obtained is sent to tested mobile phone.
Such as, the user data generated in the daily test process of first version application program is backed up, and then under being sent to certain catalogue of tested mobile phone (the position possibility that different application stores user data is different, under being generally all stored in path data/data/App (application name)).
Under normal circumstances, in first version application program, some manual tests can be done, will user data be generated like this, such user data backup out (directly can be copied) below application catalog, can Backup Data be obtained.
The third scheme: commonly use scene composition automatized script for user on measured terminal 302, run the automatized script write, such as mobile phone QQ, then can realize the script etc. of QQ login, messaging, thus by user being commonly used the user data of scene robotization generation in first version application program.
Version application program after being arranged on measured terminal 302 afterwards, after being arranged on during version application program, covering and installs in first version application program, and needs to retain version application program after the mode of the user data of first version application program is arranged on.
Finally, operate in rear version application program, test at rear version application program whether normal operation, then can generate corresponding test report according to operation result.
Wherein, test whether normal operation can adopt following two kinds of modes in rear version application program:
First kind of way: commonly use scene script in run user in rear version application program, such as log in mobile phone QQ, just can realize the script etc. of mobile phone QQ login, messaging, commonly use scene script validates by run user whether normal in rear version application program.If there is not Crash (program is collapsed in operational process favorite outer appearance, dodged the phenomenon of moving back) in rear version application program in operational process, then verify at rear version application program normal operation, test is passed through, if there is Crash in rear version application program in operational process, then verify and run abnormal in rear version application program, test is not passed through.
The second way: run random key script (MTTF script) schedule time described in rear version application program, such as 30 minutes, whether namely analog subscriber must be clicked arbitrarily at random on mobile phone, double-click, slides, longly to press etc., verify in rear version application program normal with this; If there is not Crash in rear version application program in operational process, then verify that test is passed through at rear version application program normal operation, if there is Crash in rear version application program in operational process, then verify and run abnormal in rear version application program, test is not passed through.
The present embodiment passes through such scheme, by being installed at least one measured terminal 302 in first version application program; Measured terminal 302 well generates the user data in first version application program; To retain the mode at the user data of first version application program, measured terminal 302 covers version application program after being arranged on; Last automatic operating is in rear version application program, judge that whether operation result is normal, test report is generated according to operation result, not only can realize the robotization that application program covers installation testing, save manpower, improve testing efficiency, the user data of different user scene can be generated simultaneously, then cover installation, improve test effect; In addition, covering installation testing can also be expanded to multiple stage terminal operating, improve type Adapter Property.
As shown in Figure 4, Fig. 4 is a kind of structural representation of test terminal in embodiment of the present invention Application testing system.
As shown in Figure 4, this test terminal can comprise: processor 1001, such as CPU, network interface 1004, user interface 1003, storer 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these assemblies.User interface 1003 can comprise display screen (Display), keyboard (Keyboard), and optional user interface 1003 can also comprise wireline interface, the wave point of standard.Network interface 1004 optionally can comprise wireline interface, the wave point (as WI-FI interface) of standard.Storer 1005 can be high-speed RAM storer, also can be non-labile storer (non-volatilememory), such as individual magnetic disk memory.Storer 1005 can also be optionally the individual memory storage be positioned at away from aforementioned processor 1001.As shown in Figure 4, operating system, network communication module, Subscriber Interface Module SIM and Application testing program can be comprised as in a kind of storer 1005 of computer-readable storage medium.
In the test terminal shown in Fig. 4, network interface 1004 is mainly used in connecting measured terminal, carries out data communication with measured terminal; User interface 1003 is mainly used in connecting user side, carries out data communication with user side; And processor 1001 may be used for calling the Application testing program stored in storer 1005, and perform following operation:
The operational order of user is obtained by user interface 1003;
Connect measured terminal by network interface 1004, will be installed at least one measured terminal in first version application program; Described measured terminal generates the user data in first version application program; To retain the described mode at the user data of first version application program, version application program after described measured terminal is arranged on; Run described in rear version application program, generate test report according to operation result.
In one embodiment, processor 1001 calls the Application testing program stored in storer 1005 and can perform following operation:
On described measured terminal, run the random key script generated in advance by network interface 1004, generate the user data in first version application program; And/or the user data generated in the daily test process of first version application program is backed up, the Backup Data obtained is sent to described measured terminal; And/or scene composition automatized script is commonly used for user on described measured terminal, run the automatized script write, generate the user data in first version application program.
In one embodiment, processor 1001 calls the Application testing program stored in storer 1005 and can perform following operation:
By network interface 1004 on measured terminal in rear version application program run user commonly use scene script, whether checking described normal in rear version application program; If normal, then test is passed through; Otherwise test is not passed through.
In one embodiment, processor 1001 calls the Application testing program stored in storer 1005 and can perform following operation:
On measured terminal, run random key script by network interface 1004 in rear version application program, whether checking is described normal in rear version application program; If normal, then test is passed through; Otherwise test is not passed through.
The present embodiment passes through such scheme, by being installed at least one measured terminal in first version application program; Measured terminal well generates the user data in first version application program; To retain the mode at the user data of first version application program, measured terminal covers version application program after being arranged on; Last automatic operating is in rear version application program, judge that whether operation result is normal, test report is generated according to operation result, not only can realize the robotization that application program covers installation testing, save manpower, improve testing efficiency, the user data of different user scene can be generated simultaneously, then cover installation, improve test effect; In addition, covering installation testing can also be expanded to multiple stage terminal operating, improve type Adapter Property.
Also it should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or flow process conversion; or be directly or indirectly used in other relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (11)

1. an applied program testing method, is characterized in that, comprising:
To be installed at least one measured terminal in first version application program;
Described measured terminal generates the user data in first version application program;
To retain the described mode at the user data of first version application program, version application program after described measured terminal is arranged on;
Run described in rear version application program, generate test report according to operation result.
2. method according to claim 1, is characterized in that, described generation on measured terminal comprises in the step of the user data of first version application program:
Described measured terminal runs the random key script generated in advance, generates the user data in first version application program; And/or
The user data generated in the daily test process of first version application program is backed up, the Backup Data obtained is sent to described measured terminal; And/or
Described measured terminal commonly uses scene composition automatized script for user, runs the automatized script write, generate the user data in first version application program.
3. method according to claim 2, is characterized in that, described in operate in rear version application program, generate the step of test report according to operation result and comprise:
Described in rear version application program run user commonly use scene script, whether checking described normal in rear version application program; If normal, then test is passed through; Otherwise test is not passed through.
4. method according to claim 2, is characterized in that, described in operate in rear version application program, generate the step of test report according to operation result and comprise:
In rear version application program, run random key script described, whether checking is described normal in rear version application program; If normal, then test is passed through; Otherwise test is not passed through.
5. the method according to claim 2,3 or 4, is characterized in that, described random key script comprising analog subscriber random click arbitrarily on measured terminal, double-clicking, sliding and/or the long script by generating.
6. an Application testing device, is characterized in that, comprising:
First installation module, for being installed at least one measured terminal in first version application program;
User data generation module, for generating the user data in first version application program on described measured terminal;
Second installation module, for retain the described mode at the user data of first version application program, version application program after described measured terminal is arranged on;
Testing results module, described in rear version application program for running, generate test report according to operation result.
7. device according to claim 6, is characterized in that,
User data generation module, also for running the random key script generated in advance on described measured terminal, generates the user data in first version application program; And/or the user data generated in the daily test process of first version application program is backed up, the Backup Data obtained is sent to described measured terminal; And/or scene composition automatized script is commonly used for user on described measured terminal, run the automatized script write, generate the user data in first version application program.
8. device according to claim 7, is characterized in that,
Described testing results module, also for described in rear version application program run user commonly use scene script, whether checking described normal in rear version application program; If normal, then test is passed through; Otherwise test is not passed through.
9. device according to claim 7, is characterized in that,
Described testing results module, also for running random key script described in rear version application program, whether checking is described normal in rear version application program; If normal, then test is passed through; Otherwise test is not passed through.
10. the device according to claim 7,8 or 9, is characterized in that, described random key script comprising analog subscriber random click arbitrarily on measured terminal, double-clicking, sliding and/or the long script by generating.
11. 1 kinds of Application testing systems, is characterized in that, comprising: test terminal and at least one measured terminal communicated to connect with described test terminal; Wherein:
Described test terminal comprises the device according to any one of claim 6-10;
Described measured terminal, for being controlled by described test terminal, installing in first version application program, generating the user data in first version application program, to retain the described mode at the user data of first version application program, is arranged on rear version application program; And run described in rear version application program, this is tested in rear version application program.
CN201410198097.1A 2014-05-12 2014-05-12 Application program testing method, apparatus and system Pending CN105095063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410198097.1A CN105095063A (en) 2014-05-12 2014-05-12 Application program testing method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410198097.1A CN105095063A (en) 2014-05-12 2014-05-12 Application program testing method, apparatus and system

Publications (1)

Publication Number Publication Date
CN105095063A true CN105095063A (en) 2015-11-25

Family

ID=54575559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410198097.1A Pending CN105095063A (en) 2014-05-12 2014-05-12 Application program testing method, apparatus and system

Country Status (1)

Country Link
CN (1) CN105095063A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108446222A (en) * 2018-03-05 2018-08-24 百度在线网络技术(北京)有限公司 Application testing method, device and equipment
CN111506492A (en) * 2019-01-31 2020-08-07 百度在线网络技术(北京)有限公司 Application program testing method and device, equipment and storage medium
CN111949448A (en) * 2020-08-11 2020-11-17 深圳市前海手绘科技文化有限公司 Android terminal test environment backup and recovery method
CN112346965A (en) * 2020-10-12 2021-02-09 天津五八到家货运服务有限公司 Test case distribution method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188516A (en) * 2007-12-21 2008-05-28 康佳集团股份有限公司 A highly reliable and self-adapted remote update method for network device software system
CN101609410A (en) * 2008-06-19 2009-12-23 佳能株式会社 Process user generates the device of data and the control method of this device
CN101951529A (en) * 2010-08-31 2011-01-19 中山大学 Method and system for testing functions of set top box
CN102314386A (en) * 2011-09-05 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for testing mobile terminal
CN102419732A (en) * 2011-12-27 2012-04-18 Tcl集团股份有限公司 Android platform-based automatic test method and test tool
CN103324507A (en) * 2013-06-25 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for updating terminal preset application program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188516A (en) * 2007-12-21 2008-05-28 康佳集团股份有限公司 A highly reliable and self-adapted remote update method for network device software system
CN101609410A (en) * 2008-06-19 2009-12-23 佳能株式会社 Process user generates the device of data and the control method of this device
CN101951529A (en) * 2010-08-31 2011-01-19 中山大学 Method and system for testing functions of set top box
CN102314386A (en) * 2011-09-05 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for testing mobile terminal
CN102419732A (en) * 2011-12-27 2012-04-18 Tcl集团股份有限公司 Android platform-based automatic test method and test tool
CN103324507A (en) * 2013-06-25 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for updating terminal preset application program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108446222A (en) * 2018-03-05 2018-08-24 百度在线网络技术(北京)有限公司 Application testing method, device and equipment
CN111506492A (en) * 2019-01-31 2020-08-07 百度在线网络技术(北京)有限公司 Application program testing method and device, equipment and storage medium
CN111506492B (en) * 2019-01-31 2023-05-26 百度在线网络技术(北京)有限公司 Application program testing method and device, equipment and storage medium
CN111949448A (en) * 2020-08-11 2020-11-17 深圳市前海手绘科技文化有限公司 Android terminal test environment backup and recovery method
CN112346965A (en) * 2020-10-12 2021-02-09 天津五八到家货运服务有限公司 Test case distribution method, device and storage medium
CN112346965B (en) * 2020-10-12 2024-05-17 天津五八到家货运服务有限公司 Test case distribution method, device and storage medium

Similar Documents

Publication Publication Date Title
CN102708050B (en) Method and system for testing mobile application
US10013330B2 (en) Automated mobile application verification
CN111651366B (en) SDK test method, device, equipment and storage medium
CN105159833A (en) Automatic testing device and method
CN104407980A (en) Mobile application automated testing device and method
CN107896244B (en) Version file distribution method, client and server
CN107562637B (en) Method, device, system and storage medium for software testing
CN104679654A (en) Method, equipment and system for testing application program
CN105426298A (en) ADB (Android debug bridge)-based software test method and system
CN104765678A (en) Method and device for testing applications on mobile terminal
CN111143150A (en) Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit
CN105912473A (en) BDD-based mobile APP automatic testing platform and testing method
CN105302732A (en) Automatic mobile terminal testing method and device
CN103401713B (en) The system and method that a kind of software is issued
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN105302722A (en) CTS automatic test method and apparatus
CN106339273A (en) Application program restoration method, terminal and server
CN105389263A (en) Method, system and equipment for monitoring application software permissions
CN108111364B (en) Service system testing method and device
CN105095063A (en) Application program testing method, apparatus and system
CN104917633A (en) Method and device simulating FOTA upgrade
CN113709243A (en) Equipment remote control method and device, electronic equipment and storage medium
CN103546342A (en) Terminal consistency testing method and API (application program interface) interface general adapter for terminal consistency testing method
CN105227597A (en) A kind of method, Apparatus and system obtaining terminal equipment screen-picture
CN109739756B (en) Method and equipment for testing application of mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151125