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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

