CN103853663A - Application program test method and system - Google Patents

Application program test method and system Download PDF

Info

Publication number
CN103853663A
CN103853663A CN201410114875.4A CN201410114875A CN103853663A CN 103853663 A CN103853663 A CN 103853663A CN 201410114875 A CN201410114875 A CN 201410114875A CN 103853663 A CN103853663 A CN 103853663A
Authority
CN
China
Prior art keywords
application program
test
test procedure
electronic equipment
measured
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
CN201410114875.4A
Other languages
Chinese (zh)
Other versions
CN103853663B (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.)
BEIJING LIEBAO NETWORK TECHNOLOGY CO., LTD.
Original Assignee
Beijing Kingsoft Internet Science and 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 Beijing Kingsoft Internet Science and Technology Co Ltd filed Critical Beijing Kingsoft Internet Science and Technology Co Ltd
Priority to CN201410114875.4A priority Critical patent/CN103853663B/en
Publication of CN103853663A publication Critical patent/CN103853663A/en
Application granted granted Critical
Publication of CN103853663B publication Critical patent/CN103853663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

The embodiment of the invention provides an application program test method and an application program test system. Encapsulation files and marks corresponding to the encapsulation files generated after the encapsulation on precompiled test programs aiming at different operation steps can be placed in electronic equipment, so the test program required to be repeatedly compiled before only needs to be complied once, other test personnel do not need to compile the test program in the encapsulation files, and only a corresponding test program needs to be selected for testing the application program through the marks. The method and the system have the advantages that the integral work quantity is reduced, so other test personnel do not need to compile the test program in the encapsulation files, and the test efficiency is improved.

Description

