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

Method and system for acquiring test data

A technology for test data and acquisition methods, applied in the field of testing, can solve the problems of difficult test data construction, design test cases for front-end business scenarios, etc., to achieve the effect of improving data utilization and avoiding labor and material costs

Active Publication Date: 2019-05-28
ALIBABA (CHINA) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the actual situation is that most of the time, the personnel who test the function are tracking the unit test and interface test of the program submitted by the development programmer, and rarely design test cases in combination with the application of the front-end business scenario, while the testers of the front-end application scenario are often in the Difficulty in constructing test data

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 system for acquiring test data
  • Method and system for acquiring test data
  • Method and system for acquiring test data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] A test data acquisition method, the test data includes test case parameters and test expected result data, such as figure 1 shown, including:

[0060] S101. Randomly generate test case parameters according to the tested object, where the test case parameters are related to the application scenario of the tested object.

[0061]S102. Obtain expected test result data corresponding to the test case according to the preset test case algorithm and the test case parameters.

[0062] S103. Save the test case parameters and test expected result data corresponding to the test case parameters.

[0063] Specifically, one test object corresponds to one application scenario. If there are multiple application scenarios, there are multiple test objects. In this case, the following steps are also included:

[0064] For multiple tested objects, assign a test object identifier to each tested object;

[0065] The test object identifier, the test case parameters corresponding to the tes...

Embodiment 2

[0070] A test method applied to the revenue algorithm test, based on the test data acquisition method of embodiment 1, such as figure 2 shown, including:

[0071] S201. Randomly generate test case parameters for obtaining revenue.

[0072] S202. Obtain the expected benefits due to the test case parameters according to the preset test case algorithm.

[0073] S203. Obtain measured revenue according to the test case parameters and the revenue algorithm to be tested.

[0074] S204. Save the test data, where the test data includes test case parameters, expected returns and measured returns corresponding to the test case parameters.

[0075] S205. Multiplexing the test data to the front end.

[0076] S206. Obtain a test result according to the relationship between the measured income and the expected income:

[0077] Judging whether the measured income is equal to the expected income: if yes, the test passes; otherwise, the test fails, and it is determined that there is an err...

Embodiment 3

[0119] A test data acquisition system such as Figure 6 shown, including:

[0120] The test case parameter acquisition module 301 is used to randomly generate test case parameters according to the tested object, and the test case parameters are related to the application scenario of the tested object;

[0121] The test expected result data acquisition module 302 is used to obtain the test expected result data corresponding to the test case according to the preset test case algorithm and the test case parameters;

[0122] The test data storage module 303 is configured to store the test case parameters and test expected result data corresponding to the test case parameters.

[0123] Specifically, it also includes:

[0124] The identifier allocation module 304 is configured to assign a test object identifier to each tested object for multiple tested objects.

[0125] The test data storage module also saves the test object identifier, the test case parameters corresponding to the...

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 test data obtaining method and system, and a test method and system applied to a profit algorithm test. According to the methods and the systems, test data is generated and is stored, so that a test bank for providing the test data to different front ends is formed, and the test data can be reused by the front ends. The test data of function tests and practical applications of the front ends are combined together, the test data of unit tests and interface tests are reused, so that the more and comprehensive test data can be provided for the tests of the front ends. Through reuse of the test data, the multiple front ends are supported to carry out parallel tests.

Description

technical field [0001] The invention relates to the field of testing, in particular to a method and system for acquiring test data. Background technique [0002] As the mobile terminal gradually becomes the development trend of the Internet, the application and rise of the mobile Internet is unstoppable, which puts higher requirements on the traditional front-end Internet-based testing, that is, the application of Internet products must not only be suitable for the characteristics of the PC end, but also require Compatible with the needs of mobile terminals such as iOS, android, and OTT, and the business scenarios corresponding to different front-ends may also be different. [0003] In the traditional front-end-based testing process, for different front-ends, different testers are required to conduct coverage tests. On the basis of the past, everyone designs the test data of each end according to their own needs. Testers for front-end testing need to understand the calculat...

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
CPCG06F11/3684
Inventor 张俊宝陈向荣杨敬宇姚键潘柏宇王冀
Owner ALIBABA (CHINA) CO LTD