Code change-based mobile application test script automatic maintenance method

A technology for mobile applications and test scripts, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve problems such as inability to cover code and lack of versatility, and achieve the effect of reducing burden and high versatility

Active Publication Date: 2016-10-12
NANJING UNIV
View PDF4 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Cannot cover all codes, and a test script corresponds to a specific software, not universal

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
  • Code change-based mobile application test script automatic maintenance method
  • Code change-based mobile application test script automatic maintenance method
  • Code change-based mobile application test script automatic maintenance method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to facilitate the understanding of those skilled in the art, the present invention will be further described below in conjunction with the embodiments and accompanying drawings.

[0038]In the specific implementation of the method for automatically maintaining mobile application test scripts based on code changes according to the present invention, at first two versions of code (source code, intermediate code, binary code, etc.), the behavior state machine model and test script corresponding to the old version are required , the mapping relationship between the old version code and the state machine model, and the mapping relationship between model events and scripts, different versions can be managed through version control. The present invention first analyzes code changes of different versions of codes, obtains code changes that can cause changes in the application behavior model, and abstracts them into model behavior changes, including adding, deleting, mod...

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 proposes a code change-based mobile application test script automatic maintenance method. The method comprises the following steps of 1, performing code change analysis: analyzing changed codes in codes with new and old versions, and performing filtration to obtain code change resulting in change of an interface behavior model; 2, performing model change analysis: performing behavior change analysis on the model by utilizing a corresponding relationship between the codes and elements in the model to obtain behavior change information and model change information, and applying the change to the model so as to obtain a new model; and 3, performing script change repair: abstracting a script statement as an event sequence, and repairing and updating the event sequence corresponding to a script according to the behavior change information and the model change information to obtain a new script that can be normally used. The event sequence in the influenced script is automatically maintained and updated to finally obtain the script that can be applied to the new version so as to reduce the script maintenance burden of test personnel.

Description

technical field [0001] The invention relates to an automatic maintenance method for scripts in mobile application testing, and belongs to the cross technical field of mobile application testing, script testing and model-driven testing. Background technique [0002] In the field of mobile applications, the development cycle of mobile applications is short and the iteration speed is fast. At the same time, due to the variety of hardware and software of devices, a lot of testing work is required. In the testing of mobile applications, manual testing and script-driven testing methods are mainly used. The latter requires testers to write a large number of test scripts or use model-driven testing methods to automatically generate test scripts to achieve the purpose of batch testing. Test scripts here Code written in a scripting programming language enables testing of applications with the support of testing tools. However, during the version iterative regression process, addition...

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 Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3608G06F11/3644
Inventor 王林章李筱李宣东陈志
Owner NANJING UNIV
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