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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


