Program testing method, system, apparatus, and computer-readable storage medium
A technology of program testing and computer programs, applied in the field of testing, can solve the problems of increasing management difficulty, at least two or more test versions and release versions, and achieve the effect of low management difficulty
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] The following combination figure 1 , figure 1 It is a flow chart of a program testing method provided in the embodiment of this application, which specifically includes the following steps:
[0061] S101: Select the simulated data interface corresponding to the real data interface according to the test requirements, and build a test baffle according to each simulated data interface;
[0062] The purpose of this step is to select the simulated data interface corresponding to the real data interface. The real data interface is usually some packaged and function-integrated third-party functional interface, which can be used without understanding its specific working principle. Direct call is equivalent to the concept of a black box, while the real data interface refers to the data interface that the program under test will use according to the test requirements, and these data interfaces are real, such as calling a third-party map interface to implement the test location ...
Embodiment 2
[0073] The following combination figure 2 , figure 2 The flow chart of a program testing method provided by the embodiment of the present application. This embodiment is different from the part of Embodiment 1. It adds S203 to realize that after the test is completed, the program under test can complete data processing based on the real data interface. part:
[0074] S201: Select the simulated data interface corresponding to the real data interface according to the test requirements, and build a test baffle according to each simulated data interface;
[0075] S202: Send the test data generated by the program under test to the test baffle, so as to use the simulated data interface in the test baffle to simulate the real data interface to respond to the test data;
[0076] S203: After the program under test is tested, restore the mapping relationship between the program under test and each simulated data interface to each corresponding real data interface.
[0077] After th...
Embodiment 3
[0079] The following combination image 3 , image 3 It is a flowchart of a method for elastically adjusting the number of service instances provided on the basis of the program testing method provided in Embodiment 1 or 2. The specific implementation steps are as follows:
[0080] S301: Real-time monitoring of the use of test data for each analog data interface;
[0081] Wherein, the use condition may include multiple meanings, such as the magnitude of the test data per unit time, the data processing speed of each analog data interface per unit time, and so on.
[0082] S302: When the test data load of a simulated data interface exceeds the preset load upper limit, increase the number of service instances of the simulated data interface up to the maximum number of instances;
[0083] S303: When the test data load of a simulated data interface is lower than the preset load lower limit, reduce the number of service instances of the simulated data interface to the minimum numb...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com