UI automatic testing method based on picture recognition similarity rate

The invention provides a picture recognition similarity rate-based UI automatic test method. The method comprises the following steps of S1, intercepting an element picture; s2, uploading the element picture to a file server; s3, calculating a similarity coefficient of the element picture and the co...

Full description

Saved in:
Bibliographic Details
Main Authors HOU QINGXUAN, XING XINDONG, JI YANJIAO
Format Patent
LanguageChinese
English
Published 10.10.2023
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention provides a picture recognition similarity rate-based UI automatic test method. The method comprises the following steps of S1, intercepting an element picture; s2, uploading the element picture to a file server; s3, calculating a similarity coefficient of the element picture and the comparison picture; s4, when the maximum similarity coefficient is calculated, center point coordinates of the element pictures at the corresponding positions of the comparison pictures are calculated; s5, determining the position of the element picture according to the center point coordinate, and logging in the to-be-tested application; s6, verifying the element picture again through assertion; s7, completing the test; according to the method, element pictures are uploaded to a file server, an engineer intercepts a whole page picture containing the element pictures in real time to serve as a comparison picture, a program downloads the element pictures and calculates a similarity coefficient between the element pict
Bibliography:Application Number: CN202310925852