CN109933530A - Components testing method and device, equipment and storage medium - Google Patents
Components testing method and device, equipment and storage medium Download PDFInfo
- Publication number
- CN109933530A CN109933530A CN201910194424.9A CN201910194424A CN109933530A CN 109933530 A CN109933530 A CN 109933530A CN 201910194424 A CN201910194424 A CN 201910194424A CN 109933530 A CN109933530 A CN 109933530A
- Authority
- CN
- China
- Prior art keywords
- image
- page
- control
- tested
- segment image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 73
- 238000000034 method Methods 0.000 claims abstract description 34
- 239000000463 material Substances 0.000 claims abstract description 22
- 238000006116 polymerization reaction Methods 0.000 claims description 5
- 235000013399 edible fruits Nutrition 0.000 claims description 4
- 238000011161 development Methods 0.000 abstract description 9
- 230000007812 deficiency Effects 0.000 abstract description 4
- 239000002699 waste material Substances 0.000 abstract description 4
- 230000018109 developmental process Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 230000005291 magnetic effect Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 235000009470 Theobroma cacao Nutrition 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 244000240602 cacao Species 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Image Analysis (AREA)
Abstract
The embodiment of the invention discloses a kind of components testing method and device, equipment and storage mediums.The described method includes: obtaining multiple Segment images of the page-images of the control page to be tested;According to the semantics recognition of each Segment image as a result, determining the corresponding control information of the control page to be tested;According to control information, components testing is carried out to the control page to be tested.The technical solution of the embodiment of the present invention, which solves, needs to develop in the prior art different programs, to obtain the control information of the page under different scenes, increase the development cost of application program, waste the technological deficiency of a large amount of manpower and material resources, realize the control information for making to obtain different scenes lower page in a like fashion, the test process of application program is simplified, while reducing the development cost of application program, saves a large amount of manpower and material resources.
Description
Technical field
The present embodiments relate to the components testing technology of level of application more particularly to a kind of components testing method and dresses
It sets, equipment and storage medium.
Background technique
As the function of intelligent mobile terminal continues to develop, matched application program emerges one after another.In order to make application program
With good performance during use, the developer of application program can use it application program is supplied to user
Before, traversal test is carried out to the control in UI each in application program (User Interface, user interface).
In the prior art, scene is traversed for different UI, needs to develop different programs and obtains under the scene each UI pages
The control tree in face, to carry out components testing.Specifically, to Native scene, WebView scene and small routine scene into
When row UI is traversed, it is necessary to develop three kinds of different programs to obtain the control tree of the UI page under corresponding scene.To AR
When (Augmented Reality, augmented reality) scene and scene of game carry out UI traversal, it is necessary to for different
Engine (such as Cocoas, Unity3D etc.) is adapted to different programs, to obtain the control tree that the engine corresponds to picture.
In the implementation of the present invention, the discovery prior art has following defects that UI traversal test program to inventor
Development cost is higher, wastes a large amount of human and material resources.And for simultaneously contain Native scene, WebView scene and
For the super application program of the several scenes such as small routine scene, the process for carrying out UI traversal test is relatively complicated.
Summary of the invention
The embodiment of the invention provides a kind of components testing method and device, equipment and storage mediums, use phase to realize
Same mode obtains the control information of different scenes lower page, simplifies the test process of application program, while reducing application
The development cost of program saves a large amount of manpower and material resources.
In a first aspect, the embodiment of the invention provides a kind of components testing methods, comprising:
Obtain multiple Segment images of the page-images of the control page to be tested;
According to the semantics recognition of each Segment image as a result, determining the corresponding control of the control page to be tested
Information;
According to the control information, components testing is carried out to the control page to be tested.
Second aspect, the embodiment of the invention provides a kind of components testing devices, comprising:
Segment image collection module, multiple Segment figures of the page-images for obtaining the control page to be tested
Picture;
Control information determining module, for according to the semantics recognition of each Segment image as a result, determine it is described to
Test the corresponding control information of the control page;
Components testing module, for carrying out components testing to the control page to be tested according to the control information.
The third aspect, the embodiment of the invention provides a kind of equipment, the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the components testing method as described in any embodiment of that present invention.
Fourth aspect, the embodiment of the invention provides a kind of storage medium comprising computer executable instructions, the meters
Calculation machine executable instruction as computer processor when being executed for executing the components testing as described in any embodiment of that present invention
Method.
The embodiment of the invention provides a kind of components testing method and device, equipment and storage mediums, by according to be measured
The semantics recognition of multiple Segment images of control page-images is tried as a result, determining the corresponding control of the control page to be tested
Information solves and needs to develop different programs in the prior art, to obtain the control information of the page under different scenes, increases
The development cost of application program, wastes the technological deficiency of a large amount of manpower and material resources, realizing makes to obtain in a like fashion not
With the control information of scene lower page, the test process of application program is simplified, while reducing the development cost of application program,
Save a large amount of manpower and material resources.
Detailed description of the invention
Fig. 1 is a kind of flow chart for components testing method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of components testing method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow chart for components testing method that the embodiment of the present invention three provides;
Fig. 4 is a kind of structure chart for components testing device that the embodiment of the present invention four provides;
Fig. 5 is a kind of structure chart for equipment that the embodiment of the present invention five provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart of a kind of components testing method that the embodiment of the present invention one provides, and the present embodiment is applicable to pair
The case where each interface UI in application program carries out components testing, this method can be executed by components testing device, the device
Can be by software and or hardware realization, which can be integrated in the equipment such as server.As shown in Figure 1, this method is specifically wrapped
Include following steps:
Multiple Segment images of the page-images of S110, the acquisition control page to be tested.
In the present embodiment, the control page to be tested specifically can be include one or more controls human-computer interaction circle
Face, such as the interface UI of application program etc..Segment image specifically refers to include the not same page in the control page to be tested
The image of face content.
Specifically, Segment image specifically can be is drawn by the page-images to the control page to be tested
Point, the operations such as cutting obtain, can also be that carrying out sliding window operation by page-images to the control page to be tested obtains.Into one
Step ground, since in the present embodiment, the control information of the control page to be tested is the semantics recognition knot according to Segment image
Fruit is determined that therefore, the acquisition methods of Segment image should make in acquired Segment image to include specific as far as possible
Picture material.That is, the Segment figure for comprising only the background colour of the control page to be tested should be avoided the occurrence of as far as possible
Picture.
S120, according to the semantics recognition of each Segment image as a result, determining that the corresponding control of the control page to be tested is believed
Breath.
In the present embodiment, after obtaining multiple Segment images of page-images of the control page to be tested, meeting
Semantics recognition operation is carried out to each Segment image, obtains the semantics recognition result of each Segment image.
It is understood that the position of the control in the different control pages to be tested, control icons size, be endless
It is identical.If each control page to be tested is respectively set the acquisition rule of different Segment images, control can be made
The process of test is excessively cumbersome;If regular using the acquisition of identical Segment image to each control page to be tested, that
May be such that include in a width Segment image multiple controls image, or only include a control imperfect figure
Picture.Therefore, after obtaining Segment image, it is also necessary to according to the content in Segment image, determine Segment figure
As corresponding control information, and then determine the corresponding control information of the control page to be tested.
Therefore, in the present embodiment, by using the semantics recognition of each Segment image as a result, to determine each page point
The corresponding control information of block image.
It specifically may is that firstly, according to the semantics recognition of Segment image as a result, determining institute in the Segment image
Including control image quantity.Illustratively, if in Segment image including semantic incoherent three sections of sentences,
Determine include in the Segment image 3 controls image, then, it is determined that this three sections of sentences semanteme it is whether complete.It will
The semantic complete corresponding image information of sentence is as a control information.By semantic incomplete sentence, with the adjacent page
The semantics recognition result of block image compares, if can form one with the sentence in adjacent Segment image completely
Sentence, then according to the image information of the incomplete sentence of the semanteme and the image information of Segment image adjacent thereto,
Determine a control information;If a complete sentence cannot be formed with the sentence in adjacent Segment image, pass through
The corresponding image information of the incomplete sentence of the semanteme is as a control information.
In the present embodiment, control information can specifically include control corresponding image model in the control page to be tested
It encloses, the corresponding picture material of control etc..
S130, according to control information, components testing is carried out to the control page to be tested.
It in the present embodiment, can be according to control information pair after obtaining the corresponding control information of the control page to be tested
The control page to be tested carries out components testing.Specifically can be, according to control information determine control mode of operation (such as click,
Fill in and click after text etc.) and image opereating specification then held in the image opereating specification in the control page to be tested
The corresponding control operation of row, and then realize the test to control.
The embodiment of the invention provides a kind of components testing methods, pass through multiple pages according to control page-images to be tested
The semantics recognition of face dividing image solves in the prior art as a result, determining the corresponding control information of the control page to be tested
It needs to develop different programs, to obtain the control information of the page under different scenes, increases the development cost of application program,
The technological deficiency for wasting a large amount of manpower and material resources, realizing believes the control for obtaining different scenes lower page in a like fashion
Breath, simplifies the test process of application program, while reducing the development cost of application program, saves a large amount of manpower object
Power.
Embodiment two
Fig. 2 is a kind of flow chart of components testing method provided by Embodiment 2 of the present invention.The present embodiment is with above-mentioned implementation
It is optimized based on example, in the present embodiment, gives a kind of Segment image embodied for determining control information
Determination method, and embody Segment image acquisition methods and Segment image picture material specific reality
Apply mode.Same as the previously described embodiments or corresponding term explains that this embodiment is not repeated.
Correspondingly, the method for the present embodiment specifically includes:
S210, to the page-images of the control page to be tested got, cut, obtained according to the classification of picture material
To multiple cutting images.
In the present embodiment, Segment image is cut particular by the page-images to the control page to be tested
It obtains.It is realized using straight-line detection technology and segmentation lines scanning technique to the control page to be tested specifically, can be
The cutting of page-images.
Further, in the present embodiment, be page-images are cut according to the classification of picture material, that is,
It says, should include a kind of picture material in each cutting image cut.Specifically, the classification of picture material can be with
Including text, icon and picture etc..
S220, according to the semantics recognition of each cutting image as a result, polymerizeing to semantic relevant cutting image, to be formed
New cutting image.
It in the present embodiment, may be by the same control when the page-images to the control page to be tested are cut
The control image of part is cut into two cutting images, that is to say, that the granularity of cutting may be relatively thin.Therefore, it is necessary to bases respectively to cut
The semantics recognition of image is cut as a result, determining whether that two or more cutting images belong to same control.Further, due to cutting
The granularity cut is thinner, therefore the case where be not in a cutting image include generally multiple control images, so, this reality
It applies and is not related to the step of dividing to cutting image further progress in example.
In the present embodiment, semantic relevant cutting image can be polymerized to new cutting image, how many organizes semantic phase
The cutting image of pass just carries out how many times converging operation.Then, cutting image polymerization obtained, and what is do not polymerize cut
Image is cut collectively as new cutting image.
Herein it should be noted that when cutting image, it is also possible to carry out the cutting of coarseness, then,
It is finally obtained to cut according to the semantics recognition for cutting obtained cutting image as a result, carrying out further division to cutting image again
Cut the cutting image that image should be the only complete image including a control entirely.Cut granularity it is thick, thin specifically can according to
The actual conditions for testing the control page determine.
S230, according to each cutting image, determine the control information of the control page to be tested.
It in the present embodiment, only include the complete of a control in each new cutting image after completing converging operation
Therefore image can obtain the information of its corresponding control, and then obtain to be measured respectively according to each new cutting image
Try the control information of the control page.
S240, according to control information, components testing is carried out to the control page to be tested.
The embodiment of the invention provides a kind of components testing method, this method embodies the page for determining control information
The determination method of face dividing image, improves the accuracy of control information, embodies further the acquisition methods of Segment image
And the picture material of Segment image improves so that including information to be identified in each Segment image
The validity of Segment image.
Embodiment three
Fig. 3 is a kind of flow chart for components testing method that the embodiment of the present invention three provides.The present embodiment is with above-mentioned implementation
It is optimized based on example, in the present embodiment, gives a kind of polymerization for embodying Segment image, embody control
The determination method of part information, and embody the specific embodiment of components testing method.It is same as the previously described embodiments or corresponding
Term explain, this embodiment is not repeated.
Correspondingly, the method for the present embodiment specifically includes:
S310, to the page-images of the control page to be tested got, cut, obtained according to the classification of picture material
To multiple cutting images.
S320, according to the semantics recognition of each cutting image as a result, and the adjacent image regions between cutting image region
Feature polymerize semantic relevant cutting image, to form new cutting image.
In the present embodiment, while with the region of the adjacent image regions between semantics recognition result and cutting image spy
Sign, as the Rule of judgment whether being polymerize.It is understood that in order to occupy the area in the page, control as little as possible
Word content in image is generally more succinct, understands as long as user can see, sometimes complete even without expression one
Semanteme.Further, many times, the relevant control of function, which can be adjacent to, appears in the same page, therefore, if only root
Determine whether two adjacent cutting images are polymerize, and there may come a time when to judge mistake according to semantic.
So the provincial characteristics of the adjacent image regions between cutting image is introduced in the present embodiment, as further
Judge whether to the condition of polymerization.It is understood that the image at each text included in a control image is special
Sign is usually identical, for example, the background color in a control image everywhere is generally consistent, each font color for including
It is typically also identical.So further can accurately be sentenced according to the provincial characteristics of the adjacent image regions between cutting image
It is fixed whether to be polymerize.
Specifically, if the semantic relevancy of two cutting images is higher, and the provincial characteristics phase of adjacent image regions
With (such as background color is identical, font sample form and aspect are same), then it can determine that this two cutting images correspond to same control, so
It needs to carry out converging operation to this two cutting images;If the semantic relevancy of two cutting images is higher, and adjacent image
The provincial characteristics in region is different, then can determine this two cutting images and the same control of non-corresponding, thus do not need by this two
Cutting image is opened to be polymerize.
S330, by each cutting image, be identified as different control images.
S340, respectively according to each control image, determine the control information of the control page to be tested, wherein control information packet
Include the image coordinate range of control image.
In the present embodiment, control information is specially the image coordinate range for including control image, wherein image coordinate model
The image coordinate range that specifically can be cutting image is enclosed, the coordinate range of the picture material in cutting image is also possible to.Tool
For body, the determination of image coordinate range should ensure that the effective operation image range for being equal to or less than corresponding control, to guarantee it
The test of control can be correctly carried out afterwards.
S350, the clicking operation for successively simulating any image coordinate points within the scope of each image coordinate, to control to be tested
The page carries out components testing.
In the present embodiment, each control in the control information for determining the control page to be tested, i.e., the control page to be tested
After corresponding image coordinate range, successively each control can be tested.It is sat particular by the corresponding image of each control
It marks any image coordinate points in range and carries out clicking operation, to test the control whether can be by normal call.
The embodiment of the invention provides a kind of components testing method, this method embodies the polymerization of cutting image,
Cutting image and the one-to-one accuracy of control are improved, the determination method of control information is embodied, improves control letter
The accuracy of breath embodies further components testing method, improves the validity that components testing is carried out to the control page to be tested.
On the basis of the various embodiments described above, by according to the semantics recognition of each Segment image as a result, and the page point
The provincial characteristics of adjacent image regions between block image polymerize semantic relevant Segment image, to be formed newly
Segment image, is embodied as: according to the semantics recognition of each Segment image as a result, semantic relevancy is greater than setting threshold
The adjacent page block image of value is determined as an image group to be polymerized;If Segment image in image group to be polymerized
The domain color of adjacent area is identical, then polymerize the Segment image in the image group to be polymerized, to form new page
Face dividing image.
The benefit being arranged in this way is: " provincial characteristics of adjacent image regions " are embodied as " the main face of adjacent area
Color ", at the same introduce for judge between cutting image it is semantic whether relevant given threshold, can be further improved cutting drawing
Picture and the one-to-one accuracy of control.
Example IV
Fig. 4 is a kind of structure chart for components testing device that the embodiment of the present invention four provides, and the present embodiment is in above-mentioned each reality
On the basis of applying example, the embodiment of " components testing method " is provided.Same as the previously described embodiments or corresponding term explanation,
This embodiment is not repeated.
As shown in figure 4, described device include: Segment image collection module 401, control information determining module 402 with
And components testing module 403, in which:
Segment image collection module 401, multiple pages point of the page-images for obtaining the control page to be tested
Block image;
Control information determining module 402, for the semantics recognition according to each Segment image as a result, determining control to be tested
The corresponding control information of the part page;
Components testing module 403, for carrying out components testing to the control page to be tested according to control information.
The embodiment of the invention provides a kind of components testing device, which passes through Segment image collection module first
401 obtain multiple Segment images of the page-images of the control page to be tested, then pass through control information determining module 402
According to the semantics recognition of each Segment image as a result, the corresponding control information of the control page to be tested is determined, finally by control
Part test module 403 carries out components testing according to control information, to the control page to be tested.
Which solves needing to develop different programs in the prior art, to obtain the control of the page under different scenes
Information increases the development cost of application program, wastes the technological deficiency of a large amount of manpower and material resources, realizes and uses identical side
Formula obtains the control information of different scenes lower page, simplifies the test process of application program, while reducing application program
Development cost saves a large amount of manpower and material resources.
On the basis of the various embodiments described above, control information determining module 402 may include:
Image polymerized unit, for the semantics recognition according to each Segment image as a result, to the semantic relevant page point
Block image is polymerize, to form new Segment image;
Page control information determination unit, for determining the control of the control page to be tested according to each Segment image
Information.
On the basis of the various embodiments described above, image polymerized unit specifically can be used for:
According to the semantics recognition of each Segment image as a result, and the adjacent image regions between Segment image area
Characteristic of field polymerize semantic relevant Segment image, to form new Segment image.
On the basis of the various embodiments described above, image polymerized unit may include:
Image group to be polymerized determines subelement, for the semantics recognition according to each Segment image as a result, by semantic phase
The adjacent page block image that Guan Du is greater than given threshold is determined as an image group to be polymerized;
Segment image re-forms unit, if the adjacent region for the Segment image in image group to be polymerized
The domain color in domain is identical, then polymerize the Segment image in the image group to be polymerized, to form new Segment
Image.
On the basis of the various embodiments described above, page control information determination unit may include:
Control image determines subelement, for being identified as different control images for each Segment image;
Information determines subelement, for determining the control information of the control page to be tested respectively according to each control image.
On the basis of the various embodiments described above, control information may include:
The image coordinate range of control image;
Correspondingly, components testing module 403 specifically can be used for:
The clicking operation for successively simulating any image coordinate points within the scope of each image coordinate, to the control page to be tested into
Row components testing.
On the basis of the various embodiments described above, Segment image collection module 401 specifically can be used for:
It to the page-images of the control page to be tested got, is cut, is obtained more according to the classification of picture material
A cutting image.
On the basis of the various embodiments described above, the classification of picture material may include: text, icon and picture.
Control side provided by any embodiment of the invention can be performed in components testing device provided by the embodiment of the present invention
Method has the corresponding functional module of execution method and beneficial effect.The not technical detail of detailed description in the present embodiment, can join
See the components testing method that any embodiment of that present invention provides.
Embodiment five
Fig. 5 is a kind of structural schematic diagram for equipment that the embodiment of the present invention 5 provides.Fig. 5, which is shown, to be suitable for being used to realizing this
The block diagram of the example devices 12 of invention embodiment.The equipment 12 that Fig. 5 is shown is only an example, should not be to of the invention real
The function and use scope for applying example bring any restrictions.
As shown in figure 5, equipment 12 is showed in the form of universal computing device.The component of equipment 12 may include but unlimited
In one or more processor or processing unit 16, system storage 28, connecting different system components, (including system is deposited
Reservoir 28 and processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment 12
The usable medium of access, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 30 and/or cache memory 32.Equipment 12 may further include it is other it is removable/nonremovable,
Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing irremovable
, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 5, use can be provided
In the disc driver read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to removable anonvolatile optical disk
The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can
To be connected by one or more data media interfaces with bus 18.System storage 28 may include that at least one program produces
Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each
The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store and store in such as system
In device 28, such program module 42 includes but is not limited to operating system, one or more application program, other program modules
And program data, it may include the realization of network environment in each of these examples or certain combination.Program module 42
Usually execute the function and/or method in embodiment described in the invention.
Equipment 12 can also be communicated with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.),
Can also be enabled a user to one or more equipment interacted with the equipment 12 communication, and/or with enable the equipment 12 with
One or more of the other any equipment (such as network interface card, modem etc.) communication for calculating equipment and being communicated.It is this logical
Letter can be carried out by input/output (I/O) interface 22.Also, equipment 12 can also by network adapter 20 and one or
The multiple networks of person (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown,
Network adapter 20 is communicated by bus 18 with other modules of equipment 12.It should be understood that although not shown in the drawings, can combine
Equipment 12 use other hardware and/or software module, including but not limited to: microcode, device driver, redundant processing unit,
External disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and
Data processing, such as realize components testing method provided by the embodiment of the present invention.Namely: obtain the page of the control page to be tested
Multiple Segment images of face image;According to the semantics recognition of each Segment image as a result, determination is described to be tested
The corresponding control information of the control page;According to the control information, components testing is carried out to the control page to be tested.
Embodiment six
The embodiment of the present invention six additionally provides a kind of computer readable storage medium, is stored thereon with computer program,
It is characterized in that, the components testing method as described in any embodiment of that present invention is realized when which is executed by processor.Namely: it obtains
Take multiple Segment images of the page-images of the control page to be tested;According to the semantics recognition of each Segment image
As a result, determining the corresponding control information of the control page to be tested;According to the control information, to the control page to be tested
Face carries out components testing.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool
There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service
It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (11)
1. a kind of components testing method characterized by comprising
Obtain multiple Segment images of the page-images of the control page to be tested;
According to the semantics recognition of each Segment image as a result, determining the corresponding control letter of the control page to be tested
Breath;
According to the control information, components testing is carried out to the control page to be tested.
2. the method according to claim 1, wherein according to the semantics recognition knot of each Segment image
Fruit determines the corresponding control information of the control page to be tested, comprising:
According to the semantics recognition of each Segment image as a result, gathering to the semantic relevant Segment image
It closes, to form new Segment image;
According to each Segment image, the control information of the control page to be tested is determined.
3. according to the method described in claim 2, it is characterized in that, according to the semantics recognition knot of each Segment image
Fruit polymerize the semantic relevant Segment image, to form new Segment image, specifically includes:
According to the semantics recognition of each Segment image as a result, and the adjacent image regions between the Segment image
Provincial characteristics, semantic relevant Segment image is polymerize, to form new Segment image.
4. according to the method described in claim 3, it is characterized in that, according to the semantics recognition knot of each Segment image
The provincial characteristics of adjacent image regions between fruit and the Segment image, to semantic relevant Segment image into
Row polymerization, to form new Segment image, comprising:
According to the semantics recognition of each Segment image as a result, semantic relevancy to be greater than to the adjacent page point of given threshold
Block image is determined as an image group to be polymerized;
If the domain color of the adjacent area of the Segment image in image group to be polymerized is identical, by the image group to be polymerized
In Segment image polymerize, to form new Segment image.
5. according to the method described in claim 2, it is characterized in that, being determined described to be measured according to each Segment image
Try the control information of the control page, comprising:
By each Segment image, it is identified as different control images;
Respectively according to each control image, the control information of the control page to be tested is determined.
6. according to the method described in claim 5, it is characterized in that, the control information includes:
The image coordinate range of control image;
Correspondingly, according to the control information, components testing is carried out to the control page to be tested, comprising:
The clicking operation for successively simulating any image coordinate points in each described image coordinate range, to the control page to be tested
Face carries out components testing.
7. method according to claim 1 to 6, which is characterized in that obtain the page figure of the control page to be tested
Multiple Segment images of picture, comprising:
It to the page-images of the control page to be tested got, is cut according to the classification of picture material, obtains multiple cut
Cut image.
8. the method according to the description of claim 7 is characterized in that the classification of described image content includes: text, icon and figure
Piece.
9. a kind of components testing device characterized by comprising
Segment image collection module, multiple Segment images of the page-images for obtaining the control page to be tested;
Control information determining module, for the semantics recognition according to each Segment image as a result, determination is described to be tested
The corresponding control information of the control page;
Components testing module, for carrying out components testing to the control page to be tested according to the control information.
10. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as components testing method described in any one of claims 1-8.
11. a kind of storage medium comprising computer executable instructions, the computer executable instructions are by computer disposal
For executing such as components testing method described in any one of claims 1-8 when device executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910194424.9A CN109933530A (en) | 2019-03-14 | 2019-03-14 | Components testing method and device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910194424.9A CN109933530A (en) | 2019-03-14 | 2019-03-14 | Components testing method and device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109933530A true CN109933530A (en) | 2019-06-25 |
Family
ID=66987185
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910194424.9A Pending CN109933530A (en) | 2019-03-14 | 2019-03-14 | Components testing method and device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109933530A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110750463A (en) * | 2019-10-29 | 2020-02-04 | 百度在线网络技术(北京)有限公司 | Applet testing method, device, system, equipment and medium |
CN111026648A (en) * | 2019-11-21 | 2020-04-17 | 汉海信息技术(上海)有限公司 | Application program page testing method and device, electronic equipment and storage medium |
CN112150464A (en) * | 2020-10-23 | 2020-12-29 | 腾讯科技(深圳)有限公司 | Image detection method and device, electronic equipment and storage medium |
CN112860535A (en) * | 2019-11-12 | 2021-05-28 | 百度在线网络技术(北京)有限公司 | User page testing method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853654A (en) * | 2012-11-30 | 2014-06-11 | 国际商业机器公司 | Method and device for selecting webpage testing paths |
CN104252410A (en) * | 2013-06-27 | 2014-12-31 | 阿里巴巴集团控股有限公司 | Method and equipment for testing control in page |
US20170186144A1 (en) * | 2015-12-28 | 2017-06-29 | Powerchip Technology Corporation | Method, image processing system and computer-readable recording medium for item defect inspection |
CN109035256A (en) * | 2018-06-28 | 2018-12-18 | 百度在线网络技术(北京)有限公司 | User interface image cutting method, device, server and storage medium |
CN109447990A (en) * | 2018-10-22 | 2019-03-08 | 北京旷视科技有限公司 | Image, semantic dividing method, device, electronic equipment and computer-readable medium |
-
2019
- 2019-03-14 CN CN201910194424.9A patent/CN109933530A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853654A (en) * | 2012-11-30 | 2014-06-11 | 国际商业机器公司 | Method and device for selecting webpage testing paths |
CN104252410A (en) * | 2013-06-27 | 2014-12-31 | 阿里巴巴集团控股有限公司 | Method and equipment for testing control in page |
US20170186144A1 (en) * | 2015-12-28 | 2017-06-29 | Powerchip Technology Corporation | Method, image processing system and computer-readable recording medium for item defect inspection |
CN109035256A (en) * | 2018-06-28 | 2018-12-18 | 百度在线网络技术(北京)有限公司 | User interface image cutting method, device, server and storage medium |
CN109447990A (en) * | 2018-10-22 | 2019-03-08 | 北京旷视科技有限公司 | Image, semantic dividing method, device, electronic equipment and computer-readable medium |
Non-Patent Citations (1)
Title |
---|
陆泉等: "《图像语义信息可视化交互研究》", 31 July 2015, 国防图书馆出版社 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110750463A (en) * | 2019-10-29 | 2020-02-04 | 百度在线网络技术(北京)有限公司 | Applet testing method, device, system, equipment and medium |
CN110750463B (en) * | 2019-10-29 | 2023-06-23 | 百度在线网络技术(北京)有限公司 | Method, device, system, equipment and medium for testing small program |
CN112860535A (en) * | 2019-11-12 | 2021-05-28 | 百度在线网络技术(北京)有限公司 | User page testing method and device, electronic equipment and storage medium |
CN112860535B (en) * | 2019-11-12 | 2023-09-15 | 百度在线网络技术(北京)有限公司 | User page testing method and device, electronic equipment and storage medium |
CN111026648A (en) * | 2019-11-21 | 2020-04-17 | 汉海信息技术(上海)有限公司 | Application program page testing method and device, electronic equipment and storage medium |
CN112150464A (en) * | 2020-10-23 | 2020-12-29 | 腾讯科技(深圳)有限公司 | Image detection method and device, electronic equipment and storage medium |
CN112150464B (en) * | 2020-10-23 | 2024-01-30 | 腾讯科技(深圳)有限公司 | Image detection method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109933530A (en) | Components testing method and device, equipment and storage medium | |
CN107506300B (en) | User interface testing method, device, server and storage medium | |
US8026920B2 (en) | Extensible visual effects on active content in user interfaces | |
CN109614625A (en) | Determination method, apparatus, equipment and the storage medium of the title text degree of correlation | |
CN109086203A (en) | The detection method and device of the page | |
CN109784369A (en) | H5 page test method and device, electronic equipment, storage medium | |
CN109726136A (en) | Test method, device, equipment and the storage medium of database | |
CN109474847A (en) | Searching method, device, equipment and storage medium based on video barrage content | |
CN109815147A (en) | Test cases generation method, device, server and medium | |
US10956747B2 (en) | Creating sparsely labeled video annotations | |
CN108874665A (en) | A kind of test result method of calibration, device, equipment and medium | |
CN108932323A (en) | Determination method, apparatus, server and the storage medium of entity answer | |
CN109408834A (en) | Auxiliary machinery interpretation method, device, equipment and storage medium | |
CN110427586A (en) | A kind of page display method, device, equipment and storage medium | |
CN110515758A (en) | A kind of Fault Locating Method, device, computer equipment and storage medium | |
CN110134869A (en) | A kind of information-pushing method, device, equipment and storage medium | |
CN109657127A (en) | A kind of answer acquisition methods, device, server and storage medium | |
CN108399128A (en) | A kind of generation method of user data, device, server and storage medium | |
Arcaini et al. | ROBY: a tool for robustness analysis of neural network classifiers | |
CN117058421A (en) | Multi-head model-based image detection key point method, system, platform and medium | |
US10878804B2 (en) | Voice controlled keyword generation for automated test framework | |
CN110427293A (en) | Application processing method, device, equipment and medium | |
US10318144B2 (en) | Providing force input to an application | |
CN109062973A (en) | A kind of method for digging, device, server and the storage medium of question and answer resource | |
CN111125564A (en) | Thermodynamic diagram generation method and device, computer equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190625 |
|
RJ01 | Rejection of invention patent application after publication |