Unlock instant, AI-driven research and patent intelligence for your innovation.

Script running implementation method of Jmeter tool

A technology of implementation methods and tools, applied in software engineering design, creation/generation of source code, instruments, etc., can solve problems such as troublesome operation, and achieve the effect of improving the efficiency of script debugging

Active Publication Date: 2021-07-23
武汉众邦银行股份有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of the above situation, in the process of writing and debugging the automated test script of the whole project, frequent "disable" and "enable" are required, and the operation is extremely troublesome

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
  • Script running implementation method of Jmeter tool
  • Script running implementation method of Jmeter tool
  • Script running implementation method of Jmeter tool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] This solution mainly uses tree operations to complete the data screening, and these technologies are briefly introduced below.

[0024] The tree on the left side of the MainFrame of the Jmeter tool GUI interface displays data in the form of a tree through the JTree component, showing the hierarchical relationship between nodes (such as figure 1 ), the node TreeNode includes ThreadGroup, TestPlan, ResultCollector, DebugSampler, ConfigTestElement, HeaderManager, CookieManager, ResponseAssertion and other test components. The JTree class obtains the paths of all selected nodes through the getSelectionPaths() method, which returns an array of TreePath type.

[0025] Jmeter's test script is a jmx file, which saves the data content of different components and variables, and can load the entire test component in GUI mode. HashTree is a data structure that stores file information internally, and is a mapping of jmx files in memory. HashTree is a data structure that JMeter rel...

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 belongs to the field of software testing, provides a script running implementation method of a Jmeter tool, and solves the problem that a script of the Jmeter tool needs multiple steps and tedious operations during independent running and debugging. According to a main scheme, the method comprises the following steps: step 1, adding a menu item to obtain the menu item of "individual operation" on a right mouse button; step 2, adding a monitoring action to the menu item of "individual operation", wherein the monitoring action comprises steps 3-6; step 3, acquiring a node path array A selected by a JTree component of a GUI of the Jmeter tool; step 4, according to the node path array A, acquiring each level of father node path and each level of child node path of the selected node path, and acquiring a node path set B needing to be reserved; step 5, traversing the Hash tree, and removing non-selected nodes according to the set B to obtain a final Hash tree to be tested; and step 6, calling a starting engine Standard JMete rEngine, configuring a Hash tree, and executing a test.

Description

technical field [0001] This technology is applied in the field of software testing to realize the simple operation of jmeter tool script running on a single node, and solve the problem of multi-step cumbersome operations required for jmeter tool script running and debugging alone. Background technique [0002] Jmeter is a free and open source interface and pressure testing tool, which is widely used in the field of interface testing and performance testing. Its operation method is to click the "Start" button to run and obtain the execution results. In the process of writing the debugging script, in order to save debugging time and facilitate viewing the content of the result tree, it is generally to debug a single http request, and then debug the next http request after ensuring that the http request is ok. by figure 1 For example, jmeter's built-in functions need to be operated as follows: If you want to debug node "01-01" separately, you must first select "01-02", "01-03"...

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): G06F8/34G06F8/38G06F11/36
CPCG06F8/34G06F8/38G06F11/3668
Inventor 魏燕芬李耀田骏
Owner 武汉众邦银行股份有限公司