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

Software interface test method and apparatus

A technology of software interface and test method, which is applied in the direction of program control devices, etc., can solve the problems of complex operation and heavy test workload, and achieve the effects of simplified test operation, high maintainability and reduced requirements

Inactive Publication Date: 2009-07-22
ZTE CORP
View PDF2 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the main purpose of the present invention is to provide a kind of software interface testing method and device, to solve the problems of heavy workload and complicated operation of software interface testing based on Hibernate 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
  • Software interface test method and apparatus
  • Software interface test method and apparatus
  • Software interface test method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The technical solutions of the present invention will be further elaborated below in conjunction with the accompanying drawings and specific embodiments.

[0045] Because XML has very strong data format expression ability, most data structures can be expressed in the form of XML, so the present invention applies XML to the software interface test based on Hibernate in Java development, and adopts XML to write configuration file instead of writing test The complex process of the code, the test end tests the software interface by parsing the configuration file, the operation of writing the configuration file is simpler and less workload than the operation of writing the test code, and the configuration file is easier to maintain than the test code.

[0046] Such as figure 1 as shown, figure 1 It is the flowchart of a kind of software interface testing method of the present invention, and this method mainly comprises the following steps:

[0047] In step 101, the testing...

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 software interface test method and comprises the steps as follows: configuration file information is obtained; Extensible Markup Language (XML) analysis is carried out on the obtained configuration file information to obtain the information of a software interface to be tested; a test operation is carried out according to interface instruction and input parameter in the obtained information of the software interface to be tested; and a test result is recorded according to the output parameter type in the information of the software interface to be tested. The invention also provides a software interface tester which is applied to a software interface test based on Hibernate in Java development. XML is used for compiling a configuration file instead of the complex process of compiling a test code, and a test end executes the software interface test by analyzing the configuration file. The method and the device do not require compiling the test code, thereby reducing the workload of the software interface test, simplifying the test operation and improving the test efficiency.

Description

technical field [0001] The invention relates to software testing technology, in particular to a software interface testing method and device. Background technique [0002] Hibernate is an open source object-relational mapping framework, which is currently widely used in Java applications. Hibernate performs lightweight object encapsulation on Java Database Connection (JDBC, Java Data Base Connectivity), so that Java programmers can easily use object programming thinking to manipulate the database. Hibernate can be applied to any occasion where JDBC is used. For example, the background code of the current business management support platform is developed based on Hibernate. As the functions of the business management support platform become more and more complex, more and more functional interfaces need to be provided for front-end calls to meet various needs, and more and more user-defined data objects are encapsulated by Hibernate. In the application, it is necessary to t...

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
IPC IPC(8): G06F9/44
Inventor 萧峻妹
Owner ZTE CORP
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