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

Pressure testing method based on code method level

A stress testing and code technology, applied in the field of code testing, can solve problems such as increasing the workload of research and development and testing, and achieve the effect of convenient and rapid stress testing

Pending Publication Date: 2021-03-26
盛银消费金融有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Increased R&D and testing workload

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
  • Pressure testing method based on code method level

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the application, not all of them. Based on the embodiments of the application, those of ordinary skill in the art All other embodiments obtained under the premise of no creative work belong to the scope of protection of this application.

[0025] Such as figure 1 As shown, a stress testing method based on the code method level of the present invention is specifically executed according to the following steps:

[0026] S1: Introduce the jar package in the test system that requires stress testing;

[0027] S2: Write unit test classes;

[0028] S3: Add the annotation @Stress to the code of the test class;

[0029] S4: Start the test, print relevant output information, register to zookeeper and monitor the corresponding configuration node when starting, monitor the corres...

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 code testing, in particular to a pressure testing method based on a code method level, which comprises the following steps of: firstly, introducing a jar packet into a testing system to be subjected to pressure testing; writing a unit test class; adding an annotation @Stress to a code of the test class; starting a test, printing related output information, registering to a zookeeper during starting, monitoring a corresponding configuration node, monitoring a corresponding queue, and carrying out message communication with a main controller; obtaining corresponding to-be-executed parameters from the configuration node, including started threads, execution time intervals of the corresponding threads and report notification time, and receiving task execution; notifying the corresponding main control node to communicate through the queue, wherein a communication protocol comprises corresponding information of the node and stage information oftask execution; and completing and gathering task execution to the main controller through the queue. According to the method, before being submitted to a tester, the pressure test can be conveniently and quickly carried out, the system performance condition can be quickly mastered, and code optimization can be carried out.

Description

technical field [0001] The invention relates to the technical field of code testing, in particular to a method-level stress testing method based on code. Background technique [0002] Stress testing, usually refers to back-end stress testing, generally adopts the method of back-end performance testing, continuously exerts pressure on the system, and verifies the stability and performance indicators of the system in or in the critical saturation stage for a long time, and tries to find out whether the system is in the critical saturation stage. The main bottleneck point in the critical state. Therefore, stress testing is often used for testing system capacity planning. In some cases, when performing stress tests, we will deliberately continue to apply pressure on the basis of critical saturation until the system is completely paralyzed, and observe the behavior of the system during this period; then, gradually reduce the pressure to observe whether the paralyzed system can ...

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/36G06F9/54
CPCG06F11/3684G06F9/546
Inventor 宗站奎熊军
Owner 盛银消费金融有限公司