Applied program testing method and system
Technical field
The present invention relates to application testing technical field, particularly relate to applied program testing method and system.
Background technology
Along with scientific and technological development, the application program in electronic equipment is also more and more.In order to confirm validity and the security of application program, a lot of testers usually need application programs to test.
Existing method of testing needs multiple testers a certain application program to be tested simultaneously, and this just need to all testers write the test code for this application program.Inventor studies discovery, even testing for the different function of application program in the case of all testers, it is identical also having partial code in the test code that each tester writes.For example: each function to certain application program is tested, all need first to open this application program, this just need to all testers all writes application program and opens code.
Visible, above method has caused the duplication of labour, is unfavorable for the raising of testing efficiency.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of applied program testing method and system, to realize the object that improves testing efficiency.
For achieving the above object, the embodiment of the invention discloses a kind of applied program testing method, described method comprises:
Deposit in electronic equipment by multiple package files with test function and for the mark of each package file setting in advance, in described package file, include the test procedure for operation steps in test process writing in advance, the test procedure in different package files for operation steps difference;
According to the described package file and the described mark that pre-deposit electronic equipment, application programs is tested;
Wherein, described basis pre-deposits described package file and the described mark of electronic equipment, and application programs is tested, and comprising:
Show the mark corresponding with described package file;
Receive first selection instruction of user to shown mark;
Carry out the test procedure in the corresponding package file of mark of selecting with user, application programs is tested.
Preferably, include the multiple test procedures for same operation steps in described package file, each test procedure is applicable to be arranged on the application program specific to be measured in the electronic equipment of particular type;
Test procedure in the corresponding package file of mark that described execution and user select, the step that application programs is tested, comprising:
First electronic equipment at definite the first application program to be measured that will test and described the first application program to be measured place;
In the corresponding package file of mark of selecting with user, determine and be applicable to the first test procedure of described the first application program to be measured that is arranged on described the first electronic equipment;
Carrying out described the first test procedure tests described the first application program to be measured that is arranged on described the first electronic equipment.
Preferably, include the multiple test procedures for same operation steps in described package file, each test procedure is applicable to be arranged on the application program specific to be measured in the electronic equipment of particular type;
Before reception user is to the first selection instruction of shown mark, described method also comprises:
First electronic equipment at definite the first application program to be measured that will test and described the first application program to be measured place;
The step that test procedure in the corresponding package file of mark that described execution and user select is tested described application program to be measured, comprising:
In the corresponding package file of mark of selecting with user, determine and be applicable to the first test procedure of described the first application program to be measured that is arranged on described the first electronic equipment;
Carrying out described the first test procedure tests described the first application program to be measured that is arranged on described the first electronic equipment.
Preferably, in described electronic equipment, store configuration file, in described configuration file, include the information of at least one electronic device information and at least one application program, the step of first electronic equipment at described definite the first application program to be measured that will test and described the first application program to be measured place, comprising:
In described electronic equipment, show described electronic device information in described configuration file and the information of described application program;
Receive the second selection instruction of the information of user to described electronic device information and described application program;
According to definite the first application program to be measured that will test of described the second selection instruction and first electronic equipment at described the first application program to be measured place.
Preferably, also store the identification information of the application program control corresponding with test procedure in described package file, the step that described the first test procedure of described execution is tested being arranged on described first application program to be measured of described the first electronic equipment, comprising:
Determine the identification information of the application program control corresponding with described the first test procedure;
In the interface of described the first application program to be measured that is arranged on described the first electronic equipment, determine the application program control corresponding with described the first test procedure according to determined identification information;
Carry out described the first test procedure, determined application program control is tested.
A kind of Application testing system, described system comprises: storage unit and test cell,
Described storage unit, for storing multiple the have package file of test function and the marks for each package file setting, in described package file, include the test procedure for operation steps in test process writing in advance, the test procedure in different package files for operation steps difference;
Described test cell, for according to pre-depositing described package file and the described mark of electronic equipment, application programs is tested;
Described test cell comprises: the first display unit, the first command reception unit and test execution unit,
Described the first display unit, for showing the mark corresponding with described package file;
Described the first command reception unit, for receiving first selection instruction of user to shown mark;
Described test execution unit, for carrying out the test procedure of the corresponding package file of mark of selecting with user, application programs is tested.
Preferably, include the multiple test procedures for same operation steps in described package file, each test procedure is applicable to be arranged on the application program specific to be measured in the electronic equipment of particular type;
Described test execution unit, comprising: tested object determining unit, test procedure determining unit and test procedure performance element,
Described tested object determining unit, for definite the first application program to be measured that will test and first electronic equipment at described the first application program to be measured place;
Described test procedure determining unit, for the corresponding package file of mark selecting with user, determines and is applicable to the first test procedure of described the first application program to be measured that is arranged on described the first electronic equipment;
Described test procedure performance element, tests described the first application program to be measured that is arranged on described the first electronic equipment for carrying out described the first test procedure.
Preferably, include the multiple test procedures for same operation steps in described package file, each test procedure is applicable to be arranged on the application program specific to be measured in the electronic equipment of particular type; Described system also comprises: tested object determining unit, for before described the first command reception unit reception user is to the first selection instruction of shown mark, definite the first application program to be measured that will test and first electronic equipment at described the first application program to be measured place;
Described test execution unit, comprising: test procedure determining unit and test procedure performance element,
Described test procedure determining unit, for the corresponding package file of mark selecting with user, determines and is applicable to the first test procedure of described the first application program to be measured that is arranged on described the first electronic equipment;
Described test procedure performance element, tests described the first application program to be measured that is arranged on described the first electronic equipment for carrying out described the first test procedure.
Preferably, in described storage unit, also store configuration file, in described configuration file, include the information of at least one electronic device information and at least one application program, described tested object determining unit comprises: information demonstration subelement, command reception subelement and object are determined subelement
Described information shows subelement, for show described electronic device information in described configuration file and the information of described application program at described electronic equipment;
Described command reception subelement, for receiving the second selection instruction of the information of user to described electronic device information and described application program;
Described object is determined subelement, for determining the first application program to be measured that will test and first electronic equipment at described the first application program to be measured place according to described the second selection instruction.
Preferably, also store the identification information of the application program control corresponding with test procedure in described package file, described test procedure performance element, comprising: the definite subelement of mark, control are determined subelement and control test subelement,
Described mark is determined subelement, for determining the identification information of the application program control corresponding with described the first test procedure;
Described control is determined subelement, for determining the application program control corresponding with described the first test procedure according to determined identification information at the interface of described the first application program to be measured that is arranged on described the first electronic equipment;
Described control test subelement, for carrying out described the first test procedure, tests determined application program control.
The applied program testing method that the embodiment of the present invention provides and system, can in electronic equipment, place to write in advance encapsulate for the test procedure of different operating step after generate package file and mark corresponding to package file.Like this, need the test procedure that repeats to write only to write once, other testers do not need to write the test procedure in package file again before, only need to select corresponding test procedure application programs to test by mark.The present invention has reduced overall workload, makes other testers not need to write the test procedure in package file again, has improved testing efficiency.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of a kind of applied program testing method that Fig. 1 provides for the embodiment of the present invention;
A kind of operation steps selection interface schematic diagram that Fig. 2 provides for the embodiment of the present invention;
The another kind of operation steps selection interface schematic diagram that Fig. 3 provides for the embodiment of the present invention;
The another kind of operation steps selection interface schematic diagram that Fig. 4 provides for the embodiment of the present invention;
The process flow diagram of the another kind of applied program testing method that Fig. 5 provides for the embodiment of the present invention;
The process flow diagram of the another kind of applied program testing method that Fig. 6 provides for the embodiment of the present invention;
The process flow diagram of the another kind of applied program testing method that Fig. 7 provides for the embodiment of the present invention;
The structural representation of a kind of Application testing system that Fig. 8 provides for the embodiment of the present invention;
The structural representation of the another kind of Application testing system that Fig. 9 provides for the embodiment of the present invention;
The structural representation of test execution unit in the another kind of Application testing system that Figure 10 provides for the embodiment of the present invention;
The structural representation of test procedure performance element in the another kind of Application testing system that Figure 11 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
A kind of applied program testing method that the embodiment of the present invention provides, can comprise: deposit in electronic equipment by multiple package files with test function and for the mark of each package file setting in advance, in described package file, include the test procedure for operation steps in test process writing in advance, the test procedure in different package files for operation steps difference;
According to the described package file and the described mark that pre-deposit electronic equipment, application programs is tested.
Wherein, as shown in Figure 1, above-mentioned basis pre-deposits described package file and the described mark of electronic equipment, and application programs is tested, and can comprise:
S100, the demonstration mark corresponding with described package file;
Concrete, can be the mark that each package file selects to embody this operation steps according to the corresponding operation steps of test procedure in package file, for example, for the package file for download step, can represent with the icon of downward arrow.The mark corresponding with package file can be icon, word etc., and this mark can be set and be revised by measuring technology personnel.
Electronic equipment of the present invention can be computer, mobile terminal, the network equipment etc.Preferably, the electronic equipment of the present invention mobile terminal such as be mobile phone.
Operation steps in test process can comprise: unlocking screen, the download of application program installation kit, application program installation, application program control startup, character input, application program unloading, the deletion of application program installation kit etc.Be understandable that, in above operation steps, some is the preparation process in test process, as unlocking screen, some operation steps not only has test function, also be similarly the preparation process of some operation steps in test process, as application program is installed, application program control starts, can whether can successfully install by test application respectively, whether can normally start, but these two operation stepss are again for follow-up operation steps provides preparation simultaneously, if do not install and start this application program, cannot further test the function of this application program, the web page browsing function of such as browser etc.In some operation steps of test process, may need to carry out character input, the web page browsing function of for example browser needs tester to input a network address, so that the corresponding webpage of this network address is opened in browser trial, thereby tests.Certainly, also can not carry out network address input, and a default network address is implanted in the test procedure in package file, directly this default network address be conducted interviews.
It should be noted is that, operation steps in the present invention can comprise one or more test events, for example the download of application program installation kit, application program installation and application program control are started to these three test events as an operation steps, can prepare by called after Application testing.Can have various ways to the division of operation steps, the present invention does not limit.
S200, first selection instruction of reception user to shown mark;
Optionally, can and select the modes such as mark shows respectively to show user-selected mark by check box, alternative mark.As shown in Figure 2, by check box, user can Continuous Selection test process in required operation steps.Shown in Fig. 2 in scheme, user has selected unlocking screen (realizing by slip release 001), application program that (by 003 realization is installed) is installed, application program control starts (by clicking 004 realization), character input (by inputting 005 realization), check box becomes selected state, so that user observes own selected operation steps.
Be understandable that, some preparation process user does not need to select, and in scheme, if stored the installation kit of application program to be measured in electronic equipment, user does not need again to download as shown in Figure 2, so user non-selected download 002.When this tested application program being installed and it having been carried out after test, when user does not need to delete the installation kit of this application program to be measured and unloads this application program to be measured, user can not choose deletion 006 and unloading 007.
Figure 3 shows that when adopting alternative mark and having selected the mode that mark shows respectively the display effect after user selects to identify.As shown in Figure 3, screen is divided into left and right two parts, and left side shows option, and right side shows treats option.The operation steps of right side demonstration comprises slip release 001, download 002, installation 003, click 004, input 005, deletion 006 and unloads 007, user has therefrom selected slip release 001, installation 003, click 004 and input 005 these four operation stepss, and therefore left side shows that option is slip release 001, installation 003, click 004 and inputs 005.
In actual applications, as shown in Figure 4, can also will shown in Fig. 2, carry out combination with two kinds of display modes shown in Fig. 3.
Test procedure in the corresponding package file of mark that S300, execution and user select, application programs is tested.
When user selects after the mark corresponding with package file, the test procedure application programs that just can carry out in package file is tested.As shown in Figure 2, when user selects to identify after slip release 001, installation 003, click 004 and input 005, just can use respectively these four test procedures in the corresponding package file of mark to test application program to be measured: the first screen of release electronic equipment, then application program to be measured is installed, after installation, trigger click commands and open application program to be measured, finally in Application Program Interface to be measured, input character is tested the correlation function of application program to be measured.
Be understandable that, the operation steps that in the scheme shown in Fig. 2 to Fig. 4, user selects is only the part operation step in test process, and user can also select other operation stepss to test.
It should be noted is that can have certain restriction to the selection of operation steps in test process, for example, in electronic equipment, do not store non-selected down load application installation bag in the situation of application program installation kit to be measured, this application program to be measured can not be installed; Do not open application program to be measured and cannot carry out functional test etc.Therefore, user selects after operation steps, and the present invention can also be according to pre-stored test constraint condition, whether the operation steps that user is selected meets this test constraint condition judges, if met, proceeds test, otherwise output message is to inform user.Certainly the deterministic process that, whether meets this test constraint condition is not necessary.In the time not meeting rule, test cannot normally be carried out, and in the time that test cannot normally be carried out, inform user.
A kind of applied program testing method that the embodiment of the present invention provides, can in electronic equipment, place to write in advance encapsulate for the test procedure of different operating step after generate package file and mark corresponding to package file.Like this, need the test procedure that repeats to write only to write once, other testers do not need to write the test procedure in package file again before, only need to select corresponding test procedure application programs to test by mark.The present invention has reduced overall workload, makes other testers not need to write the test procedure in package file again, has improved testing efficiency.
Be understandable that, for different electronic equipments, for different application programs, the test procedure that use is not identical, therefore needs to select the test procedure matching to test according to electronic device information and application information in test.Concrete, for including the multiple test procedures for distinct electronic apparatuses and different application that write in advance in the package file of a certain operation steps, in the time determining the electronic equipment at the application program that will test and this application program place, the test procedure just can corresponding selection matching is tested this operation steps of this application program in this electronic equipment.Concrete, determine that the operation steps of test and the sequencing of definite tested object have two kinds, describe respectively below:
The first, the first definite operation steps that will test, then determine tested object:
On basis embodiment illustrated in fig. 1, as shown in Figure 5, in the another kind of applied program testing method that the embodiment of the present invention provides, in described package file, include the multiple test procedures for same operation steps, each test procedure is applicable to be arranged on the application program specific to be measured in the electronic equipment of particular type;
Middle step S300 embodiment illustrated in fig. 1, can comprise:
S310, definite the first application program to be measured that will test and first electronic equipment at described the first application program to be measured place;
S320, in the corresponding package file of mark of selecting with user, determine and be applicable to the first test procedure of described the first application program to be measured that is arranged on described the first electronic equipment;
S330, carry out described the first test procedure described the first application program to be measured that is arranged on described the first electronic equipment is tested.
The second, first definite tested object, then determine the operation steps that will test:
On basis embodiment illustrated in fig. 1, in the another kind of applied program testing method that the embodiment of the present invention provides, in described package file, include the multiple test procedures for same operation steps, each test procedure is applicable to be arranged on the application program specific to be measured in the electronic equipment of particular type; As shown in Figure 6, embodiment illustrated in fig. 1ly before step S200, can also comprise:
S310, definite the first application program to be measured that will test and first electronic equipment at described the first application program to be measured place;
Step S300 comprises: S320, in the corresponding package file of mark of selecting with user, determines and is applicable to the first test procedure of described the first application program to be measured that is arranged on described the first electronic equipment;
S330, carry out described the first test procedure described the first application program to be measured that is arranged on described the first electronic equipment is tested.
In above two kinds of modes, the mode of first electronic equipment at definite the first application program to be measured that will test and described the first application program to be measured place has multiple, as inputted the title of the first application program to be measured and first electronic device names at the first application program to be measured place by user, thereby determine tested object; For another example automatically identify the first electronic equipment and receive the title of the first application program to be measured of user input; For another example the information that shows multiple electronic device information and multiple application program is selected for user, according to definite the first application program to be measured that will test of user's selection and first electronic equipment at described the first application program to be measured place.Preferably, can use the information of configuration file stores electronic device information and application program.
That is: in the optional embodiment of another kind of the present invention, in described electronic equipment, store configuration file, in described configuration file, include the information of at least one electronic device information and at least one application program, Fig. 5 and embodiment illustrated in fig. 6 in step 310, can comprise:
In described electronic equipment, show described electronic device information in described configuration file and the information of described application program;
Receive the second selection instruction of the information of user to described electronic device information and described application program;
According to definite the first application program to be measured that will test of described the second selection instruction and first electronic equipment at described the first application program to be measured place.
Concrete, the electronic device information in configuration file can comprise multiple electronic device identification information, as title, device id etc., the information of the application program in configuration file can comprise the title of multiple application programs and/or the version number of application program etc.After the information of the electronic device information in configuration file and application program is shown, user just can select the application program that will test and the electronic equipment at this application program place, to facilitate the present invention to determine the test procedure matching.Concrete, can show by the mode of drop-down list, preferred, this drop-down list is presented at mark below, in the time that user clicks the mark of having chosen, thereunder shows drop-down list, selects for user.
In the electronic equipment that the embodiment of the present invention provides, can store configuration file, in package file, have test procedure corresponding to multiple and different tested objects simultaneously, in the time of certain tested object in user's option and installment file, the present invention can use the test procedure application programs of mating with this tested object to test automatically, and no longer need tester to write different test codes to different tested objects, save equally test setup time.Visible, the applicability of applied program testing method of the present invention is higher.
On Fig. 5 or basis embodiment illustrated in fig. 6, as shown in Figure 7, in the another kind of applied program testing method that the embodiment of the present invention provides, in described package file, also store the identification information of the application program control corresponding with test procedure, Fig. 5 and middle step S330 embodiment illustrated in fig. 6, can comprise:
The identification information of S331, definite application program control corresponding with described the first test procedure;
Because the first test procedure is applicable to be arranged on the first application program to be measured on the first electronic equipment, the first test procedure is for certain operation steps, and therefore the application program control corresponding with the first test procedure is also the control corresponding with this operation steps in the first application program to be measured.
S332, according to determined identification information in the interface of described the first application program to be measured that is arranged on described the first electronic equipment determine the application program control corresponding with described the first test procedure;
Wherein, the identification information of application program control can comprise: the icon of the ID of application program control, the coordinate of application program control and/or application program control.The identification information of application program control is set by application program product side, and optional, the icon of the application program control that the mark that package file is corresponding can be tested with this package file is identical.
S333, carry out described the first test procedure, determined application program control is tested.
Be understandable that, include multiple controls in application program, along with increasing of function in application program, the control of application program is also more and more.The Flash playing function of for example browser, is realized by Flash play control, and the account locating function of QQ is realized by the control of searching of QQ.By control being tested to some function that gets final product test application, in this case, how to find control just very important.The present invention can find application program control by these three kinds of modes of the icon of the coordinate of the ID of application program control, application program control and application program control, more flexible.
Wherein, the ID of control is the unique identification of control, irrelevant with the electronic equipment at application program place, therefore, in the case of the ID that learns control, can find control by control ID.
The position of control on Application Program Interface generally fixed, therefore can determine by the coordinate of Application Program Interface the coordinate of control, and then find control, for example: the centre position, below of searching control and be positioned at QQ interface of QQ, for example, both can determine by the coordinate (coordinate on four summits) at QQ interface the coordinate of searching control.It should be noted is that, the coordinate of control can change along with the variation of the resolution of electronic equipment screen.
In order to be user-friendly to, control all has mark, therefore can by the each mark in Application Program Interface respectively the control mark corresponding with the pre-stored operation steps that will test carry out Graphic Pattern Matching, find control according to matching result.
For convenience of understanding, illustrate below:
Need to carry out to certain browser the test of five operation stepss, these five operation stepss are respectively: download this browser installation file, this browser is installed, access security website A, access dangerous website B, unload this browser.The downloading process that can test respectively this browser by above-mentioned five operation stepss whether normal, whether installation process normal, in the time of access security website, whether have secure ID, during in the dangerous website of access whether dangerous mark, whether can normally unload.
Under prior art, the test of above-mentioned five steps is divided possibly by two testers and tested, tested by tester Zhang: download this browser installation file, this browser is installed and unloads this browser; By Lee's tester test: access security website A and the dangerous website B of access.In this case, Zhang will write for downloading this browser installation file, this browser is installed and unloads the test code of this browser.Simultaneously, during due to the Li Mouyao test access A of security website and this two operation stepss of the dangerous website B of access, need to first download this browser installation file and this browser is installed, therefore Lee not only needs to write the test code for access security website A and the dangerous website B of access, also will write for the test code of downloading this browser installation file and this browser of installation.Can find out, under prior art, Zhang and Li have write for the test code of downloading this browser installation file and this browser of installation, have caused the duplication of labour.
And the present invention can be in advance has the package file of test function and deposits in electronic equipment for the mark of each package file setting multiple, also be about to write in advance for the test procedure of above-mentioned five operation stepss, all only need to write once for the test procedure of above-mentioned five operation stepss.Therefore,, with respect to prior art, the present invention can reduce overall workload, has avoided the duplication of labour.Like this, in the time need to testing the arbitrarily individual step in above-mentioned five steps, only need to select corresponding package file to test by mark, no longer need to write test procedure.Meanwhile, in the time need to testing other functions of this browser (as the collection function of browser), only need to write the code for the follow-up function that will test, no longer need to write the test code for above-mentioned five operation stepss.Further, in package file of the present invention, can also store the identification information of the application program control corresponding with test procedure, so that find corresponding control to test.For example: test the collection function of above-mentioned browser, the icon ☆ of the collection control of this browser can be kept in package file.Like this, just can find from the interface of this browser the icon of this collection control, thereby it is tested to the collection function of browser.
Be understandable that, As time goes on, same application can produce multiple versions.In the time that some function of multiple versions does not change, can use the package file that before the present invention is directed to, the application program of version is write to continue not having vicissitudinous function to test in the application program of later release, and no longer need again to write the code that does not have vicissitudinous function to test to these, further reduce workload.
Corresponding with embodiment of the method shown in Fig. 1, as shown in Figure 8, the present invention also provides a kind of Application testing system, and this system can comprise: storage unit 100 and test cell 200,
Described storage unit 100, for storing multiple the have package file of test function and the marks for each package file setting, in described package file, include the test procedure for operation steps in test process writing in advance, the test procedure in different package files for operation steps difference;
Test cell 200, for according to pre-depositing described package file and the described mark of electronic equipment, application programs is tested;
Test cell 200 can comprise: the first display unit 210, the first command reception unit 220 and test execution unit 230,
The first display unit 210, for showing the mark corresponding with described package file;
The first command reception unit 220, for receiving first selection instruction of user to shown mark;
Test execution unit 230, for carrying out the test procedure of the corresponding package file of mark of selecting with user, application programs is tested.
A kind of Application testing system that the embodiment of the present invention provides, can in electronic equipment, place to write in advance encapsulate for the test procedure of different operating step after generate package file and mark corresponding to package file, like this, need the test procedure that repeats to write only to write once before, other testers do not need to write the test procedure in package file again, only need to select identical test procedure application programs to test by mark.The present invention has reduced overall workload, makes other testers not need to write the test procedure in package file again, has improved testing efficiency.
On basis embodiment illustrated in fig. 8, in the another kind of Application testing system that the embodiment of the present invention provides, in described package file, include the multiple test procedures for same operation steps, each test procedure is applicable to be arranged on the application program specific to be measured in the electronic equipment of particular type;
As shown in Figure 9, the test execution unit 230 in Fig. 8 embodiment, can comprise: tested object determining unit 231, test procedure determining unit 232 and test procedure performance element 233,
Tested object determining unit 231, for definite the first application program to be measured that will test and first electronic equipment at described the first application program to be measured place;
Test procedure determining unit 232, for the corresponding package file of mark selecting with user, determines and is applicable to the first test procedure of described the first application program to be measured that is arranged on described the first electronic equipment;
Test procedure performance element 233, tests described the first application program to be measured that is arranged on described the first electronic equipment for carrying out described the first test procedure.
On basis embodiment illustrated in fig. 8, as shown in figure 10, in the another kind of Application testing system that the embodiment of the present invention provides, in described package file, include the multiple test procedures for same operation steps, each test procedure is applicable to be arranged on the application program specific to be measured in the electronic equipment of particular type; This system can also comprise: tested object determining unit 231, for receive in described the first command reception unit 220 user to the first selection instruction of shown mark before, determine the first application program to be measured that will test and first electronic equipment at described the first application program to be measured place;
Test execution unit 230, can comprise: test procedure determining unit 232 and test procedure performance element 233,
Test procedure determining unit 232, for the corresponding package file of mark selecting with user, determines and is applicable to the first test procedure of described the first application program to be measured that is arranged on described the first electronic equipment;
Test procedure performance element 233, tests described the first application program to be measured that is arranged on described the first electronic equipment for carrying out described the first test procedure.
In the optional embodiment of another kind of the present invention, in storage unit 100, also store configuration file, in described configuration file, include the information of at least one electronic device information and at least one application program, Fig. 9 and embodiment illustrated in fig. 10 in tested object determining unit 231 can comprise: information shows that subelement, command reception subelement and object determine subelement
Information shows subelement, for show described electronic device information in described configuration file and the information of described application program at described electronic equipment;
Command reception subelement, for receiving the second selection instruction of the information of user to described electronic device information and described application program;
Object is determined subelement, for determining the first application program to be measured that will test and first electronic equipment at described the first application program to be measured place according to described the second selection instruction.
On Fig. 9 or basis embodiment illustrated in fig. 10, as shown in figure 11, in the another kind of Application testing system that the embodiment of the present invention provides, in described package file, also store the identification information of the application program control corresponding with test procedure, test procedure performance element 233, can comprise: the definite subelement 233a of mark, control are determined subelement 233b and control test subelement 233c
Mark is determined subelement 233a, for determining the identification information of the application program control corresponding with described the first test procedure;
Control is determined subelement 233b, for determining the application program control corresponding with described the first test procedure according to determined identification information at the interface of described the first application program to be measured that is arranged on described the first electronic equipment;
Control test subelement 233c, for carrying out described the first test procedure, tests determined application program control.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, system, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, system, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, system, article or the equipment that comprises described key element and also have other identical element.
Each embodiment in this instructions all adopts relevant mode to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is and the difference of other embodiment.Especially,, for system embodiment, because it is substantially similar in appearance to system embodiment, so description is fairly simple, relevant part is referring to the part explanation of system embodiment.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. an applied program testing method, is characterized in that, described method comprises:
Deposit in electronic equipment by multiple package files with test function and for the mark of each package file setting in advance, in described package file, include the test procedure for operation steps in test process writing in advance, the test procedure in different package files for operation steps difference;
According to the described package file and the described mark that pre-deposit electronic equipment, application programs is tested;
Wherein, described basis pre-deposits described package file and the described mark of electronic equipment, and application programs is tested, and comprising:
Show the mark corresponding with described package file;
Receive first selection instruction of user to shown mark;
Carry out the test procedure in the corresponding package file of mark of selecting with user, application programs is tested.
2. method according to claim 1, is characterized in that, includes the multiple test procedures for same operation steps in described package file, and each test procedure is applicable to be arranged on the application program specific to be measured in the electronic equipment of particular type;
Test procedure in the corresponding package file of mark that described execution and user select, the step that application programs is tested, comprising:
First electronic equipment at definite the first application program to be measured that will test and described the first application program to be measured place;
In the corresponding package file of mark of selecting with user, determine and be applicable to the first test procedure of described the first application program to be measured that is arranged on described the first electronic equipment;
Carrying out described the first test procedure tests described the first application program to be measured that is arranged on described the first electronic equipment.
3. method according to claim 1, is characterized in that,
In described package file, include the multiple test procedures for same operation steps, each test procedure is applicable to be arranged on the application program specific to be measured in the electronic equipment of particular type;
Before reception user is to the first selection instruction of shown mark, described method also comprises:
First electronic equipment at definite the first application program to be measured that will test and described the first application program to be measured place;
The step that test procedure in the corresponding package file of mark that described execution and user select is tested described application program to be measured, comprising:
In the corresponding package file of mark of selecting with user, determine and be applicable to the first test procedure of described the first application program to be measured that is arranged on described the first electronic equipment;
Carrying out described the first test procedure tests described the first application program to be measured that is arranged on described the first electronic equipment.
4. according to the method in claim 2 or 3, it is characterized in that, in described electronic equipment, store configuration file, in described configuration file, include the information of at least one electronic device information and at least one application program, the step of first electronic equipment at described definite the first application program to be measured that will test and described the first application program to be measured place, comprising:
In described electronic equipment, show described electronic device information in described configuration file and the information of described application program;
Receive the second selection instruction of the information of user to described electronic device information and described application program;
According to definite the first application program to be measured that will test of described the second selection instruction and first electronic equipment at described the first application program to be measured place.
5. according to the method in claim 2 or 3, it is characterized in that, in described package file, also store the identification information of the application program control corresponding with test procedure, the step that described the first test procedure of described execution is tested being arranged on described first application program to be measured of described the first electronic equipment, comprising:
Determine the identification information of the application program control corresponding with described the first test procedure;
In the interface of described the first application program to be measured that is arranged on described the first electronic equipment, determine the application program control corresponding with described the first test procedure according to determined identification information;
Carry out described the first test procedure, determined application program control is tested.
6. an Application testing system, is characterized in that, described system comprises: storage unit and test cell,
Described storage unit, for storing multiple the have package file of test function and the marks for each package file setting, in described package file, include the test procedure for operation steps in test process writing in advance, the test procedure in different package files for operation steps difference;
Described test cell, for according to pre-depositing described package file and the described mark of electronic equipment, application programs is tested;
Described test cell comprises: the first display unit, the first command reception unit and test execution unit,
Described the first display unit, for showing the mark corresponding with described package file;
Described the first command reception unit, for receiving first selection instruction of user to shown mark;
Described test execution unit, for carrying out the test procedure of the corresponding package file of mark of selecting with user, application programs is tested.
7. system according to claim 6, is characterized in that, includes the multiple test procedures for same operation steps in described package file, and each test procedure is applicable to be arranged on the application program specific to be measured in the electronic equipment of particular type;
Described test execution unit, comprising: tested object determining unit, test procedure determining unit and test procedure performance element,
Described tested object determining unit, for definite the first application program to be measured that will test and first electronic equipment at described the first application program to be measured place;
Described test procedure determining unit, for the corresponding package file of mark selecting with user, determines and is applicable to the first test procedure of described the first application program to be measured that is arranged on described the first electronic equipment;
Described test procedure performance element, tests described the first application program to be measured that is arranged on described the first electronic equipment for carrying out described the first test procedure.
8. system according to claim 6, is characterized in that, includes the multiple test procedures for same operation steps in described package file, and each test procedure is applicable to be arranged on the application program specific to be measured in the electronic equipment of particular type; Described system also comprises: tested object determining unit, for before described the first command reception unit reception user is to the first selection instruction of shown mark, definite the first application program to be measured that will test and first electronic equipment at described the first application program to be measured place;
Described test execution unit, comprising: test procedure determining unit and test procedure performance element,
Described test procedure determining unit, for the corresponding package file of mark selecting with user, determines and is applicable to the first test procedure of described the first application program to be measured that is arranged on described the first electronic equipment;
Described test procedure performance element, tests described the first application program to be measured that is arranged on described the first electronic equipment for carrying out described the first test procedure.
9. according to the system described in claim 7 or 8, it is characterized in that, in described storage unit, also store configuration file, in described configuration file, include the information of at least one electronic device information and at least one application program, described tested object determining unit comprises: information demonstration subelement, command reception subelement and object are determined subelement
Described information shows subelement, for show described electronic device information in described configuration file and the information of described application program at described electronic equipment;
Described command reception subelement, for receiving the second selection instruction of the information of user to described electronic device information and described application program;
Described object is determined subelement, for determining the first application program to be measured that will test and first electronic equipment at described the first application program to be measured place according to described the second selection instruction.
10. according to the system described in claim 7 or 8, it is characterized in that, in described package file, also store the identification information of the application program control corresponding with test procedure, described test procedure performance element, comprise: the definite subelement of mark, control are determined subelement and control test subelement
Described mark is determined subelement, for determining the identification information of the application program control corresponding with described the first test procedure;
Described control is determined subelement, for determining the application program control corresponding with described the first test procedure according to determined identification information at the interface of described the first application program to be measured that is arranged on described the first electronic equipment;
Described control test subelement, for carrying out described the first test procedure, tests determined application program control.
CN201410114875.4A 2014-03-25 2014-03-25 Applied program testing method and system Active CN103853663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410114875.4A CN103853663B (en) 2014-03-25 2014-03-25 Applied program testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410114875.4A CN103853663B (en) 2014-03-25 2014-03-25 Applied program testing method and system

