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

Data preparation method in test and system provided with the same

A technology of data and interface data, applied in the field of testing, can solve the problem of manual configuration of a large amount of data, and achieve the effect of accurate test cases, saving time and improving efficiency

Active Publication Date: 2015-07-08
ALIBABA GRP HLDG LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] This application provides a method and system for preparing data in testing to solve the problem that data preparation in testing requires a lot of manual configuration

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
  • Data preparation method in test and system provided with the same
  • Data preparation method in test and system provided with the same
  • Data preparation method in test and system provided with the same

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0044] In the original test method, for example, Itest is an interface test framework, which uses junit as the basic framework of the entire test, uses dbunit as a tool for automatically managing the database, and encapsulates the content related to the test data of dbunit to complete the test data. Generate and verify. Wherein, the junit is an open source Java test framework for writing and executing repeatable tests. dbunit is a database testing framework based on junit extensions. It provides a large number of classes to abstract and encapsulate database-related operations.

[0045] refer to figure 1 , a flow chart of the Itest test framework in the prior art described in the embodiment of the pres...

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 provides a data preparation method in test and a system provided with the data preparation method in test so as to solve the problem that a great amount of manual configuration is needed in data preparation for a test. The data preparation method includes that the call situation of each interface is monitored, and the interface data of each call interface is intercepted when a test case is executed for the first time; the interface data is saved in a same file after the execution of the test case for the first time is accomplished; and the interface data is read from the file when the test case is executed again. According to the data preparation method and system in test, the automatic interception of interface data is achieved, and the interface data is saved in the same file when the test case is executed for the first time, and the interface data in the file can be directly called for the test when the test case is executed again. Manual configuration is not required, and data searching in a database is avoided. Therefore, the data preparation method in test and the system provided with the data preparation method in test saves time, improves efficiency, and reduces error rate.

Description

technical field [0001] The present application relates to the technical field of testing, in particular to a method and system for preparing data during testing. Background technique [0002] Interface testing is a test for testing the interfaces between system components, and is mainly used to detect the interaction points between external systems and internal subsystems. [0003] In the current interface test, when the test case is executed for the first time, the test will call many real interfaces to ensure that the generated data is correct, and then store the data generated in the first test into the corresponding position of each data in the database . Since the system is often upgraded and maintained, it is necessary to continuously execute the same test case to test whether there are problems in the system. When the same test case is executed again, the real interface is no longer called, but the simulated interface is called to execute the test case, so as to che...

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
Inventor 金争争盛雁葛媛杨立家
Owner ALIBABA GRP HLDG LTD