CN103544100B - Method of testing, system and the client of portable data processing equipment application program - Google Patents

Method of testing, system and the client of portable data processing equipment application program Download PDF

Info

Publication number
CN103544100B
CN103544100B CN201210241024.7A CN201210241024A CN103544100B CN 103544100 B CN103544100 B CN 103544100B CN 201210241024 A CN201210241024 A CN 201210241024A CN 103544100 B CN103544100 B CN 103544100B
Authority
CN
China
Prior art keywords
app
test
tested
processing equipment
data processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210241024.7A
Other languages
Chinese (zh)
Other versions
CN103544100A (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.)
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 CN201210241024.7A priority Critical patent/CN103544100B/en
Publication of CN103544100A publication Critical patent/CN103544100A/en
Application granted granted Critical
Publication of CN103544100B publication Critical patent/CN103544100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

This application discloses a kind of portable data processing equipment application program(APP)Method of testing, system and client.The automatic test APP wherein associated with tested APP is arranged in portable data processing equipment, for the tested APP associated upon actuation in automatic start the machine, is run automatic test script to testing the tested APP, is generated test report;Test access module is arranged in portable data processing equipment, is instructed for obtaining test of the portable data processing equipment to the automatic test APP, automatic test APP corresponding to startup;Uploading module is arranged in portable data processing equipment, for uploading the test report to network-side;Test report module is arranged on network-side, for storing the test report.The test access module and uploading module can form test and management client, facilitate user test in portable data processing equipment.The present invention can reduce test APP cost of labor, improve test quality.

Description

