Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for automatically generating Ice interface test case and test script

An interface testing and automatic generation technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of low efficiency of Ice interface test case generation, restricting test progress, and illogical, etc. Quickly execute tests, reduce the impact of delays in test progress, and improve execution efficiency

Active Publication Date: 2021-09-21
10TH RES INST OF CETC
View PDF10 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006]1) When carrying out the Ice interface test, it usually relies on the client program for testing, that is, only after the development of the client program interface can the server interface test be carried out. Although there is no difference between the test environment of the method and the actual running environment, it affects and restricts the test progress; in addition, because the client program restricts and protects some abnormal input, some abnormal test cases cannot be executed, so that it is impossible to find more interface defect
As the development stage advances, the later the interface test is carried out, the cost of fixing bugs is also rising
[0007]2) Unlike building other interface test environments, the Ice interface is a soft interface and it is not easy to build an environment separately from the server. If you want to build an Ice interface test environment independently , the cost is high and the time is long, and the test environment reuse rate is low
[0008]3) Ice interface test case generation is inefficient and of average quality
Interface testing generally adopts the black-box testing method, and use-case design techniques such as equivalence class division and boundary value analysis are used to carry out use-case design. The values ​​of interface input parameters are not combined to conduct sufficient tests; in addition, due to the use of black-box testing, the problem of logic coverage in the interface implementation program is not considered, resulting in the inability to obtain the integrity and coverage of the use case design Assure
[0009]4) Ice interface test execution efficiency is low
Since the current Ice interface test mainly relies on the client for testing, although the server and client programming languages ​​implemented by Ice can be different, in order to facilitate management and maintenance, in general, the programming language for implementing the client program and the server program are the same Consistently, if the client program is implemented in a static language such as C++ or Java, when the client program needs to be modified to execute some special use cases during the test, it has to face time-consuming steps such as recompiling, linking, and running the target program. And there may also be compilation errors, link errors or environment configuration errors, which greatly affect the execution efficiency of the interface test
[0010]5) Fuzz testing technology is not used for Ice interface testing
The trick with fuzzing is that it is illogical, automated fuzzing doesn't try to guess which data will cause corruption, but throws as much messy data as possible into the program

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
  • Method for automatically generating Ice interface test case and test script
  • Method for automatically generating Ice interface test case and test script
  • Method for automatically generating Ice interface test case and test script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] refer to figure 1 . According to the present invention, based on the network communication engine ICE communication middleware, the Ice interface test project is established, the Slice source file of the interface to be tested is imported, the module identification, interface identification, and interface parameter information are extracted and stored in the interface basic information XML, and slice2py is called to compile the Slice file , generate corresponding Ice interface proxy code and skeleton code; import Ice interface implementation source files, support Java, C++ or Python source files, automatically extract interface implementation information and Ice creation object adapter and other information into interface implementation information XML; use interface basic information XML, using the equivalence class division method and boundary value analysis method to preliminarily determine the value of the input parameter, according to the extracted logical conditio...

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 for automatically generating Ice interface test case and test script. The coverage degree of a test case and the test quality of an ICE interface can be improved. The method is realized through the following technical scheme: establishing an ICE interface test project based on network communication engine ICE communication middleware, importing a slice file to extract interface description information, storing the interface description information in interface basic information XML, creating adapter information and interface implementation information, storing the adapter information and the interface implementation information in the interface implementation information XML, and calling a command to generate a skeleton code; determining an input parameter value through interface basic information and interface implementation information XML, and automatically generating an interface test case set file by adopting equivalence class division, boundary value analysis, logic coverage analysis and pairwise test and fuzzy test technologies; and automatically generating an ICE interface test script according to the ICE interface implementation information XML, running the interface test script after running the server program, automatically completing interface test case execution and generating a test report.

Description

technical field [0001] The invention relates to software interface testing technology in the technical field of automated testing, in particular to a method for automatically generating Ice interface test cases and test scripts based on Internet Communications Engine (Ice) communication middleware. Background technique [0002] The network communication engine Ice is a high-performance, object-oriented network communication middleware implemented by ZeroC's distributed system development experts. It is suitable for most heterogeneous network environments. It can use different programming languages ​​to write servers and clients. Platforms running on various operating systems. ICE provides a simple object model, a concise and powerful application interface, an efficient and compact protocol, and rich calling and dispatching modes. In addition, ICE also provides distributed management services, which are mainly used to locate ICE and activate ICE applications. Running the sa...

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/3684G06F11/3688Y02D10/00
Inventor 孙云冯飞王月波
Owner 10TH RES INST OF CETC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products