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

Method for generating and using automatic test script

A technology for automated testing and test cases, applied in the direction of program control devices, etc., can solve the problem of spending a lot of time, achieve the effect of simple use, improve consistency, and speed up test progress

Inactive Publication Date: 2009-11-04
HUANDA COMPUTER (SHANGHAI) CO LTD +1
View PDF0 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the script functions are subdivided and combined in a modular way, it will take a lot of time to organize and manage these script sets
And this method is only suitable for large projects with continuous integration

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 for generating and using automatic test script
  • Method for generating and using automatic test script
  • Method for generating and using automatic test script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] refer to figure 1 , figure 2 As shown, the method steps produced by the automated test script are as follows:

[0032] Step 101: the code analysis module 1 scans the source code to generate a call function relationship;

[0033] Step 102: the use case design module 2 designs a corresponding test case according to the parameters and the value range and sends it to the script generation module 3 as input;

[0034] Step 103: script generation module 3 obtains the above-mentioned call function relationship and test case;

[0035] Step 104: Start traversing from the bottom function, and gradually include upwards until the top function is included;

[0036] Step 105: Extract the currently traversed function group in each of the above inclusion processes, write an empty script, and write an entry function in the generated script, and the currently traversed function group is the entry function The subfunction of is called by it;

[0037] Step 106: Insert a piece of code ...

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 for generating and using an automatic test script. The method for generating the automatic test script is realized in three modules. The method comprises the followingsteps: generating a calling function relation; designing a relative test case; obtaining the calling function relation and the test case; traversing functions from a bottom layer until the function at a top layer is contained; extracting the current traversed function set to be written in a hollow script and writing an inlet function in the script; inserting a code at the opening part of the inlet function so as to read a case; inserting a code at the tail part of the inlet function so as to output a test result; and finally, generating and operating the script. The method for generating andusing the automatic test script can not influence the test effect due to the technical level of an operator and improves the reliability of case execution and the consistency of a regression test andthe test coverage rate.

Description

【Technical field】 [0001] The invention relates to a method for generating and using a script, in particular to a method for generating and using an automated test script. 【Background technique】 [0002] The design of the test case determines the adequacy and reliability of the test, and the transformation from the test case to the test script ensures the implementability of the test case, that is, the test case is recognized by the machine and can be run in the program. [0003] There are many ways to generate and use automated test scripts in the industry: [0004] 1. Generated by manual script recording; [0005] 2. Write script modules and make structural combinations; [0006] 3. Through script sharing, different scripts can call each other; [0007] 4. By storing the test input in a separate data file, only the control information is stored in the test script to call these test data; [0008] The generation and use of the above scripts are all dependent on the progr...

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): G06F9/44
Inventor 杨柳高敏齐武
Owner HUANDA COMPUTER (SHANGHAI) 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