CN105630686B - A kind of application traversal test method, equipment and mobile terminal - Google Patents

A kind of application traversal test method, equipment and mobile terminal Download PDF

Info

Publication number
CN105630686B
CN105630686B CN201610173642.0A CN201610173642A CN105630686B CN 105630686 B CN105630686 B CN 105630686B CN 201610173642 A CN201610173642 A CN 201610173642A CN 105630686 B CN105630686 B CN 105630686B
Authority
CN
China
Prior art keywords
page
test
control
application
tested application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610173642.0A
Other languages
Chinese (zh)
Other versions
CN105630686A (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.)
Shanghai Zunmeng Technology Co.,Ltd.
Original Assignee
Xiamen Meitu Mobile 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 Xiamen Meitu Mobile Technology Co Ltd filed Critical Xiamen Meitu Mobile Technology Co Ltd
Priority to CN201610173642.0A priority Critical patent/CN105630686B/en
Publication of CN105630686A publication Critical patent/CN105630686A/en
Application granted granted Critical
Publication of CN105630686B publication Critical patent/CN105630686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of applications to traverse test method, executes in the terminal, this method comprises: obtaining the attribute information of multiple applications in mobile terminal;Receive selection of the tester to tested application;From tester is received to the tested configuration using test parameter;The tested application of starting;Control visiting test is executed to each page of tested application;Record each test interface of tested application during the test;And choose the test interface for being wherein tested application error, wherein control visiting test, which includes: to judge whether the page is stuck, to be executed to a page;If the page is not stuck, the Page Name of the page is obtained;According to the Page Name query page node information database of acquisition, page nodal information includes page control list;Test operation successively is executed to each control in the page control list.Mobile terminal the invention also discloses corresponding application traversal test equipment and comprising the application traversal test equipment.

Description

