Automated integration testing method

A technology of integration testing and testing, applied in the field of automated integration testing, can solve problems such as unavailability, and achieve the effect of improving testing efficiency

Inactive Publication Date: 2014-06-25
上海明想电子科技有限公司
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The convenience of the unit test mock tool cannot be used in the integration test phase

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
  • Automated integration testing method
  • Automated integration testing method
  • Automated integration testing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] A method for automated integration testing proposed by the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0022] Please refer to image 3 , image 3 It is a flow chart of the automated integration testing method in the present invention. This embodiment is performed in the integration-test phase defined by maven, and the test code in this embodiment is executed in this phase.

[0023] In this embodiment, we have carried out the following steps, such as image 3 Shown:

[0024] (1) Collect the jar package dependencies of the project, including those whose scope is test. The main purpose of this is to make the final unit test code also run in the web container;

[0025] (2) Collect the java classes belonging to the integration test according to certain rules, so that these test classes can be run immediately after the container is started;

[0026] (3) Add a runnable java class (wi...

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 relates to an automated integration testing method and comprises the following steps: firstly, collecting dependency conditions of a jar package of the project, including the condition that scope is of test; secondly, collecting java classes belonging to integration testing; third, adding an executable java class, when the executable java class is on, acquiring the information of the jar package collected in the first step, and adding the java package into class loader, and starting a web container; fourthly, starting a new thread in the process of the application to start, executing the texting class connected in the second step after the application to start, outputting all the text reports to specified directories so as to check the result of testing conveniently; fifthly, closing the container and exiting the program after all the testing classes finish. The technical scheme of unit testing is introduced into the integration testing so that the integration testing can automatically execute and send the testing reports like the unit testing.

Description

technical field [0001] The invention relates to an integration testing method, in particular to an automatic integration testing method. Background technique [0002] Now in the application of unit testing in the java field, there are testng and junit, which are more popular. Related mock tools include jmockit, mockito, easymock, etc. Database mocking tools include dbunit, etc. After these tools are used flexibly, we can effectively unit test our code. [0003] But in the integration test stage, we can only construct the return result of the http interface, and then set the interface address as the mock address. Relatively speaking, this mock data is shared by everyone, and a lot of processing is required in order to use one copy for each. There is basically no such problem in unit tests. The mock data in a test class is exclusive to this class and will not affect other test classes. [0004] Such as figure 1 As shown, it is the work that needs to be completed in the 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 杨飞陈寄文
Owner 上海明想电子科技有限公司
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
Try Eureka
PatSnap group products