Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

An automatic interface testing method based on Jmeter

An automated testing and interface technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as easy filling of errors, large workload of finding and modifying errors, and inability to concurrently test requests, making it easy to view. , test a wide range of effects

Inactive Publication Date: 2019-04-09
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF2 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to overcome the deficiencies in the above-mentioned background technology, provide a kind of interface automatic testing method based on Jmeter, can solve the problem of easily filling in errors when manually configuring request data during testing at present, and the workload of finding and correcting errors is relatively large and The problem that test requests cannot be concurrent and test data cannot be changed

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
  • An automatic interface testing method based on Jmeter

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0028] Such as figure 1 As shown, a Jmeter-based interface automation testing method specifically includes the following steps:

[0029] Step 1: Understand the interface parameter specification and clarify the type of request.

[0030] Clarify whether get parameters or post parameters need to verify cookies, UA, etc.; the specific rules for determining whether get parameters or post parameters need to be verified are as follows: when the requested target interface requires authentication or permission verification, cookie, UA, etc. need to be verified. Otherwise, no verification is required;

[0031] If authentication is not required, go directly to the next step, otherwise, add the HTTP Cookie Manager in Jmeter (add-configuration element-HTTP Cookie Manager), and then fill in the parameters of the HTTP Cookie Manager: input name (user name), input value (password), input domain (IP address), and finally click the "Start" button to send a verification request to the IP addre...

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 discloses an automatic interface testing method based on Jmeter. a Jmeter test software tool is used; a thread group to configure its number of concurrent, number of loops, thread starttime parameters, etc. are added to simulate the normal user to send a request to carry out stress test on the server interface,; secondly, c a csv data file is configured to carry out parameterizationsetting so that an interface is accurately tested;, a beanshell script is written or an auxiliary jar packet is imported, and finally a monitor and assertion are added to judge whether a result corresponding to a request is an expected result or not, so as to complete the automatic test of the interface. The method provided by the invention can solve the problems that errors are easy to fill whenrequest data are configured manually during testing at present, the workload of finding and modifying the errors is large, test requests cannot be concurrent, and test data cannot be changed.

Description

technical field [0001] The invention relates to the technical field of interface automation testing, in particular to a Jmeter-based interface automation testing method. Background technique [0002] With the popularization of the mobile Internet, various mobile phone applications and web pages emerge in endlessly. They have already played an irreplaceable role in our daily life, so whether the performance of various network products is up to standard is what we are more concerned about. Therefore, it is necessary to systematically test the interfaces of these network products. [0003] Apache JMeter is a Java-based stress testing tool developed by the Apache organization. Used for stress testing software, it was originally designed for web application testing, but later expanded to other testing areas. It can be used to test static and dynamic resources such as static files, Java servlets, CGI scripts, Java objects, databases, FTP servers, and more. JMeter can be used t...

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
CPCG06F11/3688
Inventor 孙祥
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products