UI test method and system for control

A test method and technology of color histogram, applied in the Internet field, can solve problems such as whether the display of the control UI is correct, whether it is misplaced and cannot be verified, etc.

Active Publication Date: 2016-02-03
HUIZHOU TCL MOBILE COMM CO LTD
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the automated testing system in the industry can only automatically verify text information such as text and ID (Identity) of controls and other software, and cannot verify whether the UI display of controls is correct or not.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • UI test method and system for control
  • UI test method and system for control
  • UI test method and system for control

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The UI testing method of the control in the embodiment of the present invention is used to verify whether the display effect of the UI of the control matches the expected software development. Are there any differences in the UI displayed on different terminals? The test method of the embodiment of the present invention uses a combination of color histogram and collection of mutation pixel points to test the similarity of the UI displayed by the target picture and the source picture, thereby realizing automatic verification of the UI to test the display effect of the UI .

[0023] Embodiments of the present invention can pre-program test software and store the test software in a server (equipment for testing) including but not limited to a PC (Personal Computer, personal computer or computer), automatically monitor the current process through the test software, and After the current process is completed, the next process is triggered and executed according to the prese...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a UI test method for a control. The method comprises: intercepting a target picture and a source picture, and calculating a color histogram of the target picture and the source picture to obtain a Bhattacharyya distance; when the Bhattacharyya distance is greater than a predetermined threshold, obtaining positions and first pixel values of a plurality of mutation pixel points on the target picture and second pixel values of pixel points, in the positions, on the source picture, wherein the mutation pixel points are pixel points on a UI profile; and outputting a test result according to a variance or a standard deviation of difference values of the first pixel values and the second pixel values. The invention furthermore provides a UI test system for the control. According to the UI test method and system for the control, a UI of the control can be automatically verified to test the display effect of the UI.

Description

technical field [0001] The present invention relates to the field of Internet technology (Internet Technology, IT), in particular to a control UI (User Interface, user interface) testing method and system. Background technique [0002] With the continuous shortening of software development cycle, automated testing has gradually become the development trend of software testing. At present, the automated testing system in the industry can only automatically verify text information such as text and ID (Identity) of controls and other software, but cannot verify whether the UI display of controls is correct or not. Therefore, an urgent technical problem to be solved by those skilled in the art is to propose a control UI testing method to test the UI of the displayed control to quickly find out whether there is a difference in the display effect. Contents of the invention [0003] In view of this, the embodiments of the present invention provide a control UI testing method and...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/0481
Inventor 吴权芳邓建波董瑞烽谢毅陈生
Owner HUIZHOU TCL MOBILE COMM CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products