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

Automatic pressure testing method and device based on execution command, equipment and medium

A technology for executing commands and stress testing, applied in the field of Internet testing, to achieve the effects of comprehensive test scenarios, improved automation, and high test coverage

Pending Publication Date: 2022-05-10
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides an automatic pressure testing method, device, equipment and medium based on execution commands, which are used to solve the defect in the prior art that different execution commands need to be rewritten for manual execution each time the equipment to be tested is tested, and realize random and automatic stress testing. Generate execution commands to improve test efficiency

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
  • Automatic pressure testing method and device based on execution command, equipment and medium
  • Automatic pressure testing method and device based on execution command, equipment and medium
  • Automatic pressure testing method and device based on execution command, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] Such as figure 2 As shown, the realization process of the Monkey automated stress testing method provided by the present invention is as follows:

[0054] 1. Construction of web test platform

[0055] 1. Use the idea tool to build the springboot project, and the project introduces mybatis+mysql+jsp related dependency packages;

[0056] 2. Build the business layer: view layer (front-end display) → control layer (accept parameters from the front-end for business operations) → business layer (store business logic processing) → data layer (mainly database operations) → entity class layer (database The attributes corresponding to the object), to realize the relevant business logic code;

[0057] 3. Build the front-end page (html+css+layui), the front-end calls the control layer to query the database to obtain the application package name and monkey event parameters and display them on the page for parameter management;

[0058] 4. Use the springboot timer to build the co...

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 provides an automatic pressure testing method and device based on an execution command, equipment and a medium. The method comprises the following steps: when a pressure test timed task is triggered, generating a random execution command set from application package names and execution command event parameters stored in a database in a random splicing form; the random execution command set comprises at least one execution command, and one execution command corresponds to one to-be-tested device; and sending each execution command in the random execution command set to the corresponding to-be-tested device, so that each to-be-tested device executes a pressure test after receiving the respective execution command. According to the method, the execution command is randomly generated, so that the test scene is more comprehensive, the method can be simultaneously suitable for a plurality of to-be-tested devices, and the test efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of Internet testing, in particular to an automatic stress testing method, device, equipment and medium based on execution commands. Background technique [0002] Monkey is a command-line tool in Android, which can run in the emulator or in a real device, and send pseudo-random user event streams (such as clicks, slides, Application switching, horizontal and vertical screens, application closing, etc.) Applications under development are stress tested. [0003] In the prior art, each time a device under test is tested, different Monkey commands need to be rewritten and executed manually, the degree of automation is not high, and only one device under test can be tested in each round of testing, and the test efficiency is low. Contents of the invention [0004] The present invention provides an automatic pressure testing method, device, equipment and medium based on execution commands, which are used to solv...

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
IPC IPC(8): G06F11/34
CPCG06F11/3414G06F11/3457
Inventor 吕智华
Owner BEIJING BYTEDANCE NETWORK TECH 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