Automatic test method based on machine learning and terminal

A technology of automated testing and machine learning, applied in software testing/debugging, instrumentation, error detection/correction, etc., can solve problems such as time-consuming, cumbersome operation, and low testing efficiency, and achieve the effect of saving time and improving testing efficiency

Active Publication Date: 2018-11-06
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF12 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the existing automated interface testing method using image matching technology has the following disadvantages: it is necessary to write corresponding test codes for the operable controls of the screenshots, and when the product development iterations are frequent an

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 machine learning and terminal
  • Automatic test method based on machine learning and terminal
  • Automatic test method based on machine learning and terminal

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0061] Example one

[0062] Please refer to figure 1 , An automated testing method based on machine learning, including steps:

[0063] S01. Classify the interactive controls of all interfaces of the product to be tested, and respectively write operation codes corresponding to the classified interactive controls;

[0064] S02. According to the classification, take screenshots of the interactive controls in all interfaces of the product to be tested, respectively generate screenshot images corresponding to each category, and use the machine learning framework to perform model training on the screenshot images corresponding to each category until the training is obtained The detection accuracy of the model of is greater than a preset value;

[0065] S1. Use the model trained by the machine learning framework to detect the current interface of the product to be tested, determine all the interactive controls of the current interface, and circle all the interactive controls of the current ...

Example Embodiment

[0071] Example two

[0072] The difference between this embodiment and the first embodiment is: in the step S3, the interactive control is recorded while being tested, and after the test is completed, a recording file corresponding to the test case is generated, and the recording file Store

[0073] After the step S3, it also includes the following steps:

[0074] S4. Receive the selected recorded test case, and test the interactive control corresponding to the data record in the current interface of the product to be tested in real time according to the selected data record of the recorded test case;

[0075] The data record saved during the test can not only be applied to software testing, but in subsequent software applications, if frequently used repeated operations need to be performed, it can be saved as a record of frequently used operations and replayed when needed.

Example Embodiment

[0076] Example three

[0077] Please refer to figure 2 , An automated test terminal 1 based on machine learning, comprising a memory 2, a processor 3, and a computer program stored in the memory 2 and running on the processor 3, and the processor 3 executes the computer The program implements each step in the first embodiment.

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 an automatic test method based on machine learning and terminal. The method comprises the steps of detecting a current interface of a to-be-tested product through utilization ofa model trained by a machine learning frame, determining all interactable controls of the current interface, and circling all interactable controls of the current interface; receiving a test case forone interactable control, wherein the test case is described through voices, converting the voices into texts, and converting the texts into data records according to a preset format; and calling operation codes corresponding to the interactable control in real time according to the data records, and testing the interactable control. Test codes do not need to be written, an operation process canbe described through the voices, the corresponding data records are generated, the interactable control is tested in real time, the time of writing interface test automatic scripts is greatly reduced,and the test efficiency is improved.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a machine learning-based automatic testing method and a terminal. Background technique [0002] Automated testing technology has been widely used in software development, which can greatly improve the efficiency of testing, reduce the influence of human factors, and shorten the software development cycle. Among them, the interface automation testing technology using image matching technology is getting more and more attention. Its testing process is as follows: test engineers write automated test cases, then take screenshots of the operable controls on the product interface, then write corresponding test codes, and start. [0003] However, the existing automated interface testing method using image matching technology has the following disadvantages: it is necessary to write corresponding test codes for the operable controls of the screenshots, and when the product development it...

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/36G06N99/00
CPCG06F11/3684G06F11/3692
Inventor 刘德建李思林琛
Owner FUJIAN TIANQUAN EDUCATION TECH 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