interface automatic test method based on JMeter and Jenkins and a device thereof

A technology of automated testing and interface testing, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as the inability to generate statistical trend charts of test results independently, and JMeter test results that do not conform to TestAnythingProtocol, etc.

Inactive Publication Date: 2019-02-15
义乌市执御信息技术有限公司
View PDF4 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the existing technology, the test results of JMeter do not conform to the Test Anything Protocol, and the statistical trend chart of the test results cannot be generated independently. The JMeter test result file must be parsed to make it conform to TAP, and the test report can be set independently

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
  • interface automatic test method based on JMeter and Jenkins and a device thereof
  • interface automatic test method based on JMeter and Jenkins and a device thereof
  • interface automatic test method based on JMeter and Jenkins and a device thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] Such as figure 1 As shown, a kind of interface automatic testing system based on JMeter and Jenkins of the present invention comprises use case module, JMeter operation unit, automatic signature module, server module, result output module, result judgment module and automatic execution module, wherein, use case The module is used to assemble the test data (use case data) and the use case code together into a test case without a signature, and output it to the JMeter operation unit; the JMeter operation unit is used to read the test case and send it through the HTTP request that comes with JMeter To the server module; configure the number of times JMeter runs the interface tests of the test cases according to the number of test cases. The automatic signature module is used to intercept the HTTP request, perform signature calculation on the parameters of the test case request, then reorganize the test case, and resend the test case with the signature to the server module;...

Embodiment 2

[0056] Such as figure 2 Shown, a kind of interface automation testing method based on JMeter and Jenkins of the present invention, this interface automation testing method comprises the following steps:

[0057] Step 1. Divide the business modules according to the actual business scenarios of the company, and prepare the use cases corresponding to each business module according to the use case modules;

[0058] Step 2. After JMeter runs, read the configuration files of each business module, obtain the code of the application case, read the relevant data of the use case, assemble the use case code and use case data into a test case without signature, and then use JMeter's own HTTP request Send, according to the number of test cases, JMeter can run the interface test of n test cases, n is greater than or equal to 1;

[0059] Step 3. Each time a test case is sent through JMeter’s built-in HTTP request, the signature-related algorithm code intercepts the built-in HTTP request, p...

Embodiment 3

[0082] Embodiment 3 of the present invention provides an electronic device, including a memory and a processor memory for storing one or more computer instructions, wherein one or more computer instructions are executed by the processor to implement the method described in Embodiment 2. Interface automation testing method based on JMeter and Jenkins.

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 interface automation test method based on JMeter and Jenkins, which comprises the following steps: dividing service modules according to actual service scenarios, and preparing use cases corresponding to each service module according to use case modules; Runing JMeter to read the configuration file of each business module and obtain the code and data of the application example. Assembling The use case code and the use case data into test cases without signatures, and then sending to the server module through JMeter with HTTP request. Every time the test case is sentby JMeter with HTTP request, intercepting the HTTP request, calculating the parameters of the test case request, reassembling the test case, and re-sending the test case with signature to the server module by the signature algorithm. The server module returns the interface test result to the JMeter result output module according to the business scenario. The JMeter result output module judges whether the result is correct or not, and generates the corresponding test report. All test case collections will be written through JMeter and configured in Jenkins to execute at preset intervals in a loop.

Description

technical field [0001] The invention relates to the technical field of software automation testing, in particular to an interface automation testing method based on JMeter and Jenkins and a device thereof. Background technique [0002] Interface testing is a test for testing the interface between system components. It is mainly used to detect the interaction points between external systems and internal subsystems. Mutual logical dependencies, etc. [0003] JMeter is a Java-based stress testing tool developed by the Apache organization, which can perform performance testing and interface testing on HTTP and FTP. [0004] Jenkins is an open source software project. It is a continuous tool developed based on Java. It is used to monitor continuous and repetitive work. It aims to provide an open and easy-to-use software platform to make continuous integration of software possible. [0005] In the prior art, the test results of JMeter do not conform to the Test Anything Protocol...

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/3684G06F11/3688
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