Publications (2)

Publication Number Publication Date
CN103853663A true CN103853663A (en) 2014-06-11
CN103853663B CN103853663B (en) 2016-08-31

Family

ID=50861340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410114875.4A Active CN103853663B (en) 2014-03-25 2014-03-25 Applied program testing method and system

Country Status (1)

Country Link
CN (1) CN103853663B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598380A (en) * 2015-01-16 2015-05-06 广东欧珀移动通信有限公司 Method and system for automatic testing based on control
CN106201869A (en) * 2016-07-01 2016-12-07 惠州Tcl移动通信有限公司 A kind of high pass WiFi chip signal launch point surveys method and system
CN108804318A (en) * 2018-05-24 2018-11-13 北京金山安全软件有限公司 Page element testing method and device, electronic equipment and storage medium
CN108984394A (en) * 2018-06-19 2018-12-11 中国平安人寿保险股份有限公司 A kind of test method, computer readable storage medium and terminal device
CN109979444A (en) * 2017-12-27 2019-07-05 深圳市优必选科技有限公司 A kind of phonetic order automated testing method, terminal and device
CN110399295A (en) * 2019-06-28 2019-11-01 奇安信科技集团股份有限公司 A kind of applied program testing method and device based on raw filename
CN111158969A (en) * 2019-12-31 2020-05-15 奇安信科技集团股份有限公司 Data processing method, electronic device, storage medium, and computer program product
CN113590491A (en) * 2021-08-06 2021-11-02 深圳市共进电子股份有限公司 Test platform and product test method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744056A (en) * 2004-09-04 2006-03-08 华为技术有限公司 Automatic test method of application
US20110310041A1 (en) * 2010-06-21 2011-12-22 Apple Inc. Testing a Touch-Input Program
CN103019928A (en) * 2011-09-27 2013-04-03 北京新媒传信科技有限公司 Automatic testing method and system
US20130198568A1 (en) * 2012-01-31 2013-08-01 Bank Of America Corporation System And Method For Test Case Generation Using Action Keywords

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744056A (en) * 2004-09-04 2006-03-08 华为技术有限公司 Automatic test method of application
US20110310041A1 (en) * 2010-06-21 2011-12-22 Apple Inc. Testing a Touch-Input Program
CN103019928A (en) * 2011-09-27 2013-04-03 北京新媒传信科技有限公司 Automatic testing method and system
US20130198568A1 (en) * 2012-01-31 2013-08-01 Bank Of America Corporation System And Method For Test Case Generation Using Action Keywords

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598380A (en) * 2015-01-16 2015-05-06 广东欧珀移动通信有限公司 Method and system for automatic testing based on control
CN104598380B (en) * 2015-01-16 2017-08-01 广东欧珀移动通信有限公司 A kind of automated testing method and system based on control
CN106201869A (en) * 2016-07-01 2016-12-07 惠州Tcl移动通信有限公司 A kind of high pass WiFi chip signal launch point surveys method and system
CN106201869B (en) * 2016-07-01 2019-10-29 Tcl移动通信科技(宁波)有限公司 A kind of high pass WiFi chip signal launch point survey method and system
CN109979444A (en) * 2017-12-27 2019-07-05 深圳市优必选科技有限公司 A kind of phonetic order automated testing method, terminal and device
CN108804318A (en) * 2018-05-24 2018-11-13 北京金山安全软件有限公司 Page element testing method and device, electronic equipment and storage medium
CN108984394A (en) * 2018-06-19 2018-12-11 中国平安人寿保险股份有限公司 A kind of test method, computer readable storage medium and terminal device
CN110399295A (en) * 2019-06-28 2019-11-01 奇安信科技集团股份有限公司 A kind of applied program testing method and device based on raw filename
CN111158969A (en) * 2019-12-31 2020-05-15 奇安信科技集团股份有限公司 Data processing method, electronic device, storage medium, and computer program product
CN111158969B (en) * 2019-12-31 2024-03-08 奇安信科技集团股份有限公司 Data processing method, electronic device and storage medium
CN113590491A (en) * 2021-08-06 2021-11-02 深圳市共进电子股份有限公司 Test platform and product test method
CN113590491B (en) * 2021-08-06 2024-03-29 深圳市共进电子股份有限公司 Test platform and product test method

