Interface test case automatic generation method and tool

A technology of automatic generation and interface testing, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve problems such as not having cross-software features, increase coverage, reduce rewriting of test scripts, and reduce heavy tasks Effect

Pending Publication Date: 2020-06-30
上海云扩信息科技有限公司
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Whether it is script-based testing or model-based testing, there is complex and heavy code writing work, which requires manual design of test suites, and does not have the characteristics of cross-software, which means that any new software web page or application needs to redesign the test suite

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
  • Interface test case automatic generation method and tool
  • Interface test case automatic generation method and tool
  • Interface test case automatic generation method and tool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0045] see figure 1 As shown, the embodiment of the present invention provides a method for automatically generating interface test cases, including:

[0046] Step 100: Record all operable actions on the software interface to obtain an operable action space;

[0047] Step 200: Select the test target of the software interface;

[0048] Step 300: Using the Q-Learning algorithm to find a series of feasible operation sequences in the operable action spac...

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 interface test case automatic generation method and tool. The method comprises the following steps of by recording an operable action space of a software interface , exploring the operable action space of the software interface by utilizing a reinforcement learning algorithm to obtain a state space and obtain a series of feasible operation sequences; and according to thestate space and the test target, utilizing a dynamic programming algorithm to analyze and obtain one or more operation sequences which are optimal or closest to real person operation, and finally automatically compiling codes according to the operation sequences to generate a test tool. A Q-learning reinforcement learning algorithm and a Dynamic Program dynamic programming algorithm are combined to autonomously learn operable actions of a software interface; the complete test tool is automatically generated, heavy tasks of writing the test tool by a tester in interface testing are reduced, thesituation that a test script needs to be rewritten after a program or an interface is changed is reduced, and the coverage rate of the test suite is greatly increased.

Description

technical field [0001] The invention belongs to the technical field of software testing, in particular to a method and tool for automatically generating interface test cases. Background technique [0002] Under the background that the development cycle of software, web pages, and mobile applications is constantly shortening, and the iteration speed of software products is increasing, the importance of automated testing is self-evident. At present, the problems many companies encounter are the lack of testers, the test speed cannot keep up with the update speed, and even some small-scale companies skip the test link, which will cause greater instability in software products. Software graphical user interface testing is more important in software product testing, because it is the most direct and effective method to verify product reliability from the user's point of view. [0003] The existing technology is based on keyword-driven automated testing framework: in keyword-driv...

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/3684G06F11/3688
Inventor 刘春刚季启光孙钊
Owner 上海云扩信息科技有限公司
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