Check patentability & draft patents in minutes with Patsnap Eureka AI!

Performance test script generation method

A test script and script technology, applied in the field of automatic generation of performance test scripts, can solve the problems of parameterization cost and error rate increase, troubles in correct software operation, redevelopment of test scripts, etc. cost reduction effect

Active Publication Date: 2008-07-02
CHINA TELECOM CORP LTD
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] 1. There are technicians who are cumbersome and need to have considerable work experience in testing
[0013] 2. As long as there are more original scripts recorded, the cost and error rate of parameterization will also increase greatly
[0014] 3. For the performance test of software with a fast change frequency, it is often due to a small change in the software that the test script needs to be redeveloped
[0015] 4. There may be a problem of incomplete parameterization, that is, some parameters that should be parameterized are not parameterized, which will cause trouble for the correct operation of the software

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
  • Performance test script generation method
  • Performance test script generation method
  • Performance test script generation method

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0073] The flow of the above method will be described below in conjunction with a specific example.

[0074] 1) recording

[0075] The recorded script and Log file are briefly expressed as follows:

[0076] Script A

[0077] Log file A

[0078] 2) Preprocessing (blocking and matching)

[0079] Match the calls in the two scripts according to the characteristics of the calls. The corresponding relationship after matching is as follows:

[0080] Script A

[0081] Log file A

[0082] 3) Parameterization

[0083] By comparing the two scripts, one difference is found: the first parameter of Login is different. Make a note of the difference, and give the difference the parameter name Param1.

[0084] Script A

[0085] 4) Association

[0086] By looking for the origin of '1234' in Log file A, we found that the first GetID may have generated it, but we are not yet sure whether this is a coincidence, which requires horizontal verifi...

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 automatic generation method of performance test script. The general process of the method comprises the following steps: recording two scripts, sorting the scripts and constructing the corresponding relationship between the two scripts, comparing corresponding rows of the two scripts to obtain the difference, changing the content of the difference to a customized parameter name, searching the inter-operation producing the difference according to a Log inter-record, inserting an assignment code in the scripts after the inter-operation to assign the result produced by a calling operation as a customized parameter, and finally generating a new parameterized script.

Description

technical field [0001] The invention relates to the technical field of software performance testing, in particular to a method for automatically generating performance testing scripts. Background technique [0002] Modern software performance testing uses a large number of stress testing tools. The principle is: intercept the interactive content between the client and the server and generate a script from it. After the script is organized (that is, developed), a large number of clients are virtualized by the tool. Connect and interact with the server at the same time to achieve the purpose of black-box stress testing. [0003] In the prior art, the current mainstream stress testing tools include LoadRunner (HP / Mercury), QAload (Compuware), and WAS (Microsoft). [0004] After recording the interaction between the client software and the server, the stress testing tool generally produces two types of files: [0005] Script files (Scripts) and log files (ReplayLog). [0006]...

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
Inventor 林全疆蔡坚铮徐雄梁剑钊袁立宇胡颖茂
Owner CHINA TELECOM CORP LTD
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