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

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.

Active Publication Date: 2020-06-26
北京信安世纪科技股份有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a method and system for testing interface functions, which are used to solve the problems of large consumption of human resources and low test efficiency and test accuracy in the interface function test methods in the prior art

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
  • Test method and system of a C interface function
  • Test method and system of a C interface function
  • Test method and system of a C interface function

Examples

Experimental program
Comparison scheme
Effect test

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

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 a method and system for testing C interface functions. The method and system are used to solve the problems of low testing efficiency and low testing accuracy in the prior art. The method comprises the steps that when the testing system is determined to satisfy preset testing conditions, all the to-be-tested C interface functions can be determined, and the following operations will be executed cyclically till all the C interface functions are tested: a C interface function among all the C interface functions is selected and taken as a current C interface function; all the parameters of the current C interface function are acquired, the acquired parameters are provided to the current C interface function, and a return value of the current C interface function is acquired; and the returned value is matched with a predicted value, and whether the current C interface function passes the testing is determined based on matching results. By the testing system, the current C interface functions are selected successively for testing, so automatic testing of all the C interface functions of a testing product is achieved; and problems such as testing omission and inaccurate testing results caused by manual testing can be avoided.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and system for testing C interface functions. Background technique [0002] With the continuous development of computer technology, various platform products have emerged. In practical applications, there are mainly six platform products, including Windox32, Windox64, Linux32, Linux64, AIX32 and AIX64. In order to ensure the normal operation of platform products and improve user experience , platform product testing becomes an important link, among which, C interface function testing is an important part of platform product testing. [0003] In the prior art, the C interface function is usually tested by manual testing to ensure the availability of the C interface function. Although this method of manually testing the C interface function can realize the test of the C interface function to a certain extent, the , because the C interface contained in each platform prod...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 张红娇张庆勇李伟
Owner 北京信安世纪科技股份有限公司