Supercharge Your Innovation With Domain-Expert AI Agents!

Method for optimizing image recognition automatic testing cost

A technology of automated testing and image recognition, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as large processing resources, occupied testing machines, and reduced testing efficiency

Pending Publication Date: 2021-07-06
CHENGDU DBAPP SECURITY
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Image recognition automated testing is a commonly used automated testing method in the prior art. Test automation is realized by using control attribute identification. During the testing process, it needs to occupy the physical screen of the testing machine and consume a large amount of processing resources. Currently, it is a common practice It is to schedule the automated test to be carried out when the test machine is idle, which will reduce the test efficiency

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 for optimizing image recognition automatic testing cost
  • Method for optimizing image recognition automatic testing cost

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] This embodiment proposes a method for optimizing the cost of automated testing of image recognition, combining figure 1 shown, including the following steps:

[0031] Step S1: configure the client and the server based on the VNC communication protocol, the client sends the test script to the server, and sends the test script execution instruction to the server, the instruction can be single execution or multiple executions, for example: The server sends an execution instruction once, and sends 2, 3...n execution instructions to the server, etc.;

[0032] Step S2: After the server receives the instruction, it executes the test script according to the number of instructions, for example: when receiving one execution instruction, the server executes the test script once and then ends the operation; when receiving multiple execution instructions, the server will cycle Execute the script until the number of executions reaches the number of instructions received and end runn...

Embodiment 2

[0037] In this embodiment, on the basis of Embodiment 1, multiple test scripts are deployed to the server, including the following steps:

[0038] Step S1: configure the client and server based on the VNC communication protocol, and the client presets comparing file 1, comparing file 2... comparing file n;

[0039] Step S2: The client remotely deploys test script 1, test script 2...test script n to the server, and sends a test script execution instruction to the server, and the server executes the scripts sequentially after receiving the instruction, for example: the server presses Execute test script 1, test script 2...test script n in sequence; take a screenshot of the running results, and save the test results according to the test script fragments, for example: save the test results of test script 1 to folder 1, and save the test results of test script 2 To folder 2... Test script n test results are saved to folder n;

[0040] Step S3: The client obtains the test script e...

Embodiment 3

[0044] On the basis of embodiment 1, this embodiment combines figure 2 As shown, extending the client and server into a one-to-many connection includes the following steps:

[0045] Step S1: the client connects to server 1, server 2 ... server n, the client remotely controls the servers, and the client compares files by default;

[0046] Step S2: the client remotely deploys the test script to the server, the client sends a test script execution instruction to the server, server 1, server 2 ... server n executes the test script, and saves a screenshot of the running result;

[0047] Step S3: The client obtains the test script execution status of server 1, server 2 ... server n at regular intervals. When the execution of the test script of server 1 is completed, the client applies to server 1 for test results. Servers that have not completed execution continue to obtain the execution status of the test script until all servers have completed execution;

[0048]Step S4: Server...

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 relates to the field of automatic testing, and discloses a method for optimizing the image recognition automatic testing cost, which comprises the following steps of: deploying a testing script to a server, sending an instruction to the server from a client, executing the testing script by the server and obtaining a testing result screenshot, obtaining original pixel data of a testing result from the server, and comparing the digits of the R, G and B components of the pixel colors of the expected result and the actual result and the pixel matrix to obtain a conclusion whether the test is passed or not. According to the method, physical screen resources of the client do not need to be occupied, the client can send the instructions to the multiple servers in batches, the test scripts are concurrently executed on the multiple servers, and the automatic test efficiency is improved.

Description

technical field [0001] The invention relates to the field of automated testing, in particular to a method for optimizing the cost of automated testing of image recognition. [0002] technical background [0003] With the development of the IT industry, automated testing has become more popular, and testing methods have become more diverse. Each automated testing technology faces the problems of time cost and physical resource cost. When repetitive testing work can be automated, but requires too much physical resources, it goes against the original intention of automated testing to save costs and improve efficiency. Image recognition automated testing is a commonly used automated testing method in the prior art. Test automation is realized by using control attribute identification. During the testing process, it needs to occupy the physical screen of the testing machine and consume a large amount of processing resources. Currently, it is a common practice It is to arrange th...

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
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688G06F11/3692
Inventor 黄青霞范渊吴永越郑学新刘韬
Owner CHENGDU DBAPP SECURITY
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More