A kind of application traversal test method, equipment and mobile terminal
Technical field
The present invention relates to apply testing field, in particular to a kind of application traversal test method, equipment and mobile terminal.
Background technique
In existing automatic test field, the interface detection of application substantially has following two form of expression: first is that logical It crosses and writes shell script, shell script is allowed to go to execute page operation in a designated order, to reach the mesh for testing certain paths , since the operation of script is to click specified control in known interface, there is very high accuracy, but this mode excessively relies on quilt The interface of application is surveyed, once encountering interface modification, correspondingly, shell script is also required to modify, and compatibility is very poor, in addition, this The transportable property of kind mode is low, reusability is poor.Second is that using some open source testing tool such as monkey, the characteristics of this tool, is It no longer depends on interface unduly as script, can even be run across application in any application, main operation is answered in specified With into row stochastic click, compatibility is high, and reusability is strong in (can be multiple).But due to testing tool be it is random It is clicked in interface, accuracy and coverage rate are difficult to be guaranteed.
It is, therefore, desirable to provide a kind of be detached from ui testing pair The dependence of interface and tested application, the new departure for increasing transportable property and reusability.
Summary of the invention
For this purpose, the present invention provides a kind of new application traversal test method, equipment and mobile terminal, to try hard to solve or At least alleviate above there are the problem of.
According to an aspect of the present invention, a kind of application traversal test method is provided, is executed in the terminal, this method It include: the attribute information for obtaining multiple applications in mobile terminal;Receive selection of the tester to tested application;It is tested from receiving Personnel are to the tested configuration using test parameter;The tested application of starting;Control visiting test is executed to each page of tested application; Record each test interface of tested application during the test;And choose the test interface for being wherein tested application error, wherein Control visiting test, which includes: to judge whether the page is stuck, to be executed to a page;If the page is not stuck, the page is obtained Page Name;According to the Page Name query page node information database of acquisition, page nodal information includes page control List;Test operation successively is executed to each control in the page control list.
Optionally, in application according to the present invention traversal test method, attribute information include using packet title and Activity title.
Optionally, in application according to the present invention traversal test method, Activity title is suitable for the tested application of starting.
Optionally, it in application according to the present invention traversal test method, before the Page Name for obtaining the page, also wraps It includes: judging whether the page needs to log in;If the page needs to log in, which is logged according to the test parameter of configuration.
Optionally, in application according to the present invention traversal test method, test behaviour is executed to a control in the page As the step of include: to judge whether action type that the control is received is click type, sliding-type and one of imported;If The action type of the control is click type, sliding-type and one of imported, then to the control execute it is corresponding click, sliding or Input information operation.
Optionally, in application according to the present invention traversal test method, test behaviour is executed to a control in the page The step of making further include: after executing test operation to the page a control, judge whether the page jumps;If the page is jumped Turn, then control visiting test is executed to the page after jumping;If the page does not jump, judge whether the content of the page changes; If the content of the page changes, test operation is executed to the control in the page after content changing;If the page is interior Rong Wei changes, then continues to execute control visiting test to the page.
Optionally, in application according to the present invention traversal test method, further includes: executing control visiting test process In, monitor whether current tested application is original tested application by application packet title;If current tested application is not former The tested application come, then exit current tested application, into original tested application.
Optionally, in application according to the present invention traversal test method, test parameter includes length of testing speech and maximum survey Try recurring number.
Optionally, in application according to the present invention traversal test method, further includes: executing control visiting test process In, the record test time started, the mobile terminal current testing time is obtained, judges that the mobile terminal current testing time opens with test Whether the difference of time beginning is less than length of testing speech;If mobile terminal current testing time and the difference of test time started are less than Length of testing speech then continues to execute control visiting test;If the difference of mobile terminal current testing time and testing time are greater than Equal to length of testing speech, then stop executing control visiting.
According to an aspect of the present invention, a kind of application traversal test equipment is provided, is resident in the terminal, the equipment It include: information acquisition unit, suitable for obtaining the attribute information of multiple applications in mobile terminal;Using selecting unit, it is suitable for receiving Selection of the tester to tested application;Parameter configuration unit, suitable for receiving tester to the test parameter of tested application Configuration;Using start unit, it is suitable for the tested application of starting;Test execution unit, suitable for executing control to each page of tested application Part traversal test is suitable for judging whether the page is stuck when wherein executing control visiting test to a page, if the page It is not stuck, then the Page Name of the page is obtained, according to the Page Name query page node information database of acquisition, page node Information includes page control list, successively executes test operation to each control in the page control list;Screen recording list Member is suitable in executing control visiting test process, records each test interface of tested application during the test;It chooses at interface Unit, suitable for choosing the test interface for being wherein tested application error.
Optionally, in application according to the present invention traversal test equipment, attribute information include using packet title and Activity title.
Optionally, in application according to the present invention traversal test equipment, Activity title is suitable for the tested application of starting.
Optionally, in application according to the present invention traversal test equipment, test execution unit is further adapted for: judging that the page is It is no to need to log in;If the page needs to log in, which is logged according to the test parameter of configuration.
Optionally, in application according to the present invention traversal test equipment, test execution unit is further adapted for: judging the control Whether the action type received is click type, sliding-type and one of imported;If the action type of the control is to click Type, sliding-type and one of imported, then to the control execute it is corresponding click, sliding or input information operation.
Optionally, in application according to the present invention traversal test equipment, test execution unit is further adapted for: answering to tested After one control of the page executes test operation, judge whether the page jumps;If page jump, after jumping The page executes control visiting test;If the page does not jump, judge whether the content of the page changes;If the content of the page is sent out It is raw to change, then test operation is executed to the control in the page after content changing;If the content of the page does not change, right The page continues to execute control visiting test.
Optionally, in application according to the present invention traversal test equipment, further includes: monitoring unit is applied, suitable for holding In row control visiting test process, monitor whether current tested application is original tested application by application packet title;If It is not original tested application, then exits current tested application, into original tested application.
Optionally, in application according to the present invention traversal test equipment, test parameter includes length of testing speech and maximum survey Try recurring number.
Optionally, in application according to the present invention traversal test equipment, test execution unit is further adapted for: executing control It traverses in test process, the record test time started, obtains the mobile terminal current testing time, judge that mobile terminal is currently tested Whether the difference of time and test time started are less than length of testing speech;If mobile terminal current testing time and test start Between difference be less than length of testing speech, then continue to execute control visiting test;If when mobile terminal current testing time and test Between difference be more than or equal to length of testing speech, then stop execute control visiting test.
According to an aspect of the present invention, a kind of mobile terminal is provided, including application traversal test equipment as above.
According to the technique and scheme of the present invention, it by executing control visiting test to each of the tested application page, mentions High testing efficiency, simplifies testing process.
Detailed description of the invention
To the accomplishment of the foregoing and related purposes, certain illustrative sides are described herein in conjunction with following description and drawings Face, these aspects indicate the various modes that can practice principles disclosed herein, and all aspects and its equivalent aspect It is intended to fall in the range of theme claimed.Read following detailed description in conjunction with the accompanying drawings, the disclosure it is above-mentioned And other purposes, feature and advantage will be apparent.Throughout the disclosure, identical appended drawing reference generally refers to identical Component or element.
Fig. 1 shows the structural block diagram of mobile terminal 100 according to an embodiment of the invention;
Fig. 2 shows the structure charts of application according to an embodiment of the invention traversal test equipment 200;
Fig. 3 shows the diagram of the test parameter configuration page according to an embodiment of the invention;
Fig. 4 shows the flow chart of application traversal test method according to an embodiment of the invention;And
Fig. 5 shows the flow chart of execution control visiting test according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 is the structural block diagram of mobile terminal 100.Mobile terminal 100 with multiple point touching ability may include storage Device interface 102, one or more data processors, image processor and/or central processing unit 104 and peripheral interface 106。
Memory interface 102, one or more processors 104 and/or peripheral interface 106 either discrete component, It can integrate in one or more integrated circuits.In the mobile terminal 100, various elements can pass through one or more communication Bus or signal wire couple.Sensor, equipment and subsystem may be coupled to peripheral interface 106, a variety of to help to realize Function.For example, motion sensor 110, optical sensor 112 and range sensor 114 may be coupled to peripheral interface 106, with side Just the functions such as orientation, illumination and ranging.Other sensors 116 can equally be connected with peripheral interface 106, such as positioning system (such as GPS receiver), temperature sensor, biometric sensor or other sensor devices, it is possible thereby to help to implement correlation Function.
Camera sub-system 120 and optical sensor 122 can be used for the camera of convenient such as record photos and video clips The realization of function, wherein the camera sub-system and optical sensor for example can be charge-coupled device (CCD) or complementary gold Belong to oxide semiconductor (CMOS) optical sensor.
It can help to realize communication function by one or more radio communication subsystems 124, wherein wireless communication System may include radio-frequency transmitter and transmitter and/or light (such as infrared) Receiver And Transmitter.Radio communication subsystem 124 particular design and embodiment can depend on one or more communication networks that mobile terminal 100 is supported.For example, Mobile terminal 100 may include be designed to support GSM network, GPRS network, EDGE network, Wi-Fi or WiMax network and BlueboothTMThe communication subsystem 124 of network.
Audio subsystem 126 can be coupled with loudspeaker 128 and microphone 130, to help to implement to enable voice Function, such as speech recognition, speech reproduction, digital record and telephony feature.
I/O subsystem 140 may include touch screen controller 142 and/or other one or more input controllers 144.
Touch screen controller 142 may be coupled to touch screen 146.For example, the touch screen 146 and touch screen controller 142 can be used any one of a variety of touch-sensing technologies to detect the contact carried out therewith and movement or pause, Middle detection technology includes but is not limited to capacitive character, resistive, infrared and surface acoustic wave technique.
Other one or more input controllers 144 may be coupled to other input/control devicess 148, for example, one or The pointer device of multiple buttons, rocker switch, thumb wheel, infrared port, USB port, and/or stylus etc.One or Multiple buttons (not shown) may include the up/down button for controlling 130 volume of loudspeaker 128 and/or microphone.
Memory interface 102 can be coupled with memory 150.The memory 150 may include that high random access is deposited Reservoir and/or nonvolatile memory, such as one or more disk storage equipments, one or more optical storage apparatus, and/ Or flash memories (such as NAND, NOR).
Memory 150 can store an operating system 152, such as the behaviour of Android, iOS or Windows Phone etc Make system.The operating system 152 may include for handling basic system services and executing the finger of the task dependent on hardware It enables.Memory 150, which can also store, various applies 154.In mobile device operation, can load operation be from memory 150 System 152, and executed by processor 104.At runtime using 154, it can also be loaded from memory 150, and by processor 104 It executes.It is operated on operating system using 154, realizes various users using the interface that operating system and bottom hardware provide Desired function, such as instant messaging, web page browsing, pictures management.It, can also using can be independently of operating system offer To be that operating system is included.
In various applications 154, one such application is application traversal test equipment 200, which can be in movement Traversal test is carried out to various applications in terminal, improves the accuracy and coverage rate of test, while also relieving and testing Cheng Zhong, the dependence to tested application increase transportable property.
Fig. 2 shows the schematic diagrames of application according to an embodiment of the invention traversal test equipment 200.As shown in Fig. 2, The equipment is resident in the terminal, includes information acquisition unit 210, using selecting unit using traversal test equipment 200 220, parameter configuration unit 230, test execution unit 240, using monitoring unit 250, screen recording unit 260, using starting Unit 270 and interface selection unit 280.
Applying in mobile terminal such as mobile phone, tablet computer will do it test before publication, it is ensured that finally give use The functor of the application at family shares the demand at family, and problem as much as possible is found and corrected before user is given in application.
Before test, information acquisition unit 210 can obtain the attribute information of multiple applications in mobile terminal, using can be with It is systematic difference, is also possible to the application of tester's downloading.The attribute information of application generally comprise using packet title and Activity title.
It is used to receive the tested application that tester selects in the terminal using test cell 220, for example, tester Member's selection " Meitu Xiu Xiu ".Parameter configuration unit 230 receives the test parameter that tester is above-mentioned tested application configuration, such as schemes Shown in 3, test parameter generally comprises length of testing speech, full test recurring number, username and password etc..
After setting test parameter, the Activity in tested application attribute information can be passed through using start unit 270 The tested application of title starting, for example, passing through the tested application of am start order starting.Test execution unit 240 is to tested application Each page execute control visiting test.
When each page for being tested application executes control visiting test, when test execution unit 240 will record test beginning Between, and in control visiting test process, test execution unit 240 obtains always the mobile terminal current testing time, judges to move Whether the difference of dynamic terminal current testing time and test time started are less than the length of testing speech in test parameter, for example, test Shi Changwei 2 hours.If the difference of mobile terminal current testing time and test time started are less than length of testing speech, continue to hold The test of row control visiting.If the difference of mobile terminal current testing time and testing time are more than or equal to length of testing speech, stop Only execute control visiting test.
When a page in tested application executes control visiting test, test execution unit 240 judges that the page is It is no stuck.The stuck of the page generally comprises two kinds of situations: (1) obtaining less than page nodal information any in the page;(2) always Some control in the loop test page.It is random to click the page if the stuck of situation (1) occurs in the page, until can Obtain the page nodal information of the page.If the stuck of situation (2) occurs in the page, reach in test parameter in cycle-index Full test recurring number after, compulsory withdrawal application restarts tested application, test execution unit using start unit 270 240 pairs of pages execute control visiting test.
If the page does not have stuck, test execution unit 240 may determine that whether the page needs to log in.If the page It needs to log in, then username and password is inputted according to the test parameter of setting, log in current tested application.If the page is not required to It logs in, then obtains the Page Name of the page for example, by dumpsys order.
Test execution unit 240 is according to the Page Name query page node information database of acquisition, if in page section The page nodal information that corresponding page title is inquired in point information database, then obtain phase from page node information database The page nodal information answered.If not finding the page node letter of the corresponding Page Name in page node information database Breath then obtains the page nodal information of current page by Uiautomator, the corresponding storage of the page nodal information that will acquire To the corresponding position of page node information database.Page nodal information includes page control list, is generally stored in the page In node information database, the page one page nodal information of corresponding storage, and correspond to a record in database, The details of each record are stored in XML file.In page nodal information include information store path, Page Name, Control information traverses control ordinal number using packet title and current page.
Test execution unit 240 successively carries out test operation to each page control in page control list.Page control Part is, for example, text class (TextView, EditText etc.), button class (Button, CheckBox etc.), picture category etc..With certain It is illustrated for one control of a page.
Test execution unit 240 reads a control in page control list by pointer, judges that the control is received Action type whether be click type, sliding-type and one of imported.If the action type of the control is click type, sliding Type and one of imported, then to the control execute it is corresponding click, sliding or input information operation.It is performed to the control After corresponding operation, test execution unit 240 further judges whether the page jumps.If the page is jumped Turn, then control visiting test is carried out to the page after jumping, for example, in the control tested in Meitu Xiu Xiu " homepage ", it should be " first Page " page jump is tested to " beauty is clapped " page at this point, executing above-mentioned control visiting to the new page.If the page does not have It jumps, at this point, judging whether the content of the page changes.If the content of the page changes, after content changing The page in control execute test operation, for example, test Meitu Xiu Xiu " homepage " in control when, occur dialog box, The controls such as Fragment execute above-mentioned test operation to the new control of appearance.If the content of the page does not change, after It is continuous to execute control visiting test, until testing all controls in page control list.
In control visiting test process, it can monitor whether current tested application exception occurs using monitoring unit 250. For example, monitoring whether current tested application is original tested answer using packet title in the attribute information for passing through tested application With.If not original tested application, illustrates that tested application has jumped to other application during the test, then directly exit Other application reenters original tested application, continues to test.Other application generally comprises white list and answers using with desktop With it is application relevant to tested application that white list, which is applied, after tester chooses tested application, can further be selected white List application, for example, the tested application selected is Meitu Xiu Xiu, application relevant to Meitu Xiu Xiu includes wechat, microblogging etc., is surveyed White list can be added in wechat and microblogging by examination personnel, and desktop application is all applications other than tested application and white list application. In this way, can prevent test from interrupting, the influence to test result is reduced.
It may also listen for the state of mobile terminal screen using monitoring unit 250, for example, executing control time in some page It goes through in test process, the screen of mobile terminal such as mobile phone extinguishes, and causes test execution unit 240 that can not obtain the page of the page Face nodal information prevents test abnormal at this point, can wake up screen using monitoring unit 250.
In entire test process, screen recording unit 260 can record each test interface of tested application during the test. Page selection unit 280 chooses the interface of tested application test error, test report, i.e. log file is generated, so as to tester Log file is won, is arranged, where quick positioning question, provides effective data for later period research and development.
According to the technique and scheme of the present invention, it by executing control visiting test to each of the tested application page, mentions High testing efficiency, simplifies testing process.
Fig. 4 shows the flow chart of application traversal test method 500 according to an illustrative embodiment of the invention.Such as figure Shown in 4, present implementation is suitable for executing in the terminal, and application traversal test method starts from step S410.
In step S410, the attribute information of multiple applications in mobile terminal is obtained.Wherein, the attribute information of application is general Including applying packet title and Activity title, above-mentioned Activity title is suitable for the tested application of starting.
In the step s 420, selection of the tester to tested application is received.
In step S430, tester is received to the tested configuration using test parameter.Wherein, test parameter generally wraps Include length of testing speech, full test recurring number, username and password.
In step S440, start tested application.Next in step S450, control is executed to each page of tested application Part traversal test, is introduced by taking the control visiting test in a page as an example, executes step in detail and refers to Fig. 5 flow chart.
According to a kind of embodiment, the page in tested application executes in control visiting test process, and record test is opened Begin the time, obtain the mobile terminal current testing time, judge the mobile terminal current testing time and tests the difference of time started Whether length of testing speech is less than.If the difference of mobile terminal current testing time and test time started are less than length of testing speech, Continue to execute control visiting test.If the difference of mobile terminal current testing time and testing time are more than or equal to test It is long, then stop executing control visiting test.
According to a kind of embodiment, the page in tested application executes in control visiting test process, is wrapped by application Title monitors whether current tested application is original tested application.If current tested application is not original tested application, Current tested application is then exited, into original tested application.
In step S460, each test interface of tested application during the test is recorded.Then, in step S470, Choose the test interface of tested application error.
Fig. 5 shows the flow chart of execution control visiting test according to an embodiment of the invention.
As shown in figure 5, executing control visiting test in some page, in step S442, judge whether the page is stuck.
If the page is not stuck, in step S444, the Page Name of the page is obtained.According to a kind of embodiment party Formula needs to judge whether the page needs to log in front of the Page Name for obtaining the page.If the page needs to log in, The application is then logged according to the username and password in the test parameter of configuration.If the page does not need to log in, directly hold Row step S444.
In step S446, according to the Page Name query page node information database of acquisition.Wherein, page node is believed Breath includes page control list.
Then, test operation is carried out to each control in the page control list in step S448.
According to a kind of embodiment, when executing test operation to a control in the page, judge that the control is received Action type whether be click type, sliding-type and one of imported.If the action type of the control is click type, sliding Type and one of imported, then to the control execute it is corresponding click, sliding or input information operation.Aforesaid operations have executed it Afterwards, judge whether the page jumps.If the page jump, control visiting test is executed to the page after jumping.If should The page does not jump, then judges whether the content of the page changes.If the content of the page changes, after content changing The page in control execute test operation.If the content of the page does not change, control is continued to execute to the page Traversal test.
According to the technique and scheme of the present invention, it by executing control visiting test to each of the tested application page, mentions High testing efficiency, simplifies testing process.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, knot is not been shown in detail Structure and technology, so as not to obscure the understanding of this specification.
A9: according to method described in A1 or A7, wherein further include: in executing control visiting test process, record test Time started obtains the mobile terminal current testing time, judges the mobile terminal current testing time and tests the difference of time started Whether value is less than length of testing speech;If the difference of mobile terminal current testing time and test time started are less than length of testing speech, Then continue to execute control visiting test;If the difference of mobile terminal current testing time and testing time are more than or equal to test It is long, then stop executing control visiting test.
B11: equipment according to b10, wherein the attribute information includes applying packet title and Activity title. B12: the equipment according to B11, wherein the Activity title is suitable for the tested application of starting.B13: according to b10 Equipment, wherein the test execution unit is further adapted for: judging whether the page needs to log in;If the page needs are stepped on Record, then log in the application according to the test parameter of configuration.B14: equipment according to b10, wherein the test execution unit It is further adapted for: judges whether action type that the control is received is click type, sliding-type and one of imported;If the control Action type be click type, sliding-type and one of imported, then to the control execute it is corresponding click, sliding or input are believed Breath operation.B15: equipment according to b10, wherein the test execution unit is further adapted for: in the page to the tested application After one control in face executes test operation, judge whether the page jumps;If the page jump, to the page after jumping Face executes control visiting test;If the page does not jump, judge whether the content of the page changes;If the page The content in face changes, then executes test operation to the control in the page after content changing;If the content of the page It does not change, then control visiting test is continued to execute to the page.B16: it according to equipment described in B10 or B11, also wraps It includes: using monitoring unit, being suitable in executing control visiting test process, monitoring current tested application by application packet title is No is original tested application, if not original tested application, then exits current tested application, is tested into original Using.B17: according to equipment described in B10 or B13, wherein the test parameter includes length of testing speech and full test recurring number. B18: according to equipment described in B10 or B17, wherein test execution unit is further adapted for: in executing control visiting test process, note The record test time started, the mobile terminal current testing time is obtained, when judging that mobile terminal current testing time and test start Between difference whether be less than length of testing speech;If the difference of mobile terminal current testing time and test time started are less than test Duration then continues to execute control visiting test;If the difference of mobile terminal current testing time and testing time are more than or equal to Length of testing speech then stops executing control visiting test.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims than feature more features expressly recited in each claim.More precisely, as following As claims reflect, inventive aspect is all features less than single embodiment disclosed above.Therefore, it abides by Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself As a separate embodiment of the present invention.
Those skilled in the art should understand that the module of the equipment in example disclosed herein or unit or groups Part can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in the example In different one or more equipment.Module in aforementioned exemplary can be combined into a module or furthermore be segmented into multiple Submodule.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
In addition, be described as herein can be by the processor of computer system or by executing by some in the embodiment The combination of method or method element that other devices of the function are implemented.Therefore, have for implementing the method or method The processor of the necessary instruction of element forms the device for implementing this method or method element.In addition, Installation practice Element described in this is the example of following device: the device be used for implement as in order to implement the purpose of the invention element performed by Function.
As used in this, unless specifically stated, come using ordinal number " first ", " second ", " third " etc. Description plain objects, which are merely representative of, is related to the different instances of similar object, and is not intended to imply that the object being described in this way must Must have the time it is upper, spatially, sequence aspect or given sequence in any other manner.
Although the embodiment according to limited quantity describes the present invention, above description, the art are benefited from It is interior it is clear for the skilled person that in the scope of the present invention thus described, it can be envisaged that other embodiments.Additionally, it should be noted that Language used in this specification primarily to readable and introduction purpose and select, rather than in order to explain or limit Determine subject of the present invention and selects.Therefore, without departing from the scope and spirit of the appended claims, for this Many modifications and changes are obvious for the those of ordinary skill of technical field.For the scope of the present invention, to this Invent done disclosure be it is illustrative and not restrictive, it is intended that the scope of the present invention be defined by the claims appended hereto.

Claims (17)

1. a kind of application traverses test method, execute in the terminal, this method comprises:
Obtain the attribute information of multiple applications in mobile terminal;
Receive selection of the tester to tested application;
Tester is received to the tested configuration using test parameter, test parameter includes that length of testing speech and full test follow Number of rings;
The tested application of starting;
Control visiting test is executed to each page of the tested application;
Record each test interface of tested application during the test;And
The test interface of the wherein tested application error is chosen,
Wherein, executing control visiting test to a page includes:
Judge whether the page is stuck;
If the page is not stuck, the Page Name of the page is obtained;
According to the Page Name query page node information database of acquisition, the page nodal information includes page control column Table;
Test operation successively is executed to each control in the page control list;
If there is the stuck of some control such case in the page of loop test always, then reach test in cycle-index After full test recurring number in parameter, compulsory withdrawal application, and restart tested application.
2. according to the method described in claim 1, wherein the attribute information includes applying packet title and Activity title.
3. according to the method described in claim 2, wherein the Activity title is suitable for the tested application of starting.
4. according to the method described in claim 1, wherein before the Page Name for obtaining the page, further includes:
Judge whether the page needs to log in;
If the page needs to log in, which is logged according to the test parameter of configuration.
5. according to the method described in claim 1, the step of wherein a control in the page executes test operation is wrapped It includes:
Judge whether action type that the control is received is click type, sliding-type and one of imported;
If the action type of the control is click type, sliding-type and one of imported, corresponding point is executed to the control Hit, slide or input information operation.
6. according to the method described in claim 1, the step of wherein a control in the page executes test operation is also Include:
After executing test operation to the page a control, judge whether the page jumps;
If the page jump, control visiting test is executed to the page after jumping;
If the page does not jump, judge whether the content of the page changes;
If the content of the page changes, test operation is executed to the control in the page after content changing;
If the content of the page does not change, control visiting test is continued to execute to the page.
7. method according to claim 1 or 2, wherein further include:
In executing control visiting test process, monitor whether current tested application is original tested answer by application packet title With;
If current tested application is not original tested application, current tested application is exited, tested is answered into original With.
8. according to the method described in claim 1, wherein further include:
In executing control visiting test process, the record test time started, the mobile terminal current testing time is obtained, judges to move Whether the difference of dynamic terminal current testing time and test time started are less than length of testing speech;
If the difference of mobile terminal current testing time and test time started are less than length of testing speech, control time is continued to execute Go through test;
If the difference of mobile terminal current testing time and testing time are more than or equal to length of testing speech, stop executing control time Go through test.
9. a kind of application traverses test equipment, it is resident in the terminal, the equipment includes:
Information acquisition unit, suitable for obtaining the attribute information of multiple applications in mobile terminal;
Using selecting unit, suitable for receiving selection of the tester to tested application;
Parameter configuration unit, suitable for receiving configuration of the tester to the test parameter of the tested application, test parameter includes Length of testing speech and full test recurring number;
Using start unit, it is suitable for the tested application of starting;
Test execution unit, suitable for executing control visiting test to each page of the tested application, wherein being held to a page It is suitable for judging whether the page is stuck when row control visiting is tested, if the page is not stuck, obtains the page of the page Title, according to the Page Name query page node information database of acquisition, the page nodal information includes page control column Table successively executes test operation to each control in the page control list, if there is in the page of loop test always Some control such case it is stuck, then after cycle-index reaches the full test recurring number in test parameter, force to move back It applies out, and restarts tested application;
Screen recording unit is suitable in executing control visiting test process, records each survey of tested application during the test Try interface;
Interface selection unit, suitable for choosing the test interface of the wherein tested application error.
10. equipment according to claim 9, wherein the attribute information includes applying packet title and Activity title.
11. equipment according to claim 10, wherein the Activity title is suitable for the tested application of starting.
12. equipment according to claim 9, wherein the test execution unit is further adapted for:
Judge whether the page needs to log in;
If the page needs to log in, which is logged according to the test parameter of configuration.
13. equipment according to claim 9, wherein the test execution unit is further adapted for:
Judge whether action type that the control is received is click type, sliding-type and one of imported;
If the action type of the control is click type, sliding-type and one of imported, corresponding point is executed to the control Hit, slide or input information operation.
14. equipment according to claim 9, wherein the test execution unit is further adapted for:
After a control to the page of the tested application executes test operation, judge whether the page jumps;
If the page jump, control visiting test is executed to the page after jumping;
If the page does not jump, judge whether the content of the page changes;
If the content of the page changes, test operation is executed to the control in the page after content changing;
If the content of the page does not change, control visiting test is continued to execute to the page.
15. equipment according to claim 9 or 10, further includes:
Using monitoring unit, it is suitable in executing control visiting test process, current tested application is monitored by application packet title Whether it is original tested application, if not original tested application, then current tested application is exited, into original quilt Survey application.
16. equipment according to claim 9, wherein test execution unit is further adapted for:
In executing control visiting test process, the record test time started, the mobile terminal current testing time is obtained, judges to move Whether the difference of dynamic terminal current testing time and test time started are less than length of testing speech;
If the difference of mobile terminal current testing time and test time started are less than length of testing speech, control time is continued to execute Go through test;
If the difference of mobile terminal current testing time and testing time are more than or equal to length of testing speech, stop executing control time Go through test.
17. a kind of mobile terminal, including the application traversal test equipment as described in any one of claim 9-16.
CN201610173642.0A 2016-03-24 2016-03-24 A kind of application traversal test method, equipment and mobile terminal Active CN105630686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610173642.0A CN105630686B (en) 2016-03-24 2016-03-24 A kind of application traversal test method, equipment and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610173642.0A CN105630686B (en) 2016-03-24 2016-03-24 A kind of application traversal test method, equipment and mobile terminal

