Method and device for adding tolerance to image assertion in page automation testing

An automated test and image technology, applied in software testing/debugging, filling planes with attributes, error detection/correction, etc., can solve problems such as heavy maintenance and modification workload, excessive color difference, assertion failure, etc., to reduce assertion maintenance Difficulty, reduced maintenance workload, improved accuracy

Pending Publication Date: 2022-01-28
浙江百应科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. Some of the content of the image in the software running is dynamic. This part of the content will affect the accuracy of the image assertion, and often requires additional data to record the areas that need to be excluded. The conventional solution stores part of the image area information separately in the In the structured data of use cases, the workload of maintenance and modification is relatively large
[0005] Even if the content of the screenshot in the actual running of the software is exactly the same, the ARGB color of some image pixels will have different degrees of difference. This part of the difference is a normal difference that cannot be recognized by the naked eye and should be regarded as a normal situation. To solve this situation, the image assertion will add Tolerance value, the conventional tolerance is difficult to cope with the actual usage scenario, if the tolerance setting is stricter, a large number of assertions that should have passed will fail, and if the tolerance setting is looser, the wrong key information will be missed
[0006] A large number of tests have shown that when there is a large transition in a pixel in a conventional image, the pixel will have a large color difference in multiple screenshots, such as the edge of some graphics in the image. The color difference in this part is too large, and it is difficult to be fully compatible with conventional tolerances.

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
  • Method and device for adding tolerance to image assertion in page automation testing
  • Method and device for adding tolerance to image assertion in page automation testing
  • Method and device for adding tolerance to image assertion in page automation testing

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0035] The technical solutions of the present invention will be described below in conjunction with the accompanying drawings.

[0036] Components of the patent embodiments of the present invention generally described and shown herein can be arranged and design in a variety of different configurations. Therefore, the detailed description of the embodiments of the invention as provided in the drawings are not intended to limit the scope of the invention claims, but only the patented selected examples of the invention.

[0037] Based on the preferred embodiments of the present invention, one of ordinary skill in the art is in the range of patent protection of the present invention without making creative labor premistence.

[0038] In the description of the present invention, it is to be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "within", "outside" The orientation or positional relationship of the indication is based on the orientation

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 a method and device for adding tolerance to an image assertion in page automatic testing. The method comprises the following steps that: S1, an assertion source image is opened by using any picture editing tool, and a region needing to be skipped is filled by using a color block with a set color so as to quickly set a skipping region, the same assertion source image can be provided with a plurality of skipping regions; S2, whether p2 is a skipping value or not is determined, pixels of the current image compared with the pixels of the assertion source image row by row and column by column, and skipping processing is performed by identifying whether a source pixel of the current coordinate belongs to a skipping color or not; S3, for non-skipping pixels, whether a current pixel belongs to an absolute tolerance pixel or not is preferentially judged; and S4, after the absolute tolerance is passed, for the pixels meeting the condition, the edge pixel of the current pixel is dynamically judged. The method and device can conveniently mark a plurality of complex areas, are convenient to operate, greatly reduce assertion maintenance difficulty, and reduce test case maintenance workload.

Description

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

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
Owner 浙江百应科技有限公司
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