Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for automatically generating test script

A test script and automatic generation technology, applied in the computer field, can solve the problems of cumbersome Java script conversion work, heavy programmer workload, low test script generation efficiency, etc., so as to achieve more humanized generation, improve generation efficiency, and reduce workload. Effect

Active Publication Date: 2014-01-29
青岛金蝶软件科技有限公司
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide a method for automatically generating test scripts, which aims to solve the problem of cumbersome conversion of Java scripts due to the need to reassemble the Java scripts written by users in LoadRunner to produce test scripts that meet the requirements of LoadRunner. The workload of programmers is heavy, and the efficiency of test script generation is low

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] Velocity is a Java-based template engine (Template engine). It allows anyone to simply use the template language (Template language) to refer to objects defined by Java code. Velocity can provide template services (Template service) for various development architectures. Velocity can generate SQL and PostScript, Extensible Markup Language XML from a template (Template), or be used as an integrated component of other systems. When Velocity is applied to Web development, interface designers and Java program developers can simultaneously develop a Web site that follows the pattern-view-controller MVC architecture, that is, page designers can only focus on the display effect of the page, and the Java program developers focus on business logic coding.

[0041] figure 1 The implementation flow of the automatic generation method of the test script provided by the first embodiment of the present invention is shown, and the details are as follows:

[0042] In step S101, input ...

Embodiment 2

[0050] figure 2 The structure of the device for automatically generating test scripts provided by the second embodiment of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown.

[0051] Java script input unit 21, for inputting standardized Java script;

[0052] In the implementation of the present invention, it is required that the input Java test script to be converted should be developed in a normalized and standardized way, and the Java script is written by a preset fixed framework, so as to achieve code style unity, easy unified management, and convenient expansion. For example, the All scripts inherit an abstract class and realize the fixed method of setting, thus forming a standardized Java script.

[0053] Configuration file generation unit 22, for generating the configuration file of the Java script that Java script input unit 21 inputs;

[0054] In the embodiment of the prese...

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 is suitable for the technical field of a computer and provides a method and a device for automatically generating a test script and a system for generating the test script. The method comprises the following steps: inputting a standard Java script; generating a configuration file of the Java script; and generating a LoadRunner test script according to a preset Velocity template file of the LoadRunner test script, the Java script and the configuration file. According to the method, the LoadRunner test script is generated according to the preset Velocity template file of the LoadRunner test script, thereby reducing the work load of a programmer, enabling the generation of the LoadRunner test script to be more humanized and increasing the efficiency of generating the LoadRunner test script.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to an automatic generation method and device of a test script and a test script generation system. Background technique [0002] LoadRunner is an industry-standard load testing tool that predicts system behavior and performance. It supports multiple protocols. It confirms and finds problems by simulating tens of millions of users to implement concurrent load and real-time performance monitoring. LoadRunner can monitor the entire enterprise architecture. Testing, by using LoadRunner, enterprises can minimize testing time, optimize performance and accelerate the release cycle of application systems. [0003] Because the LoadRunner tool is highly professional and supports a wide range of protocols, the Java scripts written by users need to be reassembled in LoadRunner to generate test scripts that meet the requirements of LoadRunner. The conversion work is cumbersome. Whe...

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 Patents(China)
IPC IPC(8): G06F9/44
Inventor 贾江兵
Owner 青岛金蝶软件科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More