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

A defect location method for web page automation testing based on depth learning

A technology of automated testing and deep learning, applied in the field of defect location, to achieve accurate test results, precise location, and the effect of reducing semantic and grammatical errors

Active Publication Date: 2019-03-15
TIANJIN UNIV
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] The present invention provides a method for locating defects in webpage automation testing based on deep learning. The present invention solves the problem of the accuracy of keyword extraction due to ambiguity in natural language in traditional demand-based automation methods, the problem of accurately locating target elements of webpages, and Execute automated testing operations to accurately locate the defects of the system under test. See the description below for details:

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
  • A defect location method for web page automation testing based on depth learning
  • A defect location method for web page automation testing based on depth learning
  • A defect location method for web page automation testing based on depth learning

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] The invention discloses a method for locating defects in web page automation testing based on deep learning, see figure 1 , the method includes the following steps:

[0034] 101: Use Chinese punctuation marks and Chinese conjunctions to analyze the test case, decompose it into the smallest operation unit, and store it in the database with the attribute structure of "test case-test step-segmentation method-operation unit" as the operation unit ;

[0035] 102: Extract test operation information from the smallest operation unit based on deep learning (that is, neural network), obtain a keyword sequence, and define the keyword sequence as a triplet sequence;

[0036] 103: Crawling the webpage, parsing the webpage into an HTML DOM tree and traversing the HTML DOM tree, and locating the target page element set through the Target element in the triple sequence;

[0037] 104: Call the operation interface through the triple sequence, pass in the operation information, and auto...

Embodiment 2

[0042] The following is combined with specific calculation formulas, examples, figure 2 and image 3 The scheme in Example 1 is further introduced, see the following description for details:

[0043] 201: Analyze test requirements and obtain operating units;

[0044] Definition 1 (set of test requirements):

[0045] T={t 1 , t 2 ,...,t m} indicates the test case set of the system under test written by the tester, which is used to describe the instruction operation in the functional test. These test cases are relatively independent and have no dependencies. The target element of the user interface of the test application, where t iIndicates the ith test case of the test case set.

[0046] Firstly, test cases are extracted from the test requirement set, and each test step is segmented according to Chinese punctuation and conjunctions, and the segments are sorted to form an operation unit sequence with an operation sequence.

[0047] Definition 2 (operating unit set):

...

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 defect locating method of web page automation test based on depth learning, which comprises the following steps: using Chinese punctuation marks and Chinese conjunctions to analyze a test case, decomposing the test case into a minimum operation unit, and carrying out storing by taking 'a test case, a test step, a splitting mode and an operation unit' as the the attributestructure of a manipulation unit in a database; The test operation information of the smallest operation unit is extracted based on depth learning, and the keyword sequence is defined as a triple sequence. Climbing the web page, parse the web page into HTML DOM tree and traverse the HTML DOM tree, and locate the target page element set through the Target element in the triple sequence; Test case scripts are automatically generated by triple sequence invocation operation interface and operation information. Multiple test flows are explored based on the test results of target page element set bybacktracking algorithm. The test case scripts are generated by triple sequence invocation operation interface. Driving real browsers to accurately locate defects in the system under test.

Description

technical field [0001] The invention relates to the field of defect location, in particular to a method for locating defects in web page automation testing based on deep learning. Background technique [0002] Based on artificial intelligence (AI) technology such as: pattern-based reasoning and search strategies, mainly relying on the support of a set of rule systems [1] . The automation of software requirements is also based on natural language analysis, which is designed for situations expressed in natural language. For example: the need for natural language expression for detailed semantic analysis, but often the problem of unavailable semantic information [2] . Semantic-based keyword sequences are extracted from test cases described in English [3] , which is used for computers to understand operating instructions, and automatically synthesizes scripts that can be used for automated testing. ATA [3] It marks the part of speech of the test case through POS, designs t...

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/36G06N3/08G06N3/04
CPCG06F11/3684G06F11/3688G06N3/084G06N3/044G06N3/045
Inventor 龙秋娴王赞
Owner TIANJIN UNIV