Adaptive text input generation method based on natural language processing and machine learning

Yang Min,Yang Zhemin,Zhang Lei,He Yuyu,Zhang Yuan
2020-01-01
Abstract:The invention belongs to the technical field of program dynamic analysis and testing, and particularly relates to a self-adaptive text input generation method based on natural language processing andmachine learning. The method comprises the steps of extracting constraint information based on a UI structure and machine learning, firstly obtaining UI interface information in an Android applicationdynamic test in real time, extracting generated text information, identifying all constraint information by utilizing a machine learning method, and binding the constraint information with a corresponding input box; performing constraint information analysis based on natural language processing, performing multi-classification on the extracted constraint information by using a CNN-RNN classifier,performing corresponding analysis processing on constraints belonging to different classification categories by using a natural language processing method, and extracting constraint components related to text input; and converting the constraint information into an input format of a character string generator based on generation of text input of the character string solver, and filling the inputformat into an input box. The method can help to dynamically test and analyze tools and improve the code coverage rate and the detection rate of privacy, vulnerabilities and the like during testing.
What problem does this paper attempt to address?