Supercharge Your Innovation With Domain-Expert AI Agents!

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

Active Publication Date: 2018-12-21
HANGZHOU DT DREAM TECH
View PDF9 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the prior art, in order to adapt the piling data provided by the test program to the program under test, it is usually necessary to modify the source code of the program under test, and restore the modified part to the original content after the test is completed In order to adapt to the actual application environment, as a result, there may be at least two or more tested programs in the test version and the released version. Using the wrong program under test foreshadowing the release

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
  • Program testing method, system, apparatus, and computer-readable storage medium
  • Program testing method, system, apparatus, and computer-readable storage medium
  • Program testing method, system, apparatus, and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

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

A method for program testing includes selecting analog data interfaces corresponding to real data interfaces according to test requirements, and constructing test baffles according to each analog datainterface and sending the test data generated by the program under test during the test to the test baffle. Since the simulated data interface is used to simulate the real data interface that the program under test needs to call according to the test requirements, and responds with the same processing logic. Therefore, in the case of using the test baffle generated by the analog data interface, the program under test does not need to modify its own source code to match the staking data, and there will be no two or more different test versions and release versions, which is less difficult to manage, and eliminates the hidden trouble that the test version may be used for release. At that same time, the application also disclose a program testing system, a device and a computer-readable storage medium, which have the beneficial effect mentioned above.

Description

technical field [0001] The present application relates to the technical field of testing, in particular to a program testing method, system, device and computer-readable storage medium. Background technique [0002] In today's information age, people enjoy ubiquitous convenience services through various electronic devices. In the strong market competition, how can we bring users a better experience and make users more satisfied? It is a problem that all application and service providers need to consider. [0003] In order to provide users with applications or services with a better user experience, most applications or large-scale web services today undergo simulated online testing before going online, aiming to discover the actual compatibility and impact resistance of the application or web service through simulated online testing , third-party data interface calls, capacity limits, performance bottlenecks and other important parameters, in order to present the optimally ...

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/368G06F11/3688
Inventor 叶扬科王星颖
Owner HANGZHOU DT DREAM TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More