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

Performance test script generation method

A technology of test scripts and scripts, which is 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, test script redevelopment, etc., to achieve reliable generation, easy implementation of automated development, The effect of cost reduction

Active Publication Date: 2009-07-29
CHINA TELECOM CORP LTD
View PDF4 Cites 0 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 script B ret = GetId(1, 4)

[0077] Log file A Log file B GetId In: 1, 4Out: 1234

[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 script B ret = GetId(1, 4)

[0081] Log file A Log file B GetId In: 1, 4 Out: 1234

[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 script B Parameterized result ret = GetId(1, 4)

[0085] 4) Ass...

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 proposes a method for automatically generating performance test scripts. The general process is to record two scripts first, then organize and establish the corresponding relationship between the two scripts, and compare the differences between the corresponding lines of the two scripts. If there is a difference, replace the difference with a custom parameter name. Then search for the interactive operation that generates the difference according to the Log interaction record, and insert the assignment code after the interactive operation in the script to assign the result of the call operation as a self-defined parameter. Eventually a new parameterized script is generated.

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 Patents(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