Method for automatically generating Jmeter script

A technology of automatic generation and scripting, which is applied in the direction of creating/generating source code, instruments, electrical digital data processing, etc. It can solve the problems of Jmeter tool incompatibility, low efficiency, difficulty in mastering professional terms and skills, etc., to avoid execution failure and Effects of reporting errors, eliminating dependencies, and improving legibility

Pending Publication Date: 2020-07-17
中电万维信息技术有限责任公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At the same time, due to the diversity and variability of test requirements, test scripts will also change accordingly
Usually, performance test scripts are compiled manually by performance testers. Due to the large differences in experience and technical capabilities of performance testers, and there are a large number of technical terms and skills that are not easy to master in Jmeter tools and scripts, manual scripts Jmeter scripts often have many errors when actually performing performance tests, resulting in inefficiency or even failure to complete the expected performance tests
[0003] In order to solve the above problems, there are some methods or auxiliary tools for semi-automatically generating Jmeter test scripts in the prior art. These tools can improve the writing speed of Jmeter scripts to a certain extent, but they cannot automatically generate complete Jmeter test scripts. Secondary development and adjustment in Jmeter GUI tool
In addition, because the semi-automatically generated Jmeter scripts may have a large number of errors or incompatible Jmeter tools, the efficiency of writing and generating Jmeter scripts is not greatly improved, and accurate, complete, and highly flexible automated test scripts cannot be generated. At the same time, it does not reduce the difficulty of writing Jmeter 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 for automatically generating Jmeter script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The present invention is described in detail below in conjunction with accompanying drawing and specific embodiment:

[0032] A Jmeter script automatic generation method comprises the steps:

[0033] S1: Encapsulate Jmeter script keywords;

[0034] S2: set test strategy;

[0035] S3: Select keywords and configure parameters;

[0036] S4: keyword and its parameter verification;

[0037] S5: context correlation check;

[0038] S6: data compliance verification;

[0039] S7: Generate Jmeter script.

[0040] The Jmeter script keywords encapsulated in step S1 further described include test plan, execution plan, httpCookie manager, http request default value, http request, transaction (scenario) controller, simple controller, conditional branch controller, loop control Jmeter, regular expressions, generating csv files, uploading csv files, and back-end listeners; use Java, Python and other languages ​​to encapsulate Jmeter keywords, and set keyword names and parameter na...

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 relates to the technical field of software performance testing, in particular to a Jmeter script automatic generation method, which comprises the following steps of S1, packaging Jmeterscript keywords; S2, setting a test strategy; S3, selecting keywords and configuring parameters; S4, verifying the keywords and the parameters thereof; S5, performing context association verification;S6, verifying the data compliance; and S7, generating a Jmeter script. Through the method described by the invention, the Jmeter script can be quickly, accurately and automatically generated, and thereadability and understandability of script configuration are improved.

Description

technical field [0001] The invention relates to the technical field of software performance testing, in particular to a method for automatically generating Jmeter scripts. Background technique [0002] Jmeter tool, as a popular open source performance testing tool, is increasingly used in performance testing of various servers, software systems, software interfaces, etc. Test scripts are the basis of performance testing. A complete Jmeter script should at least include test plans, thread groups, external parameterization files, HTTP requests, request response reading, and result reports. At the same time, due to the diversity and variability of test requirements, test scripts will also change accordingly. Usually, performance test scripts are compiled manually by performance testers. Due to the large differences in experience and technical capabilities of performance testers, and there are a large number of technical terms and skills that are not easy to master in Jmeter to...

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/36G06F8/30
CPCG06F11/3672G06F8/315
Inventor 何鹏林王朝晖刘磊李旭水晓艺吕婧
Owner 中电万维信息技术有限责任公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products