Test method, device, apparatus, and storage medium

A test method and variable technology, applied in the field of testing, can solve the problems of increasing the test cycle and test difficulty, raising the test threshold of testers, etc., and achieve the effect of shortening the test cycle, reducing the test difficulty and lowering the test threshold.

Active Publication Date: 2019-02-19
WUHAN DOUYU NETWORK TECH CO LTD
View PDF8 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, since the parameterization of the scripts in the performance testing platform in the prior art is generally done manually, the test cycle and test difficulty are increased, and the test threshold for testers is also raised.

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
  • Test method, device, apparatus, and storage medium
  • Test method, device, apparatus, and storage medium
  • Test method, device, apparatus, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] figure 1 It is a schematic flow chart of a test method in Embodiment 1 of the present invention. This embodiment is applicable to the situation where a performance test platform is used to perform a stress test on a server or other electronic equipment, the method is executed by a testing device, the device is implemented by software and / or hardware, and is specifically configured in the electronic device.

[0028] Among them, the performance testing platform simulates user behavior through script code, and generates large-scale concurrent thread calls through the stress engine of the performance testing platform, thereby achieving the effect of simulating tens of millions of user behaviors. Among them, the performance testing platform can be a secondary development platform based on the open source NGrinder stress testing platform.

[0029] Such as figure 1 The test methods shown include:

[0030] S110. Obtain the pressure measurement link and the variable to be par...

Embodiment 2

[0045] figure 2 It is a schematic flow chart of a test method in Embodiment 2 of the present invention. The embodiments of the present invention are optimized on the basis of the technical solutions of the foregoing embodiments.

[0046]Further, the variables to be parameterized include user-defined variables and / or context-related variables. Correspondingly, after the operation "obtain the pressure test link and the variable to be parameterized inputted by the user", add "the variable of the variable to be parameterized The identifier and the variable value corresponding to the variable identifier are stored in the thread container corresponding to the current thread", so as to realize the isolated storage of the variable to be parameterized and reduce the coupling of parameterization.

[0047] Further, after the operation "store the variable identifier of the variable to be parameterized and the variable value corresponding to the variable identifier in the thread containe...

Embodiment 3

[0065] image 3 It is a schematic flow chart of a test method in Embodiment 3 of the present invention. In this embodiment, additional optimization is performed on the basis of the technical solutions of the foregoing embodiments.

[0066] Further, the variable to be parameterized includes a function variable, and correspondingly, "determine at least one objective function based on the variable identification of the variable to be parameterized, and abstract the at least one objective function into a general function component"; correspondingly , replacing the operation "splicing the stress test link and the variable to be parameterized to obtain an initial key string" with "splicing the stress test link and the at least one objective function to obtain an initial key string", To enrich the types of variables to be parameterized, expand the usage scenarios of parameterization.

[0067] S310. Obtain the pressure measurement link and the variables to be parameterized input by ...

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 embodiment of the invention discloses a test method, device and apparatus and a storage medium. The method comprises the following steps: obtaining a pressure test link input by a user and a variable to be parameterized; splicing the pressure test link and the variable to be parameterized to obtain an initial key string, and inputting the initial key string into a pre-constructed initial testscript to obtain an initial script code; The parameterized placeholder in the initial script code is identified, and the identified parameterized placeholder is filtered to obtain the target script code. By adopting the technical proposal, the script is parameterized, the script code can be tested without manual modification of the tester, the test threshold of the tester is reduced, and the testdifficulty is reduced; At the same time, by filtering the parameterized placeholders in the process of script code generation, the code running time is reduced and the test cycle is shortened.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of testing, and in particular, to a testing method, device, equipment, and storage medium. Background technique [0002] In order to test the software quality and its reliability, the software will be stress-tested through the performance testing platform during the software development process. [0003] In the prior art, user behaviors are usually simulated through scripts, and large-scale concurrent thread calls are generated through the stress engine of the performance testing platform, thereby achieving the purpose of simulating tens of millions of user behaviors. However, the data corresponding to the same behavior of the user may change, for example, the user name and password are different when logging in, so the performance testing platform needs to set different parameters of the script when applying pressure. [0004] However, in the prior art, the parameterization of scr...

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/3696
Inventor 付得龙
Owner WUHAN DOUYU NETWORK TECH CO LTD
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