Mock data updating method and device and computer equipment
A data update and data update technology, which is applied in the field of computer equipment and mock data update, can solve the problems of wasting test server memory, inconvenient maintenance, and spending a lot of time and energy, and achieve the effect of easy-to-use automatic update time stamp function
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] Embodiment 1: This embodiment provides a mock data update method, refer to figure 1 As shown, the method includes:
[0048] S1-1. Receive mock data.
[0049] S1-2. Filter out the mock data containing the preset identification field and record it as the first mock data to be updated.
[0050] S1-3. Identify the number type field in the first mock data to be updated and determine whether the number of digits in the number type field conforms to the first preset rule. If so, record the number type field as the first target timestamp field.
[0051] S1-4. Update the first target timestamp field according to a preset update rule.
[0052]The method for updating mock data provided by this embodiment screens out the first mock data to be updated that needs to be updated and whose timestamp field content is unknown through the preset identification field, and identifies the first mock data to be updated by identifying the digital type field and making a judgment. Update the ...
Embodiment 2
[0053] Embodiment 2: This embodiment provides a mock data update method, refer to figure 2 As shown, the methods include:
[0054] S2-1. Receive mock data.
[0055] In a preferred embodiment, this step specifically includes:
[0056] Regularly receive the mock data transmitted by the database. A timestamp field is a sequence of characters that uniquely identifies a moment in time. Periodically traverse the mock data in the database so that the mock data can be updated in time.
[0057] S2-2. Filter out the mock data containing the preset identification field and record it as the first mock data to be updated.
[0058] In a preferred embodiment, this step specifically includes:
[0059] The mock data containing the preset identification field is screened out as the first data to be updated and the remaining mock data is recorded as the second mock data to be updated.
[0060] The mock data is grouped by identifying whether the mock data contains a preset identification f...
Embodiment 3
[0081] Embodiment 3: This embodiment provides a mock data updating device, refer to image 3 As shown, the device includes:
[0082] The receiving module 31 is configured to receive mock data.
[0083] The screening module 32 is used to filter out the mock data containing the preset identification field and mark it as the first mock data to be updated.
[0084] The processing module 33 is used to identify the number type field in the first mock data to be updated and determine whether the number of digits in the number type field complies with the first preset rule, and when the number of digits in the number type field meets the first preset rule, The numeric type field is denoted as the first target timestamp field.
[0085] An update module 34, configured to update the first target timestamp field according to preset update rules;
[0086] The device also includes: a conversion module 35, configured to convert the first target timestamp field to obtain the first time;
...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


