Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method and device for testing JAVA API unit component

A unit component and test library technology, applied in the field of JAVA system testing, can solve the problems of increasing the work intensity of testers, high development and maintenance costs, and achieve the effects of reducing development and maintenance costs, less script maintenance, and reducing work intensity

Active Publication Date: 2013-03-13
WUHAN TIANYU INFORMATION IND
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the existing testing process, there are not only standard APIs that conform to the GP (Globle Platform) specification, but also a custom API implemented by application developers to achieve specified functions. If the API function is modified or added, that is, when the corresponding unit components are updated, the corresponding test platform needs to be redeveloped, which undoubtedly increases the work intensity of the testers and requires the testers to have professional skills. Script programming knowledge, high development and maintenance costs

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 and device for testing JAVA API unit component

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0042] In order to detect whether the JAVA API unit component is reliable, including whether the input / output parameters of the detection API are correct, whether the function of the API meets the requirements, and whether the abnormal situation of the API is correctly handled, the embodiment of the present invention provides a method for testing the JAVA API unit component , see figure 1 As shown, the method includes the following steps:

[0043] S1. Create an API test library according to the JAVA API unit component to be tested. The API test library includes the JAVA API unit component to be tested, variable information of the JAVA API unit component to be tested, test API private instructions, and test API private instruction return results ;When the test items of this API are updated, the corresponding update test API private in...

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 a device for testing a JAVA API (application program interface) unit component, which relate to the field of JAVA system testing. The method comprises the following steps that an API test library is established according to the to-be-tested JAVA API unit component and comprises the to-be-tested JAVA API unit component, to-be-tested JAVA API unit component variable information, an API testing private instruction and an API testing private instruction return result; the API test library is compiled by using a localization compilation tool to generate an application Applet for the testing; the application Applet is called according to a testing item; a testing script is generated by a local testing tool and executed; the testing is finished; the application Applet for the testing is deleted; and a testing environment is recovered. According to the method, the working strength of a tester can be reduced; the tester is not required to have very professional script programming knowledge; and the development and the maintenance cost in the testing process is reduced.

Description

technical field [0001] The invention relates to the field of JAVA system testing, in particular to a method and device for testing JAVA API unit components. Background technique [0002] With the continuous promotion and improvement of JAVA technology, the use of JAVA applications is becoming more and more extensive. In order to meet the different needs of different industries, different functions need to be met through technical means. API (Application Programming Interface, application programming interface) is an important part of the JAVA system, and it is also an indispensable part of the JAVA system testing process. In the actual development process, developers implement the functions of each component by creating APIs to meet the different needs of different industries. [0003] API testing is used to verify that the individual methods that make up the software are correct. API testing is also called unit testing, module testing, component testing or component testi...

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
Inventor 杨勋李晓俊
Owner WUHAN TIANYU INFORMATION IND
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products