CN108427633A - The processing method and processing device of display interface - Google Patents
The processing method and processing device of display interface Download PDFInfo
- Publication number
- CN108427633A CN108427633A CN201710081534.5A CN201710081534A CN108427633A CN 108427633 A CN108427633 A CN 108427633A CN 201710081534 A CN201710081534 A CN 201710081534A CN 108427633 A CN108427633 A CN 108427633A
- Authority
- CN
- China
- Prior art keywords
- display interface
- interface
- pop
- terminal
- abnormal
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of processing method and processing device of display interface, wherein method includes:During being tested applications client to be measured in terminal, the characteristic parameter for the first display interface that terminal top layer shows is obtained;Judge whether the first display interface is abnormal pop-up interface according to the characteristic parameter of the first display interface;In the case where it is abnormal pop-up interface to judge the first display interface, the first display interface is closed, and the test interface tested applications client is shown in terminal top layer.It solves the problems, such as to need to manually perform a large amount of shutoff operation in the prior art to close abnormal pop-up, both a large amount of human cost had been saved, it again can be with timely processing exception pop-up, it effectively avoids omitting the processing of abnormal pop-up, and then substantially increases the success rate and efficiency of the automatic test of applications client in terminal.
Description
Technical field
The present invention relates to computer realms, in particular to a kind of processing method and processing device of display interface.
Background technology
At present during carrying out automatic test to applications client to be measured in terminal, during perform script
Unpredictable abnormal pop-up is had, these abnormal pop-ups can intercept all click/slip events carried out in test, cause
Normal testing process can not carry out.
For example, executing test script automatically in plurality of mobile phones simultaneously, wherein above-mentioned test script is used for being mounted on hand
Instant messaging application customer end A in machine is tested.During test, mobile phone B pops up permission reminding window, the reminding window
Display " instant messaging application customer end A request recording permission, if allow ".At this moment, if do not made just to current reminding window
Reminding window is closed in true operation, then follow-up test can not be continued to execute in mobile phone B, and then lead to test crash.Existing
In technology, above-mentioned reminding window is typically manually closed.However, executing test script automatically in thousands of mobile phones
In scene, often there is plurality of mobile phones while popping up above-mentioned permission reminding window, such tester needs to manually perform a large amount of
Shutoff operation, and may lead to that all reminding windows cannot be closed in time, reduce the efficiency of test.
For the above problem in the prior art, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind of processing method and processing devices of display interface, at least to solve to need in the prior art
A large amount of shutoff operation is manually performed come the problem of closing abnormal pop-up.
One side according to the ... of the embodiment of the present invention provides a kind of processing method of display interface, including:In terminal
During testing applications client to be measured, the feature for the first display interface that the terminal top layer shows is obtained
Parameter;Judge whether first display interface is abnormal pop-up interface according to the characteristic parameter of first display interface;
In the case of judging that first display interface is the abnormal pop-up interface, first display interface is closed, and in institute
It states terminal top layer and shows the test interface tested the applications client.
Other side according to the ... of the embodiment of the present invention additionally provides a kind of processing unit of display interface, including:It obtains
Module during for being tested applications client to be measured in terminal, obtains what the terminal top layer showed
The characteristic parameter of first display interface;Judgment module, for judging described the according to the characteristic parameter of first display interface
Whether one display interface is abnormal pop-up interface;Closedown module, for judging that first display interface is the exception
In the case of pop-up interface, first display interface is closed;Display module, for being shown to described in the terminal top layer
The test interface that applications client is tested.
In embodiments of the present invention, during being tested applications client to be measured in terminal, terminal can be with
It is automatic to obtain the characteristic parameter for being located at the first display interface that terminal top layer shows, and judge the according to the characteristic parameter of acquisition
Whether one display interface is abnormal pop-up interface, if it is determined that the first display interface that out top layer shows is abnormal pop-up circle
Face is just automatically closed current first display interface, and returns to the test interface tested applications client.Pass through the party
Method, terminal obtain the characteristic parameter of top layer's display interface automatically, and the display of top layer is judged according to the characteristic parameter of acquisition
Whether interface is abnormal pop-up interface, so as to automatic identification exception pop-up interface, and the exception pop-up interface is automatically closed,
It solves the problems, such as to need to manually perform a large amount of shutoff operation in the prior art to close abnormal pop-up, has both saved a large amount of
Human cost, and the processing for omitting abnormal pop-up can be effectively avoided, and then substantially increase terminal with timely processing exception pop-up
The success rate and efficiency of the automatic test of upper applications client.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair
Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of application environment schematic diagram of the processing method of optional display interface according to the ... of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of the processing method of optional display interface according to the ... of the embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram at optional abnormal pop-up interface according to the ... of the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of a kind of optional abnormal pop-up interface according to the ... of the embodiment of the present invention and option of operation;
Fig. 5 is the schematic diagram of the processing method of another optional display interface according to the ... of the embodiment of the present invention;
Fig. 6 is the schematic diagram of the processing method of another optional display interface according to the ... of the embodiment of the present invention;
Fig. 7 is the schematic diagram of the processing method of another optional display interface according to the ... of the embodiment of the present invention;
Fig. 8 is a kind of structure diagram of the processing unit of optional display interface according to the ... of the embodiment of the present invention;
Fig. 9 is the structure diagram of the processing unit of another optional display interface according to the ... of the embodiment of the present invention;
Figure 10 is the flow chart of the processing method of another optional display interface according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects
It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive
Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product
Or the other steps or unit that equipment is intrinsic.
Embodiment 1
In embodiments of the present invention, a kind of embodiment of the processing method of above-mentioned display interface is provided.Fig. 1 is according to this
A kind of application environment schematic diagram of the processing method of optional display interface of inventive embodiments.As a kind of optional embodiment party
Formula, the processing method of the display interface can be, but not limited to be applied in application environment as shown in Figure 1, be run in terminal 102
There is the applications client 104 for carrying out automatic test, in the test process of applications client 104, obtains 102 top layer of terminal
The characteristic parameter of first display interface of display.It should be noted that top layer herein can be understood as the most upper of display layer
Layer.The characteristic parameter of the first display interface of acquisition herein, obtains when can be test process abort, can also be according to
The preset period obtains, and can also be by being obtained at the preset test moment, can also be adjacent in test process
It is obtained between two test operations.The characteristic parameter for obtaining current first display interface judges the first current display later
Whether interface is that if it is determined that showing abnormal pop-up interface the first display interface is just automatically closed, and at end in abnormal pop-up interface
102 top layers are held to show the test interface tested applications client 104, it can be understood as to return to before abnormal pop-up
Test interface, it is also possible to be to jump to next operation interface, the embodiment of the present invention is not construed as limiting this.
Optionally, in embodiments of the present invention, above-mentioned terminal can include but is not limited at least one of:Mobile phone is put down
Plate computer, laptop and other equipment that may be employed client test, the embodiment of the present invention does not do this any
It limits.
Fig. 2 is a kind of flow chart of the processing method of optional display interface according to the ... of the embodiment of the present invention.According to this hair
Bright embodiment provides a kind of processing method of display interface, as shown in Fig. 2, this method includes:
S202 obtains what terminal top layer showed during being tested applications client to be measured in terminal
The characteristic parameter of first display interface;
S204 judges whether the first display interface is abnormal pop-up interface according to the characteristic parameter of the first display interface;
S206, in the case where it is abnormal pop-up interface to judge the first display interface, the first display interface of closing, and
Terminal top layer shows the test interface tested applications client.
By the above method, during being tested applications client to be measured in terminal, terminal can be automatic
The characteristic parameter for being located at the first display interface that terminal top layer shows is obtained, and judges that first is aobvious according to the characteristic parameter of acquisition
Show whether interface is abnormal pop-up interface, if it is determined that the first display interface that out top layer shows is abnormal pop-up interface,
Current first display interface is just automatically closed, and returns to the test interface tested applications client.In this way, solution
It has determined and has needed to manually perform a large amount of shutoff operation in the prior art come the problem of closing abnormal pop-up, it is a large amount of to both save
Human cost, and can effectively avoid the processing for omitting abnormal pop-up, and then substantially increase end with timely processing exception pop-up
The success rate of the automatic test of applications client on end.
Optionally, in embodiments of the present invention, the processing method of above-mentioned display interface can be, but not limited to be applied to difference
Applications client in, for example, game application client, shopping application client, news application client, Video Applications client
Any application visitor that can be installed and be tested in terminal such as end, communications applications client, community space applications client
Family end.
Optionally, in embodiments of the present invention, above-mentioned fisrt feature parameter can include but is not limited at least one of:
The transparency value of first display interface, the first display interface area shared on the screen of terminal.
It should be noted that transparency value is bigger, illustrate that transparency is higher, for example, when transparency value is 100%
When, explanation is all-transparent, and when transparency value is 0%, explanation is opaque, when transparency value 50%, is said
Bright is translucent.General exception pop-up is mostly the translucent or transparent higher pop-up of degree therefore can be according to display interface
Transparency value to determine whether for abnormal pop-up.It, can be further combined with display interface when the transparency of pop-up is relatively low
Shared area judges on a terminal screen.Abnormal pop-up will not generally occupy and entirely show screen, but Ge little windows circle
Face, therefore can be by the size of display interface to determine whether for abnormal pop-up.For example, Fig. 3 is according to of the invention real
The structural schematic diagram for applying a kind of optional abnormal pop-up interface of example, as shown in figure 3, the test interface of applications client A occupies
The size of entire screen, abnormal pop-up interface occur in test process, " applications client C will start microphone function, if permit
Perhaps" it is shown in top layer, ongoing test can be blocked.Wherein, abnormal pop-up interface may be displayed in terminal screen
Between position, size less than entire terminal display half, transparency could be provided as between 0% to 100% appoint
Meaning value.
Optionally, above-mentioned steps S204 can be realized by way of at least one of:
Judge whether the first display interface is abnormal pop-up interface according to the transparency value of the first display interface;
According to the first display interface area shared on the screen of terminal, judge whether the first display interface is abnormal bullet
Window interface;
According to transparency value and the first display interface area shared on the screen of terminal, the first display interface is judged
Whether it is abnormal pop-up interface.
Optionally, judge whether the first display interface is abnormal pop-up interface according to the transparency value of the first display interface
Including:Judge whether the transparency value of the first display interface is greater than or equal to the first predetermined threshold value, in the first display interface
When transparency value is greater than or equal to the first predetermined threshold value, judge that the first display interface is abnormal pop-up interface;It is aobvious first
When showing that the transparency value at interface is less than the first predetermined threshold value, it can be determined that it is abnormal pop-up interface to go out the first display interface not,
Can also further it be judged in conjunction with the first display interface area shared on the screen of terminal.
Optionally, the area shared on the screen of terminal according to transparency value and the first display interface, judges first
Whether display interface is that abnormal pop-up interface includes:Judge whether the first display interface area shared on the screen of terminal is small
In or equal to the second predetermined threshold value, it is default to be less than or equal to second in the first display interface area shared on the screen of terminal
When threshold value, judge that the first display interface is abnormal pop-up interface;In the first display interface face shared on the screen of terminal
When product is more than the second predetermined threshold value, it can be determined that it is abnormal pop-up interface to go out the first display interface not, can also be aobvious in conjunction with first
Show that the transparency value at interface is further judged.
Optionally, the area shared on the screen of terminal according to transparency value and the first display interface, judges first
Whether display interface is that abnormal pop-up interface includes:The first display interface transparency value be less than the first predetermined threshold value and
First display interface judges the first display circle when area shared on the screen of terminal is less than or equal to the second predetermined threshold value
Face is abnormal pop-up interface;It is greater than or equal to the first predetermined threshold value and the first display in the transparency value of the first display interface
Judge that the first display interface is abnormal pop-up circle when area shared on the screen of terminal is more than the second predetermined threshold value in interface
Face;The transparency value of the first display interface be greater than or equal to the first predetermined threshold value and the first display interface terminal screen
When shared area is less than or equal to the second predetermined threshold value on curtain, judge that the first display interface is abnormal pop-up interface.
It should be noted that the first predetermined threshold value and the second predetermined threshold value herein can be according to can reach in the related technology
To technical merit be flexibly arranged, the embodiment of the present invention is not construed as limiting this.
Optionally, the action of the first display interface of closing in above-mentioned steps S206 can be accomplished by the following way:
S1 identifies the option of operation in the first display interface, wherein option of operation includes one or more options;
S2 searches target processing corresponding with the targets option in option of operation in the process instruction set of storage and refers to
It enables, wherein target process instruction, which is used to indicate, closes the first display interface;
S3 closes the first display interface according to target process instruction.
It should be noted that the option of operation in the first display interface of identification, main includes identification operational order option, example
Such as "Yes" "No" " permission " " refusal " " return " " unlatching " " closing " also includes the close button "×" of the abnormal pop-up of identification.
Identification operational order option herein, can be by parsing text and image on entire first display interface,
Identify word and figure, and shorthand and figure are the location of on the screen, and according to the word and figure identified
Then it is corresponding to search processing in the process instruction set of backstage storage for the position of the corresponding option of operation of location determination of shape
After finding target process instruction, corresponding option of operation is executed according to target process instruction for the target process instruction of option of operation
Click or sliding processing, and then close the first display interface (i.e. exception pop-up interface).Fig. 4 is according to the ... of the embodiment of the present invention
A kind of structural schematic diagram of optional abnormal pop-up interface and option of operation.As shown in figure 4, current interface may include clicking behaviour
Make option " permission " " refusal ", can also include slide option, such as the slider bar below " sliding closing to the right ".
Identification operational order option herein can also be terminal by identifying the current corresponding backstage journey in pop-up interface
Sequence is to know which option of operation is corresponding to identify the corresponding spooler of each option of operation
The background program for closing current abnormal pop-up, to be searched in process instruction set at the target for handling corresponding option of operation
Reason instruction after finding target process instruction, executes the click of corresponding option of operation according to target process instruction or sliding is handled,
And then close the first display interface (i.e. abnormal pop-up interface).
For example, Fig. 5 is the signal of the processing method of another optional display interface according to the ... of the embodiment of the present invention
Figure.As shown in figure 5, when top layer's display interface in terminal in the test process of applications client A jumps out abnormal pop-up interface
" applications client C will start microphone function, if allow" when, the option of operation at the current pop-up interface of terminal recognition can be with
By identifying current pop-up interface text, " permission " and " refusal " option of operation is identified, and search process instruction set and look for
To target process instruction, it is assumed that " permission " option of operation is clicked in the instruction of target process instruction, then according to target process instruction point
" permission " is hit, then the abnormal frame interface that plays is closed, and returns to the test interface of applications client A.
Fig. 6 is the schematic diagram of the processing method of another optional display interface according to the ... of the embodiment of the present invention.Such as Fig. 6 institutes
Show, when top layer's display interface in terminal in the test process of applications client A jumps out abnormal pop-up interface " applications client
C updates are completed, if restart current device" when, the option of operation at the current pop-up interface of terminal recognition can be worked as by identification
Preceding pop-up interface text, identifies "Yes" and "No" option of operation, and searches process instruction set and find target process instruction,
It is assumed that current device is not restarted in the instruction of target process instruction, but the test process that pop-up continues applications client A is closed,
So should click "No" option of operation according to the text identified.If pop-up at this time is malice pop-up, option of operation
It is not restart current device, and close pop-up, and it is to restart immediately currently that option of operation "No" is corresponding that "Yes" is really corresponding
Equipment, the target process instruction found at this time only by text identification are exactly inaccurate.At this point it is possible to identify current pop-up
The corresponding background program in interface identifies the corresponding true processing operation of option of operation, then can be handled according to target
The closing pop-up of instruction is instructed, the option of operation for clicking "Yes" is corresponded to, then the abnormal frame interface that plays is closed, and returns to applications client
The test interface of A.
Optionally, after it is abnormal pop-up interface and closing to judge the first display interface, it is possible to the next boundary redirected
Face is not returned to the test interface of applications client, but has jumped to another abnormal pop-up interface, and in such cases, having must
The characteristic parameter of terminal top layer display interface obtained again, and determine whether abnormal pop-up interface, and execute corresponding
Processing.Optionally, the survey tested applications client is shown after closing the first display interface and in terminal top layer
Before trying interface, above-mentioned display interface processing method further includes:
S1 obtains the characteristic parameter for the second display interface that terminal top layer shows;
S2 judges whether the second display interface is abnormal pop-up interface according to the characteristic parameter of the second display interface;
S3 closes the second display interface in the case where it is abnormal pop-up interface to judge the second display interface.
The characteristic parameter of the second display interface obtained herein, the characteristic parameter with aforementioned first interface, it can be understood as
Same type of characteristic parameter, including the transparency value of the second display interface and the second display interface are shared on a terminal screen
Size.Judge whether the second display interface is abnormal pop-up interface according to the characteristic parameter of the second display interface, with root
According to the characteristic parameter of the first display interface judge the first display interface whether be abnormal pop-up interface judgment mode it is identical, can be with
By the transparency value of the second display interface and/or the second display interface, shared area judges on a terminal screen.
Optionally, judge whether the second display interface is abnormal pop-up interface according to the transparency value of the second display interface
Including:Judge whether the transparency value of the second display interface is greater than or equal to third predetermined threshold value, in the second display interface
When transparency value is greater than or equal to third predetermined threshold value, judge that the second display interface is abnormal pop-up interface;It is aobvious second
When showing that the transparency value at interface is less than third predetermined threshold value, it can be determined that it is abnormal pop-up interface to go out the second display interface not,
Can also further it be judged in conjunction with the second display interface area shared on the screen of terminal.
Optionally, the area shared on the screen of terminal according to transparency value and the second display interface, judges second
Whether display interface is that abnormal pop-up interface includes:Judge whether the second display interface area shared on the screen of terminal is small
In or equal to the 4th predetermined threshold value, it is default to be less than or equal to the 4th in the second display interface area shared on the screen of terminal
When threshold value, judge that the second display interface is abnormal pop-up interface;In the second display interface face shared on the screen of terminal
When product is more than four predetermined threshold values, it can be determined that it is abnormal pop-up interface to go out the second display interface not, can also be aobvious in conjunction with second
Show that the transparency value at interface is further judged.
Optionally, the area shared on the screen of terminal according to transparency value and the second display interface, judges second
Whether display interface is that abnormal pop-up interface includes:The second display interface transparency value be less than third predetermined threshold value and
Second display interface judges the second display circle when area shared on the screen of terminal is less than or equal to four predetermined threshold values
Face is abnormal pop-up interface;It is greater than or equal to third predetermined threshold value and the second display in the transparency value of the second display interface
Judge that the second display interface is abnormal pop-up circle when area shared on the screen of terminal is more than the second predetermined threshold value in interface
Face;The transparency value of the second display interface be greater than or equal to third predetermined threshold value and the second display interface terminal screen
When shared area is less than or equal to four predetermined threshold values on curtain, judge that the second display interface is abnormal pop-up interface.
In the case of judging that the second display interface is abnormal pop-up interface, the second display interface, closing herein are closed
Second display interface can be accomplished by the following way:
S1 identifies the option of operation in the second display interface, wherein option of operation includes one or more options;
S2 searches target processing corresponding with the targets option in option of operation in the process instruction set of storage and refers to
It enables, wherein target process instruction, which is used to indicate, closes the second display interface;
S3 closes the second display interface according to target process instruction.
Wherein, identify that the method for the option of operation in the second display interface may refer in the first display interface of aforementioned identification
Option of operation method.Identification operational order option herein can be by parsing the text on entire second display interface
This and image, to identify word and figure, and shorthand and figure are the location of on the screen, and according to identifying
The position of the corresponding option of operation of the location determination of word and figure, then in the process instruction set of backstage storage at lookup
The target process instruction for managing corresponding option of operation after finding target process instruction, executes corresponding according to target process instruction
The click or sliding of option of operation are handled, and then close the second display interface (i.e. abnormal pop-up interface).
Identification operational order option herein can also be terminal by identifying the current corresponding backstage journey in pop-up interface
Sequence is to know which option of operation is corresponding to identify the corresponding spooler of each option of operation
The background program for closing current abnormal pop-up, to be searched in process instruction set at the target for handling corresponding option of operation
Reason instruction after finding target process instruction, executes the click of corresponding option of operation according to target process instruction or sliding is handled,
And then close the second display interface (i.e. abnormal pop-up interface).
It should be noted that the option of operation in the second display interface of identification, main includes identification operational order option, example
Such as "Yes" "No" " permission " " refusal " " return " " unlatching " " closing " also includes the close button "×" of the abnormal pop-up of identification.
The processing mode when the second display interface is abnormal pop-up interface is illustrated with reference to Fig. 7.
Fig. 7 is the schematic diagram of the processing method of another optional display interface according to the ... of the embodiment of the present invention.Such as Fig. 7 institutes
Show, it (is the equal of to jump out abnormal pop-up interface when top layer's display interface in terminal in the test process of applications client A
One display interface) " applications client C updates are completed, if restart current device" when, the behaviour at the current pop-up interface of terminal recognition
Make option, can identify "Yes" and "No" option of operation, and search process instruction by identifying current pop-up interface text
Set finds target process instruction, it is assumed that current device is not restarted in the instruction of target process instruction, but is closed pop-up and continued
The test process of applications client A, then should click "No" option of operation according to the text identified.It is assumed that grasping at this time
It is consistent with the practical operation executed of background program to make the operation that option text is shown, then being clicked according to target process instruction
"No", you can close the abnormal pop-up of the first display interface.It closes after the abnormal pop-up of the first display interface, terminal top layer
Display interface do not return to the test interface screen of applications client A and return to the test interface of applications client A, but jump
Go to whether next abnormal pop-up interface (being equivalent to the second display interface) " determines and do not restart", and provide two behaviour
Make option "Yes" and "No", again identifies that the option of operation of the second display interface exception pop-up at this time, find at corresponding target
Reason instruction clicks "Yes" button, to close pop-up, not restarting equipment according to target process instruction.
Alternatively it is also possible to identify that there is a close button "×" in the upper right corner at abnormal pop-up interface, directly according to target at
Close button is clicked in the instruction of reason instruction, to close current pop-up interface.Or it clicks " back " option on screen or returns
Hui Jian returns to test interface to close current pop-up interface.
Optionally, it is most upper that terminal is obtained in the processing method of display interface provided in an embodiment of the present invention, in step S202
The characteristic parameter of first display interface of layer display can include but is not limited to following implementations:
The characteristic parameter for the first display interface that terminal top layer shows is obtained at the time of specified;
The characteristic parameter for the first display interface that terminal top layer shows is obtained between two adjacent test operations,
In, the test operation of required execution is multiple during testing applications client to be measured;
The characteristic parameter for the first display interface that terminal top layer shows is obtained every the preset period.
Optionally, can be pre-set any time at the time of specified, for example, be set in applications client test into
Capable 5s, 15s, 25s, 30s ... obtain the characteristic parameter for the first display interface that terminal top layer shows, work as survey
When at the time of examination proceeding to corresponding, terminal can obtain the characteristic parameter of the display interface of top layer automatically, and solution is then identified
It analyses and judges whether the display interface of top layer is abnormal pop-up interface.
Optionally, it is to be understood that test process includes multiple test behaviour that need to be executed between adjacent two operations
Make, such as " jump action of test personage ", " test scene transformation fluency " etc. or adjacent two clicks or sliding
Operation, such as " opening dialog box ", " sending message " etc..Before a upper test operation is completed, starts next test operation, eventually
End can obtain the characteristic parameter of the display interface of top layer automatically, and parsing then is identified and judges display circle of top layer
Whether face is abnormal pop-up interface.
Alternatively it is also possible to the acquisition period of characteristic parameter is set, such as the feature of the display interface of setting top layer is joined
Several acquisition periods is 10s can obtain top layer automatically then in the test process of applications client every 10s terminals
Display interface characteristic parameter, parsing is then identified and judges whether the display interface of top layer is abnormal pop-up circle
Face.
Optionally, since applications client is during executing test, once abnormal pop-up interface occur will stop
Therefore current test process, click or slide in truncation test can be arranged a background monitor, work as prison
When measuring current test process and being aborted, that is, the characteristic parameter of the display interface of top layer is obtained, judges the display of top layer
Whether interface is abnormal pop-up interface.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because
According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical scheme of the present invention is substantially in other words to existing
The part that technology contributes can be expressed in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
Additionally provide a kind of processing unit of display interface in the present embodiment, the device for realizing above-described embodiment and
Preferred embodiment had carried out repeating no more for explanation.As used below, predetermined work(may be implemented in term " module "
The combination of the software and/or hardware of energy.It is hard although device described in following embodiment is preferably realized with software
The realization of the combination of part or software and hardware is also that may and be contemplated.
According to embodiments of the present invention, a kind of processing unit for implementing above-mentioned display interface is additionally provided.Fig. 8 is basis
A kind of structure diagram of the processing unit of optional display interface of the embodiment of the present invention.As shown in figure 8, the device includes:
Acquisition module 802 during for being tested applications client to be measured in terminal, obtains terminal most
The characteristic parameter for the first display interface that upper layer is shown;
Judgment module 804, for judging whether the first display interface is abnormal according to the characteristic parameter of the first display interface
Pop-up interface;
Closedown module 806, in the case where it is abnormal pop-up interface to judge the first display interface, it is aobvious to close first
Show interface;
Display module 808, for showing the test interface tested applications client in terminal top layer.
By above-mentioned apparatus, acquisition module 802 obtains during being tested applications client to be measured in terminal
The characteristic parameter for the first display interface that terminal top layer shows, judgment module 804 is taken to be joined according to the feature of the first display interface
Number judges whether the first display interface is abnormal pop-up interface, and closedown module 806 is judging that the first display interface is abnormal bullet
In the case of window interface, the first display interface is closed, display module 808 shows in terminal top layer and surveyed to applications client
The test interface of examination.By the device, solves and need to manually perform a large amount of shutoff operation in the prior art to close exception
The problem of pop-up, to not only save a large amount of human cost, but also can effectively avoid omitting abnormal with timely processing exception pop-up
The processing of pop-up, and then substantially increase the success rate of the automatic test of applications client in terminal.
Optionally, in embodiments of the present invention, the processing method of above-mentioned display interface can be, but not limited to be applied to difference
Applications client in, for example, game application client, shopping application client, news application client, Video Applications client
Any application visitor that can be installed and be tested in terminal such as end, communications applications client, community space applications client
Family end.
Optionally, in embodiments of the present invention, above-mentioned fisrt feature parameter can include but is not limited at least one of:
The transparency value of first display interface, the first display interface area shared on the screen of terminal.
It should be noted that transparency value is bigger, illustrate that transparency is higher, for example, when transparency value is 100%
When, explanation is all-transparent, and when transparency value is 0%, explanation is opaque, when transparency value 50%, is said
Bright is translucent.General exception pop-up is mostly the translucent or transparent higher pop-up of degree therefore can be according to display interface
Transparency value to determine whether for abnormal pop-up.It, can be further combined with display interface when the transparency of pop-up is relatively low
Shared area judges on a terminal screen.Abnormal pop-up will not generally occupy and entirely show screen, but Ge little windows circle
Face, therefore can be by the size of display interface to determine whether for abnormal pop-up.For example, as shown in figure 3, application client
The test interface of end A occupies the size of entire screen, and occurring abnormal pop-up interface in test process, " applications client C will start
Microphone function, if allow" it is shown in top layer, ongoing test can be blocked.Wherein, abnormal pop-up interface can be with
It is shown in the centre position of terminal screen, less than the half of entire terminal display, transparency could be provided as size
Arbitrary value between 0% to 100%.
Fig. 9 is the structure diagram of the processing unit of another optional display interface according to the ... of the embodiment of the present invention.Such as Fig. 9
Shown, optionally, judgment module 804 includes judging unit 902, is used for:
Judge whether the first display interface is abnormal pop-up interface according to the transparency value of the first display interface;According to
One display interface area shared on the screen of terminal, judges whether the first display interface is abnormal pop-up interface;According to saturating
The area of lightness numerical value and the first display interface on the screen of terminal judges whether the first display interface is abnormal pop-up circle
Face.
Judging unit 902 can also include judgment sub-unit 9020, be used for:
Judge whether the transparency value of the first display interface is greater than or equal to the first predetermined threshold value, in the first display interface
Transparency value when being greater than or equal to the first predetermined threshold value, judge that the first display interface is abnormal pop-up interface;First
When the transparency value of display interface is less than the first predetermined threshold value, it can be determined that it is abnormal pop-up circle to go out the first display interface not
Face can also further be judged in conjunction with the first display interface area shared on the screen of terminal;
Judge whether the first display interface area shared on the screen of terminal is less than or equal to the second predetermined threshold value,
First display interface judges the first display circle when area shared on the screen of terminal is less than or equal to the second predetermined threshold value
Face is abnormal pop-up interface;It, can in the first display interface when area shared on the screen of terminal is more than the second predetermined threshold value
Abnormal pop-up interface to judge the first display interface not, can also in conjunction with the first display interface transparency value into traveling
The judgement of one step;
The transparency value of the first display interface be less than the first predetermined threshold value and the first display interface terminal screen
When upper shared area is less than or equal to the second predetermined threshold value, judge that the first display interface is abnormal pop-up interface;First
It is shared on the screen of terminal that the transparency value of display interface is greater than or equal to the first predetermined threshold value and the first display interface
When area is more than the second predetermined threshold value, judge that the first display interface is abnormal pop-up interface;In the transparent of the first display interface
The area that number of degrees value is greater than or equal to the first predetermined threshold value and the first display interface is shared on the screen of terminal is less than or equal to
When the second predetermined threshold value, judge that the first display interface is abnormal pop-up interface.
It should be noted that the first predetermined threshold value and the second predetermined threshold value herein can be according to can reach in the related technology
To technical merit be flexibly arranged, the embodiment of the present invention is not construed as limiting this.
Optionally, closedown module 806 includes:
Recognition unit 904, for identification option of operation in the first display interface, wherein option of operation include one or
Multiple options;
Searching unit 906, it is corresponding with the targets option in option of operation for being searched in the process instruction set of storage
Target process instruction, wherein target process instruction be used to indicate close the first display interface;
Closing unit 908, for closing the first display interface according to target process instruction.
It should be noted that the option of operation in the first display interface of identification, main includes identification operational order option, example
Such as "Yes" "No" " permission " " refusal " " return " " unlatching " " closing " also includes the close button "×" of the abnormal pop-up of identification.
Identification option of operation herein can be by parsing text and image on entire first display interface, to know
Other word and figure, and shorthand and figure are the location of on the screen, and according to the word and figure identified
Then the corresponding operation of processing is searched in the position of the corresponding option of operation of location determination in the process instruction set of backstage storage
After finding target process instruction, the point of corresponding option of operation is executed according to target process instruction for the target process instruction of option
It hits or sliding is handled, and then close the first display interface (i.e. abnormal pop-up interface).As shown in figure 4, current interface may include
Clicking operation option " permission " " refusal " can also include slide option, such as the slider bar below " sliding closing to the right ".
Identification option of operation herein, can also be terminal by identifying the current corresponding background program in pop-up interface,
Identify the corresponding spooler of each option of operation, to know which option of operation it is corresponding be to close
The background program of current exception pop-up, the target processing to search the corresponding option of operation of processing in process instruction set refer to
It enables, after finding target process instruction, the click of corresponding option of operation is executed according to target process instruction or sliding is handled, in turn
Close the first display interface (i.e. abnormal pop-up interface).
For example, as shown in figure 5, when top layer's display interface in terminal in the test process of applications client A is jumped
Going out abnormal pop-up interface, " applications client C will start microphone function, if allow" when, the current pop-up interface of terminal recognition
Option of operation, can by identify current pop-up interface text, identify " permission " and " refusal " option of operation, and search
Process instruction set finds target process instruction, it is assumed that " permission " option of operation is clicked in the instruction of target process instruction, then basis
Target process instruction clicks " permission ", and then the abnormal frame interface that plays is closed, and returns to the test interface of applications client A.
As shown in fig. 6, when top layer's display interface in terminal in the test process of applications client A jumps out abnormal pop-up
" applications client C updates are completed, if restart current device at interface" when, the option of operation at the current pop-up interface of terminal recognition,
"Yes" and "No" option of operation can be identified by identifying current pop-up interface text, and search process instruction set and look for
To target process instruction, it is assumed that current device is not restarted in the instruction of target process instruction, but is closed pop-up and continued using visitor
The test process of family end A, then should click "No" option of operation according to the text identified.If pop-up at this time is to dislike
Meaning pop-up, it is not restart current device, and close pop-up, and option of operation "No" is corresponding that option of operation "Yes" is really corresponding
It is to restart current device immediately, the target process instruction found at this time only by text identification is exactly inaccurate.At this point, can
To identify the corresponding background program in current pop-up interface, the corresponding true processing operation of option of operation is identified, then can
With the closing pop-up indicated according to target process instruction, the corresponding option of operation for clicking "Yes" is then abnormal to play the closing of frame interface,
Return to the test interface of applications client A.
Optionally, after it is abnormal pop-up interface and closing to judge the first display interface, it is possible to the next boundary redirected
Face is not returned to the test interface of applications client, but has jumped to another abnormal pop-up interface, and in such cases, having must
The characteristic parameter of terminal top layer display interface obtained again, and determine whether abnormal pop-up interface, and execute corresponding
Processing.
Optionally, acquisition module 802 is additionally operable to:Obtain the characteristic parameter for the second display interface that terminal top layer shows;
Judgment module 804 is additionally operable to:Judge whether the second display interface is different according to the characteristic parameter of the second display interface
Normal pop-up interface;
Closedown module 806 is additionally operable to:In the case where it is abnormal pop-up interface to judge the second display interface, second is closed
Display interface.
The characteristic parameter of the second display interface obtained herein, the characteristic parameter with aforementioned first interface, it can be understood as
Same type of characteristic parameter, including the transparency value of the second display interface and the second display interface are shared on a terminal screen
Size.Judge whether the second display interface is abnormal pop-up interface according to the characteristic parameter of the second display interface, with root
According to the characteristic parameter of the first display interface judge the first display interface whether be abnormal pop-up interface judgment mode it is identical, can be with
By the transparency value of the second display interface and/or the second display interface, shared area judges on a terminal screen, this
Place repeats no more.In the case of judging that the second display interface is abnormal pop-up interface, the second display interface, pass herein are closed
Closing the second display interface can be accomplished by the following way:
S1 identifies the option of operation in the second display interface, wherein option of operation includes one or more options;
S2 searches target processing corresponding with the targets option in option of operation in the process instruction set of storage and refers to
It enables, wherein target process instruction, which is used to indicate, closes the second display interface;
S3 closes the second display interface according to target process instruction.
Identification operational order option herein, can be by parsing text and image on entire second display interface,
Identify word and figure, and shorthand and figure are the location of on the screen, and according to the word and figure identified
Then it is corresponding to search processing in the process instruction set of backstage storage for the position of the corresponding option of operation of location determination of shape
After finding target process instruction, corresponding option of operation is executed according to target process instruction for the target process instruction of option of operation
Click or sliding processing, and then close the second display interface (i.e. exception pop-up interface).
Identification operational order option herein can also be terminal by identifying the current corresponding backstage journey in pop-up interface
Sequence is to know which option of operation is corresponding to identify the corresponding spooler of each option of operation
The background program for closing current abnormal pop-up, to be searched in process instruction set at the target for handling corresponding option of operation
Reason instruction after finding target process instruction, executes the click of corresponding option of operation according to target process instruction or sliding is handled,
And then close the second display interface (i.e. abnormal pop-up interface).
Wherein, identify that the method for the option of operation in the second display interface may refer in the first display interface of aforementioned identification
Option of operation method.
It should be noted that the option of operation in the second display interface of identification, main includes identification operational order option, example
Such as "Yes" "No" " permission " " refusal " " return " " unlatching " " closing " also includes the close button "×" of the abnormal pop-up of identification.
The processing mode when the second display interface is abnormal pop-up interface is illustrated with reference to Fig. 7.
As shown in fig. 7, when top layer's display interface in terminal in the test process of applications client A jumps out abnormal pop-up
" applications client C updates are completed, if restart current device at interface (being the equal of the first display interface)" when, terminal recognition
The option of operation at current pop-up interface can identify "Yes" and "No" operation choosing by identifying current pop-up interface text
, and search process instruction set and find target process instruction, it is assumed that current device is not restarted in the instruction of target process instruction, but
The test process that pop-up continues applications client A is closed, then should click "No" behaviour according to the text identified
Make option.It is assumed that the operation that option of operation text is shown at this time is consistent with the practical operation executed of background program, then according to mesh
It marks process instruction and clicks "No", you can close the abnormal pop-up of the first display interface.Close the abnormal pop-up of the first display interface
Later, the display interface of terminal top layer does not return to the test interface screen of applications client A and returns to applications client A's
Test interface, but jumped to whether next abnormal pop-up interface (being equivalent to the second display interface) " determines and do not restart",
And two option of operation "Yes" and "No" are provided, the option of operation of the second display interface exception pop-up is again identified that at this time, is looked for
To corresponding target process instruction, "Yes" button is clicked according to target process instruction, to close pop-up, not restarting equipment.
Alternatively it is also possible to identify that there is a close button "×" in the upper right corner at abnormal pop-up interface, directly according to target at
Close button is clicked in the instruction of reason instruction, to close current pop-up interface.Or it clicks " back " option on screen or returns
Hui Jian returns to test interface to close current pop-up interface.
Optionally, acquisition module 802 can also include:
Acquiring unit 910 obtains the feature for the first display interface that terminal top layer shows at the time of specified
Parameter;The characteristic parameter for the first display interface that terminal top layer shows is obtained between two adjacent test operations, wherein
The test operation of required execution is multiple during testing the applications client to be measured;Every preset week
Phase obtains the characteristic parameter for the first display interface that terminal top layer shows.
Optionally, can be pre-set any time at the time of specified, for example, be set in applications client test into
Capable 5s, 15s, 25s, 30s ... obtain the characteristic parameter for the first display interface that terminal top layer shows, work as survey
When at the time of examination proceeding to corresponding, terminal can obtain the characteristic parameter of the display interface of top layer automatically, and solution is then identified
It analyses and judges whether the display interface of top layer is abnormal pop-up interface.
Optionally, it is to be understood that test process includes multiple test behaviour that need to be executed between adjacent two operations
Make, such as " jump action of test personage ", " test scene transformation fluency " etc. or adjacent two clicks or sliding
Operation, such as " opening dialog box ", " sending message " etc..Before a upper test operation is completed, starts next test operation, eventually
End can obtain the characteristic parameter of the display interface of top layer automatically, and parsing then is identified and judges display circle of top layer
Whether face is abnormal pop-up interface.
Alternatively it is also possible to the acquisition period of characteristic parameter is set, such as the feature of the display interface of setting top layer is joined
Several acquisition periods is 10s can obtain top layer automatically then in the test process of applications client every 10s terminals
Display interface characteristic parameter, parsing is then identified and judges whether the display interface of top layer is abnormal pop-up circle
Face.
Optionally, since applications client is during executing test, once abnormal pop-up interface occur will stop
Therefore current test process, click or slide in truncation test can be arranged a background monitor, work as prison
When measuring current test process and being aborted, that is, the characteristic parameter of the display interface of top layer is obtained, judges the display of top layer
Whether interface is abnormal pop-up interface.
Embodiment 3
The application environment of the embodiment of the present invention can be, but not limited to reference to the application environment in embodiment 1, in the present embodiment
This is repeated no more.
Optionally, in the present embodiment, the processing method of above-mentioned display interface can be embodied by following implementation,
Including:
S1 in automatic test, has monitored whether pop-up box (being equivalent to aforementioned abnormal pop-up border face) in real time;
S1.1, automatized script are injected into client, and APP (being equivalent to aforementioned applications client) page redirects,
View layers (the top layer's display interface for being equivalent to terminal) updates;
S1.2, pop-up box detection triggering, extracts current view layers of exhibiting pictures and (is equivalent to and obtains the first display interface
Characteristic parameter);
S1.3 calculates the percentage of exhibiting pictures and screen size, when less than preset value, obtaining this layer of view exhibiting pictures
For pop-up box, or judge the transparency of pop-up box, if transparency is more than preset value, show that this layer of view exhibiting pictures are pop-up
Frame;
S2, pop-up box processing:
S2.1, there are single or multiple ACK buttons in pop-up box, such as " confirmation " " cancellation " " permission " etc.;
S2.2, script is default to be clicked ACK button or close button or clicks Back keys, and pop-up box is closed;
S2.3 after page furbishing, detects the view layer picture shown, calculates the transparency or exhibiting pictures of pop-up box again
With the percentage of screen size, cycle is opened.
Below in conjunction with the accompanying drawings 10 a kind of transparency by display interface is provided to judge whether display interface is abnormal bullet
Window interface, and carry out the specific implementation mode of interface processing method.Figure 10 is that according to the ... of the embodiment of the present invention another is optional
The flow chart of the processing method of display interface, as shown in Figure 10, the processing method of display interface includes:
S1002 in the automatic test course of applications client, when executing next test operation, needs to identify matched
Control is clicked or is slided.For example, in applications client C testing results, to test dialog box function, with the dialogue with A
For, need the control (head portrait for being shown as A) for finding opening dialog box to be clicked, subsequently into dialog interface.
S1004 judges whether to find matched control, if finding, executes step S1006, if not finding, executes step
S1010。
S1006 after finding matched control, carries out click or slide, into next test interface.For example, looking for
The head portrait for having arrived A double-clicks the head portrait and enters dialog interface with A.
S1008 executes next step automation mechanized operation.Such as after entering the dialog interface with A, disappear to continue test
The display situation that whether breath transmission succeeds or expression is sent can continue to search for and test matched control in next step.
S1010 does not find and tests matched control at this time, will execute the identifying processing of abnormal pop-up, detection is most upper
The transparency of view layers of layer.For example, not finding the head portrait of A, terminal will detect the view transparencies of top layer, see whether A
Head portrait option by mask (being equivalent to abnormal pop-up interface) cover.
S1012 after obtaining top layer view layers of transparency, judges whether the transparency value is more than predetermined threshold value,
If being more than predetermined threshold value, judge that top layer view layers is abnormal pop-up interface, executes step S1014.
S1014 starts abnormal pop-up matching treatment flow.For example, judging the head portrait of A by mask by step S1012
Covering, then mask will be closed, the head portrait of A is shown and clicking operation can be executed.At this point, at abnormal pop-up matching
Reason flow can be that flow S1002 to S1008 is matched with previous control as same flow.The current abnormal pop-up of parsing identification
Interface searches and closes the corresponding control in abnormal pop-up interface, corresponding control clicked or slide after finding, by abnormal pop-up circle
Face is closed, and is then executed next step automation mechanized operation, such as is returned to the test interface before abnormal pop-up, search the head portrait of A into
Row click is handled.
Above-mentioned flow cycle executes.
It should be noted that step S1010 can also be the size shared by top layer view layers of identification on the screen,
Either identification top layer view layer transparency and top layer view layers on the screen shared by size, according to implementation
The judgment method enumerated in example 1 is to determine whether for abnormal pop-up interface.
Embodiment 4
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can
With at least one of multiple network equipments in network network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S1, during being tested applications client to be measured in terminal, obtain that terminal top layer shows the
The characteristic parameter of one display interface;
S2 judges whether the first display interface is abnormal pop-up interface according to the characteristic parameter of the first display interface;
S3 closes the first display interface, and at end in the case where it is abnormal pop-up interface to judge the first display interface
End top layer shows the test interface tested applications client.
Optionally, storage medium is also configured to store the program code for executing following steps:
S1, according to the transparency value of the first display interface or according to transparency value and the first display interface in terminal
Shared area, judges whether the first display interface is abnormal pop-up interface on screen.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or
The various media that can store program code such as CD.
Optionally, the specific example in the present embodiment can refer to showing described in above-described embodiment 1 and embodiment 2
Example, details are not described herein for the present embodiment.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product
Sale in use, can be stored in the storage medium that above computer can be read.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention
State all or part of step of method.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, only one
Kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (14)
1. a kind of processing method of display interface, which is characterized in that including:
During being tested applications client to be measured in terminal, it is aobvious to obtain the terminal top layer shows first
Show the characteristic parameter at interface;
Judge whether first display interface is abnormal pop-up interface according to the characteristic parameter of first display interface;
In the case where it is the abnormal pop-up interface to judge first display interface, first display interface is closed,
And show the test interface tested the applications client in the terminal top layer.
2. according to the method described in claim 1, it is characterized in that, the characteristic parameter according to first display interface is sentenced
Whether first display interface that breaks is that abnormal pop-up interface includes:
According to the transparency value of first display interface or according to the transparency value of first display interface and described
First display interface area shared on the screen of the terminal, judges whether first display interface is abnormal pop-up circle
Face.
3. according to the method described in claim 2, it is characterized in that, the transparency value according to first display interface
Judge whether first display interface is that abnormal pop-up interface includes:
Judge whether the transparency value of first display interface is greater than or equal to the first predetermined threshold value;
When the transparency value of first display interface is greater than or equal to first predetermined threshold value, described first is judged
Display interface is abnormal pop-up interface.
4. according to the method described in claim 2, it is characterized in that, the transparency value according to first display interface
Or according to the transparency value and first display interface area shared on the screen of the terminal, described the is judged
Whether one display interface is that abnormal pop-up interface includes:
Judge whether the transparency value of first display interface is greater than or equal to the first predetermined threshold value and first display
Whether interface area shared on the screen of the terminal is less than or equal to the second predetermined threshold value;
It is less than first predetermined threshold value in the transparency value of first display interface and first display interface is in institute
When stating area shared on the screen of terminal less than or equal to second predetermined threshold value, judge that first display interface is
Abnormal pop-up interface.
5. according to the method described in claim 1, it is characterized in that, closing first display interface includes:
Identify the option of operation in first display interface, wherein the option of operation includes one or more options;
Target process instruction corresponding with the targets option in the option of operation is searched in the process instruction set of storage,
In, the target process instruction, which is used to indicate, closes first display interface;
First display interface is closed according to the target process instruction.
6. according to the method described in claim 1, it is characterized in that, it is described close first display interface after and
Before the terminal top layer shows the test interface tested the applications client, the method further includes:
Obtain the characteristic parameter for the second display interface that the terminal top layer shows;
Judge whether second display interface is abnormal pop-up interface according to the characteristic parameter of second display interface;
In the case where it is the abnormal pop-up interface to judge second display interface, second display interface is closed.
7. according to the method described in claim 1, it is characterized in that, first display for obtaining the terminal top layer and showing
The characteristic parameter at interface includes at least one of:
The characteristic parameter for the first display interface that the terminal top layer shows is obtained at the time of specified;
The characteristic parameter for the first display interface that the terminal top layer shows is obtained between two adjacent test operations,
In, the test operation of required execution is multiple during carrying out the test to the applications client to be measured;
The characteristic parameter for the first display interface that the terminal top layer shows is obtained every the preset period.
8. a kind of processing unit of display interface, which is characterized in that including:
During for being tested applications client to be measured in terminal, it is most upper to obtain the terminal for acquisition module
The characteristic parameter of first display interface of layer display;
Judgment module, for judging whether first display interface is abnormal according to the characteristic parameter of first display interface
Pop-up interface;
Closedown module, in the case where it is the abnormal pop-up interface to judge first display interface, described in closing
First display interface;
Display module, for showing the test interface tested the applications client in the terminal top layer.
9. device according to claim 8, which is characterized in that the judgment module includes:
Judging unit, for according to the transparency value of first display interface or according to the transparency value and described the
One display interface area shared on the screen of the terminal, judges whether first display interface is abnormal pop-up circle
Face.
10. device according to claim 9, which is characterized in that the judging unit includes:
Judgment sub-unit, for judging whether the transparency value of first display interface is greater than or equal to the first default threshold
Value;When the transparency value of first display interface is greater than or equal to first predetermined threshold value, described first is judged
Display interface is abnormal pop-up interface.
11. device according to claim 9, which is characterized in that the judging unit includes:
Judgment sub-unit, for judging whether the transparency value of first display interface is greater than or equal to the first default threshold
Value and whether first display interface area shared on the screen of the terminal is less than or equal to the second predetermined threshold value;
It is greater than or equal to first predetermined threshold value in the transparency value of first display interface and first display interface exists
When shared area is less than or equal to second predetermined threshold value on the screen of the terminal, first display interface is judged
For abnormal pop-up interface.
12. device according to claim 8, which is characterized in that the closedown module includes:
Recognition unit, for identification option of operation in first display interface, wherein the option of operation include one or
Multiple options;
Searching unit, for searching mesh corresponding with the targets option in the option of operation in the process instruction set of storage
Mark process instruction, wherein the target process instruction, which is used to indicate, closes first display interface;
Closing unit, for closing first display interface according to the target process instruction.
13. device according to claim 8, which is characterized in that
The acquisition module is additionally operable to:Obtain the characteristic parameter for the second display interface that the terminal top layer shows;
The judgment module is additionally operable to:Whether judge second display interface according to the characteristic parameter of second display interface
For abnormal pop-up interface;
The closedown module is additionally operable to:In the case where it is the abnormal pop-up interface to judge second display interface, close
Close second display interface.
14. device according to claim 8, which is characterized in that the acquisition module includes:
Acquiring unit obtains the feature ginseng for the first display interface that the terminal top layer shows at the time of specified
Number;The characteristic parameter for the first display interface that the terminal top layer shows is obtained between two adjacent test operations,
In, the test operation of required execution is multiple during carrying out the test to the applications client to be measured;Every
The preset period obtains the characteristic parameter for the first display interface that the terminal top layer shows.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710081534.5A CN108427633B (en) | 2017-02-15 | 2017-02-15 | Display interface processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710081534.5A CN108427633B (en) | 2017-02-15 | 2017-02-15 | Display interface processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108427633A true CN108427633A (en) | 2018-08-21 |
CN108427633B CN108427633B (en) | 2021-08-06 |
Family
ID=63155398
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710081534.5A Active CN108427633B (en) | 2017-02-15 | 2017-02-15 | Display interface processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108427633B (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110032510A (en) * | 2019-03-07 | 2019-07-19 | 深圳市腾讯信息技术有限公司 | The test method and device of application |
CN110457214A (en) * | 2019-07-30 | 2019-11-15 | 腾讯科技(深圳)有限公司 | Application testing method and device, electronic equipment |
CN110580221A (en) * | 2019-08-21 | 2019-12-17 | 东软集团股份有限公司 | Control testing method and device, storage medium and electronic equipment |
CN110751013A (en) * | 2019-08-19 | 2020-02-04 | 腾讯科技(深圳)有限公司 | Scene recognition method, device and computer-readable storage medium |
CN110795333A (en) * | 2018-11-07 | 2020-02-14 | 北京安天网络安全技术有限公司 | Method, device and storage equipment for enabling program to run uninterruptedly |
CN110851299A (en) * | 2019-11-15 | 2020-02-28 | 深圳前海微众银行股份有限公司 | Automatic flow exception eliminating method, device, equipment and storage medium |
CN111125433A (en) * | 2019-12-13 | 2020-05-08 | 珠海格力电器股份有限公司 | Popup window management method and device, electronic equipment and readable storage medium |
CN111767203A (en) * | 2019-04-01 | 2020-10-13 | 北京奇虎科技有限公司 | Application test-based bullet frame processing method and system |
CN111966562A (en) * | 2020-07-21 | 2020-11-20 | 北京视博云信息技术有限公司 | Monitoring method and device of cloud platform and readable storage medium |
CN112073579A (en) * | 2020-08-27 | 2020-12-11 | 北京指掌易科技有限公司 | Terminal operation playback processing method and device, terminal equipment and storage medium |
CN112099885A (en) * | 2020-08-17 | 2020-12-18 | 联想(北京)有限公司 | Popup window processing method and device, equipment and storage medium |
CN112988568A (en) * | 2021-02-04 | 2021-06-18 | 上海硬通网络科技有限公司 | Game testing method and device and electronic equipment |
CN113536870A (en) * | 2020-07-09 | 2021-10-22 | 腾讯科技(深圳)有限公司 | Abnormal head portrait identification method and device |
CN113900750A (en) * | 2021-09-26 | 2022-01-07 | 珠海豹好玩科技有限公司 | Method and device for determining window interface boundary, storage medium and electronic equipment |
CN115185789A (en) * | 2022-09-08 | 2022-10-14 | 深圳数鉴科技有限公司 | Popup data analysis method and system |
CN117149340A (en) * | 2023-10-30 | 2023-12-01 | 北京小米移动软件有限公司 | USIM card application interface display method and device and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040125149A1 (en) * | 2002-12-30 | 2004-07-01 | Eugene Lapidous | Method and apparatus for managing display of popup windows |
CN102819713A (en) * | 2012-06-29 | 2012-12-12 | 北京奇虎科技有限公司 | Method and system for detecting security of popup window |
CN103914387A (en) * | 2014-04-23 | 2014-07-09 | 广东欧珀移动通信有限公司 | Method and device for eliminating abnormal interference in Android mobile phone automated testing process |
CN105183643A (en) * | 2015-08-18 | 2015-12-23 | 惠州Tcl移动通信有限公司 | Automatic testing interference preventing method and apparatus for Android mobile terminal |
CN105320542A (en) * | 2015-11-04 | 2016-02-10 | 上海聚力传媒技术有限公司 | Method and apparatus for enabling mobile terminal to exit abnormal interface |
CN105786687A (en) * | 2014-12-22 | 2016-07-20 | 博雅网络游戏开发(深圳)有限公司 | Mobile application test method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104516812A (en) * | 2013-09-27 | 2015-04-15 | 腾讯科技(深圳)有限公司 | Method and device for testing software |
-
2017
- 2017-02-15 CN CN201710081534.5A patent/CN108427633B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040125149A1 (en) * | 2002-12-30 | 2004-07-01 | Eugene Lapidous | Method and apparatus for managing display of popup windows |
CN102819713A (en) * | 2012-06-29 | 2012-12-12 | 北京奇虎科技有限公司 | Method and system for detecting security of popup window |
CN103914387A (en) * | 2014-04-23 | 2014-07-09 | 广东欧珀移动通信有限公司 | Method and device for eliminating abnormal interference in Android mobile phone automated testing process |
CN105786687A (en) * | 2014-12-22 | 2016-07-20 | 博雅网络游戏开发(深圳)有限公司 | Mobile application test method and device |
CN105183643A (en) * | 2015-08-18 | 2015-12-23 | 惠州Tcl移动通信有限公司 | Automatic testing interference preventing method and apparatus for Android mobile terminal |
CN105320542A (en) * | 2015-11-04 | 2016-02-10 | 上海聚力传媒技术有限公司 | Method and apparatus for enabling mobile terminal to exit abnormal interface |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110795333A (en) * | 2018-11-07 | 2020-02-14 | 北京安天网络安全技术有限公司 | Method, device and storage equipment for enabling program to run uninterruptedly |
CN110032510A (en) * | 2019-03-07 | 2019-07-19 | 深圳市腾讯信息技术有限公司 | The test method and device of application |
CN110032510B (en) * | 2019-03-07 | 2022-05-20 | 深圳市腾讯信息技术有限公司 | Application testing method and device |
CN111767203A (en) * | 2019-04-01 | 2020-10-13 | 北京奇虎科技有限公司 | Application test-based bullet frame processing method and system |
CN110457214A (en) * | 2019-07-30 | 2019-11-15 | 腾讯科技(深圳)有限公司 | Application testing method and device, electronic equipment |
CN110457214B (en) * | 2019-07-30 | 2023-10-13 | 腾讯科技(深圳)有限公司 | Application testing method and device and electronic equipment |
CN110751013A (en) * | 2019-08-19 | 2020-02-04 | 腾讯科技(深圳)有限公司 | Scene recognition method, device and computer-readable storage medium |
CN110580221A (en) * | 2019-08-21 | 2019-12-17 | 东软集团股份有限公司 | Control testing method and device, storage medium and electronic equipment |
CN110851299A (en) * | 2019-11-15 | 2020-02-28 | 深圳前海微众银行股份有限公司 | Automatic flow exception eliminating method, device, equipment and storage medium |
CN111125433A (en) * | 2019-12-13 | 2020-05-08 | 珠海格力电器股份有限公司 | Popup window management method and device, electronic equipment and readable storage medium |
CN113536870A (en) * | 2020-07-09 | 2021-10-22 | 腾讯科技(深圳)有限公司 | Abnormal head portrait identification method and device |
CN111966562A (en) * | 2020-07-21 | 2020-11-20 | 北京视博云信息技术有限公司 | Monitoring method and device of cloud platform and readable storage medium |
CN112099885A (en) * | 2020-08-17 | 2020-12-18 | 联想(北京)有限公司 | Popup window processing method and device, equipment and storage medium |
CN112073579B (en) * | 2020-08-27 | 2022-06-10 | 北京指掌易科技有限公司 | Terminal operation playback processing method and device, terminal equipment and storage medium |
CN112073579A (en) * | 2020-08-27 | 2020-12-11 | 北京指掌易科技有限公司 | Terminal operation playback processing method and device, terminal equipment and storage medium |
CN112988568A (en) * | 2021-02-04 | 2021-06-18 | 上海硬通网络科技有限公司 | Game testing method and device and electronic equipment |
CN112988568B (en) * | 2021-02-04 | 2024-05-28 | 上海硬通网络科技有限公司 | Game testing method and device and electronic equipment |
CN113900750A (en) * | 2021-09-26 | 2022-01-07 | 珠海豹好玩科技有限公司 | Method and device for determining window interface boundary, storage medium and electronic equipment |
CN113900750B (en) * | 2021-09-26 | 2024-02-23 | 珠海豹好玩科技有限公司 | Method and device for determining window interface boundary, storage medium and electronic equipment |
CN115185789A (en) * | 2022-09-08 | 2022-10-14 | 深圳数鉴科技有限公司 | Popup data analysis method and system |
CN117149340A (en) * | 2023-10-30 | 2023-12-01 | 北京小米移动软件有限公司 | USIM card application interface display method and device and electronic equipment |
CN117149340B (en) * | 2023-10-30 | 2024-02-06 | 北京小米移动软件有限公司 | USIM card application interface display method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108427633B (en) | 2021-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108427633A (en) | The processing method and processing device of display interface | |
CN102945341B (en) | A kind of method and apparatus of interceptor window | |
CN104333770B (en) | The method and device of a kind of net cast | |
CN106055996A (en) | Method and mobile terminal for multimedia information sharing | |
CN107172454A (en) | A kind of video recommendation method, medium, device and computing device | |
CN110784751B (en) | Information display method and device | |
CN107509107A (en) | Method, device and equipment for detecting video playing fault and readable medium | |
CN111552633A (en) | Interface abnormal call testing method and device, computer equipment and storage medium | |
CN106657774A (en) | Method and device for recording video | |
CN112269508B (en) | Display method and device and electronic equipment | |
CN107203369A (en) | Bullet frame reminding method and device based on Android | |
CN113792341B (en) | Automatic detection method, device, equipment and medium for privacy compliance of application program | |
CN109271223A (en) | Windows switching method, device, terminal and computer readable storage medium | |
CN109191635A (en) | Objective method, apparatus and storage medium are sentenced based on face recognition technology | |
CN110471738A (en) | Method for switching theme, device, electronic equipment and the storage medium of application program | |
CN108197105B (en) | Natural language processing method, device, storage medium and electronic equipment | |
CN109408345A (en) | Operate replay method, device, computer equipment and storage medium | |
CN107404662A (en) | The method and apparatus that a kind of direct broadcasting room content is promoted | |
CN112416212B (en) | Program access method, apparatus, electronic device and readable storage medium | |
CN107437165A (en) | Smart machine event management method, device and system | |
CN105323624B (en) | A kind of methods, devices and systems of recorded video | |
CN106249995A (en) | Notification method and device | |
CN111639316B (en) | Information processing method and device for WEB page | |
CN106656735A (en) | Expression image sending method and device | |
CN106484395B (en) | Event display 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 |