CN110471846B - Test data processing method and device based on automation platform and computer equipment - Google Patents

Test data processing method and device based on automation platform and computer equipment Download PDF

Info

Publication number
CN110471846B
CN110471846B CN201910667635.XA CN201910667635A CN110471846B CN 110471846 B CN110471846 B CN 110471846B CN 201910667635 A CN201910667635 A CN 201910667635A CN 110471846 B CN110471846 B CN 110471846B
Authority
CN
China
Prior art keywords
idle time
test data
time period
time periods
idle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910667635.XA
Other languages
Chinese (zh)
Other versions
CN110471846A (en
Inventor
胡鹏强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910667635.XA priority Critical patent/CN110471846B/en
Publication of CN110471846A publication Critical patent/CN110471846A/en
Application granted granted Critical
Publication of CN110471846B publication Critical patent/CN110471846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a test data processing method, device and computer equipment based on an automation platform, which are applied to the technical field of data processing. The method comprises the following steps: when the set backup date arrives, determining a plurality of idle time periods of the automatic platform on the set backup date according to the historical working data of the automatic platform; dividing test data to be backed up in a database according to the idle time periods to obtain test data corresponding to the idle time periods; and backing up the test data corresponding to the idle time periods to the designated positions in the corresponding idle time periods. The embodiment of the application ensures the efficiency of automatic test.

Description

Test data processing method and device based on automation platform and computer equipment
Technical Field
The application relates to the technical field of data processing, in particular to a test data processing method, device and computer equipment based on an automation platform.
Background
The automated platform is widely applied to automated testing of various products (such as insurance applications) due to the advantages of convenience, accuracy and the like. The process of automated testing by an automated platform generally includes: when an automatic test is required to be carried out on a certain product, loading a corresponding page configured by an automatic platform, triggering to read relevant test data from a database, and executing the automatic test according to the read test data to finally obtain an automatic test result of the product, wherein the test data stored in the database comprise test cases, variables and the like. It follows that the test data stored in the database is critical for automated testing, and once the test data in the database is lost, the test data needs to be reconfigured, which affects the efficiency of the automated testing.
Disclosure of Invention
Aiming at the defects of the existing mode, the application provides a test data processing method, a device and computer equipment based on an automatic platform, which ensure that test data is not easy to lose in a backup mode, thereby ensuring the efficiency of automatic test.
According to a first aspect, an embodiment of the present application provides a test data processing method based on an automation platform, including:
when the set backup date arrives, determining a plurality of idle time periods of the automatic platform on the set backup date according to the historical working data of the automatic platform;
Dividing test data to be backed up in a database according to the idle time periods to obtain test data corresponding to the idle time periods;
And backing up the test data corresponding to the idle time periods to the designated positions in the corresponding idle time periods.
In one embodiment, the backing up the test data corresponding to the idle periods to the designated location in the corresponding idle period includes:
For each idle time period in the idle time periods, judging whether the current time reaches the starting moment of the idle time period;
If the starting moment is reached, detecting whether the automatic platform is in an idle state currently;
If the test data is in the idle state, backing up the test data corresponding to the idle time period to a designated position;
If the test data is not in the idle state, not executing backup of the corresponding test data in the idle time period; and when the remaining idle time periods exist, repartitioning the test data which are not backed up according to the remaining idle time periods to obtain the test data corresponding to the remaining idle time periods, and returning to the step of judging whether the current time reaches the starting moment of the idle time periods for each idle time period in the idle time periods.
In one embodiment, after the backup of the corresponding test data is not performed during the idle period, the method further includes:
If the rest idle time period does not exist, detecting whether the automatic platform enters an idle state in real time after the idle time period, and if so, backing up the test data which are not backed up to a designated position.
In one embodiment, the backing up the test data corresponding to the idle periods to the designated location in the corresponding idle period includes:
For each idle time period in the idle time periods, judging whether the current time reaches the starting moment of the idle time period;
if the starting moment is reached, detecting the current network speed;
If the network speed is smaller than a preset threshold value, splitting the test data corresponding to the idle time period into a plurality of test data blocks, and backing up the plurality of test data blocks to a designated position in sequence.
In one embodiment, after detecting the current network speed, the method further includes:
if the network speed is greater than or equal to a preset threshold value, the test data corresponding to the idle time period is backed up to a designated position as a whole;
if the current time does not reach the end time of the idle time period, selecting part of test data from the test data corresponding to the next idle time period of the idle time period and backing up the test data to a designated position;
and re-dividing the test data which are not backed up according to the rest idle time periods to obtain the test data corresponding to the rest idle time periods, and returning to the step of judging whether the current time reaches the starting moment of the idle time periods for each idle time period in the idle time periods.
In one embodiment, the determining, according to the historical working data of the automation platform, a number of idle periods of the automation platform on the set backup date includes:
Dividing a day into various statistical time periods in advance;
Classifying the historical working data of the automatic platform according to the date, and counting the idle time period of each day;
Selecting an idle time period of one day;
Increasing the number of times corresponding to the statistical time period with intersection in the idle time period of the day in each statistical time period by a preset value;
Selecting an idle time period of another day, and returning to the step of increasing the times corresponding to the statistics time period with the intersection of the idle time periods of the day in each statistics time period by a preset value until the idle time periods of all days are selected, so as to obtain the times of each statistics time period;
sequencing all the statistical time periods according to the sequence from the large to the small times, and screening out the first N statistical time periods as a plurality of idle time periods of the automatic platform on the set backup date; n is a positive integer.
In one embodiment, the method further comprises: and when a deleting instruction for the specified test data in the database is received, executing logic deleting operation for the specified test data.
According to a second aspect, an embodiment of the present application further provides a test data processing apparatus based on an automation platform, including:
The idle time period determining module is used for determining a plurality of idle time periods of the automatic platform on the set backup date according to the historical working data of the automatic platform when the set backup date arrives;
The test data dividing module is used for dividing the test data to be backed up in the database according to the idle time periods to obtain the test data corresponding to the idle time periods;
and the test data backup module is used for backing up the test data corresponding to the idle time periods to the designated positions in the corresponding idle time periods.
According to a third aspect, an embodiment of the present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the automated platform based test data processing method of any one of the above.
Embodiments of the present application also provide, according to a fourth aspect, a computer device comprising:
One or more processors;
Storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the automated platform based test data processing method of any of the preceding claims.
The test data processing method, the device and the computer equipment based on the automatic platform realize the operation of automatic backup of the test data in the database, so that the test data is not easy to lose, and the efficiency of automatic test is further ensured. In addition, the application executes backup operation on the test data only in the idle time period of setting the backup date, thereby effectively ensuring the normal operation of the automatic platform.
Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a schematic diagram of an automated platform-based test data processing method according to one embodiment of the present application;
FIG. 2 is a schematic diagram of an automated platform based test data processing apparatus according to one embodiment of the present application;
FIG. 3 is a schematic diagram of a computer device according to one embodiment of the application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
FIG. 1 is a schematic diagram of an automated platform-based test data processing method according to an embodiment, the method comprising:
And S110, when the set backup date arrives, determining a plurality of idle time periods of the automatic platform on the set backup date according to the historical working data of the automatic platform.
In order to reduce the risk of losing test data caused by data road breakdown, the automation platform needs to backup the test data of the database periodically, and a backup date is set, that is, the date set by the automation platform for backup of the test data of the database, for example, a backup task is set to be executed in number 1 of each month. The periodic function uses a timing task realized by an automation platform, and can be realized by a timing task framework based on java.
Historical operational data is used to describe historical operational status of the automation platform, such as operational time and idle time of the automation platform per day. The statistical period of the historical working data may be determined according to actual needs, for example, the historical working data of the last month may be counted, and for example, the backup of the test data is performed every week, the historical working data of every monday in the last several months may be counted, and so on.
The idle space period of the backup date is set as a predicted period of time when the automatic platform is in an idle state on the backup date, and the idle period of time can be an equal interval period of time, such as 1 point to 2 points, 4 points to 5 points, 5 points to 6 points, and the like, or an unequal interval period of time, such as 1 point to 2 points, 4 points to 6 points, and the like. And predicting the time period that the automatic platform is likely to be in an idle state on the set backup date according to the historical working data of the automatic platform.
S120, dividing test data to be backed up in the database according to the idle time periods to obtain test data corresponding to the idle time periods.
The test data to be backed up in the database can be all the test data in the database, or the test data updated in the database between the last backup start and the set backup date. If the idle time periods are equally spaced, the test data to be backed up can be halved according to the number of the idle time periods. If the idle time periods are not equally spaced, the test data to be backed up can be divided according to the principle that the longer the idle time period is, the more the corresponding test data to be backed up is.
S130, backing up test data corresponding to the idle time periods to the designated positions in the corresponding idle time periods.
The designated position can be set in actual need, for example, the designated position is a cloud disk or an external storage device. When a certain idle time period arrives, the test data corresponding to the idle time period is backed up to a designated position, then when the arrival of the next idle time period is detected, the test data corresponding to the next idle time period is backed up to the designated position, and the steps are repeated in sequence until the test data corresponding to all the idle time periods are successfully backed up to the designated position. Wherein the backup is implemented by executing a database backup command, an exp command may be used.
The embodiment realizes the operation of automatic backup of the test data in the database, so that the test data is not easy to lose, and the efficiency of automatic test is further ensured. In addition, the application executes backup operation on the test data only in the idle time period of setting the backup date, thereby effectively ensuring the normal operation of the automatic platform.
Considering that the idle period is a predicted idle period, the automation platform may not actually be in an idle state during the idle period, and if the automation platform performs backup of test data while in a working state, normal working of the automation platform may be affected. Thus, in one embodiment, the backing up the test data corresponding to the plurality of idle periods to the designated location in the corresponding idle period includes:
S1301, for each idle time period in the idle time periods, judging whether the current time reaches the starting time of the idle time period.
For each idle period, an operation of judging whether the current time reaches the start time of the idle period is performed, thereby determining whether to start the backup operation.
And S1302, if the starting time is reached, detecting whether the automatic platform is in an idle state currently.
And if the automatic platform does not perform the operations such as automatic test and the like currently, the automatic platform is in an idle state, and backup operation is allowed to be performed.
And S1303, if the test data is in an idle state, backing up the test data corresponding to the idle time period to a designated position.
And if the test data is in the idle state, backing up the test data corresponding to the idle time period determined previously to the designated position.
S1304, if not in an idle state, not executing backup of the corresponding test data in the idle period; and when the remaining idle time periods exist, repartitioning the test data which are not backed up according to the remaining idle time periods to obtain the test data corresponding to the remaining idle time periods, and returning to the step of judging whether the current time reaches the starting moment of the idle time periods for each idle time period in the idle time periods.
If not in the idle state, the backup operation is prohibited from being performed for the idle period previously determined. Since the backup operation is not performed in the idle time period, in order to ensure that all the test data to be backed up are backed up to the designated position, the test data which are not backed up are required to be divided again according to the rest idle time period, and then the newly divided test data corresponding to the idle time period are uploaded when the corresponding idle time period arrives, so that all the test data to be backed up are ensured to be backed up successfully.
Considering that if the idle period is already the last period of time for which the backup date is set, but the automation platform is in an operating state during the idle period, the test data of the remaining idle period cannot be successfully backed up, for this case, in one embodiment, after the idle period does not perform backup of the corresponding test data, the method further includes: if the rest idle time period does not exist, detecting whether the automatic platform enters an idle state in real time after the idle time period, and if so, backing up the test data which are not backed up to a designated position. In order to reduce internal consumption, after the rest of the test data is successfully backed up to the designated position, the real-time detection of the automated platform is stopped.
In order to improve the backup efficiency in the process of backing up the test data to the designated location, in one embodiment, backing up the test data corresponding to the plurality of idle time periods to the designated location in the corresponding idle time period includes:
s130a, judging whether the current time reaches the starting moment of each idle time period in the idle time periods.
For each idle period, an operation of judging whether the current time reaches the start time of the idle period is performed, thereby determining whether to start the operation of performing the network speed detection.
And S130b, if the starting moment is reached, detecting the current network speed.
Network speed refers to the speed of the communication network used to transmit the test data. The current network speed can be detected in a manner known in the art.
And S130c, splitting the test data corresponding to the idle time period into a plurality of test data blocks if the network speed is smaller than a preset threshold value, and sequentially backing up the plurality of test data blocks to a designated position.
The preset threshold value can be set according to actual needs. If the network speed is smaller than the preset threshold, the network speed is poor, and if the test data is directly transmitted, slow or failed transmission results may be caused, so in order to improve the backup efficiency, when the network speed is poor, the test data corresponding to the idle time period is split, and then each split test data block is sequentially transmitted. The splitting can adopt an average splitting mode or a random splitting mode.
In one embodiment, after detecting the current network speed, the method further includes:
and S130d, if the network speed is greater than or equal to a preset threshold value, backing up the test data corresponding to the idle time period as a whole to a designated position.
When the network speed is good, the test data corresponding to the idle time period can be transmitted and backed up, and the test data is not required to be split.
And S130e, if the current time does not reach the ending time of the idle time period, selecting part of test data from the test data corresponding to the next idle time period of the idle time period, and backing up the part of test data to a designated position.
Considering that the test data of each idle time period is determined in advance, when the network speed of one idle time period is better, the test data corresponding to the idle time period can be transmitted quickly, under the condition, the test data corresponding to the next idle time period can be transmitted in advance, so that the situation that the test data corresponding to the subsequent automatic platform cannot be successfully backed up when the automatic platform is in a working state is avoided as much as possible, and the backup efficiency of the test data can be improved by the way of timely adjusting the transmission in advance.
There are various ways to select a part of test data from the test data corresponding to the next idle period, for example, it is determined how large a proportion of test data is selected from the test data corresponding to the next idle period according to the remaining time of the current idle period, and generally, the more the remaining time, the larger the proportion of the selected test data. And selecting the test data with a specified small proportion from the test data corresponding to the next idle time period, and when the selected test data is backed up, if the end time of the current idle time period is not reached, selecting the test data with a specified small proportion again, and the like until the end time of the current idle time period is reached.
S130f, re-dividing the test data which are not backed up according to the rest idle time periods to obtain the test data corresponding to the rest idle time periods, and returning to the step of judging whether the current time reaches the starting moment of the idle time periods for each idle time period in the idle time periods.
Since part of the test data has been transmitted in advance, in order to avoid repeated transmission of the test data, the test data that is not backed up may be divided again according to the remaining idle period, and then the backup of the remaining test data is completed in a manner of backing up the corresponding test data in the idle period.
To ensure accuracy of idle period determination, in one embodiment, the determining, according to historical working data of the automation platform, a number of idle periods of the automation platform on the set backup date includes:
s1101, dividing a day into each statistical period in advance.
The division of the statistical time period can be set according to actual needs. Alternatively, the division may be performed in a bisecting manner, for example, a day is divided into 24 statistical time periods in one hour. The statistical time periods may also be divided in an unequal manner, e.g., the first statistical time period is one hour apart, the second statistical time period is two hours apart, the third statistical time period is one hour apart, etc.
S1102, classifying the historical working data of the automatic platform according to the date, and counting the idle time period of each day.
The method comprises the steps that corresponding working data are generated on each day of an automatic platform, historical working data of the automatic platform are classified according to date, the historical working data of each day are obtained, and then the idle time period of each day is counted according to the historical working data of each day.
S1103, selecting an idle time period of one day.
S1104, increasing the number of times corresponding to the statistical time period having the intersection with the idle time period of the day in each statistical time period by a preset value.
Each statistical time period is compared with the idle time period of the day in turn. If there is a time when a statistic time period coincides with an idle time period of the day, the number of times corresponding to the statistic time period is increased by a preset value on a basic value, wherein, for the convenience of calculation, the initial basic value may be set to 0, and the preset value may be set according to actual needs, for example, set to 1, etc. If there is no intersection of one statistical period with the idle period of the day, the corresponding number of times remains unchanged.
In order to further improve the accuracy of the idle period determination, the value of the increase in the number of times may also be determined according to the degree of coincidence. For example, if a statistical time period is included in the idle time period of the day, the number of times is increased by a first preset value, if the statistical time period coincides with the idle time period of the day in multiple parts, the number of times is increased by a second preset value, and if the statistical time period coincides with the idle time period of the day in multiple parts, the number of times is increased by a third preset value, wherein the first preset value is greater than the second preset value, and the second preset value is greater than the third preset value.
S1105, selecting an idle time period of another day, and returning to the step of increasing the times corresponding to the statistics time period with the intersection of the idle time periods of the day in each statistics time period by a preset value until the idle time periods of all days are selected, so as to obtain the times of each statistics time period.
S1106, sequencing all the statistical time periods according to the sequence of times from large to small, and screening out the first N statistical time periods as a plurality of idle time periods of the automatic platform on the set backup date; n is a positive integer.
The application can also delete test data of the database, and in one embodiment, the method further comprises: and when a deleting instruction for the specified test data in the database is received, executing logic deleting operation for the specified test data. All test data in the database adopts a logic deleting mode. That is, when a deletion operation is performed on certain test data in the database, the record is identified as a character, for example, y in the database, that is, only the test data is deleted (delete field value is the character), but the record still exists in the database and is not actually deleted, and the account number deleted by the operation and the deleting time are recorded. In the automation platform, all test data are records in the database, which are not the characters, read the delete field value when the automation test is performed. When the test data deleted by mistake needs to be restored, modifying the delete field value of the record needing to be restored into a character other than the character, such as non-y, in the database, refreshing and loading the corresponding page of the automation platform, triggering to re-read the database, and restoring the data.
The application also provides a physical deletion operation. The operation of logical deletion is performed, the operation record is stored in the automation platform, the deleted operation can be confirmed secondarily on the platform, and the permanent deletion is determined to be performed, so that the record can be truly completely deleted in the database. Or performing regular physical forced deletion, if logical deletion operation is performed, automatically performing physical deletion after 90 days of storage, so as to avoid excessive redundancy of data caused by excessive data in the database.
Based on the same conception, the application also provides a test data processing device based on an automatic platform, and the specific embodiment of the device is described in detail below with reference to the accompanying drawings.
Referring now to FIG. 2, a schematic diagram of an automated platform based test data processing apparatus according to one embodiment comprises:
An idle time period determining module 210, configured to determine, when a set backup date arrives, a plurality of idle time periods of the automation platform on the set backup date according to historical working data of the automation platform;
the test data dividing module 220 is configured to divide test data to be backed up in the database according to the plurality of idle time periods, and obtain test data corresponding to the plurality of idle time periods;
And the test data backup module 230 is configured to backup the test data corresponding to the idle time periods to the designated location in the corresponding idle time period.
In one embodiment, test data backup module 230 includes:
A starting time judging unit, configured to judge, for each of the plurality of idle time periods, whether a current time reaches a starting time of the idle time period;
the idle state detection unit is used for detecting whether the automatic platform is in an idle state currently when the starting moment is reached;
The backup unit is used for backing up the test data corresponding to the idle time period to a designated position when the test data is in the idle state;
The dividing unit is used for not executing backup of the corresponding test data in the idle time period when the data storage unit is not in the idle state; and when the remaining idle time periods exist, the unrepeated test data are divided again according to the remaining idle time periods to obtain the test data corresponding to the remaining idle time periods, and the return start time judging unit executes the function of judging whether the current time reaches the start time of the idle time periods for each idle time period in the idle time periods.
In one embodiment, the dividing unit is further configured to detect, in real time, whether the automation platform enters an idle state after the idle period when there is no remaining idle period after the idle period does not perform backup of the corresponding test data, and if so, backup the test data that is not backed up to a specified location.
In another embodiment, the test data backup module 230 includes:
A starting time judging unit, configured to judge, for each of the plurality of idle time periods, whether a current time reaches a starting time of the idle time period;
The network speed detection unit is used for detecting the current network speed when the starting moment is reached;
and the splitting unit is used for splitting the test data corresponding to the idle time period into a plurality of test data blocks when the network speed is smaller than a preset threshold value, and backing up the plurality of test data blocks to the designated position in sequence.
In one embodiment, the test data backup module 230 further includes a backup unit connected to the network speed detection unit, the backup unit including:
A backup subunit, configured to backup, as a whole, test data corresponding to the idle time period to a specified location when the network speed is greater than or equal to a preset threshold;
A test data selecting subunit, configured to select, when the current time has not reached the end time of the idle time period, part of test data from test data corresponding to a next idle time period of the idle time period, and backup the selected test data to a specified position;
the dividing subunit is used for re-dividing the test data which are not backed up according to the rest idle time periods to obtain the test data corresponding to the rest idle time periods, and returning to the starting moment judging unit to execute the function of judging whether the current time reaches the starting moment of the idle time periods for each idle time period in the idle time periods.
In one embodiment, the idle period determination module 210 includes:
a preset unit for dividing a day into various statistical time periods in advance;
The statistics unit is used for classifying the historical working data of the automation platform according to the date and counting the idle time period of each day;
a selecting unit for selecting an idle time period of one of the days;
a number determining unit for increasing the number of times corresponding to the statistical time period having the intersection with the idle time period of the day in each statistical time period by a preset value;
The selecting unit selects an idle time period of another day, and the return frequency determining unit performs a function of increasing the frequency corresponding to the statistics time period with the intersection of the idle time periods of the day by a preset value in each statistics time period until the idle time periods of all days are selected, so as to obtain the frequency of each statistics time period;
The idle time period determining unit is used for sequencing all the statistical time periods according to the sequence of times from large to small, and screening out the first N statistical time periods as a plurality of idle time periods of the automatic platform on the set backup date; n is a positive integer.
In one embodiment, the apparatus further comprises a deletion module for performing a logical deletion operation on specified test data when a deletion instruction for the specified test data is received.
Other technical features of the test data processing device based on the automation platform are the same as those of the test data processing method based on the automation platform, and are not described herein.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the test data processing method based on the automation platform. Wherein the storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only Memory), RAMs (Random AcceSS Memory, random access memories), EPROMs (EraSable Programmable Read-Only Memory), EEPROMs (ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory), flash Memory, magnetic cards, or optical cards. That is, a storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer). And may be a read-only memory, a magnetic or optical disk, etc.
The embodiment of the application also provides a computer device, which comprises:
One or more processors;
Storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the automated platform based test data processing method of any of the preceding claims.
Fig. 3 is a schematic structural diagram of a computer device according to the present application, which includes a processor 320, a storage device 330, an input unit 340, and a display unit 350. Those skilled in the art will appreciate that the structural elements illustrated in FIG. 3 do not constitute a limitation of all computer devices, and may include more or fewer elements than shown, or may combine certain elements. The storage 330 may be used to store the application 310 and various functional modules, and the processor 320 runs the application 310 stored in the storage 330 to perform various functional applications and data processing of the device. The storage 330 may be or include both internal memory and external memory. The internal memory may include read-only memory, programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, floppy disk, ZIP disk, U-disk, tape, etc. The disclosed memory devices include, but are not limited to, these types of memory devices. The storage device 330 disclosed by the present application is by way of example only and not by way of limitation.
The input unit 340 is used for receiving input of signals, historical working data of an automation platform, and the like. The input unit 340 may include a touch panel and other input devices. The touch panel may collect touch operations on or near the user (e.g., the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, mouse, joystick, etc. The display unit 350 may be used to display information input by a user or information provided to the user and various menus of the computer device. The display unit 350 may take the form of a liquid crystal display, an organic light emitting diode, or the like. Processor 320 is a control center of the computer device that connects the various parts of the overall computer using various interfaces and lines, performs various functions and processes data by running or executing software programs and/or modules stored in storage 330, and invoking data stored in the storage.
In an embodiment, a computer device includes one or more processors 320, and one or more storage 330, one or more applications 310, wherein the one or more applications 310 are stored in the storage 330 and configured to be executed by the one or more processors 320, the one or more applications 310 configured to perform the automated platform-based test data processing method described in the above embodiments.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
It should be understood that each functional unit in the embodiments of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules.
The foregoing is only a partial embodiment of the present application, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present application, and such modifications and adaptations are intended to be comprehended within the scope of the present application.

Claims (9)

1. An automated platform-based test data processing method, comprising:
when the set backup date arrives, determining a plurality of idle time periods of the automatic platform on the set backup date according to the historical working data of the automatic platform;
Dividing test data to be backed up in a database according to the idle time periods to obtain test data corresponding to the idle time periods;
Backing up test data corresponding to the idle time periods to a designated position in the corresponding idle time periods;
the method specifically includes the steps of determining a plurality of idle time periods of the automation platform on the set backup date according to historical working data of the automation platform, wherein the idle time periods comprise:
Dividing a day into various statistical time periods in advance;
Classifying the historical working data of the automatic platform according to the date, and counting the idle time period of each day;
Selecting an idle time period of one day;
Increasing the number of times corresponding to the statistical time period with intersection in the idle time period of the day in each statistical time period by a preset value;
Selecting an idle time period of another day, and returning to the step of increasing the times corresponding to the statistics time period with the intersection of the idle time periods of the day in each statistics time period by a preset value until the idle time periods of all days are selected, so as to obtain the times of each statistics time period;
sequencing all the statistical time periods according to the sequence from the large to the small times, and screening out the first N statistical time periods as a plurality of idle time periods of the automatic platform on the set backup date; n is a positive integer.
2. The method for processing test data based on an automation platform according to claim 1, wherein backing up test data corresponding to the plurality of idle time periods to a designated location in the corresponding idle time period comprises:
For each idle time period in the idle time periods, judging whether the current time reaches the starting moment of the idle time period;
If the starting moment is reached, detecting whether the automatic platform is in an idle state currently;
If the test data is in the idle state, backing up the test data corresponding to the idle time period to a designated position;
If the test data is not in the idle state, not executing backup of the corresponding test data in the idle time period; and when the remaining idle time periods exist, repartitioning the test data which are not backed up according to the remaining idle time periods to obtain the test data corresponding to the remaining idle time periods, and returning to the step of judging whether the current time reaches the starting moment of the idle time periods for each idle time period in the idle time periods.
3. The automated platform-based test data processing method of claim 2, wherein after the idle period of time does not perform a backup of the corresponding test data, further comprising:
If the rest idle time period does not exist, detecting whether the automatic platform enters an idle state in real time after the idle time period, and if so, backing up the test data which are not backed up to a designated position.
4. The method for processing test data based on an automation platform according to claim 1, wherein backing up test data corresponding to the plurality of idle time periods to a designated location in the corresponding idle time period comprises:
For each idle time period in the idle time periods, judging whether the current time reaches the starting moment of the idle time period;
if the starting moment is reached, detecting the current network speed;
If the network speed is smaller than a preset threshold value, splitting the test data corresponding to the idle time period into a plurality of test data blocks, and backing up the plurality of test data blocks to a designated position in sequence.
5. The automated platform-based test data processing method of claim 4, further comprising, after the detecting the current network speed:
if the network speed is greater than or equal to a preset threshold value, the test data corresponding to the idle time period is backed up to a designated position as a whole;
if the current time does not reach the end time of the idle time period, selecting part of test data from the test data corresponding to the next idle time period of the idle time period and backing up the test data to a designated position;
and re-dividing the test data which are not backed up according to the rest idle time periods to obtain the test data corresponding to the rest idle time periods, and returning to the step of judging whether the current time reaches the starting moment of the idle time periods for each idle time period in the idle time periods.
6. The automated platform based test data processing method of any one of claims 1 to 5, further comprising:
and when a deleting instruction for the specified test data in the database is received, executing logic deleting operation for the specified test data.
7. An automated platform-based test data processing apparatus, comprising:
The idle time period determining module is used for determining a plurality of idle time periods of the automatic platform on the set backup date according to the historical working data of the automatic platform when the set backup date arrives;
The test data dividing module is used for dividing the test data to be backed up in the database according to the idle time periods to obtain the test data corresponding to the idle time periods;
the test data backup module is used for backing up the test data corresponding to the idle time periods to the designated positions in the corresponding idle time periods;
The idle time period determining module is specifically configured to:
Dividing a day into various statistical time periods in advance;
Classifying the historical working data of the automatic platform according to the date, and counting the idle time period of each day;
Selecting an idle time period of one day;
Increasing the number of times corresponding to the statistical time period with intersection in the idle time period of the day in each statistical time period by a preset value;
Selecting an idle time period of another day, and returning to the step of increasing the times corresponding to the statistics time period with the intersection of the idle time periods of the day in each statistics time period by a preset value until the idle time periods of all days are selected, so as to obtain the times of each statistics time period;
sequencing all the statistical time periods according to the sequence from the large to the small times, and screening out the first N statistical time periods as a plurality of idle time periods of the automatic platform on the set backup date; n is a positive integer.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the automated platform based test data processing method according to any one of claims 1 to 6.
9. A computer device, the computer device comprising:
One or more processors;
Storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the automated platform based test data processing method of any of claims 1 to 6.
CN201910667635.XA 2019-07-23 2019-07-23 Test data processing method and device based on automation platform and computer equipment Active CN110471846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910667635.XA CN110471846B (en) 2019-07-23 2019-07-23 Test data processing method and device based on automation platform and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910667635.XA CN110471846B (en) 2019-07-23 2019-07-23 Test data processing method and device based on automation platform and computer equipment

Publications (2)

Publication Number Publication Date
CN110471846A CN110471846A (en) 2019-11-19
CN110471846B true CN110471846B (en) 2024-05-07

Family

ID=68509171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910667635.XA Active CN110471846B (en) 2019-07-23 2019-07-23 Test data processing method and device based on automation platform and computer equipment

Country Status (1)

Country Link
CN (1) CN110471846B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236588A (en) * 2010-04-23 2011-11-09 阿里巴巴集团控股有限公司 Remote data backup method, equipment and system
CN102841827A (en) * 2012-06-28 2012-12-26 宇龙计算机通信科技(深圳)有限公司 Method for backuping database files and communication terminal
CN103092718A (en) * 2011-10-27 2013-05-08 鸿富锦精密工业(深圳)有限公司 Test data backup system and method
CN103810060A (en) * 2013-11-21 2014-05-21 北京奇虎科技有限公司 Data backup method and system thereof based on distributed database
CN105354110A (en) * 2015-10-26 2016-02-24 武汉帕菲利尔信息科技有限公司 Cloud server data backup method and apparatus
CN105512038A (en) * 2015-12-12 2016-04-20 天津南大通用数据技术股份有限公司 Database based automation parallel test platform execution method
CN106569918A (en) * 2016-11-04 2017-04-19 广东欧珀移动通信有限公司 Data backup method and mobile terminal
CN106708663A (en) * 2016-12-16 2017-05-24 郑州云海信息技术有限公司 Automatic backup method and device of database
CN107273286A (en) * 2017-06-02 2017-10-20 携程计算机技术(上海)有限公司 For the scene automatic test platform and method of task application
CN107454161A (en) * 2017-07-31 2017-12-08 郑州云海信息技术有限公司 A kind of data back up method and device
CN107526657A (en) * 2017-09-13 2017-12-29 沈阳东知科技有限公司 A kind of Online Database Backup method and system
CN108984401A (en) * 2018-07-05 2018-12-11 山东科技大学 A kind of solution decoupling detecting method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236588A (en) * 2010-04-23 2011-11-09 阿里巴巴集团控股有限公司 Remote data backup method, equipment and system
CN103092718A (en) * 2011-10-27 2013-05-08 鸿富锦精密工业(深圳)有限公司 Test data backup system and method
CN102841827A (en) * 2012-06-28 2012-12-26 宇龙计算机通信科技(深圳)有限公司 Method for backuping database files and communication terminal
CN103810060A (en) * 2013-11-21 2014-05-21 北京奇虎科技有限公司 Data backup method and system thereof based on distributed database
CN105354110A (en) * 2015-10-26 2016-02-24 武汉帕菲利尔信息科技有限公司 Cloud server data backup method and apparatus
CN105512038A (en) * 2015-12-12 2016-04-20 天津南大通用数据技术股份有限公司 Database based automation parallel test platform execution method
CN106569918A (en) * 2016-11-04 2017-04-19 广东欧珀移动通信有限公司 Data backup method and mobile terminal
CN106708663A (en) * 2016-12-16 2017-05-24 郑州云海信息技术有限公司 Automatic backup method and device of database
CN107273286A (en) * 2017-06-02 2017-10-20 携程计算机技术(上海)有限公司 For the scene automatic test platform and method of task application
CN107454161A (en) * 2017-07-31 2017-12-08 郑州云海信息技术有限公司 A kind of data back up method and device
CN107526657A (en) * 2017-09-13 2017-12-29 沈阳东知科技有限公司 A kind of Online Database Backup method and system
CN108984401A (en) * 2018-07-05 2018-12-11 山东科技大学 A kind of solution decoupling detecting method

Also Published As

Publication number Publication date
CN110471846A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
US6697972B1 (en) Method for monitoring fault of operating system and application program
JP5140633B2 (en) Method for analyzing failure occurring in virtual environment, management server, and program
EP3588259B1 (en) Garbage collection method for storage media, storage medium, and program product
CN113111129B (en) Data synchronization method, device, equipment and storage medium
CN103092700A (en) Internal memory cleaning method and cleaning device and terminal device
CN108777158B (en) Method and device for testing Trim performance of solid state disk and computer equipment
US20110055278A1 (en) Setting Information Database Management
CN111382026B (en) Method, device, system, storage medium and computer equipment for monitoring card
CN104216802A (en) Memory database recovery method and device
CN109542341B (en) Read-write IO monitoring method, device, terminal and computer readable storage medium
CN110471846B (en) Test data processing method and device based on automation platform and computer equipment
US8352398B2 (en) Time-based conflict resolution
CN111078418A (en) Operation synchronization method and device, electronic equipment and computer readable storage medium
US20070136232A1 (en) Displaying tags to provide overall view of computing device activity as recorded within log of records
CN109634796A (en) A kind of method for diagnosing faults of computer, apparatus and system
US10102052B2 (en) Dumping resources
CN108920344B (en) Storage method and device and computer readable storage medium
JPH04307641A (en) Fault diagnostic device for multi-task system
US11106369B1 (en) Host-accessible storage device service level indicators
CN117573483B (en) Hard disk removing method and device, storage medium and electronic equipment
CN117076417B (en) File snapshot implementation method and device, computer equipment and storage medium
CN114116291B (en) Log detection method, log detection device, computer device and storage medium
CN112711467B (en) Partition timeout processing method, partition timeout processing device, computer equipment and storage medium
CN107272822A (en) A kind of system clock monitoring method and device
CN116737472B (en) Method and device for testing memory time sequence training process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant