Test method and system of a C interface function
A technology of interface function and test system, which is applied in the computer field, can solve the problems of high consumption of human resources, low test efficiency and test accuracy, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0097] refer to figure 1 As shown, in Embodiment 1 of the present invention, the flow process of the testing method of the C interface function is as follows:
[0098] Step 100: When the test system determines that the preset test conditions are met, determine all C interface functions to be tested, and perform the following operations in a loop (i.e. loop execution of steps 101-104), until all C interface functions are tested.
[0099] In practical applications, in order to ensure the smooth progress of the C interface function test, before performing step 100, the following operations can be performed:
[0100] Operation 1: Set basic information.
[0101] (1) Running attribute setting, wherein, the running attribute indicates whether the C interface function needs to be tested, specifically, "on" can be used to indicate running, and "off" can be used to indicate not running.
[0102] (2) The absolute path setting specifically includes: the absolute path of the dynamic data...
Embodiment 2
[0137] In practical application, in the process of testing each C interface function contained in the test product, the test system can also test the C interface function in different situations, so as to realize the comprehensive test of the C interface function and ensure the integrity of the test product. reliability. The following is a further detailed description of the comprehensive test of each C interface function contained in the test product, refer to Figure 2A and Figure 2B As shown, in Embodiment 2 of the present invention, the specific flow of the testing method of the C interface function is as follows:
[0138] Step 200: Set basic information, customize parameter types, and configure registration function XML files and test data XML files in the test system.
[0139] Specifically, when setting basic information, it mainly includes the following three types of basic information:
[0140] (1) Basic property settings, including but not limited to:
[0141] A....
Embodiment 3
[0183] Based on the above examples, see image 3 As shown, in the third embodiment of the present invention, the test system of the C interface function at least includes: an execution module 300, wherein the execution module 300 is used to determine all the C interfaces to be tested under the condition of satisfying the preset test conditions function, and perform the following operations in a loop until all C interface functions are tested:
[0184] Select a C interface function from all C interface functions as the current C interface function;
[0185] Obtain each parameter of the current C interface function, and provide each obtained parameter to the current C interface function, and obtain the return value of the current C interface function;
[0186] Match the return value with the expected value of the current C interface function, and determine whether the current C interface function passes the test based on the matching result;
[0187] Confirm that the current C...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


