Supercharge Your Innovation With Domain-Expert AI Agents!

A kind of automatic traversal control method and terminal based on neuron model

A neuron model and traversal technology, applied in biological neural network models, software testing/debugging, physical implementation, etc., can solve problems such as insufficient traversal depth and traversal loops, to increase traversal depth, solve loopback problems, and solve traversal depth problems Effect

Active Publication Date: 2020-03-31
FUJIAN TQ DIGITAL
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem to be solved by the present invention is: to provide a neuron model-based automatic traversal control method and terminal, to improve the existing problems of insufficient traversal depth and traversal loopback

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 kind of automatic traversal control method and terminal based on neuron model
  • A kind of automatic traversal control method and terminal based on neuron model
  • A kind of automatic traversal control method and terminal based on neuron model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] Please refer to figure 1 , a method for automatically traversing controls based on a neuron model, including steps:

[0057] S1. Obtain interface control information, and analyze clickable control groups;

[0058] Among them, based on the uiautomator framework, the interface control information can be obtained through Hierarchy, and then the bounds attribute, clickable attribute, long-clickable attribute, scrollable attribute, class attribute, password attribute, and text attribute of the control are analyzed, according to the clickable attribute and text attribute to determine whether to add the control to the clickable control group, specifically, select clickable=true and the control whose text value is not in the blacklist is added to the clickable control group of the interface; the blacklist can be user-defined , for the controls in the blacklist, the click will not be triggered when traversing, such as the "logout" button in the application, after clicking the b...

Embodiment 2

[0083] Please refer to Figure 4 , a method for automatically traversing controls based on a neuron model, applied to an Android system, the specific steps are as follows:

[0084] The service of Android receives app data to be tested, and said data includes package name, interface name, test time, account and password;

[0085] Judging whether it is the first time to enter the service, if yes, then clear the historical log data, store the app data to be tested in the file, and store the start time of the traversal test, otherwise, obtain the app data to be tested from the file;

[0086] Get all the interfaces of the app to be tested, and judge whether the conditions for the end of the test are met. The conditions include the test time is up or the traversal degree reaches the threshold or the traversal is complete. If so, the traversal ends, the traversal data is stored, and the end broadcast is sent. Otherwise, the current interface is obtained;

[0087] Determine whether t...

Embodiment 3

[0094] A neuron model-based automatic traversal control terminal 1, comprising a memory 2, a processor 3 and a computer program stored on the memory 2 and operable on the processor 3, wherein the processor 3 executes the The program implements the steps of 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 a neuron model-based automatic control traversal method and a terminal. Through a neuron model, a clicking frequency of a control is calculated out, thereby enabling the controlnot to be omitted and repeated during traversal; further, a historical interface control tree is established, the recently clicked control and an interface where the control is located are recorded,and the historical interface control tree is regularly checked, so that the interface is prevented from jumping in same loopback, and the loopback problem is solved; and further, after the current interface is traversed completely, by searching for traversal degrees of sub-interfaces of the current interface, if it is discovered that the sub-interface which is not traversed completely exists, a path of entering the sub-interface is searched for, and the sub-interface is accessed to perform traversal, so that the traversal depth problem is solved.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a neuron model-based automatic traversal control method and a terminal. Background technique [0002] At present, there are two main automation solutions in the software testing industry: one is for testers to write automated test scripts based on business and product interfaces; the other is for automatically traversing controls, traversing all controls of the product. The first method has high requirements for testers, requires a lot of time to develop and maintain scripts, and has a high dependence on the interface, so the project does not want to spend too much energy on the first method. Compared with the first solution, the second solution has less interface dependence, and automatically clicks on the interface effectively by analyzing the controls, which solves the problem of poor controllability of the monkey. Whether it is used for performance testing or as a tool for st...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36G06N3/06
Inventor 刘德建于子娟田志红饶韦明魏小明陈军曾捷
Owner FUJIAN TQ DIGITAL
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