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

Interface test script implementation method for data offset downloading and automatic test method

A technology for automated testing and implementation methods, applied in software testing/debugging, electrical digital data processing, error detection/correction, etc., can solve the problems of complex testing process, frequent modification of request parameters, low degree of automation, etc., and simplify the testing process Effect

Active Publication Date: 2021-04-30
科来网络技术股份有限公司
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the existing software testing work, when performing interface testing and performance testing on large batches of data downloaded by automatic offsets, the testing process is complex, the degree of automation is low, and the request parameters need to be manually modified frequently.

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 test script implementation method for data offset downloading and automatic test method
  • Interface test script implementation method for data offset downloading and automatic test method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] Such as figure 1 As shown, in this embodiment, an interface test script implementation method for data offset download is specifically provided, and the test script is designed based on the idea of ​​the interface test script implementation method. The implementation method includes:

[0042] S1: Extract the public variables (ip, port, path) and the download offset init_size of each download, which can be understood as the set initial value. Among them, the extracted public variables are ip, port, and path, so that the public variables of all test scripts can be uniformly modified when the server or path is changed; the extracted download offset init_size can be changed according to different The test scripts of the test scenarios are uniformly modified; and then the variables of multiple interfaces are related to each other.

[0043] S2: Obtain the number of files to be downloaded filecount, filename, fileid, and file_size through the file query interface; the number ...

Embodiment 2

[0057] Such as figure 2 As shown, in this embodiment, an automated test method for data offset download is specifically provided. The automated test method writes a test script based on the interface test script implementation method for data offset download described in Embodiment 1, and the The automated testing method is as follows:

[0058] M1: Write the running time run_time variable in the test script; add the running time run_time variable to control the running time in each offset download test scenario;

[0059] M2: Set the number of threads running on the server under test, the size of each offset download, the time of offset download, and the Ethernet ip port as variables of the test script; ensure that different test scenarios can be referenced variables to write test scripts for different test scenarios;

[0060] M3: Write test scripts according to various test scenarios, and integrate each test script into the same test plan; to ensure that one-click execution...

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 test script implementation method for data offset downloading and an automatic test method, belongs to the technical field of software testing, applies a design thought of multi-interface association variables and downloading each request offset of a single file based on a jmx test script compiled by jmeter, and performs interface testing on offset downloading through the test script to obtain an interface test result of data offset downloading. Automatically downloading a large amount of data; meanwhile, the application obtains the output flow of the downloaded data and the processing thought of the component on the consumption of the server resources, the performance of the tested server component is tested by using the test script, many scenes are involved in the statistics of the output flow and the server resources in the downloading process, and one-key execution is carried out by compiling an offset downloading automatic test script. The test process is simplified, and analysis and processing can be carried out through the corresponding output report obtained after operation is completed.

Description

technical field [0001] The invention belongs to the technical field of software testing, and in particular relates to a method for implementing an interface test script for data offset downloading and an automatic testing method. Background technique [0002] ApacheJmeter under the web server software is a commonly used testing tool in software testing. It integrates various controls. Combined with ApacheJmeter, the business logic of the interface is written on this basis, and the interface test and offset downloading are realized. automated test. [0003] The offset means that the data has a fixed position in the storage, and the data acquisition operation can be performed according to the start bit of the data and the size of the data. The offset download interface provides the function of downloading files according to the file offset. The offset download interface is used together with the file query interface to download files. [0004] In the existing software testin...

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/3688Y02D30/50
Inventor 包玲霞
Owner 科来网络技术股份有限公司