CN106815137A - Ui testing method and apparatus - Google Patents
Ui testing method and apparatus Download PDFInfo
- Publication number
- CN106815137A CN106815137A CN201510866781.7A CN201510866781A CN106815137A CN 106815137 A CN106815137 A CN 106815137A CN 201510866781 A CN201510866781 A CN 201510866781A CN 106815137 A CN106815137 A CN 106815137A
- Authority
- CN
- China
- Prior art keywords
- preset control
- control
- blind spot
- user interface
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 112
- 238000000034 method Methods 0.000 claims abstract description 42
- 230000002159 abnormal effect Effects 0.000 claims abstract description 33
- 238000012544 monitoring process Methods 0.000 claims abstract description 28
- 238000011017 operating method Methods 0.000 claims description 3
- 238000011835 investigation Methods 0.000 description 8
- 230000008901 benefit Effects 0.000 description 4
- 235000013399 edible fruits Nutrition 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000003542 behavioural effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000916 dilatatory effect Effects 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention provides a kind of ui testing method and apparatus, wherein, methods described includes:The blind spot operation of preset times is performed to preset control in the user interface;The operation performed to preset control according to particular order during monitoring blind spot, and obtain corresponding first operating result;Judge whether first operating result is identical according to corresponding second operating result after particular order execution with the preset control stored in database;If it is different, it is abnormal then to mark the preset control in the user interface to exist.The ui testing method provided by the present invention, can make up the incomplete problem of test case, and user interface is comprehensively tested.
Description
Technical field
The present invention relates to ui testing technical field, more particularly to a kind of ui testing method
With device.
Background technology
Test case is that the behavioral activity of software test is done into a scientific tissue to conclude, it is therefore an objective to energy
It is enough that the behavior of software test is changed into manageable pattern;Test case is also that will test Specific amounts simultaneously
One of method of change, different classes of software, test case is different.Different from such as system, work
Tool, control, Games Software, the more different trend of the user's request of management software.At present, to user
When interface is tested, it is mainly based upon the test case that is prestored in database to be tested.
The test case prestored in database is to perform a series of operation to control manually by tester
(e.g., clicking on button, dilatory page elements, input word), then by corresponding equipment according to above-mentioned
It is a series of to operate what is generated.Current tester is when for user interface generation test case in order to save
The generation time of test case is saved, some typical test cases often can be only generated, control can't be traveled through
Various execution sequences between part generate corresponding test case.That is, at present for user interface is given birth to
Into the test case comprehensive test that can not realize to user interface.
For example:The test of control A, B and C for being included in user interface, it is default in database
Only comprising the corresponding test case of these three controls is performed successively in test case, when by the test case
Test when, the user interface can reach the standard grade.And after reaching the standard grade, when user first clicks on control A, then click on
Control B, then clicks on control A, when finally clicking on control C, due to the above-mentioned clicking operation to space
Sequentially on a user interface before line and without test, this operation of user is possibly cannot to succeed, and if grasping
Work cannot will successfully influence the experience of user.
To sum up, the existing method tested user interface based on test case, it is impossible in user circle
Face is tested user interface comprehensively before reaching the standard grade.
The content of the invention
In view of prior art cannot carry out the problem of comprehensive test before line to user interface on a user interface,
The present invention is proposed to provide a kind of ui testing method and apparatus for overcoming above mentioned problem.
According to one aspect of the present invention, there is provided a kind of ui testing method, methods described includes:
The blind spot operation of preset times is performed to preset control in the user interface;Pressed during monitoring blind spot
According to the operation that particular order is performed to preset control, and obtain corresponding first operating result;Judge described
First operating result is right after being performed according to the particular order with the preset control of storage in database
Whether the second operating result answered is identical;If it is different, then marking the described default control in the user interface
Part exists abnormal.
Preferably, in the blind spot operating procedure for performing preset times to preset control on a user interface
Before, methods described also includes:According to the corresponding history access record of the user interface, history is determined
The corresponding control of event of failure in record is accessed, and high frequency clicks on control;By each event of failure
Corresponding control and the high frequency click on control, determine the preset control.
Preferably, in the step of the blind spot operation for performing preset times to preset control on a user interface
Before rapid, methods described also includes:Receive the setting to preset control and blind spot number of times.
Preferably, in the preset control for judging first operating result and storage in database
After being performed according to the particular order before the whether identical step of corresponding second operating result, the side
Method also includes:Read from database corresponding the after the preset control is performed according to the particular order
Two operating results.
Preferably, the preset control in the mark user interface exist abnormal step it
Afterwards, methods described also includes:Record what the corresponding preset control of the exception, the preset control were performed
At least one in the particular order and the operating result.
Preferably, methods described also includes:During each preset control of blind spot, each blind spot is operated
It is monitored and judges whether blind spot operation succeeds;If unsuccessful, the blind spot operation is recorded.
According to another aspect of the present invention, there is provided a kind of ui testing device, including:Operation
Module, the blind spot operation for performing preset times to preset control in the user interface;Monitoring mould
Block, for monitoring the operation performed to preset control according to particular order during blind spot, and obtains correspondence
The first operating result;Judge module, for judging first operating result with storage in database
Whether corresponding second operating result is identical after the preset control is performed according to the particular order;Mark
Module, if being difference for the judged result of the judge module, marks the institute in the user interface
State preset control and there is exception.
Preferably, the ui testing device also includes:Record parsing module, in the behaviour
Before making the blind spot operation that module performs preset times to preset control on a user interface, according to the use
The corresponding history access record in family interface, determines the corresponding control of event of failure in history access record, with
And high frequency clicks on control;Preset control determining module, for by the corresponding control of each event of failure
And the high frequency clicks on control, determines the preset control.
Preferably, the ui testing device also includes:Receiver module, in the operation mould
Before block performs the blind spot operation of preset times to preset control on a user interface, receive to preset control
And the setting of blind spot number of times.
Preferably, the ui testing device also includes:Acquisition module, in the judgement mould
Block judges first operating result with the preset control of storage in database according to described specific suitable
Sequence perform after corresponding second operating result whether before identical, the default control is read from database
Part is according to corresponding second operating result after particular order execution.
Preferably, the ui testing device also includes:Exception record module, in the mark
The preset control in user interface described in note module marks is present after exception, records the exception right
In preset control, the particular order of preset control execution and the operating result answered at least
One.
Preferably, the ui testing device also includes:Blind spot operates monitoring modular, for blind
During each preset control of point, the operation of each blind spot is monitored and judges whether blind spot operation succeeds;It is blind
Point operation note module, if being unsuccessful for the monitoring result of blind spot operation monitoring modular, remembers
Record the blind spot operation.
Ui testing scheme provided in an embodiment of the present invention, blind spot preset control on a user interface,
The first operating result can be generated to the operation that preset control is performed for every kind of particular order, then, will
First operating result performed according to the particular order with the preset control stored in database after corresponding the
Two operating results are compared, if the two is different, mark preset control exists abnormal.The present invention is implemented
The ui testing scheme that example is provided, is surveyed by way of blind spot preset control to user interface
Examination, even test case does not travel through each execution sequence of preset control, due to that can be traveled through during blind spot
Various orders, therefore can also find that the exception to be tested of test case is asked by the form of blind spot
Topic.It can be seen that, ui testing scheme provided in an embodiment of the present invention can be made up for preset control
Test case not comprehensively, user interface is comprehensively tested.
Described above is only the general introduction of technical solution of the present invention, in order to better understand skill of the invention
Art means, and can be practiced according to the content of specification, and it is of the invention above and other in order to allow
Objects, features and advantages can become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are for this
Field those of ordinary skill will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment,
And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals
Identical part.In the accompanying drawings:
The step of Fig. 1 is a kind of according to embodiments of the present invention one ui testing method flow chart;
The step of Fig. 2 is a kind of according to embodiments of the present invention two ui testing method flow chart;
Fig. 3 is a kind of structured flowchart of according to embodiments of the present invention three ui testing device;
Fig. 4 is a kind of structured flowchart of according to embodiments of the present invention four ui testing device.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although being shown in accompanying drawing
The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure without
Should be limited by embodiments set forth here.Conversely, there is provided these embodiments are able to more thoroughly
Understand the disclosure, and can by the scope of the present disclosure it is complete convey to those skilled in the art.
Embodiment one
Reference picture 1, flow the step of show a kind of ui testing method of the embodiment of the present invention one
Figure.
The ui testing method of the embodiment of the present invention is comprised the following steps:
Step 101:The blind spot operation of preset times is performed to preset control on a user interface.
Wherein, during being arranged on and implement of control and blind spot number of times, can be according to the actual requirements
It is configured, this is not specifically limited in the embodiment of the present invention.Blind spot can be according between setting time
Every being clicked on, or irregular click, this is also not specifically limited in the embodiment of the present invention.
Step 102:The operation performed to preset control according to particular order during monitoring blind spot, and obtain
Take corresponding first operating result.
Needs say that particular order can be one, or multiple, and multiple particular orders can be with
Travel through the various built-up sequences of preset control.
Be likely to occur during blind spot to the various combination operations performed by preset control, whenever monitor by
During the operation that a certain particular order is performed to preset control, corresponding first behaviour of this operation can be obtained
Make result.
For example:Preset control is hotspot, terminal class, and particular order is first to adjust hotspot
It is malice, terminal class is then adjusted to malice, hotspot is finally adjusted to feasible, according to upper
Particular order is stated on a user interface after the complete preset control of blind spot, an operating result can be generated, i.e.,
One operating result.
Step 103:Judge the first operating result with the preset control of storage in database according to particular order
Whether corresponding second operating result is identical after execution;If it is different, step 104 is then performed, if identical,
Then perform setting operation.
For in theory, preset control can be to that should have a fixed operation knot after being performed according to setting order
Fruit is the second operating result, and operating result storage is in database.That is, no matter reality is grasped
How make result, operation every time can all correspond to a notional result, using the notional result as actual execution
Operation with the presence or absence of abnormal criterion.
For example:Hotspot is first adjusted to malice, terminal class is then adjusted to malice, finally will
Hotspot is adjusted to feasible operation, and corresponding second operating result is terminal and can be successfully connected to
Network.During second operating result is a notional result, but actual click in the user interface is operated,
Because the code of user interface has problem, accordingly, it is possible to the results different from notional result occur.
When there are the results different from notional result, then can determine that the preset control clicked in user interface is present
It is abnormal.
Wherein, setting operation can be set as continuing to monitor the blind spot operation to preset control, until monitoring
Corresponding operating result is obtained after to the operation performed to preset control according to particular order.
Step 104:When the first operating result is different from the second operating result, then mark in user interface
The preset control exist it is abnormal.
It is marked to abnormal, can points out specifically there is abnormal control in tester's user interface,
So that tester targetedly investigates to the problem that user interface is present.
By ui testing method provided in an embodiment of the present invention, the on a user interface default control of blind spot
Part, the first operating result can be generated for every kind of particular order to the operation that preset control is performed, then,
It is corresponding after first operating result is performed with the preset control stored in database according to the particular order
Second operating result is compared, if the two is different, mark preset control exists abnormal.It is of the invention real
The ui testing method of example offer is provided, user interface is surveyed by way of blind spot preset control
Examination, even test case does not travel through each execution sequence of preset control, due to that can be traveled through during blind spot
Various orders, therefore can also find that the exception to be tested of test case is asked by the form of blind spot
Topic.It can be seen that, ui testing method provided in an embodiment of the present invention can be made up for preset control
Test case not comprehensively, user interface is comprehensively tested.
Embodiment two
Reference picture 2, flow the step of show a kind of ui testing method of the embodiment of the present invention two
Figure.
The ui testing method of the embodiment of the present invention specifically includes following steps:
Step 201:Test system receives the setting to preset control and blind spot number of times.
Test system may be mounted in any appropriate equipment, for example:Computer, server etc..This hair
The bright embodiment of specific installation site in to(for) test system is not specifically limited.
Tester needs multi-user interface to be tested before line on a user interface, can lead in test
Cross and call the corresponding test case of user interface stored in database to be tested.But, it is simple
The method tested user interface by test case cannot ensure the various combinational logics to control
Test is arrived, therefore, the embodiment of the present invention proposes the method that blind spot test is carried out to preset control.
, it is necessary to be configured to the number of times of control and blind spot to be tested before blind spot test is carried out.
Disclosed in the embodiment of the present invention is that one kind is manually entered preset control and blind spot by tester
Several schemes.That is, on test system interface, corresponding input interface can be provided or selection connects
Mouth sets control (control to be tested of setting is preset control) to be tested for user, while
Corresponding blind spot number of times can be provided interface is set so that user is configured to blind spot number of times.
Certainly, only it is so that user is manually entered preset control and blind spot number of times as an example in the embodiment of the present invention
The explanation for carrying out, during implementing, can also by test system automatically determine preset control and
Blind spot number of times.
A kind of preferred mode for automatically determining preset control and blind spot number of times by test system is as follows:
Test system determines that history accesses note according to the corresponding history access record of user interface that must be tested
The corresponding control of event of failure in record, and high frequency clicks on control;By the corresponding control of each event of failure
And high frequency clicks on control, determines preset control.The blind spot number of times that will be given tacit consent in test system is defined as this
The performed blind spot number of times of secondary blind spot test.
For example:The control of the event that broken down in the corresponding history access record of user interface is respectively:Control
Part A, B, C and D, and it is A, B and C that high frequency clicks on control, it is determined that can be by during preset control
It is that A, B and C are defined as preset control that the high frequency of failure event clicks on control.
It should be noted that for the specific setting of preset control and preset times, can be by ability
Field technique personnel be configured according to the actual requirements, and this is not specifically limited in the embodiment of the present invention.
Step 202:Test system performs the blind spot operation of preset times to preset control on a user interface.
When blind spot operation is carried out to preset control, preset control can be clicked on according to setting time interval,
It is of course also possible to trigger not according to CF but arbitrarily blind spot operation.
A kind of preferred mode is, during each preset control of blind spot, the operation of each blind spot is supervised
Survey judges whether blind spot operation succeeds;If unsuccessful, record blind spot operation.
In this preferred embodiment, it is monitored by each blind spot to each preset control, it may be determined that blind
Whether point operation succeeds, and can smoothly perform this blind spot operation requests then proves that blind spot is operated successfully, and
Prove that blind spot operation is unsuccessful if this blind spot operation requests are not responding to, when not becoming work(, then record not
Successful blind spot operation.By the preferred embodiment, blind spot operation can be monitored in units of single control
The mistake of request, when finding to have request error, you can prompting tester investigates the control of request error
The corresponding code of part, is more conducive to find abnormal present in user interface.
Step 203:The behaviour performed to preset control according to particular order during test system monitoring blind spot
Make, and obtain corresponding first operating result.
Though test system when blind spot is carried out to preset control without specific click sequentially, just because of being
Blind spot, it is possible that the operation that is performed to preset control of particular order during blind spot, when test is
When system monitors such operation, then can obtain and the operation is obtained first is performed in present user interface
Operating result.
It should be noted that particular order can be the order for setting, or multiple orders, it is also possible to
Various built-up sequences comprising preset control.For example:Control includes A, B and C.Particular order can be with
To perform A, B, C and A successively;Can also be execution A and B;Can also for successively perform A, B,
C, B and A;It is, of course, also possible to be other built-up sequences or above-mentioned any two built-up sequence,
Or the whole built-up sequences that can be traveled through comprising control A, B and C.
Only illustrated so that the operation that is performed to particular order is with the presence or absence of exception as an example below, it is necessary to
Illustrate, during implementing, if particular order includes multiple sequential combinations, need to repeat
Perform step 203 to 207 respectively operation corresponding to each particular order judge, to judge that operation is
It is no to exist abnormal and be labeled record to abnormal.
Step 204:Test system reads correspondence after preset control is performed according to particular order from database
The second operating result.
For in theory, preset control can be to that should have a fixed operation knot after being performed according to setting order
Fruit is the second operating result, and operating result storage is in database.That is, no matter reality is grasped
How make result, operation every time can all correspond to a notional result, using the notional result as actual execution
Operation with the presence or absence of abnormal criterion.
Therefore, it is whether abnormal in order to judge the operation for being performed according to particular order in the user interface, then need
To be weighed by the second operating result.Specifically, when the first operating result and the second operating result phase
Simultaneously, it is determined that operation is normal;When the first operating result and the second operating result are differed, it is determined that
Operation exception.
Step 205:Test system judge the preset control that is stored in the first operating result and database according to
Whether corresponding second operating result is identical after particular order is performed;If it is different, step 206 is then performed,
If identical, setting operation is performed.
Wherein, setting operation can be set as:Proceed blind spot operation monitoring, until monitor according to
The operation that particular order is performed to preset control.
Step 206:If the first operating result is different from the second operating result, test system then marks user
Preset control on interface exists abnormal.
First operating result is different from the second operating result, then illustrate this operation performed to preset control
In the presence of exception, then, then tester is needed to being investigated extremely present in user interface.And this
Preset control is labeled on a user interface in inventive embodiments, can be by abnormal investigation range shorter
Onto the corresponding program of preset control, the investigation scope of tester can be reduced, save the investigation time and enter
And lift abnormal investigation efficiency.
Wherein, any appropriate form can be arranged to when marking abnormal.For example:On a user interface will
Preset control mark is red;For example:Generation prompt message is used to point out preset control to there is exception and in user circle
The prompt message is shown on face.Again for example:Preset control is carried out into gray proces on a user interface, with
The prompting tester preset control is in the presence of abnormal.
Step 207:The particular order that the corresponding preset control of test system recording exceptional, preset control are performed
And at least one in operating result.
The interface detection method provided in the embodiment of the present invention, not only marks user interface on a user interface
On preset control exist abnormal, can also record the corresponding information of this operation exception, the specific letter of record
Cease and be:In abnormal corresponding preset control, the particular order of preset control execution and operating result one
Individual or multiple.
Tester can more targetedly to user interface by these abnormal informations for recording
Exception is investigated, and further reduces investigation scope lifting investigation efficiency.
By ui testing method provided in an embodiment of the present invention, except with the user in embodiment one
Interface detection method has the advantage that outer, corresponding letter when can also record operation appearance exception
Breath, the abnormal information that tester passes through record, can targetedly to different present in user interface
Often investigated, investigation scope, lifting investigation efficiency can be reduced.
Embodiment three
Reference picture 3, shows a kind of structured flowchart of ui testing device of the embodiment of the present invention three.
The ui testing device of the embodiment of the present invention includes:Operation module 301, in the use
The blind spot operation of preset times is performed on the interface of family to preset control;Monitoring module 302, it is blind for monitoring
The operation performed to preset control according to particular order in point process, and obtain corresponding first operation knot
Really;Judge module 303, for judging that first operating result is preset with the described of storage in database
Whether corresponding second operating result is identical after control is performed according to the particular order;Mark module 304,
If the judged result for the judge module is difference, mark described default in the user interface
Control exists abnormal.
By ui testing device provided in an embodiment of the present invention, the on a user interface default control of blind spot
Part, the first operating result can be generated for every kind of particular order to the operation that preset control is performed, then,
It is corresponding after first operating result is performed with the preset control stored in database according to the particular order
Second operating result is compared, if the two is different, mark preset control exists abnormal.It is of the invention real
The ui testing device of example offer is provided, user interface is surveyed by way of blind spot preset control
Examination, even test case does not travel through each execution sequence of preset control, due to that can be traveled through during blind spot
Various orders, therefore can also find that the exception to be tested of test case is asked by the form of blind spot
Topic.It can be seen that, ui testing device provided in an embodiment of the present invention can be made up for preset control
Test case not comprehensively, user interface is comprehensively tested.
Example IV
Reference picture 4, shows a kind of structured flowchart of ui testing device of the embodiment of the present invention four.
The ui testing device of the embodiment of the present invention is the ui testing dress to three kinds of embodiment
The further optimization put, the ui testing device after optimization includes:Operation module 401, for
The blind spot operation of preset times is performed in the user interface to preset control;Monitoring module 402, is used for
The operation performed to preset control according to particular order during monitoring blind spot, and obtain corresponding first behaviour
Make result;Judge module 403, for judging in first operating result and database described in storage
Whether corresponding second operating result is identical after preset control is performed according to the particular order;Mark module
404, if being difference for the judged result of the judge module, mark the institute in the user interface
State preset control and there is exception.
Preferably, the ui testing device also includes:Record parsing module 405, in institute
Before stating the blind spot operation that operation module 401 performs preset times to preset control on a user interface, according to
According to the corresponding history access record of the user interface, event of failure is corresponding in determining history access record
Control, and high frequency clicks on control;Preset control determining module 406, for by each failure thing
The corresponding control of part and the high frequency click on control, determine the preset control.
Preferably, the ui testing device also includes:Receiver module 407, in the behaviour
Before making the blind spot operation that module 401 performs preset times to preset control on a user interface, it is right to receive
The setting of preset control and blind spot number of times.
Preferably, the ui testing device also includes:Acquisition module 408, for sentencing described
Disconnected module 403 judges first operating result with the preset control of storage in database according to described
Particular order perform after corresponding second operating result whether before identical, read from database described
Preset control is according to corresponding second operating result after particular order execution.
Preferably, the ui testing device also includes:Exception record module 409, in institute
State after mark module 404 marks the preset control in the user interface to there is exception, record institute
State abnormal corresponding preset control, the particular order that the preset control is performed and the operation knot
At least one in fruit.
Preferably, the ui testing device also includes:Blind spot operates monitoring modular 410, is used for
During each preset control of blind spot, to each blind spot operation be monitored judge blind spot operate whether into
Work(;Blind spot operation note module 411, if being not for the monitoring result of blind spot operation monitoring modular
Success, then record the blind spot operation.
During the ui testing device of the present embodiment is used to realize previous embodiment one and embodiment two
Corresponding ui testing method, and with the beneficial effect of corresponding embodiment of the method, herein not
Repeat again.
Each embodiment in this specification is described by the way of progressive, and each embodiment is stressed
Be all difference with other embodiment, between each embodiment identical similar part mutually referring to
.For system embodiment, because it is substantially similar to embodiment of the method, so the ratio of description
Relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
Provided herein ui testing scheme not with any certain computer, virtual system or other
Equipment is inherently related.Various general-purpose systems can also be used together with based on teaching in this.According to above
Description, it is obvious to construct the structure required by the system with the present invention program.Additionally, this
Invention is not also directed to any certain programmed language.It is understood that, it is possible to use various programming languages are realized
The present disclosure of this description, and the description done to language-specific above is to disclose the present invention
Preferred forms.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that this
Inventive embodiment can be put into practice in the case of without these details.In some instances, not
Known method, structure and technology are shown specifically, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect
Or it is multiple, in above to the description of exemplary embodiment of the invention, each feature of the invention is sometimes
It is grouped together into single embodiment, figure or descriptions thereof.However, should not be by the disclosure
Method be construed to reflect following intention:I.e. the present invention for required protection requirement ratio is in each claim
The middle more features of feature be expressly recited.More precisely, as the following claims reflect,
Inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows specific implementation
Thus claims of mode are expressly incorporated in the specific embodiment, and wherein each claim is in itself
All as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out certainly to the module in the equipment in embodiment
Adaptively change and they are arranged in one or more equipment different from the embodiment.Can be with
Module or unit or component in embodiment is combined into a module or unit or component, and in addition may be used
To be divided into multiple submodule or subelement or sub-component.Except such feature and/or process or
Outside at least some in person's unit exclude each other, can using any combinations to this specification (including
Adjoint claim, summary and accompanying drawing) disclosed in all features and so disclosed any method
Or all processes or unit of equipment are combined.Unless expressly stated otherwise, this specification (including
Adjoint claim, summary and accompanying drawing) disclosed in each feature can it is identical by offers, equally or
The alternative features of similar purpose replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include it
Some included features are rather than further feature, but the group of the feature of different embodiments in its embodiment
Conjunction means to be within the scope of the present invention and formed different embodiments.For example, in claim
In book, the one of any of embodiment required for protection mode can use in any combination.
All parts embodiment of the invention can be realized with hardware, or be processed with one or more
The software module run on device is realized, or is realized with combinations thereof.Those skilled in the art should
Understand, basis can be realized using microprocessor or digital signal processor (DSP) in practice
Some or all parts in the ui testing scheme of the embodiment of the present invention it is some or all
Function.The present invention is also implemented as performing some or all of method as described herein
Equipment or program of device (for example, computer program and computer program product).It is such to realize this
The program of invention can be stored on a computer-readable medium, or can have one or more signal
Form.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal,
Or provided in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention,
And those skilled in the art can design replacement without departing from the scope of the appended claims
Embodiment.In the claims, any reference symbol being located between bracket should not be configured to right
It is required that limitation.Word "comprising" does not exclude the presence of element or step not listed in the claims.Position
Word "a" or "an" before element does not exclude the presence of element as multiple.The present invention can
To be realized by means of the hardware for including some different elements and by means of properly programmed computer.
If in the unit claim for listing equipment for drying, several in these devices can be by same
Individual hardware branch is embodied.The use of word first, second, and third does not indicate that any order.
These words can be construed to title.
The invention discloses A1, a kind of ui testing method, including:
The blind spot operation of preset times is performed to preset control in the user interface;
The operation that is performed to preset control according to particular order during monitoring blind spot, and obtain corresponding the
One operating result;
Judge first operating result with the preset control of storage in database according to described specific
Whether corresponding second operating result is identical after order is performed;
If it is different, it is abnormal then to mark the preset control in the user interface to exist.
A2, the method according to A1, wherein, preset control is performed on a user interface described
Before the blind spot operating procedure of preset times, methods described also includes:
According to the corresponding history access record of the user interface, event of failure in history access record is determined
Corresponding control, and high frequency clicks on control;
Control is clicked on by each corresponding control of event of failure and the high frequency, is determined described default
Control.
A3, the method according to A1, wherein, preset control is performed on a user interface described
Before the step of blind spot of preset times is operated, methods described also includes:
Receive the setting to preset control and blind spot number of times.
A4, the method according to A1, wherein, judge first operating result and data described
Corresponding second operating result is after the preset control stored in storehouse is performed according to the particular order
Before no identical step, methods described also includes:
Corresponding second behaviour after the preset control is performed according to the particular order is read from database
Make result.
A5, the method according to A1, wherein, it is described pre- in the mark user interface
If control is present after abnormal step, methods described also includes:
Record the corresponding preset control of the exception, the preset control perform the particular order and
At least one in the operating result.
A6, the method according to A1, wherein, methods described also includes:
Whether during each preset control of blind spot, it is monitored judge blind spot operation to the operation of each blind spot
Success;
If unsuccessful, the blind spot operation is recorded.
The invention also discloses B7, a kind of ui testing device, including:
Operation module, the blind spot behaviour for performing preset times to preset control in the user interface
Make;
Monitoring module, for monitoring the operation performed to preset control according to particular order during blind spot,
And obtain corresponding first operating result;
Judge module, the preset control for judging first operating result and storage in database
Whether corresponding second operating result is identical after being performed according to the particular order;
Mark module, if being difference for the judged result of the judge module, marks user circle
The preset control on face exists abnormal.
B8, the device according to B7, wherein, the ui testing device also includes:
Record parsing module, it is default for being performed to preset control on a user interface in the operation module
Before the blind spot operation of number of times, according to the corresponding history access record of the user interface, determine that history is visited
The corresponding control of event of failure in record is asked, and high frequency clicks on control;
Preset control determining module, for by each corresponding control of event of failure and the high frequency
Control is clicked on, the preset control is determined.
B9, the device according to B7, wherein, the ui testing device also includes:
Receiver module, for performing preset times to preset control on a user interface in the operation module
Blind spot operation before, receive setting to preset control and blind spot number of times.
B10, the device according to B7, wherein, the ui testing device also includes:
Acquisition module, for judging to be stored in first operating result and database in the judge module
The preset control according to the particular order perform after corresponding second operating result whether identical
Before, corresponding second behaviour after the preset control is performed according to the particular order is read from database
Make result.
B11, the device according to B7, wherein, the ui testing device also includes:
Exception record module, for marking the described default control in the user interface in the mark module
Part is present after exception, record the corresponding preset control of the exception, the preset control perform it is described
At least one in particular order and the operating result.
B12, the device according to B7, wherein, the ui testing device also includes:
Blind spot operate monitoring modular, for during each preset control of blind spot, each blind spot is operated into
Row monitoring judges whether blind spot operation succeeds;
Blind spot operation note module, if for the blind spot operation monitoring modular monitoring result for not into
Work(, then record the blind spot operation.
Claims (10)
1. a kind of ui testing method, including:
The blind spot operation of preset times is performed to preset control in the user interface;
The operation that is performed to preset control according to particular order during monitoring blind spot, and obtain corresponding the
One operating result;
Judge first operating result with the preset control of storage in database according to described specific
Whether corresponding second operating result is identical after order is performed;
If it is different, it is abnormal then to mark the preset control in the user interface to exist.
2. method according to claim 1, wherein, described on a user interface to default control
Before part performs the blind spot operating procedure of preset times, methods described also includes:
According to the corresponding history access record of the user interface, event of failure in history access record is determined
Corresponding control, and high frequency clicks on control;
Control is clicked on by each corresponding control of event of failure and the high frequency, is determined described default
Control.
3. method according to claim 1, wherein, described on a user interface to default control
Before the step of blind spot that part performs preset times is operated, methods described also includes:
Receive the setting to preset control and blind spot number of times.
4. method according to claim 1, wherein, judge first operating result described
Corresponding second operation after being performed according to the particular order with the preset control stored in database
Whether before the identical step of result, methods described also includes:
Corresponding second behaviour after the preset control is performed according to the particular order is read from database
Make result.
5. method according to claim 1, wherein, in the mark user interface
The preset control is present after abnormal step, and methods described also includes:
Record the corresponding preset control of the exception, the preset control perform the particular order and
At least one in the operating result.
6. method according to claim 1, wherein, methods described also includes:
Whether during each preset control of blind spot, it is monitored judge blind spot operation to the operation of each blind spot
Success;
If unsuccessful, the blind spot operation is recorded.
7. a kind of ui testing device, including:
Operation module, the blind spot behaviour for performing preset times to preset control in the user interface
Make;
Monitoring module, for monitoring the operation performed to preset control according to particular order during blind spot,
And obtain corresponding first operating result;
Judge module, the preset control for judging first operating result and storage in database
Whether corresponding second operating result is identical after being performed according to the particular order;
Mark module, if being difference for the judged result of the judge module, marks user circle
The preset control on face exists abnormal.
8. device according to claim 7, wherein, the ui testing device also includes:
Record parsing module, it is default for being performed to preset control on a user interface in the operation module
Before the blind spot operation of number of times, according to the corresponding history access record of the user interface, determine that history is visited
The corresponding control of event of failure in record is asked, and high frequency clicks on control;
Preset control determining module, for by each corresponding control of event of failure and the high frequency
Control is clicked on, the preset control is determined.
9. device according to claim 7, wherein, the ui testing device also includes:
Receiver module, for performing preset times to preset control on a user interface in the operation module
Blind spot operation before, receive setting to preset control and blind spot number of times.
10. device according to claim 7, wherein, the ui testing device also includes:
Acquisition module, for judging to be stored in first operating result and database in the judge module
The preset control according to the particular order perform after corresponding second operating result whether identical
Before, corresponding second behaviour after the preset control is performed according to the particular order is read from database
Make result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510866781.7A CN106815137A (en) | 2015-12-01 | 2015-12-01 | Ui testing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510866781.7A CN106815137A (en) | 2015-12-01 | 2015-12-01 | Ui testing method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106815137A true CN106815137A (en) | 2017-06-09 |
Family
ID=59108233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510866781.7A Pending CN106815137A (en) | 2015-12-01 | 2015-12-01 | Ui testing method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106815137A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107967209A (en) * | 2017-10-09 | 2018-04-27 | 中国银联股份有限公司 | It is a kind of to detect method, detection device and server wrong in the web page code of front end |
CN108595322A (en) * | 2018-04-04 | 2018-09-28 | 北京潘达互娱科技有限公司 | A kind of application testing method and device |
CN109284157A (en) * | 2018-08-13 | 2019-01-29 | 北京城市网邻信息技术有限公司 | Method, apparatus, equipment and the computer readable storage medium for playing frame is automatically closed |
CN109684207A (en) * | 2018-12-14 | 2019-04-26 | 平安科技(深圳)有限公司 | Method, apparatus, electronic equipment and the storage medium of sequence of operation encapsulation |
CN109815119A (en) * | 2018-12-14 | 2019-05-28 | 平安科技(深圳)有限公司 | A kind of test method and device of APP link channel |
CN112948720A (en) * | 2019-11-26 | 2021-06-11 | 珠海格力电器股份有限公司 | Interaction optimization method and device based on user behaviors and computer equipment |
CN112948720B (en) * | 2019-11-26 | 2024-05-31 | 珠海格力电器股份有限公司 | Interaction optimization method and device based on user behaviors and computer equipment |
-
2015
- 2015-12-01 CN CN201510866781.7A patent/CN106815137A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107967209A (en) * | 2017-10-09 | 2018-04-27 | 中国银联股份有限公司 | It is a kind of to detect method, detection device and server wrong in the web page code of front end |
CN108595322A (en) * | 2018-04-04 | 2018-09-28 | 北京潘达互娱科技有限公司 | A kind of application testing method and device |
CN109284157A (en) * | 2018-08-13 | 2019-01-29 | 北京城市网邻信息技术有限公司 | Method, apparatus, equipment and the computer readable storage medium for playing frame is automatically closed |
CN109684207A (en) * | 2018-12-14 | 2019-04-26 | 平安科技(深圳)有限公司 | Method, apparatus, electronic equipment and the storage medium of sequence of operation encapsulation |
CN109815119A (en) * | 2018-12-14 | 2019-05-28 | 平安科技(深圳)有限公司 | A kind of test method and device of APP link channel |
CN112948720A (en) * | 2019-11-26 | 2021-06-11 | 珠海格力电器股份有限公司 | Interaction optimization method and device based on user behaviors and computer equipment |
CN112948720B (en) * | 2019-11-26 | 2024-05-31 | 珠海格力电器股份有限公司 | Interaction optimization method and device based on user behaviors and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106815137A (en) | Ui testing method and apparatus | |
CN109165170B (en) | Method and system for automatic request test | |
CN105787364B (en) | Automatic testing method, device and system for tasks | |
CN110088744B (en) | Database maintenance method and system | |
CN105117110B (en) | Method and device for displaying user equipment state on preset interface of application program | |
CN107451040A (en) | Localization method, device and the computer-readable recording medium of failure cause | |
CN107346272A (en) | The determination method and apparatus of dynamic heterogeneous redundant system | |
CN111090592A (en) | Automatic testing method of buried point, terminal and readable storage medium | |
CN103581185A (en) | Cloud searching and killing method, device and system for resisting anti-antivirus test | |
US10241808B2 (en) | Determining test application effectiveness | |
CN106815140A (en) | A kind of interface test method and device | |
CN106454847A (en) | Method and device for detecting phishing risk of public WiFi | |
CN105207797A (en) | Fault locating method and fault locating device | |
CN109905268A (en) | The method and device of network O&M | |
CN111737431B (en) | Method and device for processing equipment exception, storage medium and electronic device | |
CN110267215A (en) | A kind of data detection method, equipment and storage medium | |
CN106502665B (en) | A kind of restorative procedure and device of application program | |
CN111653348A (en) | Surgical data processing method and device and computer readable storage medium | |
CN116662197A (en) | Automatic interface testing method, system, computer and readable storage medium | |
CN108122036B (en) | Substation live operation and inspection auxiliary analysis method | |
CN109145609A (en) | A kind of data processing method and device | |
CN110456976B (en) | Method and device for processing inspection sheet, storage medium and electronic device | |
CN107885649A (en) | The performance test methods and device of IOS application programs | |
CN113810457A (en) | Method and device for reporting service access exception, readable storage medium and electronic equipment | |
JP2006018735A (en) | Coding standard observance situation monitoring system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170609 |