Publications (2)

Publication Number Publication Date
CN105630686A CN105630686A (en) 2016-06-01
CN105630686B true CN105630686B (en) 2018-12-18

Family

ID=56045656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610173642.0A Active CN105630686B (en) 2016-03-24 2016-03-24 A kind of application traversal test method, equipment and mobile terminal

Country Status (1)

Country Link
CN (1) CN105630686B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515821B (en) * 2016-06-17 2021-08-31 百度在线网络技术(北京)有限公司 Control testing method and device
CN106294152B (en) * 2016-08-09 2019-03-12 努比亚技术有限公司 Using the traversal test device and method of user interface
CN106383780A (en) * 2016-09-05 2017-02-08 努比亚技术有限公司 Monkey test method and device
CN106649024A (en) * 2016-09-22 2017-05-10 微梦创科网络科技(中国)有限公司 Method and device for real-time monitoring of application performance
CN108009078B (en) * 2016-11-01 2021-04-27 腾讯科技(深圳)有限公司 Application interface traversal method, system and test equipment
CN106772465B (en) * 2017-02-09 2021-08-10 惠州Tcl移动通信有限公司 Automatic testing method and system for sensitivity attenuation of GPS (Global positioning System) of mobile terminal
CN109144841B (en) * 2017-06-16 2022-06-10 腾讯科技(深圳)有限公司 Method and device for identifying advertisement application, computer equipment and storage medium
CN107506300B (en) * 2017-08-09 2020-10-13 百度在线网络技术(北京)有限公司 User interface testing method, device, server and storage medium
CN107608685A (en) * 2017-10-18 2018-01-19 湖南警察学院 The automatic execution method of Android application
CN108021501B (en) * 2017-11-01 2021-01-22 平安科技(深圳)有限公司 Test case migration terminal, test case migration method, and storage medium
CN109783343A (en) * 2017-11-13 2019-05-21 北京嘀嘀无限科技发展有限公司 Components testing method, apparatus, client device and computer readable storage medium
CN107870862B (en) * 2017-11-15 2020-05-12 厦门美图移动科技有限公司 Construction method, traversal testing method and computing device of new control prediction model
CN109815150B (en) * 2019-01-29 2021-08-06 腾讯科技(深圳)有限公司 Application testing method and device, electronic equipment and storage medium
CN110069407B (en) * 2019-04-03 2022-12-16 北京云测信息技术有限公司 Function test method and device for application program
CN110321284B (en) * 2019-06-03 2024-05-03 平安科技(深圳)有限公司 Test data entry method, device, computer equipment and storage medium
CN110580221A (en) * 2019-08-21 2019-12-17 东软集团股份有限公司 Control testing method and device, storage medium and electronic equipment
CN110888799B (en) * 2019-10-14 2021-05-25 京东数字科技控股有限公司 Software testing method and device
CN110990258A (en) * 2019-10-29 2020-04-10 贝壳技术有限公司 Android system-based APP testing method and device, readable storage medium and processor
CN111078579A (en) * 2019-12-31 2020-04-28 河北省科学院应用数学研究所 Monkey testing method and device and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050076A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Testing method, device and system of application software on mobile terminal
CN104572430A (en) * 2013-10-24 2015-04-29 腾讯科技(深圳)有限公司 Method, device and system for testing terminal application interface
CN104915290A (en) * 2015-05-28 2015-09-16 小米科技有限责任公司 Application testing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140189648A1 (en) * 2012-12-27 2014-07-03 Nvidia Corporation Facilitated quality testing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050076A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Testing method, device and system of application software on mobile terminal
CN104572430A (en) * 2013-10-24 2015-04-29 腾讯科技(深圳)有限公司 Method, device and system for testing terminal application interface
CN104915290A (en) * 2015-05-28 2015-09-16 小米科技有限责任公司 Application testing method and device

Also Published As

Publication number Publication date
CN105630686A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN105630686B (en) A kind of application traversal test method, equipment and mobile terminal
CN105868105B (en) A kind of application traversal test method, equipment and mobile terminal
CN105975391B (en) One kind restarting test method, equipment and mobile terminal
CN107329750A (en) The recognition methods of advertisement page, jump method and mobile terminal in application program
CN105512033B (en) A kind of automated testing method of mobile terminal, device and mobile terminal
CN104902479B (en) A kind of network security management equipment, method and mobile terminal
CN106126424B (en) A kind of visual automated testing method of script, device and mobile terminal
CN106201876B (en) A kind of application testing method, device and mobile terminal
CN104991847B (en) A kind of RAM leakage automated detection method, device and mobile terminal
CN106484593A (en) Log processing method, device and electronic equipment
CN109672908A (en) A kind of method for protecting privacy, device and mobile terminal
CN108415734A (en) A kind of application recovery device, method and mobile terminal
US10206618B2 (en) Optimized visibility for sleep sessions over time
CN104318185B (en) A kind of application control method, equipment and mobile terminal
CN106294041A (en) Method, device and the mobile terminal of a kind of BUG information reporting
CN109669697A (en) A kind of the modularization methods of exhibiting and mobile terminal of contents list
CN110366100A (en) Localization method, positioning device, readable storage medium storing program for executing and the terminal device of terminal
CN104915290A (en) Application testing method and device
CN109660859A (en) A kind of animated show method and mobile terminal
CN108509348A (en) A kind of test method and mobile terminal of system aging
CN106210541B (en) A kind of video generation method, device and mobile terminal
CN110515814A (en) Full dose log collecting method, device and the mobile terminal of iOS client
CN108984417A (en) Method for testing software, device, terminal and storage medium
CN106503062A (en) A kind of social dynamic dissemination method and device, user terminal
CN110837467B (en) Software testing method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230808

Address after: 7th floor, No. 137 Haining Road, Hongkou District, Shanghai, 200086 (centralized registration location)

Patentee after: Shanghai Zunmeng Technology Co.,Ltd.

Address before: 361009 112a, Pioneer Building, Pioneer Park, torch hi tech Zone, Xiamen City, Fujian Province

Patentee before: Xiamen Meitu Mobile Technology Co.,Ltd.

TR01 Transfer of patent right