CN106502891B - The automatic testing method and device of user interface - Google Patents
The automatic testing method and device of user interface Download PDFInfo
- Publication number
- CN106502891B CN106502891B CN201610913162.3A CN201610913162A CN106502891B CN 106502891 B CN106502891 B CN 106502891B CN 201610913162 A CN201610913162 A CN 201610913162A CN 106502891 B CN106502891 B CN 106502891B
- Authority
- CN
- China
- Prior art keywords
- user interface
- information
- interface
- similarity
- screenshot
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
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 automatic testing method of user interface and devices.The automatic testing method of the user interface includes: to render according to user interface information and show user interface corresponding to the user interface information;Obtain the interface screenshot of the user interface;The similarity between the interface screenshot and normal pictures is calculated, and the similarity is compared with preset similarity threshold, if the similarity is greater than the similarity threshold, confirms that the user interface is correct, otherwise, generates interface error message.Using the present invention, it can be realized and automatic detection is carried out to user interface, to improve the efficiency and accuracy of the process detected to user interface.
Description
Technical field
The present invention relates to the automatic testing methods and device of field of computer technology more particularly to a kind of user interface.
Background technique
At present in IT industry, exploitation meet the customized demand of user user interface (UI, User Interface) it
Before, the user interface of a public version is generally first developed, then carry out meeting the customized demand of user in the public affairs version user interface
Modification is (such as: increasing some entry perhaps deleted in public version user interface or modify some entry in public version user interface
In character string etc.).Since these modifications carry out in the same public version user interface code, it is easy to appear to boundary
Face code block control it is incomplete, cause certain modification to be modified together together with public version user interface code, thus a certain user into
Capable modification appears in the phenomenon in the user interface of another user.Public version user interface code, which is modified, easily causes software
Mistake collapse etc..Therefore, in order to avoid this since public version user interface code is modified what brought software error collapsed
Phenomenon nowadays detects public version user interface using the method for artificial detection, the detection process inefficiency, and is easy
There is the phenomenon that missing inspection, false retrieval.
Summary of the invention
The present invention proposes the automatic testing method and device of a kind of user interface, can be realized and carries out automatically to user interface
Change detection, to improve the efficiency and accuracy of the process detected to user interface.
A kind of automatic testing method of user interface provided by the invention, specifically includes:
According to user interface information, renders and show user interface corresponding to the user interface information;
Obtain the interface screenshot of the user interface;
Calculate the similarity between the interface screenshot and normal pictures, and by the similarity and preset similarity threshold
Value is compared, if the similarity is greater than the similarity threshold, confirms that the user interface is correct, otherwise, generates boundary
Face error message.
Further, it described according to user interface information, renders and shows use corresponding to the user interface information
Before the interface of family, further includes:
It is read from configuration file and obtains user interface information;Alternatively,
Interface information acquisition request is sent to display control unit, and receives user circle that the display control unit returns
Face information.
It further, include custom-configuring information in the user interface information;
It is then described according to user interface information, it renders and shows user interface corresponding to the user interface information, have
Body includes:
According to the user interface information, user corresponding with the user interface information is obtained from software to be detected
Interface;
Custom-configure information according in the user interface information, by the user interface with it is described from
Configuration information is corresponding custom-configures deletion for definition;
The user interface after custom-configuring described in deletion, which renders in display screen, to be shown.
Further, the similarity calculated between the interface screenshot and normal pictures, and by the similarity with
Preset similarity threshold is compared, if the similarity is greater than the similarity threshold, is confirming the user interface just
Really, otherwise, interface error message is generated, is specifically included:
It calculates each pixel in the interface screenshot and the color difference of the corresponding pixel in the normal pictures is poor
Value, and count number of the color difference difference greater than the pixel of preset color difference threshold;
The ratio of the pixel sum in number and the interface screenshot obtained according to statistics obtains similarity;
The similarity is compared with the similarity threshold, if the similarity is greater than the similarity threshold,
It then determines that the user interface is correct, otherwise, generates the interface error message.
Further, the user interface information includes interface identifier and interface routing information.
Correspondingly, it the present invention also provides a kind of automatic detection device of user interface, specifically includes:
User interface display module, for according to user interface information, rendering and showing that the user interface information institute is right
The user interface answered;
Interface screenshot obtains module, for obtaining the interface screenshot of the user interface;And
Compare detection module, for calculating the similarity between the interface screenshot and normal pictures, and will be described similar
Degree is compared with preset similarity threshold, if the similarity is greater than the similarity threshold, confirms user circle
Face is correct, otherwise, generates interface error message.
Further, the automatic detection device of the user interface, further includes:
Interface information read module, for being read from configuration file and obtaining user interface information;Alternatively,
Interface information receiving module for sending interface information acquisition request to display control unit, and receives described aobvious
Show the user interface information that control device returns.
It further, include custom-configuring information in the user interface information;
The user interface display module, specifically includes:
User interface obtaining unit, for being obtained from software to be detected and the use according to the user interface information
The corresponding user interface of family interface information;
Deletion unit is custom-configured, it, will for custom-configuring information according in the user interface information
Custom-configure that information is corresponding to custom-configure deletion with described in the user interface;And
Interface render display unit, for will delete described in custom-configure after the user interface render to display screen
Middle display.
Further, the relatively detection module, specifically includes:
Difference pixel statistic unit, for calculating in each pixel in the interface screenshot and the normal pictures
Corresponding pixel color difference difference, and count the color difference difference greater than preset color difference threshold pixel number;
Similarity obtaining unit, the ratio of the pixel sum in number and the interface screenshot for being obtained according to statistics
Example obtains similarity;And
Similarity judging unit, for the similarity to be compared with the similarity threshold, if the similarity
Greater than the similarity threshold, it is determined that the user interface is correct, otherwise, generates the interface error message.
Further, the user interface information includes interface identifier and interface routing information.
The invention has the following beneficial effects:
The automatic testing method and device of user interface provided by the invention, due to passing through equipment according to user interface information
The switching and display for automatically controlling user interface, and intercept the interface screenshot of the user interface automatically, by the interface screenshot with
Normal pictures are compared, therefore be can be realized and carried out automatic detection to user interface, are carried out to improve to user interface
The efficiency and accuracy of the process of detection, while reducing cost of labor.
Detailed description of the invention
Fig. 1 is the flow diagram of one embodiment of the automatic testing method of user interface provided by the invention;
Fig. 2 be an interface screenshot in the automatic testing method of user interface provided by the invention in one embodiment and
The schematic diagram of corresponding normal pictures;
Fig. 3 is the structural schematic diagram of one embodiment of the automatic detection device of user interface provided by the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
It is the flow diagram of one embodiment of the automatic testing method of user interface provided by the invention referring to Fig. 1,
It is specific as follows including step S11 to S13:
S11: it according to user interface information, renders and shows user interface corresponding to the user interface information;
S12: the interface screenshot of the user interface is obtained;
S13: calculating the similarity between the interface screenshot and normal pictures, and by the similarity to it is preset similar
Degree threshold value is compared, if the similarity is greater than the similarity threshold, confirms that the user interface is correct, otherwise, raw
At interface error message.
It should be noted that in embodiments of the present invention, after installing software, control switches and shows software equipment
In different user interface, and obtain corresponding user interface screenshot, then, by the user interface screenshot of acquisition with it is corresponding
Normal pictures are compared, if the similarity of user interface screenshot and normal pictures is high, confirm that the user interface is correct, no
Then, confirm the user interface mistake, and generate corresponding interface error message.
In a preferred embodiment, equipment obtains user interface information after installing software to be detected, and
According to the user interface information, user interface corresponding with the user interface information is obtained from the software to be detected, and will
User interface rendering and display are into the display screen of equipment.Then, equipment starts screenshot function, obtains the boundary of the user interface
Face screenshot.Finally, equipment calculates the similarity between the interface screenshot and corresponding normal pictures, and by the similarity and in advance
If similarity threshold be compared, if the similarity be greater than the similarity threshold, confirm that user interface detected is correct,
Otherwise, this confirms user interface mistake detected, and generates corresponding interface error message, and the interface error message is sent out
It send to corresponding responsible person, so that responsible person is after receiving the interface error message according to the interface error message pair
User interface detected is repaired.Wherein, normal pictures preset and are stored in equipment, and each normal pictures point
It is not corresponding with a user interface in software to be detected.Equipment before interface screenshot is compared with normal pictures,
Normal pictures corresponding with user interface to be detected are read according to user interface information.
It particularly, include testing host and host computer in equipment, the above method can be common by testing host and host computer
It completes.When carrying out software burning using USB flash disk mode, if testing host has detected that USB flash disk is connected to the machine, automatic burning should
Program in USB flash disk, so that software to be detected is burned onto the machine.After the completion of burning, testing host is from USB flash disk or host computer
Middle acquisition user interface information, to be rendered according to the user interface information and show corresponding user circle in software to be detected
Face.Then, testing host notice host computer is completed user interface and shows, and corresponding user interface information is sent to upper
Machine, so that intercepting host computer by way of the LVDS signal in crawl testing host obtains interface screenshot, and according to reception
The user interface information of acquisition finds corresponding normal pictures.Finally, host computer calculates the normal pictures and intercepts acquisition
Similarity between the screenshot of interface, and the similarity is compared with preset similarity threshold, it is somebody's turn to do if the similarity is greater than
Similarity threshold then confirms that user interface detected is correct, does not deal with, and otherwise, confirms user interface mistake detected,
Corresponding interface error message is generated, and the interface error message is sent to corresponding responsible person, so that the responsible person
It is modified according to the interface error message to user interface detected.It is understood that testing host can also use
Other modes carry out software burning, such as the program of software to be detected is obtained by network transmission, serial communication mode, thus will
Software to be detected is burned onto the machine.
Due to automatically controlling the switching and display of user interface according to user interface information by equipment, and intercept automatically
The interface screenshot is compared by the interface screenshot of the user interface with normal pictures, thus can be realized to user interface into
Row automatic detection to improve the efficiency and accuracy of the process detected to user interface, while reducing cost of labor.
Further, it described according to user interface information, renders and shows use corresponding to the user interface information
Before the interface of family, further includes:
It is read from configuration file and obtains user interface information;Alternatively,
Interface information acquisition request is sent to display control unit, and receives user circle that the display control unit returns
Face information.
It should be noted that equipment needs before being rendered according to user interface information and showing corresponding user interface
From obtaining user interface information in configuration file or from display control unit.User interface information can be read by equipment
Information acquisition in configuration file, can also be by equipment transmission interface information acquisition request to display control unit, and receives
The information acquisition that display control unit returns.
Particularly, the embodiment of the present invention can also be completed jointly by testing host and host computer.When will be to using USB flash disk mode
When inspection software is burned onto testing host, configuration file is pre-stored in USB flash disk, therefore testing host can be by reading USB flash disk
In configuration file obtain user interface information, can also be by sending interface information acquisition request to host computer, and receive
The information acquisition that position machine is returned by communication modes such as IIC or serial ports.It is understood that testing host can also pass through net
The modes such as network transmission, serial communication obtain configuration file.
It is preferably carried out in mode at another, includes custom-configuring information in the user interface information;
It is then described according to user interface information, it renders and shows user interface corresponding to the user interface information, have
Body includes:
According to the user interface information, user corresponding with the user interface information is obtained from software to be detected
Interface;
Custom-configure information according in the user interface information, by the user interface with it is described from
Configuration information is corresponding custom-configures deletion for definition;
The user interface after custom-configuring described in deletion, which renders in display screen, to be shown.
It should be noted that when further including the customized generation of user in user interface when custom-configuring, by the use
Family interface renders in display screen before display, it is also necessary to will custom-configure deletion in the user interface.Work as user interface
In further include when custom-configuring include that this custom-configures and corresponding custom-configures information in user interface information.If
It is standby according to user interface information after obtaining user interface corresponding with the user interface information in software to be detected, root
Information is custom-configured by the deletion that custom-configures in the user interface according in the user interface information, and certainly by the deletion
Definition is rendered in display screen with the user interface postponed and is shown.
For example, including an entry by the customized addition of a certain user, then user interface information in a certain user interface
In include the entry entry information (such as: the ID of the entry).Equipment obtained from software to be tested the user interface it
Afterwards, the entry is deleted according to the entry information in the user interface information from user interface, and the entry will be deleted
User interface is rendered in display screen and is shown.
Due to by the way that deletion will be custom-configured in user interface, to guarantee in user interface when being detected
It is configured to original configuration, so as to detect the user interface correctness by way of being compared with normal pictures, because
This can be further ensured that the correctness of testing result.
Further, the similarity calculated between the interface screenshot and normal pictures, and by the similarity with
Preset similarity threshold is compared, if the similarity is greater than the similarity threshold, is confirming the user interface just
Really, otherwise, interface error message is generated, is specifically included:
It calculates each pixel in the interface screenshot and the color difference of the corresponding pixel in the normal pictures is poor
Value, and count number of the color difference difference greater than the pixel of preset color difference threshold;
The ratio of the pixel sum in number and the interface screenshot obtained according to statistics obtains similarity;
The similarity is compared with the similarity threshold, if the similarity is greater than the similarity threshold,
It then determines that the user interface is correct, otherwise, generates the interface error message.
It should be noted that equipment is in the similarity degree relatively between interface screenshot and normal pictures, firstly, comparing respectively
Compared with the length of interface screenshot and wide whether equal with the length of normal pictures and width, if the length of the length of interface screenshot and normal pictures not phase
Deng or interface screenshot width it is unequal with the width of normal pictures, then confirm user interface mistake detected, and generate accordingly
Interface error message otherwise count the sum of the biggish pixel of color difference between interface screenshot and normal pictures, that is, meter
Calculate each pixel and the color difference difference of the corresponding pixel in normal pictures in the screenshot of interface, and by the color difference difference and
Preset color difference threshold is compared, if color difference difference corresponding to a certain pixel is greater than the color difference threshold, interface screenshot
The sum of the biggish pixel of color difference between normal pictures adds 1.Then, the interface screenshot and standard drawing obtained according to statistics
The sum of the biggish pixel of color difference between piece calculates the ratio of the sum of the sum and the pixel in the screenshot of interface, from
And obtain similarity.Finally, being compared the similarity obtained is calculated with preset similarity threshold, if the similarity is greater than
The similarity threshold then confirms that user interface detected is correct, does not deal with, and otherwise, confirms that user interface detected is wrong
Accidentally, and corresponding interface error message is generated.
As shown in Fig. 2, being the schematic diagram of an interface screenshot and corresponding normal pictures.It is understood that shown
Color difference of the interface screenshot between the normal pictures with shown in differ biggish pixel more, therefore the interface screenshot and the mark
Similarity degree between quasi- picture is small, equipment compare obtain similarity degree between the interface screenshot and the normal pictures it
Afterwards, confirm user interface mistake corresponding to the interface screenshot, and generate corresponding interface error message, and by the interface mistake
Information is sent to corresponding responsible person so that the responsible person handles the user interface.
Due to passing through the color difference difference calculated between the corresponding pixel between interface screenshot and normal pictures, to obtain
The similarity degree between interface screenshot and normal pictures is obtained, therefore the process that the similarity degree obtains is simple, can further mention
The efficiency for the process that height detects user interface.
Further, the user interface information includes interface identifier and interface routing information.
It should be noted that including interface identifier and interface routing information etc. in user interface information.Therefore, equipment energy
It is enough that corresponding user interface is obtained from software to be detected according to the interface routing information in the user interface information, and by the use
Family interface renders and shows into display screen.Correspondingly, equipment can be obtained according to the interface identifier in the user interface information
Obtain normal pictures corresponding with the user interface.
The automatic testing method of user interface provided in an embodiment of the present invention, due to passing through equipment according to user interface information
The switching and display for automatically controlling user interface, and intercept the interface screenshot of the user interface automatically, by the interface screenshot with
Normal pictures are compared, therefore be can be realized and carried out automatic detection to user interface, are carried out to improve to user interface
The efficiency and accuracy of the process of detection, while reducing cost of labor.Due to by the way that custom-configuring in user interface is deleted
It removes, to guarantee to be configured to original configuration in user interface when being detected, so as to by carrying out with normal pictures
The mode compared detects the user interface correctness, therefore can be further ensured that the correctness of testing result.In addition, due to
By calculating the color difference difference between the corresponding pixel between interface screenshot and normal pictures, thus obtain interface screenshot with
Similarity degree between normal pictures, therefore the process that the similarity degree obtains is simple, can further increase to user interface
The efficiency of the process detected.
Correspondingly, it the present invention also provides a kind of automatic detection device of user interface, can be realized in above-described embodiment
All processes of the automatic testing method of user interface.
It is the structural schematic diagram of one embodiment of the automatic detection device of user interface provided by the invention referring to Fig. 3,
It is specific as follows:
User interface display module 31, for rendering and showing the user interface information institute according to user interface information
Corresponding user interface;
Interface screenshot obtains module 32, for obtaining the interface screenshot of the user interface;And
Compare detection module 33, for calculating the similarity between the interface screenshot and normal pictures, and by the phase
It is compared like degree with preset similarity threshold, if the similarity is greater than the similarity threshold, confirms the user
Interface is correct, otherwise, generates interface error message.
Further, the automatic detection device of the user interface, further includes:
Interface information read module, for being read from configuration file and obtaining user interface information;Alternatively,
Interface information receiving module for sending interface information acquisition request to display control unit, and receives described aobvious
Show the user interface information that control device returns.
It is preferably carried out in mode at another, includes custom-configuring information in the user interface information;
The user interface display module 31, specifically includes:
User interface obtaining unit, for being obtained from software to be detected and the use according to the user interface information
The corresponding user interface of family interface information;
Deletion unit is custom-configured, it, will for custom-configuring information according in the user interface information
Custom-configure that information is corresponding to custom-configure deletion with described in the user interface;And
Interface render display unit, for will delete described in custom-configure after the user interface render to display screen
Middle display.
Further, the relatively detection module 33, specifically includes:
Difference pixel statistic unit, for calculating in each pixel in the interface screenshot and the normal pictures
Corresponding pixel color difference difference, and count the color difference difference greater than preset color difference threshold pixel number;
Similarity obtaining unit, the ratio of the pixel sum in number and the interface screenshot for being obtained according to statistics
Example obtains similarity;And
Similarity judging unit, for the similarity to be compared with the similarity threshold, if the similarity
Greater than the similarity threshold, it is determined that the user interface is correct, otherwise, generates the interface error message.
Further, the user interface information includes interface identifier and interface routing information.
The automatic detection device of user interface provided in an embodiment of the present invention, due to passing through equipment according to user interface information
The switching and display for automatically controlling user interface, and intercept the interface screenshot of the user interface automatically, by the interface screenshot with
Normal pictures are compared, therefore be can be realized and carried out automatic detection to user interface, are carried out to improve to user interface
The efficiency and accuracy of the process of detection, while reducing cost of labor.Due to by the way that custom-configuring in user interface is deleted
It removes, to guarantee to be configured to original configuration in user interface when being detected, so as to by carrying out with normal pictures
The mode compared detects the user interface correctness, therefore can be further ensured that the correctness of testing result.In addition, due to
By calculating the color difference difference between the corresponding pixel between interface screenshot and normal pictures, thus obtain interface screenshot with
Similarity degree between normal pictures, therefore the process that the similarity degree obtains is simple, can further increase to user interface
The efficiency of the process detected.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principle of the present invention, it can also make several improvements and retouch, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (10)
1. a kind of automatic testing method of user interface characterized by comprising
Equipment obtains user interface information, according to user interface information, from software to be detected after installing software to be detected
User interface corresponding with the user interface information is obtained, is rendered and is shown corresponding to the user interface information, deleted
Except the user interface custom-configured;
Obtain the interface screenshot of user interface to be detected;Wherein, the user interface to be detected is the rendering and shows
User interface;
Normal pictures corresponding with the user interface to be detected are read according to user interface information;
Calculate the similarity between the interface screenshot and normal pictures, and by the similarity and preset similarity threshold into
Row compares, if the similarity is greater than the similarity threshold, confirms that the user interface to be detected is correct, otherwise, raw
At interface error message.
2. the automatic testing method of user interface as described in claim 1, which is characterized in that believed described according to user interface
Breath, before rendering and showing user interface corresponding to the user interface information, further includes:
It is read from configuration file and obtains user interface information;Alternatively,
Interface information acquisition request is sent to display control unit, and receives the user interface letter that the display control unit returns
Breath.
3. the automatic testing method of user interface as described in claim 1, which is characterized in that wrapped in the user interface information
It includes and custom-configures information;
It is then described according to user interface information, render and show user interface corresponding to the user interface information, it is specific to wrap
It includes:
According to the user interface information, user circle corresponding with the user interface information is obtained from software to be detected
Face;
Custom-configure information according in the user interface information, by the user interface with it is described customized
Configuration information is corresponding to custom-configure deletion;
The user interface after custom-configuring described in deletion, which renders in display screen, to be shown.
4. the automatic testing method of user interface as described in claim 1, which is characterized in that described to calculate the interface screenshot
Similarity between normal pictures, and the similarity is compared with preset similarity threshold, if the similarity
Greater than the similarity threshold, then confirm that the user interface is correct, otherwise, generate interface error message, specifically include:
Each pixel in the interface screenshot and the color difference difference of the corresponding pixel in the normal pictures are calculated, and
Count number of the color difference difference greater than the pixel of preset color difference threshold;
The ratio of the pixel sum in number and the interface screenshot obtained according to statistics obtains similarity;
The similarity is compared with the similarity threshold, if the similarity is greater than the similarity threshold, really
The fixed user interface is correct, otherwise, generates the interface error message.
5. the automatic testing method of user interface according to any one of claims 1 to 4, which is characterized in that the user
Interface information includes interface identifier and interface routing information.
6. a kind of automatic detection device of user interface characterized by comprising
User interface display module obtains user interface information, according to user circle for equipment after installing software to be detected
Face information obtains user interface corresponding with the user interface information from software to be detected, renders and shows the user
Corresponding to interface information, the user interface custom-configured is deleted;
Interface screenshot obtains module, for obtaining the interface screenshot of user interface to be detected;Wherein, the user to be detected
Interface is the user interface for rendering and showing;And
Normal pictures obtain module, for reading mark corresponding with the user interface to be detected according to user interface information
Quasi- picture;
Compare detection module, for calculating the similarity between the interface screenshot and normal pictures, and by the similarity with
Preset similarity threshold is compared, if the similarity is greater than the similarity threshold, confirms the use to be detected
Family interface is correct, otherwise, generates interface error message.
7. the automatic detection device of user interface as claimed in claim 6, which is characterized in that the automatic inspection of the user interface
Survey device, further includes:
Interface information read module, for being read from configuration file and obtaining user interface information;Alternatively,
Interface information receiving module for sending interface information acquisition request to display control unit, and receives the display control
The user interface information that device processed returns.
8. the automatic detection device of user interface as claimed in claim 6, which is characterized in that wrapped in the user interface information
It includes and custom-configures information;
The user interface display module, specifically includes:
User interface obtaining unit, for being obtained from software to be detected and user circle according to the user interface information
The corresponding user interface of face information;
Deletion unit is custom-configured, it, will be described for custom-configuring information according in the user interface information
Custom-configure that information is corresponding to custom-configure deletion with described in user interface;And
Interface render display unit, for will delete described in custom-configure after the user interface render in display screen show
Show.
9. the automatic detection device of user interface as claimed in claim 6, which is characterized in that the relatively detection module, tool
Body includes:
Difference pixel statistic unit, for calculating each pixel in the interface screenshot and pair in the normal pictures
The color difference difference for the pixel answered, and count number of the color difference difference greater than the pixel of preset color difference threshold;
Similarity obtaining unit, the ratio of the pixel sum in number and the interface screenshot for being obtained according to statistics,
Obtain similarity;And
Similarity judging unit, for the similarity to be compared with the similarity threshold, if the similarity is greater than
The similarity threshold, it is determined that the user interface is correct, otherwise, generates the interface error message.
10. the automatic detection device of the user interface as described in any one of claim 6 to 9, which is characterized in that the user
Interface information includes interface identifier and interface routing information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610913162.3A CN106502891B (en) | 2016-10-19 | 2016-10-19 | The automatic testing method and device of user interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610913162.3A CN106502891B (en) | 2016-10-19 | 2016-10-19 | The automatic testing method and device of user interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106502891A CN106502891A (en) | 2017-03-15 |
CN106502891B true CN106502891B (en) | 2019-05-17 |
Family
ID=58318046
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610913162.3A Active CN106502891B (en) | 2016-10-19 | 2016-10-19 | The automatic testing method and device of user interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106502891B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109117358A (en) * | 2017-06-23 | 2019-01-01 | 百度在线网络技术(北京)有限公司 | test method and test device for electronic equipment |
CN107678937A (en) * | 2017-07-26 | 2018-02-09 | 上海壹账通金融科技有限公司 | Page compatibility detection method, device, server and medium |
CN108229485B (en) * | 2018-02-08 | 2022-05-17 | 百度在线网络技术(北京)有限公司 | Method and apparatus for testing user interface |
CN108984399A (en) * | 2018-06-29 | 2018-12-11 | 上海连尚网络科技有限公司 | Detect method, electronic equipment and the computer-readable medium of interface difference |
CN109446061B (en) * | 2018-09-17 | 2022-06-10 | 平安科技(深圳)有限公司 | Page detection method, computer readable storage medium and terminal device |
CN109471805B (en) * | 2018-11-14 | 2022-09-30 | 网易(杭州)网络有限公司 | Resource testing method and device, storage medium and electronic equipment |
CN109783351A (en) * | 2018-12-13 | 2019-05-21 | 重庆金融资产交易所有限责任公司 | Interface detection method, apparatus and computer readable storage medium |
CN109886431B (en) * | 2019-01-25 | 2021-05-07 | 北京首都国际机场股份有限公司 | Automatic inspection system for airport navigation display terminal |
CN109992518A (en) * | 2019-04-10 | 2019-07-09 | 禄鹏 | Detection method, device, electronic equipment and the storage medium at the interface UI |
CN111090580B (en) * | 2019-11-21 | 2023-04-18 | 广州品唯软件有限公司 | User interface consistency detection method and device and readable storage medium |
CN111389747A (en) * | 2020-04-26 | 2020-07-10 | 成都复星联创科技有限公司 | Bamboo strip intelligent sorting system and method based on visual identification |
CN112669290A (en) * | 2020-12-30 | 2021-04-16 | 稿定(厦门)科技有限公司 | Image comparison method and device |
CN113344824A (en) * | 2021-06-30 | 2021-09-03 | 平安资产管理有限责任公司 | Interface image comparison method and device, computer equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102368214A (en) * | 2011-10-17 | 2012-03-07 | 深圳和而泰智能控制股份有限公司 | Automatic interface generation method and system |
CN103389937A (en) * | 2012-05-09 | 2013-11-13 | 腾讯科技(深圳)有限公司 | Interface testing method and device |
US8904042B1 (en) * | 2003-12-30 | 2014-12-02 | Aol Inc. | System and method for subject matter notifications |
CN104978270A (en) * | 2015-07-03 | 2015-10-14 | 上海触乐信息科技有限公司 | Automatic software testing method and apparatus |
CN105260301A (en) * | 2015-09-24 | 2016-01-20 | 努比亚技术有限公司 | Visual effect comparison test device of user interfaces and realization method of visual effect comparison test device of user interfaces |
CN105955889A (en) * | 2016-05-11 | 2016-09-21 | 南京大学 | Graphic interface automated test method |
CN106021108A (en) * | 2016-05-19 | 2016-10-12 | 努比亚技术有限公司 | Application program testing device, mobile terminal and method |
-
2016
- 2016-10-19 CN CN201610913162.3A patent/CN106502891B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8904042B1 (en) * | 2003-12-30 | 2014-12-02 | Aol Inc. | System and method for subject matter notifications |
CN102368214A (en) * | 2011-10-17 | 2012-03-07 | 深圳和而泰智能控制股份有限公司 | Automatic interface generation method and system |
CN103389937A (en) * | 2012-05-09 | 2013-11-13 | 腾讯科技(深圳)有限公司 | Interface testing method and device |
CN104978270A (en) * | 2015-07-03 | 2015-10-14 | 上海触乐信息科技有限公司 | Automatic software testing method and apparatus |
CN105260301A (en) * | 2015-09-24 | 2016-01-20 | 努比亚技术有限公司 | Visual effect comparison test device of user interfaces and realization method of visual effect comparison test device of user interfaces |
CN105955889A (en) * | 2016-05-11 | 2016-09-21 | 南京大学 | Graphic interface automated test method |
CN106021108A (en) * | 2016-05-19 | 2016-10-12 | 努比亚技术有限公司 | Application program testing device, mobile terminal and method |
Also Published As
Publication number | Publication date |
---|---|
CN106502891A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106502891B (en) | The automatic testing method and device of user interface | |
KR101773885B1 (en) | A method and server for providing augmented reality objects using image authentication | |
JP6455010B2 (en) | Information processing apparatus, information processing method, and program | |
CN111737137B (en) | Interface test data generation method and device, host and storage medium | |
CN104618316A (en) | Method, device and system of safety verification | |
CN105573704A (en) | LED (Light-Emitting Diode) display screen configuring method | |
CN105898290A (en) | Method and device for controlling intelligent device to enter factory test mode | |
CN111475381A (en) | Page rendering detection method and device | |
US9959292B2 (en) | Application program, smart device, information processing apparatus, information processing system, and information processing method | |
CN109726543A (en) | A kind of login method of application program, device, terminal device and storage medium | |
CN108696410A (en) | Method for housed device to be connect with wireless home network | |
CN104618818A (en) | Television front page setting method and device | |
CN105303143A (en) | Information scanning method, system and terminal | |
CN105468531A (en) | Vulnerability mining method and device and electronic equipment | |
CN106658670B (en) | A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal | |
CN111538994A (en) | System security detection and repair method, device, storage medium and terminal | |
TW201741895A (en) | Method, apparatus and system for checking change of telephone number | |
KR20140134154A (en) | Method and Terminal for Extracting a Object from Image | |
CN106055693A (en) | Information processing method and terminal | |
CN106469310A (en) | Character extracting method and device in picture | |
CN109451526A (en) | A kind of wireless network method for visualizing and device | |
CN106709315B (en) | Login information verification method and device of application system | |
CN105187633B (en) | Mobile phone number display method and device | |
CN105100629B (en) | A kind of image processing method and electronic equipment | |
CN114782955A (en) | Buried point processing method, electronic device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |