Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for automatically generating test script

A technology for automatic generation of test scripts, which is applied in the computer field and can solve problems such as the inability to automatically generate interface test scripts

Pending Publication Date: 2020-04-17
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the embodiment of the present invention provides a method and device for automatically generating test scripts, which can solve the problem that the existing technology cannot automatically generate interface test scripts

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
  • Method and device for automatically generating test script
  • Method and device for automatically generating test script
  • Method and device for automatically generating test script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0040] figure 1 is a schematic diagram of the main flow of a method for automatically generating a test script according to an embodiment of the present invention, and the method for automatically generating a test script may include:

[0041] Step S101, obtaining a predecessor binary search tree generated according to the interface parameters to be tested, so as to trave...

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 method and device for automatically generating a test script, and relates to the technical field of computers. A specific embodiment of the method comprises the steps of obtaining a precursor binary search tree generated according to a tested interface parameter so as to traverse the precursor binary search tree; obtaining an input parameter of the tested interface according to the traversed parameters so as to generate a call statement of the tested interface; and generating a test script of the tested interface according to the input parameter of the tested interface and the call statement of the tested interface. According to the embodiment, the problem that the interface test script cannot be automatically generated in the prior art can be solved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for automatically generating test scripts. Background technique [0002] With the continuous development of automated testing technology, interface automation technology has become an indispensable detection method in any information system testing life cycle. At present, in various interface testing frameworks, all workflow testers write test scripts according to the specifications of the test framework, design parameter pools, and run test scripts for testing. In the workflow of the above-mentioned automated interface test script, due to the rapid update and rapid iteration of the tested interface, the maintenance of the test script has become a constraint that affects the quality of the automated test of all interfaces. [0003] In the course of realizing the present invention, the inventor finds that there are at least the following problems in the prio...

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/3684
Inventor 陈磊周敬岩贾瑞卿牛锋华
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products