Also Published As

Publication number Publication date
CN103853663B (en) 2016-08-31

Similar Documents

Publication Publication Date Title
CN103853663A (en) Application program test method and system
WO2020155777A1 (en) Ui automated function testing method, testing device, testing apparatus, and storage medium
CN109857667B (en) Interface automation test method, test device, test equipment and storage medium
CN112270149B (en) Verification platform automatic integration method and system, electronic equipment and storage medium
US8150674B2 (en) Automated testing platform for event driven systems
CN103092665B (en) Immediate updating device and immediate updating method
US20110154287A1 (en) Visual Generation of Mobile Applications Based on Data Models
CN109614157A (en) A kind of configuration method of system, device and storage medium
CN106649107B (en) Automatic testing method and device for stability of android system
KR20170015968A (en) High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices
CN108279912A (en) The more Custom Attributes installation kit automatic generation methods of Android, system and storage medium
EP3441833B1 (en) Programming support device, control method of programming support device, and control program of programming support device
CN109656597A (en) Firmware upgrade method, device and computer readable storage medium
US20080015911A1 (en) Methods and apparatuses for developing business solutions
CN103984626A (en) Method and device for generating test-case script
CN106873966B (en) Application program development method and device
CN105740144A (en) Automated testing method and system for Android mobile Terminal
CN110377334A (en) Continuous integrating method and apparatus
CN104156305A (en) Application program testing method and device
CN112214405A (en) Software testing method and device, electronic equipment and readable storage medium
CN103049374A (en) Automatic testing method and device
CN111563032A (en) APP debugging method and device, computer equipment and storage medium
CN111782516A (en) Code testing method and device and storage medium
CN110489347A (en) Method for edition management, device, equipment and readable storage medium storing program for executing based on GIT
CN113377458B (en) Plug-in management method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 100041 Beijing Xing Xing street, building 30, No. 3, building 2, A-0070

Patentee after: BEIJING LIEBAO NETWORK TECHNOLOGY CO., LTD.

Address before: 100041 room 1592A, building, No. 3 West Road, Badachu hi tech park, Beijing, Shijingshan District, China

Patentee before: Beijing Kingsoft Internet Science and Technology Co., Ltd.

CP03 Change of name, title or address