CN107967207A - The test method and device of user interface interaction function - Google Patents
The test method and device of user interface interaction function Download PDFInfo
- Publication number
- CN107967207A CN107967207A CN201610914978.8A CN201610914978A CN107967207A CN 107967207 A CN107967207 A CN 107967207A CN 201610914978 A CN201610914978 A CN 201610914978A CN 107967207 A CN107967207 A CN 107967207A
- Authority
- CN
- China
- Prior art keywords
- test
- test case
- case object
- interactive components
- interactive
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
This application discloses a kind of test method and device of user interface UI interactive functions.The described method includes:For application program, build the set of test case object, wherein, UI interactive components corresponding with the test case object in the application program are started by the way that each test case object is passed to application programming interface, the UI interactive components are used to show corresponding UI;When performing a test, following processing is performed:A test case object is selected from the test case object set, by the way that selected test case object is passed to application programming interface, start the UI interactive components corresponding to selected test case object to show the corresponding UI of the UI interactive components;Obtain the implementing result to the operation of at least one control in the UI;According to the implementing result, test result is determined.Using these technical solutions, test coverage and efficiency can be lifted.
Description
Technical field
The present invention relates to computer testing technology field, more particularly to a kind of test method of user interface interaction function and
Device.
Background technology
To the application program developed, pressure test (also referred to as stability test) is usually carried out, to test its fortune
Row stability, robustness.When carrying out automatic test, usually sending pseudorandom customer incident stream to system, (such as button is defeated
Enter, touch input, gesture input etc.), realize and pressure test is carried out to the application program developed.
The content of the invention
The embodiment of the present invention provides a kind of test method of user interface UI interactive functions, to lift test coverage and effect
Rate.This method includes:
For application program, the set of test case object is built, wherein, should by the way that each test case object is passed to
With Program Interfaces to start UI interactive components corresponding with the test case object in the application program, the UI is interacted
Component is used to show corresponding UI;
When performing a test, following processing is performed:
A test case object is selected from the test case object set, by by selected test case object
Incoming application programming interface, starts the UI interactive components corresponding to selected test case object to show that the UI is handed over
The corresponding UI of mutual component;
Obtain the implementing result to the operation of at least one control in the UI;
According to the implementing result, test result is determined.
The embodiment of the present invention provides a kind of test device of user interface UI interactive functions, to lift test coverage.Should
Method includes:
Module is built, for for application program, building the set of test case object, wherein, by by each test
Use-case object is passed to application programming interface and is interacted with starting UI corresponding with the test case object in the application program
Component, the UI interactive components are used to show corresponding UI;
Test module, for when performing a test, performing following processing:One is selected from the test case object set
Test case object, by the way that selected test case object is passed to application programming interface, starts selected test
UI interactive components corresponding to use-case object are to show the corresponding UI of the UI interactive components;Obtain at least one in the UI
The implementing result of the operation of control;According to the implementing result, test result is determined.
Using above-mentioned technical proposal, by selecting a test case object from the test case object set to start
UI interactive components corresponding to selected test case object improve test to show the corresponding UI of the UI interactive components
Coverage rate and efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other attached drawings according to these attached drawings.
Fig. 1 is the implementation environment schematic diagram involved by the embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the test method of UI interactive functions in the embodiment of the present invention;
Fig. 3 is a kind of flow diagram of the test configuration method of UI interactive functions in the embodiment of the present invention;
Fig. 4 is the schematic diagram of test configurations user interface in the embodiment of the present invention;
Fig. 5 is a kind of flow diagram of the method for the set for building test case object in the embodiment of the present invention;
Fig. 6 is a kind of flow diagram of the method for the set for building test case object in the embodiment of the present invention;
Fig. 7 is a kind of flow diagram of the test method of UI interactive functions in the embodiment of the present invention;
Fig. 8 is a kind of structure diagram of the test device of UI interactive functions provided in an embodiment of the present invention;
Fig. 9 is a kind of structure diagram of the test device of UI interactive functions provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained without making creative work
Example is applied, belongs to the scope of protection of the invention.
The present inventor has found in the course of the research, when being tested, some UI interaction group in random start
, can also random operation control in the UI interfaces after part is to show (for example, activity in Android operation system) its corresponding UI
Part, and start the control and correspond to UI interactive components to show corresponding next stage UI, then grasped at random in next stage UI again
Make control, and start control in next stage UI and correspond to UI interactive components to show corresponding next stage UI again, and continue at this
Tested again in next stage UI.In this way, pressure test just " card " on the UI interactive components of initial start, and it is difficult to jump out
The UI interactive components and subordinate UI interactive components associated with it, jump to and the UI interactive components in other branches.
In view of this, the embodiment of the present invention proposes the test method and device of UI interactive functions.Fig. 1 is implemented for the present invention
Implementation environment schematic diagram involved by example.Referring to Fig. 1, which includes test server 110 and terminal device 120.
Test server 110 can be a server, or the server zone being made of some servers, either
One cloud computing service center.
Terminal device 120 can be the terminal device that there are data to calculate processing function, include but not limited to (be provided with logical
Believe module) smart mobile phone, palm PC, tablet computer, smart television (Smart TV) etc..All installed on these communication terminals
There is operating system, include but not limited to:Android operation system, Symbian operating systems, Windows mobile operations system
System and apple iPhone OS operating systems etc..In the present embodiment, test application is installed in the terminal device 120
121 and application program 122, wherein, test application 121 obtains test instruction and test configurations information from test server, corresponding
Test configurations are carried out with program 120 and it is tested, and test result is then reported into test server 110.
In one embodiment, Android operation system is installed on terminal device 120.Android operation system
Application program 122 includes user interface (UI) interactive component, for example, movable (Activity) is responsible and user in application program
Interactive component, visible user interface is provided for application program.In Android operation system, it usually needs by means of meaning
(Intent) object is schemed to start UI interactive components and transmit data, it is the load to communicate in application program between different components
Body.For example, when starting an activity, which, which includes, starts the required information of the activity, for example, action
(Action) and component type (Category) attribute.In this way, the component for sending Intent objects just passes through action attributes and class
The one or more activity that the joint screening of type attribute determines, and start.
Fig. 2 is a kind of exemplary process diagram of the test method of UI interactive functions in the embodiment of the present invention.As shown in Fig. 2,
This method may include steps of:
Step 201:For application program, the set of structure test case object.
Wherein, by each test case object is passed to application programming interface with start in the application program with
The corresponding UI interactive components of the test case object, the UI interactive components are used to show corresponding UI.
Step 202:When performing a test, following processing is performed:The test of selection one from the test case object set
Use-case object, by the way that selected test case object is passed to application programming interface, starts selected test case
UI interactive components corresponding to object are to show the corresponding UI of the UI interactive components;Obtain at least one control in the UI
Operation implementing result;According to the implementing result, test result is determined.
In one embodiment, when performing a test, the test configurations instruction from test server, the survey are received
Try configuration-direct instruction and test specified UI interactive components in the application program.One is selected from the test case object set
Test case object, including:The specified UI is selected from test case object set according to test configurations instruction
The corresponding test case object of interactive component.
In one embodiment, after the UI interactive components corresponding to selected test case object are started, root
According to default timer duration, start timer;When the timer expiry, whether judgement currently shows the UI interactive components
Corresponding UI, if not, the corresponding test case pair of UI interactive components described in reselection from the test case object set
As restarting the corresponding UI interactive components of the test case object, obtaining to the operation of at least one control in the UI
Implementing result, according to the implementing result, determines test result.
In one embodiment, it is described to select a test case object from the test case object set, including:
According to default test period, a test case object is periodically selected from the test case object set.
In one embodiment, when performing a test, in response to the test operation for the application program, institute is generated
State the corresponding test case object of test operation;Connect by the way that the test case generated object is passed to the application programming
Mouthful, start the 2nd UI interactive components corresponding to generated test case object to show that the 2nd UI interactive components correspond to
The 2nd UI;Obtain the second implementing result to the operation of at least one control in the 2nd UI;Performed according to described second
As a result, determine the second test result.
In one embodiment, the set of the structure test case object, including:It is raw in response to UI interactive operations
The corresponding test case object of UI interactive components that can start into the UI interactive operations, by the test case pair of the generation
As being added to the test case object set.
In one embodiment, the set of the structure test case object, including:It is raw in response to UI interactive operations
The corresponding test case object of UI interactive components that can start into the UI interactive operations, the test case object that will be generated
It is added in the set of the test case object, and is inserted into queue;Judge whether the queue is empty, if not, from
A test case object is taken out in the queue, is connect by the way that the test case taken out object is passed to the application programming
Mouthful, start the corresponding UI interactive components of the taken out test case object to show the corresponding UI of the UI interactive components;
For each control included in the UI shown, in response to the UI operations to the control, it is corresponding to generate the control
The test case object of sub- UI interactive components, is added to the test case object set by the test case object generated
In, and it is inserted into queue;Return execution is described to judge whether the queue is empty processing.
In one embodiment, after the set of structure test case object, by the test case object set
Test case object send to test server so that the test server test case object is forwarded to it is another
Terminal device.
In one embodiment, the set of the structure test case object, including:Receive from test server
Test case object, and it is added to the set of the test case object.
Fig. 3 is a kind of exemplary process diagram of the test configuration method of UI interactive functions in the embodiment of the present invention.Such as Fig. 3 institutes
Show, this method comprises the following steps:
Step 301:Operated in response to test configurations, test server generation test configurations message, and send it to finger
Fixed terminal device.
As shown in figure 4, in test configurations user interface, tester can select test application program, test application,
Tested application program installation kit, test equipment.By selecting " test application program ", it may be determined that tested application program,
Wherein, test application program is tested application program, can include Tencent's physical culture (Android operation system), Tencent's body
Educate (IOS operating system), Tencent's news (Android operation system), Tencent's news (IOS operating system) etc..Test application is
A kind of testing tool, by selecting test application, it may be determined that test application used in this test, wherein, test application
Can include using stability test application (such as Android monkeys (Monkey) instrument, Google Monkey instruments,
Robotium Monkey instruments).By selecting tested application program installation kit, it may be determined that this tested application program pair
The version installation kit answered.For example, when the tested application program of selection is Tencent's physical culture (Android operation system), it may be determined that rise
Interrogate physical culture 4.2.1 version installation kits.By selecting test equipment, it may be determined that participate in the terminal device of this test.
Further, as shown in figure 4, in test configurations user interface, tester can be from UI interactive component lists
Middle selection test UI interactive components.By selecting to test UI interactive components, it may be determined that the UI interactive components of this test, example
Such as, on movable (AboutActivity), special operations (AssistActivity), passage preview activity
(ChannelPreViewActivity), search channels activity (ChannelSearchActivity) etc..
For selected each measured terminal equipment, which carries test application mark;If really
The tested application program installation kit is mounted with the fixed terminal device, this, which is measured to put, carries tested application program installation in message
Bag mark, otherwise, carries the tested application program installation kit in the test configurations message.Further, if also selecting UI
Interactive component, also needs in the test configurations message to carry test UI interactive component marks.
Step 302:Terminal device receives the test configurations message, performs test configurations.
If carrying tested application program installation kit in the test configurations message, terminal device is installed by the installation kit
The tested application program.Test application according to being carried in the test configurations breath that disappears identifies, and starts the test application.If this is matched somebody with somebody
Put and tested UI interactive components mark is carried in message, UI interactive components mark is forwarded to the test application.
Step 303:Terminal device starts the tested application program, and the application program is surveyed by test application
Examination.
Fig. 5 is a kind of exemplary process diagram of the method for the set for building test case object in the embodiment of the present invention.
In the present embodiment, UI interactive components are that test case object is by taking the activity being tested in application program (Activity) as an example
By taking Intent objects corresponding with activity as an example, the collection of test case object is combined into Intent object sets.In the present embodiment,
Execution this method can be triggered by receiving the construction test case object set instruction from test server, can also
This method is periodically performed to build test case object set, or this method, the present invention are performed using other manner triggering
This is not limited.As shown in figure 5, this method comprises the following steps:
Step 501:Start the application program, main movable (MainActivity) corresponding Intent objects are obtained, by institute
The Intent objects of generation are added in the set of the test case object, and are inserted into queue.
Main activity is to create the homepage given tacit consent to during the Android engineerings of the application program, for example, in wechat application program
The buddy list page.
Step 502:Judge whether the queue is empty.
Terminate if so, performing.If not, perform step 503.
Step 503:An Intent objects are taken out from the queue, by the way that the Intent taken out objects are passed to the application
Program Interfaces, start the corresponding activity of Intent objects, show the corresponding UI of the activity.
Step 504:For each control on the UI of displaying, clicking operation is performed, if in response to the clicking operation redirects
To another activity, jumped to movable corresponding Intent objects are obtained, which is added to Intent objects
In set, and queue is inserted into, return to step 502.
Wherein, the Intent objects being stored in Intent object sets can be by terminal device type, activity name
It is identified etc. information.For example, Intent objects can be identified as Honor_intent_AssistActivity, Honor_
intent_AdLandingPagingActivity、Honor_intent_AssociateMatchActivity、Honor_
Intent_BbsCircleDetailActivity etc..
According to the construction method of above-mentioned breadth traversal, constructed Intent object sets include owning in the application program
The corresponding Intent objects of activity, make constructed Intent object sets comprehensively, completely.
Fig. 6 is a kind of exemplary process diagram of the method for the set for building test case object in the embodiment of the present invention.Such as
Shown in Fig. 6, UI interactive components be by taking the activity being tested in application program (Activity) as an example, test case object be with
Exemplified by the corresponding Intent objects of activity, the collection of test case object is combined into Intent object sets, and this method includes following step
Suddenly:
Step 601:First terminal equipment sends at least one Intent objects in local Intent object sets to survey
Try server.
Step 602:Test server receives at least one Intent objects from first terminal equipment, and is stored
In the database.
Step 603:Test server obtains at least one Intent pairs suitable for second terminal equipment from database
As.
Step 604:Test server will be sent to second suitable at least one Intent objects of second terminal equipment
Terminal device.
Step 605:Second terminal equipment receives at least one Intent objects from test server, and is added
Into local Intent object sets.
In the above-mentioned methods, step 601-602 and step 603-604 can be performed sequentially, can also be performed at the same time, this hair
It is bright that this is not limited.
Fig. 7 is a kind of exemplary process diagram of the test method of UI interactive functions in the embodiment of the present invention.As shown in fig. 7,
UI interactive components are that test case object is with corresponding with activity by taking the activity being tested in application program (Activity) as an example
Intent objects exemplified by, the collection of test case object is combined into Intent object sets, and this method is applied to terminal device, can be with
Include the following steps:
Step 701:The test configurations instruction from test server is received, test instruction instruction test is described to apply journey
Tested activity is specified in sequence;
Step 702:The corresponding Intent objects of the specified activities are selected from Intent object sets.
Step 703:By the way that selected Intent objects are passed to application programming interface, start selected activity
To show the corresponding UI of the activity, and timer is started according to default timer duration.
Step 704:Obtain to the implementing result of the operation of at least one control in the UI, according to the implementing result, really
Location survey test result.
Step 705:When the timer expiry, whether judgement currently shows the corresponding UI of the specified activities, if not,
The corresponding Intent objects of specified activities described in reselection from Intent object sets, it is corresponding to restart the Intent objects
Specified activities, obtain the implementing result to the operation of at least one control in the UI, according to the implementing result, determine test knot
Fruit.
In one embodiment, it can be determined that movable corresponding to the UI of current presentation is identified whether to be specified
The mark of activity, if so, determining the movable corresponding UI specified by current showing.
According to the above method, when being tested, in each cycle, it can all detect and currently whether test specified work
It is dynamic, so that, improve the testing efficiency to specific activities.In an instantiation, using the above method respectively to Tencent's body
4.0 version application programs are educated to be tested.Wherein, in identical prolonged pressure test, not using the test of the above method
It is found that 3 loopholes (bug), carrying out test using the above method is found that 7 loopholes;Surveyed in identical prolonged RAM leakage
In examination, 1 loophole is not found that using the test of the above method, carrying out test using the above method is found that 3 loopholes.Can
See, the above method can greatly improve testing efficiency.
Following is apparatus of the present invention embodiment, can be used for performing the corresponding embodiment of the method for the present invention.For the present invention
The details not disclosed in device embodiment, refer to the description in the method for the present invention embodiment.
Fig. 8 is a kind of structure diagram of the test device of UI interactive functions provided in an embodiment of the present invention.Such as Fig. 8 institutes
Show, which includes:Build module 801, test module 802.Wherein,
Structure module 801 is used to be directed to application program, the set of structure test case object, wherein, by by each survey
Example object on probation is passed to application programming interface and is handed over starting UI corresponding with the test case object in the application program
Mutual component, the UI interactive components are used to show corresponding UI;
Test module 802 is used to when performing a test, perform following processing:Selected from the test case object set
One test case object, by the way that selected test case object is passed to application programming interface, starts selected survey
The UI interactive components corresponding to example object are tried out to show the corresponding UI of the UI interactive components;Obtain in the UI at least one
The implementing result of the operation of a control;According to the implementing result, test result is determined.
In one embodiment, the test module 802 is further used for when performing a test, receiving and carrying out self-test clothes
Specified UI interactive components in the application program are tested in the test configurations instruction of business device, the test configurations instruction instruction;
The test module 802 is used to select institute from test case object set according to test configurations instruction
State the corresponding test case object of specified UI interactive components.
In one embodiment, the test module 802 is further used for starting selected test case object
After corresponding UI interactive components, according to default timer duration, start timer;When the timer expiry, judge
Currently the corresponding UI of the UI interactive components whether is shown, if not, from the test case object set described in reselection
The corresponding test case object of UI interactive components, restarts the corresponding UI interactive components of the test case object, obtains to institute
The implementing result of the operation of at least one control in UI is stated, according to the implementing result, determines test result.
In one embodiment, the test module 802 was used for according to default test period, periodically from described
A test case object is selected in test case object set.
In one embodiment, the test module 802 is further used for when performing a test, in response to for described
The test operation of application program, generates the corresponding test case object of the test operation;Pass through the test case that will be generated
Object is passed to the application programming interface, start the 2nd UI interactive components corresponding to generated test case object with
Show corresponding 2nd UI of the 2nd UI interactive components;Obtain to second of the operation of at least one control in the 2nd UI
Implementing result;According to second implementing result, the second test result is determined.
In one embodiment, the structure module 801 is used in response to UI interactive operations, generates the UI interactions behaviour
Make the corresponding test case object of UI interactive components that can start, the test case object of the generation is added to the survey
Example object set on probation.
In one embodiment, the structure module 801 is used in response to UI interactive operations, generates the UI interactions behaviour
Make the corresponding test case object of UI interactive components that can start, the test case object generated is added to the test
In the set of use-case object, and it is inserted into queue;Judge whether the queue is empty, if not, taking out one from the queue
Test case object, by the way that the test case taken out object is passed to the application programming interface, starts described taken
The corresponding UI interactive components of test case object gone out are to show the corresponding UI of the UI interactive components;For in the UI shown
Comprising each control, in response to the UI of control operation, generating the survey of the corresponding sub- UI interactive components of the control
Example object on probation, the test case object generated is added in the test case object set, and be inserted into queue;
Return execution is described to judge whether the queue is empty processing.
In one embodiment, which further comprises:Reporting module 803, in structure test case pair
After the set of elephant, the test case object in the test case object set is sent to test server, so that the survey
The test case object is forwarded to another terminal device by examination server.
In one embodiment, the structure module 801 is used to receive the test case object from test server,
And it is added to the set of the test case object.
Fig. 9 is a kind of structure diagram of the test device of UI interactive functions provided in an embodiment of the present invention.Such as Fig. 9 institutes
Show, which includes:Processor 901, non-volatile computer readable memory 902, display unit 903, network communication interface
904.These components are communicated by bus 905.
In this present embodiment, multiple program modules, including operating system 906, network service mould are stored with memory 902
Block 907 and application program 908.
The various module (not shown)s that processor 901 can read included by the application program in memory 902 are come
Perform various function application and the data processing of the device.Processor 501 in the present embodiment can be one, or
Multiple, it can be CPU, processing unit/module, ASIC, logic module or programmable gate array etc..
Application program 908 may include:The test module 909 of UI interactive functions.The test module 909 of the UI interactive functions can
Including in Fig. 8 shown devices each function module formed set of computer-executable instructions 909-1 and corresponding metadata and
Heuritic approach 909-2.These set of computer-executable instructions can be performed as the processor 901 and completed shown in Fig. 2-7
The function of method or Fig. 8 shown devices.
In the present embodiment, network communication interface 904 is engaged with network communication module 907 completes information interactive device
The transmitting-receiving of various network signals.
Display unit 903 has a display panel, such as liquid crystal display, for completing the input of relevant information and showing
Show.
In addition, each function module in each embodiment of the present invention can be integrated in a processing unit, can also
That modules are individually physically present, can also two or more modules integrate in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.The work(of each embodiment
Energy module can be located at a terminal or network node, or can also be distributed on multiple terminals or network node.
In addition, each embodiment of the present invention can pass through the data processing by data processing equipment such as computer execution
Program is realized.Obviously, data processor constitutes the present invention.In addition, it is generally stored inside the data in a storage medium
Processing routine by program by directly reading out storage medium or by installing or copying to data processing equipment by program
Performed in storage device (such as hard disk and/or memory).Therefore, such storage medium also constitutes the present invention.Storage medium can be with
Use any kind of recording mode, such as paper storage medium (such as paper tape), magnetic storage medium (such as floppy disk, hard disk, flash memory
Deng), optical storage media (such as CD-ROM), magnetic-optical storage medium (such as MO) etc..
Therefore present invention also offers a kind of storage medium, wherein data processor is stored with, the data processor
For performing any type embodiment of the above method of the present invention.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
To complete, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
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 and any modification, equivalent substitution, improvement and etc. within principle, done, should be included within the scope of protection of the invention.
Claims (18)
- A kind of 1. test method of user interface UI interactive functions, it is characterised in that the described method includes:For application program, the set of test case object is built, wherein, by being passed to each test case object using journey Sequence programming interface is to start UI interactive components corresponding with the test case object, the UI interactive components in the application program For showing corresponding UI;When performing a test, following processing is performed:A test case object is selected from the test case object set, by the way that selected test case object is passed to Application programming interface, starts the UI interactive components corresponding to selected test case object to show the UI interactions group The corresponding UI of part;Obtain the implementing result to the operation of at least one control in the UI;According to the implementing result, test result is determined.
- 2. according to the method described in claim 1, it is characterized in that, when performing a test, further comprise:The test configurations instruction from test server is received, the application program middle finger is tested in the test configurations instruction instruction Determine UI interactive components;A test case object is selected from the test case object set, including:Select the specified UI interactive components corresponding from test case object set according to test configurations instruction Test case object.
- 3. method according to claim 1 or 2, it is characterised in that starting corresponding to selected test case object UI interactive components after, further comprise:According to default timer duration, start timer;When the timer expiry, whether judgement currently shows the corresponding UI of the UI interactive components, if not, from the test The corresponding test case object of UI interactive components described in reselection in use-case object set, restarts the test case object pair The UI interactive components answered, obtain the implementing result to the operation of at least one control in the UI, according to the implementing result, really Location survey test result.
- 4. according to the method described in claim 1, it is characterized in that, the selection one from the test case object set is surveyed Example object on probation, including:According to default test period, a test case object is periodically selected from the test case object set.
- 5. the method according to claim 1 or 4, it is characterised in that when performing a test, further comprise:In response to the test operation for the application program, the corresponding test case object of the test operation is generated;By the way that the test case generated object is passed to the application programming interface, start generated test case pair As the 2nd corresponding UI interactive components to show corresponding 2nd UI of the 2nd UI interactive components;Obtain the second implementing result to the operation of at least one control in the 2nd UI;According to second implementing result, Determine the second test result.
- 6. according to the method described in claim 1, it is characterized in that, it is described structure test case object set, including:In response to UI interactive operations, the corresponding test case pair of UI interactive components that the UI interactive operations can start is generated As the test case object of the generation is added to the test case object set.
- 7. according to the method described in claim 1, it is characterized in that, it is described structure test case object set, including:In response to UI interactive operations, the corresponding test case pair of UI interactive components that the UI interactive operations can start is generated As the test case object generated being added in the set of the test case object, and be inserted into queue;Judge whether the queue is empty, if not, taking out a test case object from the queue, passes through the survey that will be taken out Example object on probation is passed to the application programming interface, starts the corresponding UI interactions group of the taken out test case object Part is to show the corresponding UI of the UI interactive components;For each control included in the UI shown, in response to described The UI operations of control, generate the test case object of the corresponding sub- UI interactive components of the control, the test case that will be generated Object is added in the test case object set, and is inserted into queue;Return to whether execution is described judges the queue For empty processing.
- 8. the method according to claim 6 or 7, it is characterised in that after the set of structure test case object, further Including:Test case object in the test case object set is sent to test server, so that the test server The test case object is forwarded to another terminal device.
- 9. according to the method described in claim 1, it is characterized in that, it is described structure test case object set, including:The test case object from test server is received, and is added to the set of the test case object.
- 10. a kind of test device of user interface UI interactive functions, it is characterised in that described device includes:Module is built, for for application program, building the set of test case object, wherein, by by each test case Object is passed to application programming interface to start UI interactive components corresponding with the test case object in the application program, The UI interactive components are used to show corresponding UI;Test module, for when performing a test, performing following processing:The test of selection one from the test case object set Use-case object, by the way that selected test case object is passed to application programming interface, starts selected test case UI interactive components corresponding to object are to show the corresponding UI of the UI interactive components;Obtain at least one control in the UI Operation implementing result;According to the implementing result, test result is determined.
- 11. device according to claim 10, it is characterised in that the test module, which is further used for working as, is tested When, the test configurations instruction from test server is received, the application program middle finger is tested in the test configurations instruction instruction Determine UI interactive components;The test module is used to select described specify from test case object set according to test configurations instruction The corresponding test case object of UI interactive components.
- 12. the device according to claim 10 or 11, it is characterised in that the test module is further used for starting institute After UI interactive components corresponding to the test case object of selection, according to default timer duration, start timer;Work as institute State timer expiry, whether judgement currently shows the corresponding UI of the UI interactive components, if not, from the test case object The corresponding test case object of UI interactive components described in reselection in set, restarts the corresponding UI of the test case object and hands over Mutual component, obtains the implementing result to the operation of at least one control in the UI, according to the implementing result, determines test knot Fruit.
- 13. device according to claim 10, it is characterised in that the test module was used for according to default test week Phase, periodically selects a test case object from the test case object set.
- 14. the device according to claim 10 or 13, it is characterised in that the test module, which is further used for working as, to be surveyed During examination, in response to the test operation for the application program, the corresponding test case object of the test operation is generated;Pass through The test case object generated is passed to the application programming interface, is started corresponding to generated test case object The 2nd UI interactive components to show corresponding 2nd UI of the 2nd UI interactive components;Obtain in the 2nd UI at least one Second implementing result of the operation of a control;According to second implementing result, the second test result is determined.
- 15. device according to claim 10, it is characterised in that the structure module is used in response to UI interactive operations, The corresponding test case object of UI interactive components that the UI interactive operations can start is generated, by the test case of the generation Object is added to the test case object set.
- 16. device according to claim 10, it is characterised in that the structure module is used in response to UI interactive operations, Generate the corresponding test case object of UI interactive components that the UI interactive operations can start, the test case pair that will be generated As being added in the set of the test case object, and it is inserted into queue;Judge whether the queue is empty, if not, A test case object is taken out from the queue, is connect by the way that the test case taken out object is passed to the application programming Mouthful, start the corresponding UI interactive components of the taken out test case object to show the corresponding UI of the UI interactive components; For each control included in the UI shown, in response to the UI operations to the control, it is corresponding to generate the control The test case object of sub- UI interactive components, is added to the test case object set by the test case object generated In, and it is inserted into queue;Return execution is described to judge whether the queue is empty processing.
- 17. the method according to claim 15 or 16, it is characterised in that further comprise:Reporting module, for after the set of structure test case object, the test in the test case object set to be used Example object is sent to test server, is set so that the test case object is forwarded to another terminal by the test server It is standby.
- 18. device according to claim 10, it is characterised in that the structure module, which is used to receive, comes from test server Test case object, and be added to the set of the test case object.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610914978.8A CN107967207B (en) | 2016-10-20 | 2016-10-20 | Method and device for testing user interface interaction function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610914978.8A CN107967207B (en) | 2016-10-20 | 2016-10-20 | Method and device for testing user interface interaction function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107967207A true CN107967207A (en) | 2018-04-27 |
CN107967207B CN107967207B (en) | 2020-08-18 |
Family
ID=61997263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610914978.8A Active CN107967207B (en) | 2016-10-20 | 2016-10-20 | Method and device for testing user interface interaction function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107967207B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109240928A (en) * | 2018-09-13 | 2019-01-18 | 广东小天才科技有限公司 | A kind of test method, device, equipment and storage medium |
CN109976988A (en) * | 2019-03-15 | 2019-07-05 | 山东云缦智能科技有限公司 | A kind of method and device of dynamic configuration graphical interface |
CN110046101A (en) * | 2019-04-15 | 2019-07-23 | 腾讯音乐娱乐科技(深圳)有限公司 | Page automated testing method, device and computer storage medium |
CN112131136A (en) * | 2020-11-24 | 2020-12-25 | 智道网联科技(北京)有限公司 | Automatic interactive testing method and device |
CN113933581A (en) * | 2021-12-17 | 2022-01-14 | 荣耀终端有限公司 | Power consumption testing method of mobile equipment and mobile equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7917895B2 (en) * | 2001-07-27 | 2011-03-29 | Smartesoft, Inc. | Automated software testing and validation system |
CN103309802A (en) * | 2012-03-16 | 2013-09-18 | 百度在线网络技术(北京)有限公司 | Method and device for testing system stability in mobile terminal |
CN104216828A (en) * | 2013-06-03 | 2014-12-17 | 刘伟 | Testing method for performing function traversal on tested application program |
-
2016
- 2016-10-20 CN CN201610914978.8A patent/CN107967207B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7917895B2 (en) * | 2001-07-27 | 2011-03-29 | Smartesoft, Inc. | Automated software testing and validation system |
CN103309802A (en) * | 2012-03-16 | 2013-09-18 | 百度在线网络技术(北京)有限公司 | Method and device for testing system stability in mobile terminal |
CN104216828A (en) * | 2013-06-03 | 2014-12-17 | 刘伟 | Testing method for performing function traversal on tested application program |
Non-Patent Citations (1)
Title |
---|
雪秀: "android Instrumentation", 《HTTPS://BLOG.CSDN.NET/CRYSTAL_OOO/ARTICLE/DETAILS/17420167》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109240928A (en) * | 2018-09-13 | 2019-01-18 | 广东小天才科技有限公司 | A kind of test method, device, equipment and storage medium |
CN109976988A (en) * | 2019-03-15 | 2019-07-05 | 山东云缦智能科技有限公司 | A kind of method and device of dynamic configuration graphical interface |
CN110046101A (en) * | 2019-04-15 | 2019-07-23 | 腾讯音乐娱乐科技(深圳)有限公司 | Page automated testing method, device and computer storage medium |
CN110046101B (en) * | 2019-04-15 | 2022-08-19 | 腾讯音乐娱乐科技(深圳)有限公司 | Page automatic testing method and device and computer storage medium |
CN112131136A (en) * | 2020-11-24 | 2020-12-25 | 智道网联科技(北京)有限公司 | Automatic interactive testing method and device |
CN113933581A (en) * | 2021-12-17 | 2022-01-14 | 荣耀终端有限公司 | Power consumption testing method of mobile equipment and mobile equipment |
CN113933581B (en) * | 2021-12-17 | 2022-05-13 | 荣耀终端有限公司 | Power consumption testing method of mobile equipment and mobile equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107967207B (en) | 2020-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107967207A (en) | The test method and device of user interface interaction function | |
Amalfitano et al. | A general framework for comparing automatic testing techniques of Android mobile apps | |
WO2020155777A1 (en) | Ui automated function testing method, testing device, testing apparatus, and storage medium | |
CN106095666B (en) | Game automated testing method and relevant apparatus | |
US9268671B2 (en) | Embedded test management for mobile applications | |
US8479154B1 (en) | Interaction with partially constructed mobile device applications | |
WO2016095554A1 (en) | Test method, device and system for application | |
CN108804302B (en) | Remote testing method, system and related equipment | |
CN104699591B (en) | A kind of test scene replay method and device | |
CN108959000A (en) | A kind of server stress test method, system and terminal | |
CN107728885A (en) | Control method, device, mobile terminal and the storage medium of multitask | |
CN105843734A (en) | Automatic test method and device and computing device | |
CN106557424A (en) | Internal storage testing method, measured terminal, test client and system | |
CN111352844B (en) | Test method and related device | |
CN105260082B (en) | A kind of test data methods of exhibiting and exploitation terminal | |
CN105183630B (en) | Applied program testing method and device | |
CN106604362B (en) | A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal | |
CN108345543A (en) | A kind of data processing method, device, equipment and storage medium | |
CN104915297B (en) | A kind of automated testing method of the APP power consumption of android equipment | |
CN110716853A (en) | Test script recording method, application program testing method and related device | |
CN104915290A (en) | Application testing method and device | |
CN105653338B (en) | A kind of update method and device of application | |
CN113268243B (en) | Memory prediction method and device, storage medium and electronic equipment | |
CN110597720A (en) | Application program testing method and device, electronic equipment and storage medium | |
CN106708528A (en) | Script generating method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |