Unlock instant, AI-driven research and patent intelligence for your innovation.

Automatic test method based on image comparison

A technology for automated testing and benchmark images, applied in image analysis, image data processing, software testing/debugging, etc., can solve problems such as insufficient page style verification, and achieve the effect of improving automated test coverage and reducing costs

Active Publication Date: 2021-01-05
WUXI XUELANG DIGITAL TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In response to the above problems and technical requirements, the inventor proposed an automated test method based on image comparison, using computer vision algorithms for image mask processing and image comparison, to avoid changing dynamic data pairs in the verification page for test results , to solve the problem of insufficient page style verification in automated testing

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
  • Automatic test method based on image comparison
  • Automatic test method based on image comparison

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The specific embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0034] This application discloses an automated testing method based on image comparison, the flow chart of which is as follows figure 1 As shown, the automated testing method includes the following steps:

[0035] Step 1: Configure the reference image library, which stores standard images of each verification page.

[0036] The standard image of this application is determined based on worker verification, and the name of the standard image is set to be consistent with the name of the verification page.

[0037] Step 2: Invoke the mask marking tool to perform mask processing on the dynamic data of the standard image to obtain a mask file.

[0038] The mask marking tool of this application is implemented based on OpenCV, and the dynamic data is the data that changes continuously during the testing process, such as business data and time. Ac...

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 discloses an automatic testing method based on image comparison, and relates to the field of automatic testing. The method comprises the steps: configuring a reference image library, wherein a standard image of each verification page is stored in the reference image library; calling a mask marking tool to perform mask processing on the dynamic data of the standard image to obtain a mask file; obtaining a verification page needing image verification, and matching a corresponding standard image in the reference image library; calling the mask file to obtain coordinates of a mask area, and replacing the corresponding standard image and the mask area in the verification page needing image verification with the same static data according to the coordinates; and carrying out imagecomparison on the processed corresponding standard image and a verification page needing image verification, and judging whether the verification page needing image verification is qualified. According to the method, the computer vision algorithm is used for carrying out image masking processing and image comparison, so that the influence of changed dynamic data in the verification page on a testresult is avoided, and the test precision is improved.

Description

technical field [0001] The invention relates to the field of automatic testing, in particular to an automatic testing method based on image comparison. Background technique [0002] With the development of software testing technology, automated testing, as an important means to improve testing efficiency and ensure test coverage, is becoming more and more common. However, most testing tools mainly judge whether the test result is correct by verifying whether the object exists and the object attribute value, and do not support image verification. Therefore, it is difficult to verify graphics, and it is also a problem for page style verification . [0003] Existing automated testing tools, such as QTP (Quick Test Professional, automated testing tool), support bitmap checkpoints, which capture a certain area of ​​a web page or application as a bitmap and then check it. The bitmap checkpoint function provided by QTP can be used to verify whether the image in a certain area of ...

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): G06F11/36G06T7/00
CPCG06F11/3672G06T7/0002
Inventor 邹海龙王峰
Owner WUXI XUELANG DIGITAL TECH CO LTD