Method of testing, system and the client of portable data processing equipment application program
Technical field
The present invention relates to portable data processing equipment technical field, more particularly to a kind of portable data processing equipment application journey Sequence APP method of testing, system and client.
Background technology
The portable data processing equipment for calculating processing function with data at present is employed more and more extensive, such as intelligently Mobile phone, palm PC, tablet personal computer etc. have become the indispensable portable data processing equipment that people carry with.Generally, these Operating system is fitted with portable data processing equipment, such as common portable operation system has:Android(Android)Operation System, Saipan(Symbian)Operating system, Windows mobile operating systems and apple iPhone OS operating systems etc. Deng., can be with the various application programs of load operating based on the operating system of portable data processing equipment(APP, APPlication), These application programs have what operating system carried, but major applications program is all independently of the third-party application journey of operating system Sequence.
At present because the operating system version of portable data processing equipment is more, different portable data processing equipment screens point Resolution is also variant, therefore often develops a APP, is required for carrying out the APP in different portable data processing equipments simultaneous The test of capacitive.Such as existing main method of testing mainly has following three kinds:
The first existing method of testing:The mode of pure manual test.
I.e.:Tested APP is separately mounted to much be mounted with different editions operating system system and screen resolution is different Portable data processing equipment such as mobile phone on, it is then manual that tested APP is run in each equipment, manually carry out various work( Can test.For example if tested APP is Mobile phone browser, then the mobile phone browser can be manually opened, manually enter net Page address, clicks on " going to " button by hand, and whether artificial judgment program returns to the correct page.
But the shortcomings that described the first existing method of testing, is:It is all too high using manual testing, cost of labor;Survey Examination process very time-consuming, testing efficiency be not high.
Second of existing method of testing:Simple automatic test.
I.e.:Multiple use different editions operating systems are connected by a plurality of data lines on one computer and screen is differentiated The different portable data processing equipment of rate, tester are write automatically by developing instrument corresponding to operating system on computers Change test script, by the data bus connection, allow automatic test script in the different portable number connected from computer According to being performed in processing equipment, so as to obtain test result.
Developing instrument corresponding to the operating system, such as:Developing instrument corresponding to Android system is eclipse ADT(eclipse android development tools)Or the Adb that Android system carries(Android Debug Bridge)Instrument, the eclipse ADT are Eclipse android operating system developing instrument plug-in units, can be made Eclipse has the function such as exploitation, debugging of very easily carrying out android application programs.The Eclipse is a kind of java The IDE of program language, can provide many very intelligent, and easily instrument, allows program development to become more high Effect.The Adb is the general debugging acid that android operating systems provide, by the instrument can with management equipment and The state of mobile phone simulator.
But the shortcomings that second of existing method of testing, is:Although this mode can be realized to a certain extent The test of automation, but still need tester and manually started certainly by order line or developing instrument on computer machine The execution of dynamicization test script, while artificial matching unit type, and manual record result.Only it is omitted test execution Process.Operating process is still cumbersome, and cost of labor is still higher.The quantity of the data-interface of simultaneously current computer also has Limit, can not connect the portable data processing equipment of numerous types on the market, not high to the coverage rate of test equipment species.Separately Outside, the computer of test can not approach often in single network environment and be tested the real running environment of APP, and user When tested APP is run in a variety of real network environments, it may appear that many tests less than the problem of, therefore test quality It is not high.
The third existing test mode:The automatic test of concentration.
I.e.:Remote testing server passes through certain mode, there is provided testing service.User only needs to provide tested APP, from Dynamicization test script is uploaded on remote server, and the selected operating system version and screen resolution for needing to run. Remote testing server side substantially uses the technology similar with above-mentioned second existing test mode, simply used to calculate The quantity of machine is more, and generally use cluster computer is set, and is connected on every computer at multiple different types of portable datas Reason equipment is used to test, and can thus improve the coverage rate to test equipment species.
But the shortcomings that second of existing method of testing, is:The computer of test is often in single network rings In border, the real running environment of tested APP can not be approached, and user runs in a variety of real network environments and is tested During APP, it may appear that many tests less than the problem of, therefore test quality is not equally high.
Therefore, prior art on the whole, can also make it that cost of labor is relatively low, tests simultaneously without a kind of test mode Quality is higher.
The content of the invention
In view of this, it is a primary object of the present invention to provide a kind of test side of portable data processing equipment application program Method, system and client, to reduce the cost of labor of test, improve test quality.
The technical proposal of the invention is realized in this way:
A kind of method of testing of portable data processing equipment application APP, including:
The automatic test APP associated with tested APP is installed in portable data processing equipment, it is described to test automatically in APP Include the automatic test script for being tested APP;
Triggering automatic test APP startup entrance is set in portable data processing equipment, passes through the startup entrance Obtain test of the portable data processing equipment to the automatic test APP to instruct, automatic test APP corresponding to startup;
The automatic test APP tested APP that automatic start is associated upon actuation, and run automatic test script pair The tested APP is tested, and generates test report;
The test report is uploaded to be stored to network-side.
A kind of portable data processing equipment APP test system, including:
The automatic test APP associated with tested APP, in portable data processing equipment, for automatic upon actuation Start the tested APP associated in the machine, run automatic test script and the tested APP is tested, generate test report;
Test access module, in portable data processing equipment, for obtaining portable data processing equipment to described Automatic test APP test instruction, automatic test APP corresponding to startup;
Uploading module, in portable data processing equipment, for uploading the test report to network-side;
Test report module, network-side is arranged on, the test report of network-side is uploaded to for storing.
A kind of portable data processing equipment APP test and management client, including test access module and uploading module;Institute Test access module is stated to specifically include:
APP list blocks, for obtaining all APP of the machine list;
Correlation inquiry module, for all APP of traversal queries related information, it is determined that being associated with automatic test APP quilt Survey APP;
Display module, for showing the tested APP lists on the machine interface;
First trigger module, for obtaining the triggering command for the tested APP of some in tested APP lists, this is triggered Instruction instructs as the test, starts the automatic test APP of the tested APP associations;
The uploading module is used to the test report of automatic test APP generations uploading to network-side.
Compared with prior art, the present invention installs the automatic test associated with tested APP in portable data processing equipment APP, and the startup entrance for starting the automatic test APP, so any one portable number are provided in portable data processing equipment According to processing equipment user(Need not be the personnel of specializing in)The automatic test APP can be started by the startup entrance;Institute The tested APP that automatic start is associated after automatic test APP starts is stated, and runs automatic test script to the tested APP Tested, generation test report reports network-side and accesses the test report for tester.Therefore the present invention not only may be used To realize the test of automation, manual testing's workload is reduced, reduces cost of labor;It is simultaneously of the invention because any one is portable Data processing equipment user can start test in the machine, rather than carry out integrated test, test report using computer Network-side can be uploaded to be stored and supply tester to access, therefore, test mode of the invention is not by portable data The communication network territory restriction of equipment is managed, it is very close with tested APP real running environment, improve test quality.
Brief description of the drawings
Fig. 1 is a kind of flow chart of portable data processing equipment APP of the present invention method of testing;
Fig. 2 is a kind of composition schematic diagram of portable data processing equipment APP of the present invention test system;
Fig. 3 show the schematic diagram for the test report content that automatic test script directly generates;
Fig. 4 a are a kind of content schematic diagram for the test report for being converted into XML format;
Fig. 4 b are a kind of content schematic diagram of the test report for the XML format for adding device type information;
Fig. 5 a are a kind of composition schematic diagram of the test system with test report transformation function;
Fig. 5 b are another composition schematic diagram of the test system with test report transformation function;
Fig. 6 is a kind of test access APP interface schematic diagram;
Fig. 7 a show a kind of concrete composition of test access module of the present invention and its relation with automatic test APP Schematic diagram;
Fig. 7 b are another concrete composition of test access module of the present invention and its shown with automatic test APP relation It is intended to;
Fig. 8 is a kind of test and management client end AP Ptester of the present invention composition schematic diagram;
Fig. 9 is that earnest user is tested APP on the mobile phone of oneself and uploads test report for tester's access Particular flow sheet.
Embodiment
Below in conjunction with the accompanying drawings and specific embodiment the present invention is further described in more detail
Fig. 1 is a kind of flow chart of portable data processing equipment APP of the present invention method of testing, referring to Fig. 1, the party Method mainly includes:
Step 101, the automatic test APP associated with tested APP, the automatic survey are installed in portable data processing equipment Try to include the automatic test script for tested APP in APP;Certainly, the premise of method of testing of the present invention is in the portable data Tested APP to be also installed, it is assumed herein that tested APP is installed in portable data processing equipment in processing equipment.
Step 102, the triggering automatic startup entrance for testing APP is set in portable data processing equipment, by this Start entrance and obtain test instruction of the portable data processing equipment to the automatic test APP, tested automatically corresponding to startup APP;
Step 103, the automatic test APP tested APP that automatic start is associated upon actuation, and run automatic survey This is tested the tested APP for training, generates test report;
Step 104, the upload test report are stored to network-side.It can be accessed by network-side for tester The test report.
It is corresponding, the invention also discloses a kind of portable data processing equipment APP test system, for performing the present invention Method.Fig. 2 is a kind of composition schematic diagram of portable data processing equipment APP of the present invention test system.Referring to Fig. 2, The system includes:
The automatic test APP 201 associated with tested APP 202, in portable data processing equipment, for opening The tested APP 202 associated after dynamic in automatic start the machine, runs automatic test script and the tested APP202 is tested, Generate test report;Described the machine refers to this portable data processing equipment.
Test access module 203, in portable data processing equipment, for obtaining portable data processing equipment to institute State automatic test APP 201 test instruction, automatic test APP 201 corresponding to startup;
Uploading module 204, in portable data processing equipment, for uploading the test report to network-side;
Test report module 205, is arranged on network-side, and the test report of network-side is uploaded to for storing, and for test Personnel access the test report.
In the present invention, the portable data processing that the portable data processing equipment refers to there are data to calculate processing function is set It is standby, including but not limited to smart mobile phone, palm PC, tablet personal computer etc..It is fitted with grasping in these portable data processing equipments Make system, include but is not limited to:Android operation system, Symbian operating systems, Windows mobile operating systems, with And apple iPhone OS operating systems etc..Described tested APP refers to be based on the operating system, can be described portable The APP run in data processing equipment.
In embodiment as described herein, specifically enter so that the tested APP is the APP based on andriod operating systems as an example Row explanation.
The automatic test script is the program code that tester is write according to tested APP function, the program generation Code can be tested APP various functions by portable data processing equipment automatic running for testing automatically.Such as based on The tested APP of android operating systems, the automatic test script for the automatic test APP that APP is associated is tested with this to be utilized Instrumentation frameworks are write.The Instrumentation is that google officials are android operating systems A kind of technology provided is tested, the technology is a series of set of methods being controlled to android operating systems, Ke Yi The each component for independently controlling android to apply outside the normal life cycle of APP based on android.Therefore utilize Instrumentation can easily write out the automatic test script to being tested APP, and after automatic test script operation Test result can be provided by Instrumentation frameworks, automatic test script directly can be given birth to using these test results Into test report.In order to run the automatic test script in portable data processing equipment, it is necessary to automatic test script Automatic test APP corresponding with portable data processing equipment operating system is packaged into, this tests APP automatically can be in portable data Operation is installed and activated in processing equipment.
Particular content as the automatic test script is, it is necessary to test according to tested APP function and tester Demand determines.
Fig. 3 show the schematic diagram for the test report content that automatic test script directly generates, and is mainly wrapped in test report Include tested APP functional test results information.The functional test results information of the tested APP can for example include:Test is used Example title(As described in Fig. 3 " testDisplayBlackBox "), test crash abnormal information(As described in Fig. 3 “Error in testFalse:……”)And the information such as run time.
The test report directly generated due to the automatic test script in automatic test APP after the test process that is finished It is frequently not fixed form, the readability of this test report is not strong.Therefore in a kind of embodiment of the method for the invention In, this method can further include except the step shown in Fig. 1:
After the test report is generated, the test report of the generation is changed into the test report of specified format, then Upload to network-side;
Or the test report is uploaded to after network-side, the test report is changed into specified format in network-side Test report, then stored.
The test report of the specified format is typically extensible markup language(XML, Extensible Markup Language)Form.XML is a kind of for marking e-file to make it have structural markup language, can be used for marking Data, data type is defined, be a kind of original language for allowing user to be defined the markup language of oneself.Using XML format, The readability of test report can be strengthened.The content for facilitating tester to check and understand in test report.
Such as Fig. 4 a are a kind of content schematic diagram for the test report for being converted into XML format., can be by Fig. 3 referring to Fig. 4 a In the functional test results information of the tested APP shown in sequence be converted into the XML lattice with node hierarchical structure The information of formula.Such as therein all use-cases with same test class and its test result can be combined to a node i.e. Under the testsuite nodes, the title of the entitled test class of the testsuite nodes(Such as classname= “com.calculator.test.ApkTest”), include under the node of the test class test class all use-case titles and its The abnormal information of corresponding test crash.
Changed by this form, the readability of test report can be strengthened.Tester is facilitated to check and understand test Content in report.
Further, the present invention can also utilize the equipment that the existing API of operating system obtains portable data processing equipment Type information, such as the information such as unit type, operating system version and sequence number.Then the device type information is added Enter into the test report, to facilitate the device type of tester's assignment test abnormal results.
Fig. 4 b are a kind of content schematic diagram of the test report for the XML format for adding device type information.Referring to Fig. 4 b, Information wherein in device nodes is the device type information.
It is corresponding, in a kind of embodiment of portable data processing equipment APP of the present invention test system, except figure Module described in 2, still further comprise test report conversion module.
As shown in Figure 5 a, the test report conversion module 206 may be mounted in portable data processing equipment, for by institute The test report for stating generation changes into the test report of specified format, then gives uploading module 204 and upload to network-side.
Or as shown in Figure 5 b, the test report conversion module 206 can also be arranged on network-side, for will be described The test report of biography changes into the test report of specified format, then gives the test report module storage 205.
It is of the present invention to set the triggering automatic test APP's to start the specific of entrance in portable data processing equipment Mode can have a variety of.Such as one of which embodiment is specially:Test access is installed in the portable data processing equipment APP is as the startup entrance.The test access APP is also a kind of APP for test and management provided by the invention, such as Referred to herein as APPtester.Set in such an embodiment, it is necessary to which the test access APP is arranged on into portable data processing It is standby upper.
It is described that test instruction of the portable data processing equipment to the automatic test APP is obtained by test access APP, open Automatic test APP, is specifically included corresponding to dynamic:The test access APP is run, test access APP performs following operation:
(1)Obtain all APP of the machine list.Such as android operating systems, it can pass through android's PackageManager instruments obtain the list of all APP in the machine.
(2)All APP of traversal queries related information, it is determined that being associated with automatic test APP tested APP.
(3)The tested APP lists are shown on the machine interface.
Such as android operating systems, PackageManager instruments can be passed through Whether each APP is corresponding with instrument information in APP lists described in queryInstrumentation function traversal queries. Because in android operating systems, the automatic test script being tested in the automatic test APP of APP associations is to be based on Instrumentation frameworks are write, as long as therefore some automatic test APP be installed in the machine, this tests APP automatically The tested APP of association will have corresponding instrument information, herein can be using the instrument information as association Information, to judge whether some APP is associated with automatic test APP.If some APP in the APP lists is present Instrument information, then it is the tested APP for being associated with automatic test APP to judge the APP, the title of the APP is put into described In test access APP tested APP lists, some APP is not present instrument information and will not be then put into the title of the APP In the tested APP lists of the test access APP.As long as that is, it is mounted with to be tested simultaneously in portable data processing equipment APP and corresponding automatic test APP, then corresponding tested APP based on android Instrumentation frameworks title It will be shown in the tested APP lists.
If Fig. 6 is a kind of test access APP interface schematic diagram.Referring to Fig. 6, after test access APP installations start, can show Show operation interface 600, wherein all tested APP for being associated with automatic test APP of the machine title can all be shown in tested APP row In table 601, user clicks on the title of the tested APP in tested list 601(Or icon)Then judge have issued to be tested for this APP triggering command.As described in Figure 6, the test access APP and tested APP are one-to-many relations, due to tested APP and The automatic test APP of association is typically man-to-man relation, therefore the test access APP and automatic test APP is also a pair More relations.
(4)The triggering command for the tested APP of some in tested APP lists is obtained, using the triggering command as the survey Examination instruction, start the automatic test APP of the tested APP associations.
Such as android operating systems, specific startup method is corresponding to the tested APP being clicked according to Instrument information, the method carried using android start its association based on the automatic of instrumentation frameworks Test APP.The method that the android is carried is the startInstrumentation methods in android sdk.
It is described that opening for the triggering automatic test APP is set in portable data processing equipment in another embodiment Dynamic entrance can also be:Generated in the automatic test APP of installation on the machine interface and mark is triggered corresponding to the automatic test APP Will, as the startup entrance.In this embodiment, the trigger flag and automatic test APP are man-to-man relations.It is described Test instruction of the portable data processing equipment to the automatic test APP is obtained by starting entrance, is surveyed automatically corresponding to startup Examination APP detailed process includes:The triggering command of the trigger flag for the automatic test APP is obtained, by the triggering command Instructed as test, start the automatic test APP.
It is corresponding, in a kind of embodiment of portable data processing equipment APP of the present invention test system, the survey It can be specifically the test access APP to try inlet module 203, be one-to-many relation with automatic test APP.As shown in Figure 7a A kind of concrete composition for test access module of the present invention and its relation schematic diagram with automatic test APP.Referring to Fig. 7 a, The test access module 203 specifically includes:
APP list blocks 701, for obtaining all APP of the machine list.
Correlation inquiry module 702, for all APP of traversal queries related information, it is determined that being associated with automatic test APP's Tested APP.
Display module 703, for showing the tested APP lists on the machine interface.
First trigger module 704, for obtaining the triggering command for the tested APP of some in tested APP lists, this is touched Send instructions as the test instruction, start the automatic test APP of the tested APP associations.
Fig. 7 b are another concrete composition of test access module of the present invention and its shown with automatic test APP relation It is intended to.Referring to Fig. 7 b, the test access module 203 can be man-to-man relation with the automatic test APP 201, the survey Examination inlet module 203 integrates with corresponding automatic test APP 201, is installed together with automatic test APP 201, wherein Including:
Trigger flag generation module 705, it is automatic for generating this on the machine interface in the automatic test APP 201 of installation Test trigger flag corresponding to APP 201;
Second trigger module 706, for obtaining the triggering command of the trigger flag for the automatic test APP 201, Instructed the triggering command as test, start the automatic test APP 201.
Certainly, the combination of each module of system of the present invention is not limited to above-described embodiment, the uploading module 204 can also be integrated in automatic test APP 201, or the uploading module 204 and test report conversion module 206 all may be used To be integrated in automatic test APP 201, the automatic APP 201 that tests uploads the test report automatically after test completion.
Module in test access APP 203 described in Fig. 7 a can also be combined group by the present invention with uploading module 204 The test and management client for being used for test and management into one, such as referred to herein as APPtester, the test client can also enter One step includes the test report conversion module 206.Fig. 8 is test and management client end AP Ptester's 800 of the present invention A kind of composition schematic diagram.Include test access module and uploading module referring to Fig. 8, the APPtester 800;The test access Module specifically includes::
APP list blocks 701, for obtaining all APP of the machine list.
Correlation inquiry module 702, for all APP of traversal queries related information, it is determined that being associated with automatic test APP's Tested APP.
Display module 703, for showing the tested APP lists on the machine interface.
First trigger module 704, for obtaining the triggering command for the tested APP of some in tested APP lists, this is touched Send instructions as the test instruction, start the automatic test APP of the tested APP associations.
The uploading module 204 is used to the test report that automatic test APP 201 is generated uploading to network-side.
Certainly, the APPtester 800 in embodiment illustrated in fig. 8 can further include test report conversion module 206, the test report for automatic test APP 201 to be generated changes into the test report of specified format, then gives on described Transmission module 204 uploads to network-side.
Further, the APPtester can also include device type acquisition module, for showing using operating system There are the device type information that API obtains portable data processing equipment, such as unit type, operating system version and sequence number Etc. information, then the device type information is added in the test report.Such as can be by the device type information It is added in the original test report that automatic test APP 201 is generated, test report conversion module 206 can also be added to and converted In the test report of complete specified format, the particular content of the test report for example can be as shown in Figure 4 b.
In addition, in network-side, tested APP and its automatic test APP of association download address, Huo Zheti can also be provided For the download address for the automatic test APP for being tested APP associations, or further provide on the basis of foregoing download address described APPtester download address.Specific test operation is downloaded the automatic test of the tested APP and its association by earnest user APP, referred to locally test and then uploading test report to network-side for tester.
The test process under a kind of concrete application scene of the present invention is introduced in citing below.
The first step:Tested APP developer needs to provide tested APP installer package, uploads to network-side.
Second step:Tester is the automatic test script that tested APP writes association, and in the working environment of local On by automatic test script debugging all by the way that the automatic test script then is packaged as into one and tests APP automatically Installer package, also upload to network-side.
3rd step:In network-side, while the download address of the tested APP is provided, the automatic test of the tested APP associations APP download address, and the test and management client(APPtester)Download address, heat supply heart user download.
4th step:Any earnest user can download the tested APP and its association automatic test APP and APPtester participates in test in the portable data processing equipment of oneself.
5th step:Earnest user is tested in the portable data processing equipment of oneself and uploads test report for test Personnel access.Assuming that the portable data processing equipment is the mobile phone of user.
Fig. 9 is that earnest user is tested APP on the mobile phone of oneself and uploads test report for tester's access Particular flow sheet.As shown in figure 9, including:
901st, earnest user installs the tested APP and its automatic the test APP, Yi Jian of association on the mobile phone of oneself Fill the APPtester.
902nd, APPtester described in user's startup optimization.The APPtester upon actuation, can obtain the machine institute There are APP list, all APP of traversal queries related information, it is determined that being associated with automatic test APP tested APP, and show institute Tested APP lists are stated, as shown in Figure 6.
903rd, the user clicks on a tested APP as shown in Figure 6 from tested APP lists(Such as UC browsers)Send Test instruction, the automatic test APP of the tested APP associations start, and this tests APP automatically, and automatic start is associated upon actuation Tested APP(The tested APP that i.e. user clicks on).
904th, the automatic test APP runs automatic test script and the tested APP is tested.
905th, automatic test script judges to test whether to complete, if completing to perform next step, otherwise returns to 904 and continues to survey Examination.
906th, automatic test script generation test report, returns to APPtester, is reported the test by APPtester Announcement is uploaded to network-side, and test report is either first converted into the form specified and is uploaded to network-side again or is further surveying The device type information of user mobile phone is added in examination report.
907th, network-side stores the test report, and the test report is accessed for tester.Tester is according to survey Try report analysis and be tested the mating situations of APP on different devices.
In network-side, the concrete mode for supplying tester to access the test report by network-side can include more Plant, such as the test report can be shown online according to the instruction of tester, can also be incited somebody to action according to the instruction of tester Test report first downloads to the local computer of tester, is shown in local computer.
From the above mentioned, the solution of the present invention is passed through, it is possible to achieve several advantages once:
(a)Automatic test is realized, saves time and human cost.
(b)Test quality is high.The true earnest user being distributed in various heterogeneous networks communication environments can be given full play to Test advantage, the tested APP and its automatic test APP of association are downloaded into the portable number of oneself by these real users According to being tested in processing equipment, and the APPtester can be downloaded to multiple tested APP and its automatic test of association APP enters line entry test and management.Test report caused by so can fully react the live network communication shape of real user Condition, it is very close with tested APP real running environment, improve test quality.
(c)Test coverage is wide.Tested APP of the present invention and its automatic test APP of association can be with external disclosures Carry, the effect of earnest user can be given full play to, 100% covering for reaching device type is also easy to.User distribution is wide simultaneously, The network of different regions and different operators can be covered.
(d)Save hardware cost.Because the portable data processing equipment of test is provided by earnest user, tester is not Need to purchase a large amount of portable data processing equipments and tested.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God any modification, equivalent substitution and improvements done etc., should be included within the scope of protection of the invention with principle.

Claims (11)

  1. A kind of 1. method of testing of portable data processing equipment application APP, it is characterised in that including:
    The automatic test APP associated with tested APP is installed in portable data processing equipment, included in the automatic test APP Automatic test script for being tested APP;
    Triggering automatic test APP startup entrance is set in portable data processing equipment, obtained by the startup entrance Portable data processing equipment refers to the triggering command of the trigger flag of the automatic test APP using the triggering command as test Order, automatic test APP corresponding to startup, wherein, the trigger flag is raw on the machine interface in the automatic test APP of installation Into and it is corresponding with the automatic test APP;
    The automatic test APP tested APP that automatic start is associated upon actuation, and automatic test script is run to described Tested APP is tested, and generates test report, and the test report includes the device type letter of the portable data processing equipment Breath;
    Upload the test report to be stored to network-side, change into the test report in taking a step forward of store Test report with node level architecture, the information in node therein include device type information.
  2. 2. according to the method for claim 1, it is characterised in that this method specifically includes:
    After test report is generated, the test report of the generation is changed into the test report with node level architecture Accuse, then upload to network-side;
    Or the test report is uploaded to after network-side, the test report is changed into node level in network-side The test report of architecture, then stored.
  3. 3. according to the method for claim 1, it is characterised in that described to be set in portable data processing equipment described in triggering Automatic test APP startup entrance, it is specially:Installed in the portable data processing equipment described in test access APP conducts Start entrance;
    It is described to obtain test instruction of the portable data processing equipment to the automatic test APP by starting entrance, start corresponding Automatic test APP, specifically include:The test access APP is run, test access APP performs following operation:
    Obtain all APP of the machine list;
    All APP of traversal queries related information, it is determined that being associated with automatic test APP tested APP;
    The tested APP lists are shown on the machine interface;
    The triggering command for the tested APP of some in tested APP lists is obtained, is instructed the triggering command as the test, Start the automatic test APP of the tested APP associations.
  4. 4. according to the method for claim 1, it is characterised in that this method further obtains setting for portable data processing equipment Standby type information, the device type information is added in the test report.
  5. 5. according to the method described in any one of Claims 1-4, it is characterised in that the tested APP is to be grasped based on andriod Make the APP of system, the automatic script tested in APP is the test script based on instrumentation frameworks.
  6. A kind of 6. portable data processing equipment APP test system, it is characterised in that including:
    The automatic test APP associated with tested APP, in portable data processing equipment, for automatic start upon actuation The tested APP associated in the machine, run automatic test script and the tested APP is tested, generate test report, the test Report includes the device type information of the portable data processing equipment;
    Test access module, in portable data processing equipment, for obtaining portable data processing equipment to described automatic The triggering command of APP trigger flag is tested, is instructed the triggering command as test, automatic test APP corresponding to startup, its In, the trigger flag generates on the machine interface in the automatic test APP of installation and tests APP pairs automatically with described Should;
    Uploading module, in portable data processing equipment, for uploading the test report to network-side;
    Test report conversion module, for the test report to be changed into the test report with node level architecture, Information in node therein includes device type information;
    Test report module, network-side is arranged on, the test report of network-side is uploaded to for storing.
  7. 7. system according to claim 6, it is characterised in that
    The test report conversion module is arranged in portable data processing equipment, for the test report of the generation to be converted Into the test report with node level architecture, then give uploading module and upload to network-side;
    It is described for the test report of the upload to be changed into or the test report conversion module is arranged on network-side Test report with node level architecture, then give the test report module storage.
  8. 8. system according to claim 6, it is characterised in that the test access module is a pair with automatic test APP More relations, the test access module specifically include:
    APP list blocks, for obtaining all APP of the machine list;
    Correlation inquiry module, for all APP of traversal queries related information, it is determined that being associated with the tested of automatic test APP APP;
    Display module, for showing the tested APP lists on the machine interface;
    First trigger module, for obtaining the triggering command for the tested APP of some in tested APP lists, by the triggering command As the test instruction, start the automatic test APP that the tested APP is associated.
  9. 9. according to the system described in any one of claim 6 to 8, it is characterised in that the tested APP is to be grasped based on andriod Make the APP of system, the automatic script tested in APP is the test script based on instrumentation frameworks.
  10. 10. a kind of portable data processing equipment APP test and management client, it is characterised in that including test access module, set Standby type acquisition module, test report conversion module and uploading module;
    The test access module specifically includes:
    APP list blocks, for obtaining all APP of the machine list;
    Correlation inquiry module, for all APP of traversal queries related information, it is determined that being associated with the tested of automatic test APP APP;
    Display module, for showing the tested APP lists on the machine interface;
    First trigger module, for obtaining the triggering command for the tested APP of some in tested APP lists, by the triggering command As the test instruction, start the automatic test APP that the tested APP is associated;The automatic test APP is arranged on the portable number According in processing equipment;
    The device type acquisition module is used for the device type information for obtaining portable data processing equipment, by the device type Information is added in the test report of automatic test APP generations;
    The test report conversion module is used to the test report changing into the test report with node level architecture Accuse;
    The uploading module is used to the test report uploading to network-side.
  11. 11. test and management client according to claim 10, it is characterised in that the device type acquisition module, tool Body obtains the device type information of portable data processing equipment using the existing API of operating system, by the device type information It is added to the test report.
CN201210241024.7A 2012-07-12 2012-07-12 Method of testing, system and the client of portable data processing equipment application program Active CN103544100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210241024.7A CN103544100B (en) 2012-07-12 2012-07-12 Method of testing, system and the client of portable data processing equipment application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210241024.7A CN103544100B (en) 2012-07-12 2012-07-12 Method of testing, system and the client of portable data processing equipment application program

Publications (2)

Publication Number Publication Date
CN103544100A CN103544100A (en) 2014-01-29
CN103544100B true CN103544100B (en) 2018-02-16

Family

ID=49967572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210241024.7A Active CN103544100B (en) 2012-07-12 2012-07-12 Method of testing, system and the client of portable data processing equipment application program

Country Status (1)

Country Link
CN (1) CN103544100B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224869B (en) * 2014-06-12 2019-01-08 腾讯科技(深圳)有限公司 Assembly test method and device
CN105446873B (en) * 2014-09-01 2018-05-22 中国科学院深圳先进技术研究院 APK Software Automatic Testing Methods and system based on Android platform
CN104243282B (en) * 2014-09-12 2018-09-21 深圳创维数字技术有限公司 A kind of information notice method and server
CN104461874A (en) * 2014-11-23 2015-03-25 国云科技股份有限公司 Method for normalizing mobile APP tests
CN104536863B (en) * 2014-12-08 2016-10-05 广东欧珀移动通信有限公司 The method of testing of a kind of application program and device
CN105740141B (en) * 2014-12-12 2018-12-04 中国移动通信集团终端有限公司 A kind of automated detection method and its device
CN104407980B (en) * 2014-12-17 2017-07-11 用友网络科技股份有限公司 Mobile solution automatic test device and method
CN104579825A (en) * 2014-12-18 2015-04-29 百度在线网络技术(北京)有限公司 Method and device for monitoring server of application in real time and computer equipment
CN104933174B (en) * 2015-07-01 2018-05-22 北京博睿宏远数据科技股份有限公司 The method that traversal solution cell phone application type adaptation issues are automated based on control
CN106844186B (en) * 2015-12-03 2021-08-10 腾讯科技(深圳)有限公司 Offline test method of application and terminal equipment
CN107391362A (en) * 2017-06-28 2017-11-24 北京珠穆朗玛移动通信有限公司 Application testing method, mobile terminal and storage medium
CN107678956A (en) * 2017-09-22 2018-02-09 郑州云海信息技术有限公司 A kind of server automated test and management system and method
CN108090355B (en) * 2017-11-28 2020-10-27 西安交通大学 APK automatic triggering tool
CN108763017B (en) * 2018-05-18 2023-04-25 平安普惠企业管理有限公司 Application software data processing method, server side and storage medium for financial business
CN111258898B (en) * 2020-01-15 2023-03-28 深圳平安医疗健康科技服务有限公司 Automatic testing method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150463A (en) * 2007-11-14 2008-03-26 华为技术有限公司 Testing method and system
CN101296462A (en) * 2007-04-25 2008-10-29 中兴通讯股份有限公司 Method and system for batch execution of mobile terminal software automatic test

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053911A (en) * 2010-12-30 2011-05-11 东莞宇龙通信科技有限公司 Automated testing method and system based on Android and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296462A (en) * 2007-04-25 2008-10-29 中兴通讯股份有限公司 Method and system for batch execution of mobile terminal software automatic test
CN101150463A (en) * 2007-11-14 2008-03-26 华为技术有限公司 Testing method and system

Also Published As

Publication number Publication date
CN103544100A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
CN103544100B (en) Method of testing, system and the client of portable data processing equipment application program
CN104407980B (en) Mobile solution automatic test device and method
Lu et al. Unlocking the power of OPNET modeler
US8490050B2 (en) Automatic generation of user interfaces
CN102567198B (en) System and method for testing application program in physical system environment
CN112270149B (en) Verification platform automatic integration method and system, electronic equipment and storage medium
CN110162977A (en) A kind of Android vehicle-mounted terminal system leakage location and method
CN108446190A (en) interface test method and device
CN102667730A (en) Design time debugging
CN103425574A (en) Method and device for testing applications
CN103257852B (en) The method and apparatus that a kind of development environment of distribution application system is built
CN106293965A (en) The method of the hardware resource of hardware resource access system and access electronic installation thereof
CN108959059A (en) A kind of test method and test platform
EP2572294A2 (en) System and method for sql performance assurance services
CN102436416A (en) Testing system and method for mobile equipment
CN103246606B (en) The performance test methods of ESB platform and system
CN104579830B (en) service monitoring method and device
CN107463500A (en) Adjustment method, medium, system and the computing device of test script
US9201633B2 (en) Creation and deployment of RESTful web services in a graphical programming language
CN107395747A (en) A kind of high extended method based on STF platforms
CN107480055A (en) Method of testing, device, calculate readable storage medium storing program for executing and computing device
Prist et al. An integrated simulation environment for Wireless Sensor Networks
Patel et al. Simulation, modelling and packet sniffing facilities for IoT: A systematic analysis
Miller et al. Evaluating a basic approach to sensor network node programming
CN109885472A (en) Test and management method and system and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant