CN110471846A - Test data processing method, device and computer equipment based on automation platform - Google Patents
Test data processing method, device and computer equipment based on automation platform Download PDFInfo
- Publication number
- CN110471846A CN110471846A CN201910667635.XA CN201910667635A CN110471846A CN 110471846 A CN110471846 A CN 110471846A CN 201910667635 A CN201910667635 A CN 201910667635A CN 110471846 A CN110471846 A CN 110471846A
- Authority
- CN
- China
- Prior art keywords
- section
- test data
- free
- free time
- time section
- 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 206
- 238000003672 processing method Methods 0.000 title claims abstract description 23
- 238000012545 processing Methods 0.000 claims abstract description 13
- 238000005192 partition Methods 0.000 claims abstract description 7
- 238000001514 detection method Methods 0.000 claims description 9
- 238000012217 deletion Methods 0.000 claims description 6
- 230000037430 deletion Effects 0.000 claims description 6
- 241001269238 Data Species 0.000 claims description 5
- 238000011897 real-time detection Methods 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 3
- 238000000034 method Methods 0.000 abstract description 10
- 230000006870 function Effects 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 8
- 230000002354 daily effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000006399 behavior Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 description 1
- 235000013311 vegetables Nutrition 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/08—Insurance
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 kind of test data processing method, device and computer equipment based on automation platform, is applied to technical field of data processing.The method includes:, according to the history operational data of the automation platform, to determine the automation platform in several free times section of the setting backup date when setting backup date arrival;According to test data to be backed up in several free times section partition database, the corresponding test data of several free times section is obtained;The corresponding test data of several free times section is backed up into designated position in corresponding free time section.The embodiment of the present application ensure that the efficiency of automatic test.
Description
Technical field
This application involves technical field of data processing, specifically, this application involves a kind of surveys based on automation platform
Try data processing method, device and computer equipment.
Background technique
The advantages that platform is because of its convenience and accuracy is automated, is widely used in each product (as insurance class is answered
With program etc.) automatic test.The process that automation platform carries out automatic test generally comprises: needing to some product
When carrying out automatic test, relevant test number is read in the respective page of load automation platform configuration, triggering from database
According to, according to the test data of reading execute automatic test, finally obtain the automatic test result of the product, wherein data
The test data stored in library includes test cases and variable etc..It can be seen that the test data of database purchase is for automatic
It is most important to change test, once the test data in database is lost, needs to reconfigure test data, influences automatic test
Efficiency.
Summary of the invention
The application is directed to the shortcomings that existing way, proposes a kind of based on the test data processing method, the dress that automate platform
It sets and computer equipment, by backup mode test data is not allowed easy to be lost, and then ensure that the efficiency of automatic test.
Embodiments herein provides a kind of test data processing side based on automation platform according to first aspect
Method, comprising:
When setting backup date arrival, according to the history operational data of the automation platform, the automation is determined
Several free times section of the platform in the setting backup date;
According to test data to be backed up in several free times section partition database, several described skies are obtained
Not busy period corresponding test data;
The corresponding test data of several free times section is backed up into designated position in corresponding free time section.
In one embodiment, the corresponding test data of the section of several free times by described in is when corresponding idle
Between section back up to designated position, comprising:
For the section of each free time in several free times section, judge whether current time reaches the sky
The initial time of not busy period;
If reaching the initial time, detect whether the automation platform is currently in idle condition;
If being in idle condition, the corresponding test data of the free time section is backed up into designated position;
If being not at idle state, the backup of corresponding test data is not executed in the free time section;And it is surplus existing
When remaining free time section, the test data being not backed up is repartitioned according to remaining several free times section, is obtained remaining
Several free times corresponding test data of section, return for each free time in several free times section
Section judges the step of whether current time reaches the initial time of the free time section.
In one embodiment, described after the free time section does not execute the backup of corresponding test data, also wrap
It includes:
Remaining free time section if it does not exist automates platform after the free time section described in real-time detection
Whether idle state is entered, if the test data being not backed up is backed up to designated position into idle state.
In one embodiment, the corresponding test data of the section of several free times by described in is when corresponding idle
Between section back up to designated position, comprising:
For the section of each free time in several free times section, judge whether current time reaches the sky
The initial time of not busy period;
If reaching the initial time, current network speed is detected;
If the network speed is less than preset threshold, the corresponding test data of the free time section is split as multiple test numbers
According to block, multiple test data blocks are successively backuped into designated position.
In one embodiment, after the current network speed of the detection, further includes:
If the network speed is more than or equal to preset threshold, as a whole by the corresponding test data of the free time section
Backup to designated position;
If current time does not reach the finish time of the free time section also, from next sky of the free time section
Selected part test data and designated position is backed up in not busy period corresponding test data;
The test data being not backed up is repartitioned according to remaining several free times section, obtains several remaining skies
Not busy period corresponding test data returns to the section of each free time in several free times section, sentences
Whether disconnected current time reaches the step of initial time of the free time section.
In one embodiment, the history operational data according to the automation platform, determines that the automation is flat
Several free times section of the platform in the setting backup date, comprising:
Each statistical time section was divided by one day in advance;
The history operational data of the automation platform is sorted out according to the date, counts daily free time
Section;
Choose wherein one day free time section;
By the free time section of each this day of statistical time Duan Zhongyu, there are the corresponding numbers of the statistical time section of intersection to increase
Add preset value;
The free time section for choosing another day is returned to have the free time section of each this day of statistical time Duan Zhongyu and be handed over
The step of corresponding number of the statistical time section of collection increases preset value, until all days free time Duan Jun are selected, obtains
The number of each statistical time section;
Each statistical time section is ranked up according to the sequence of number from big to small, filters out top n statistical time section
As the automation platform in several free times section for setting backup date;N is positive integer.
In one embodiment, the method also includes: receive in database specify test data deletion instruction
When, logic delete operation is executed to the nominative testing data.
Embodiments herein additionally provides a kind of test data processing based on automation platform according to the second aspect
Device, comprising:
Free time section determining module is used for when setting backup date arrival, according to the history of the automation platform
Operational data determines the automation platform in several free times section of the setting backup date;
Test data division module, for according to test to be backed up in several free times section partition database
Data obtain the corresponding test data of several free times section;
Test data backup module, for the corresponding test data of the section of several free times by described in the corresponding free time
Period backs up to designated position.
Embodiments herein additionally provides a kind of computer readable storage medium, stores thereon according in terms of third
There is computer program, which realizes the test number based on automation platform described in above-mentioned any one when being executed by processor
According to processing method.
Embodiments herein additionally provides a kind of computer equipment, the computer equipment packet according to the 4th aspect
It includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the test data processing method based on automation platform described in above-mentioned any one.
Above-mentioned test data processing method, device and the computer equipment based on automation platform, realizes to data
The operation of test data automated back-up in library, so that test data does not allow efficiency easy to be lost, and then ensure that automatic test.
In addition, free time section of the application in setting backup date just executes backup operation to test data, it has been effectively ensured automatic
Change the normal work of platform.
The additional aspect of the application and advantage will be set forth in part in the description, these will become from the following description
It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the schematic diagram of the test data processing method based on automation platform of the application one embodiment;
Fig. 2 is the schematic diagram of the test data processing unit based on automation platform of the application one embodiment;
Fig. 3 is the schematic diagram of the computer equipment of the application one embodiment.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the application, and cannot be construed to the limitation to the application.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in the description of the present application
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in the application fields.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
As shown in Figure 1, the schematic diagram of the test data processing method based on automation platform for an embodiment, this method
Include:
S110, when setting backup date and reaching, according to the history operational data of the automation platform, determine it is described from
Several free times section of the dynamicization platform in the setting backup date.
Test data risk of missing caused by collapsing for reduction factor according to road, automation platform need periodically to database
Test data backed up, setting backup date that is to say automation platform setting the test data of database is carried out it is standby
The date of part, such as set No. 1 execution backup tasks etc. of every month.Regular function uses determining for automation platform realization
When task, can be realized with the schedule timed task frame based on java.
History operational data is for describing automation platform history working condition, such as when the automation daily work of platform
Between and free time.The statistical time section of history operational data can be determined according to actual needs, for example, can count most
Nearly one month history operational data, in another example, in the backup for executing test data on every Mondays, then it can count recent months
In history operational data, etc. on every Mondays.
The free space section for setting backup date is the automation platform predicted when being in idle condition the backup date
Period, free time section can be equally spaced period, such as at 1 point to 2 points, 4 points to 5 points, 5 points to 6 points etc., can also
With the period of unequal interval, such as 1 point to 2 points, 4 points to 6 points etc..According to the history operational data of automation platform, prediction
Automation platform is likely to be at the period of idle state in setting backup date out.
Test data to be backed up in S120, the section partition database of several free times according to, if obtaining described
The corresponding test data of dry free time section.
Test data to be backed up can be all test datas in database in database, last can also back up
Start the test data updated into the spatial database of setting backup date.If each free time section be it is equally spaced, can
Test data to be backed up to be divided equally according to the number of each free time section.If each free time section is not
Interval, can be according to free time Duan Yuechang, the more principle of corresponding test data to be backed up is to test to be backed up
Data are divided.
S130, the corresponding test data of described several free times section is backed up in corresponding free time section it is specified
Position.
Designated position can be actually needed and be configured, such as designated position is cloud disk or external storage equipment etc..When
When some free time section reaches, the corresponding test data of free time section is backuped into designated position, is then followed by detection
When reaching to next free time section, the corresponding test data of next free time section is backed up into designated position, successively
It repeats, until the corresponding test data of all free time sections is successfully backed up to designated position.Wherein, backup is by holding
Exp order can be used come what is realized in the order of row DB Backup.
The present embodiment realizes the operation to test data automated back-up in database, so that test data is not easy to lose
It loses, and then ensure that the efficiency of automatic test.In addition, the application is in the free time section for setting backup date just to test number
According to backup operation is executed, the normal work of automation platform has been effectively ensured.
In view of free time section is the free time section of prediction, automation platform may actually simultaneously in free time section
It is not at idle state, it, can be to automation platform if automation platform executes the backup of test data in working condition
Normal work impacts.Therefore, in one embodiment, described by the corresponding test data of several free times section
Designated position is backed up in corresponding free time section, comprising:
S1301, for the section of each free time in described several free times section, judge whether current time reaches
The initial time of the free time section.
For each free time section, it is performed both by the behaviour for the initial time for judging whether current time reaches free time section
Make, determines whether to start to execute backup operation.
If S1302, reaching the initial time, detect whether the automation platform is currently in idle condition.
If automating platform currently without the operation such as automatic test is carried out, it is practically in idle state, allows to hold
Row backup operation.
If S1303, being in idle condition, the corresponding test data of the free time section is backed up into designated position.
If be in idle condition, the previously determined corresponding test data of free time section is backed up into specific bit
It sets.
If S1304, being not at idle state, the backup of corresponding test data is not executed in the free time section;And
There are when remaining free time section, the test data being not backed up is repartitioned according to remaining several free times section, is obtained
The corresponding test data of remaining several free times section is obtained, is returned for each sky in several free times section
The not busy period judges the step of whether current time reaches the initial time of the free time section.
If being not at idle state, forbid executing backup operation in previously determined free time section.Due to this
Free time section is without carrying out backup operation, so in order to ensure all test datas to be backed up are backed up to specific bit
It sets, needs again to divide the test data being not backed up according to remaining free time section, then when corresponding idle
Between section reach when, upload the corresponding test data repartitioned, it is ensured that all test datas to be backed up succeed standby
Part.
In view of if free time section has been to set the last one period of backup date, but automate platform
In running order in free time section, then the test data of residue free time section can not be backed up successfully, therefore, needle
It is in one embodiment, described after the free time section does not execute the backup of corresponding test data to this kind of situation, also
It include: remaining free time section if it does not exist, after the free time section, whether automation platform described in real-time detection
Into idle state, if the test data being not backed up is backed up to designated position into idle state.In order to reduce in-fighting, In
After remaining test data is successfully backed up to designated position, then stop the real-time detection for automating platform.
During test data is backuped to designated position, in order to improve the efficiency of backup, in one embodiment, institute
It states and the corresponding test data of several free times section is backed up into designated position in corresponding free time section, comprising:
S130a, for the section of each free time in described several free times section, judge whether current time reaches
The initial time of the free time section.
For each free time section, it is performed both by the behaviour for the initial time for judging whether current time reaches free time section
Make, determines whether the operation for starting to execute wire-speed detection.
If S130b, reaching the initial time, current network speed is detected.
Network speed refers to the speed for the telecommunication network for being used for transmission test data.It can be using existing side in the prior art
Formula detects current network speed.
If S130c, the network speed are less than preset threshold, the corresponding test data of the free time section is split as multiple
Multiple test data blocks are successively backuped to designated position by test data block.
Preset threshold can be configured according to actual needs.If network speed be less than preset threshold, mean network speed compared with
Difference may cause the consequence that transmission is slow or fails, therefore, in order to improve if directly transmitted test data
The efficiency of backup splits the corresponding test data of free time section, after then successively transmission is split when network speed is poor
Each test data block.Wherein, the mode that can be split by the way of averagely splitting or at random is split.
In one embodiment, after the current network speed of the detection, further includes:
If S130d, the network speed are more than or equal to preset threshold, using the corresponding test data of the free time section as one
A monolithic backup is to designated position.
When network speed is preferable, then transmission backup can be carried out to the corresponding test data of free time section, no longer needed to survey
Examination data are split.
If S130e, current time do not reach the finish time of the free time section also, under the free time section
Selected part test data and designated position is backed up in the corresponding test data of one free time section.
In view of the test data of each free time section be it is pre-determined, when some free time section network speed compared with
When good, the corresponding test data of free time section is possible to be transmitted fastly, can transmission in advance in the case of this kind
The corresponding test data of next free time section, corresponding survey when avoiding subsequent automated platform in running order as far as possible
Examination data can not be backed up successfully, and the backup effect of test data can also be improved by way of this timely adjustment transmission in advance
Rate.
There are many modes for selected part test data from next free time section corresponding test data, for example, root
It is chosen from the corresponding test data of next free time section according to how much determinations of current section remaining time free time more
The test data of large scale, in general, remaining time is more, and the ratio of the test data of selection is bigger.It can also be from next
The test data that specified small scale is chosen in the corresponding test data of a free time section is completed when the test data of selection backs up
Afterwards, if reaching the end time of current idle period not yet, the test number of specified small scale can be then chosen again
According to, and so on, until reaching the end time of current idle period.
S130f, the test data being not backed up is repartitioned according to remaining several free times section, if obtaining remaining
The corresponding test data of dry free time section returns to each free time in several free times section
Section judges the step of whether current time reaches the initial time of the free time section.
It, can be in order to avoid the repetition of test data is transmitted due to front transmission in advance partial test data
The test data being not backed up is divided again according to remaining free time section, then according to the backup pair of section during idle time
The mode of test data is answered to complete the backup of remaining test data.
It is in one embodiment, described according to the automation platform in order to ensure the accuracy that free time section determines
History operational data, determine it is described automation platform it is described setting backup date several free times section, comprising:
S1101, by one day it was divided into each statistical time section in advance.
The division of statistical time section can be configured according to actual needs.Optionally, the mode divided equally can be used to carry out
It divides, for example, being divided into 24 statistical time sections according to a hour for one day.It can also be by the way of unequal to statistics
Period is divided, for example, being divided into a hour between first statistical time section, is divided between second statistical time section
Two hours are divided into hour, etc. between third statistical time section.
S1102, the history operational data of the automation platform is sorted out according to the date, counts the daily free time
Period.
Automation can generate corresponding operational data platform every day, will automate the history operational data of platform according to
Date is sorted out, and daily history operational data is obtained, and then counts daily sky according to daily history operational data
The not busy period.
S1103, the free time section for choosing wherein one day.
S1104, by the free time section of each this day of statistical time Duan Zhongyu, there are the statistical time section of intersection is corresponding
Number increases preset value.
Each statistical time section and the free time section of this day are successively compared.If statistical time section with should
There is the time being overlapped in it free time section, then the corresponding number of statistical time section increases preset value in basic value,
In, it calculating for convenience, the basic value most started can be set to 0, and preset value can be configured according to actual needs, such as
It is set as 1 etc..If intersection is not present in the free time of a statistical time section and this day section, corresponding number is kept not
Become.
In order to further increase the accuracy that free time section determines, can also be increased according to the degree determined number of coincidence
Value.For example, number increases by the first preset value if a statistical time section is comprised in the free time section of this day,
It partially overlaps if the free time of the statistical time section and this day section have, number increases by the second preset value, if the system more
The meter period has small part to be overlapped with the free time of this day section, then number increases third preset value, wherein the first preset value is big
In the second preset value, the second preset value is greater than third preset value.
S1105, the free time section for choosing another day are returned the free time section of each this day of statistical time Duan Zhongyu
The step of increasing preset value there are the corresponding number of the statistical time section of intersection, until all days free time sections are selected
It takes, obtains the number of each statistical time section.
S1106, each statistical time section is ranked up according to the sequence of number from big to small, filters out top n statistics
Period is as the automation platform in several free times section for setting backup date;N is positive integer.
The application can also carry out delete operation to the test data of database, and in one embodiment, the method is also
It include: when receiving to the deletion instruction for specifying test data in database, logic to be executed to the nominative testing data and is deleted
Operation.All test datas all use logic to delete mode in database.I.e. in the database, when to some test data into
Be in the database a character by the record identification when row delete operation, such as y, i.e., only identify the test data be by
It deletes (delete field value be the character), but the record is practical is still present in database, is not deleted really, together
The time of account, deletion that Shi Jilu operation is deleted.In automation platform, when carrying out automatic test, all tests
Data are all to have read the record that delete field value in database is not the character.When the test number for needing to restore accidentally to be deleted
According to when, the delete field value for the record that needs restore is revised as the non-character, such as non-y in the database, is then refreshed
Load automation platform respective page, triggering re-read database, can restore data.
Present invention also provides physics delete operations.The operation for having done logic deletion can will operate in automation platform
Record saves, and can do secondary-confirmation to delete operation on platform, determines and executes permanent delet, in such database
Really the record will be deleted completely.Or execute regular physical constraints and delete, as done logic delete operation, In
After saving 90 days, physics can be executed automatically and deleted, it thus can be excessively superfluous to avoid data caused by overabundance of data in database
It is remaining.
Based on the same inventive concept, the application also provides a kind of test data processing unit based on automation platform, under
Face describes in detail in conjunction with specific embodiment of the attached drawing to the application device.
As shown in Fig. 2, the schematic diagram of the test data processing unit based on automation platform for an embodiment, the device
Include:
Free time section determining module 210, for automating going through for platform according to described when setting backup date arrival
History operational data determines the automation platform in several free times section of the setting backup date;
Test data division module 220, for according to be backed up in several free times section partition database
Test data obtains the corresponding test data of several free times section;
Test data backup module 230, for the corresponding test data of the section of several free times by described in corresponding
Free time section backs up to designated position.
In one embodiment, test data backup module 230 includes:
Initial time judging unit, for for the section of each free time in several free times section, judgement
Whether current time reaches the initial time of the free time section;
Idle state detection unit, for when reaching the initial time, the detection automation platform currently whether
It is in idle condition;
Backup units, for when being in idle condition, the corresponding test data of the free time section to be backed up to finger
Positioning is set;
Division unit, for not executing corresponding test data in the free time section when being not at idle state
Backup;And when there are remaining free time section, the survey being not backed up is repartitioned according to remaining several free times section
Try data, obtain the corresponding test data of remaining several free times section, return initial time judging unit execute for
Section of each free time in several free times section, judges whether current time reaches rising for the free time section
The function at moment beginning.
In one embodiment, division unit is not after in free time, section executes the backup of corresponding test data,
It is also used to when there is no remaining free time section, after the free time section, platform is automated described in real-time detection
Whether idle state is entered, if the test data being not backed up is backed up to designated position into idle state.
In another embodiment, test data backup module 230 includes:
Initial time judging unit, for for the section of each free time in several free times section, judgement
Whether current time reaches the initial time of the free time section;
Wire-speed detection unit, for detecting current network speed when reaching the initial time;
Split cells is used for when the network speed is less than preset threshold, by the corresponding test data of the free time section
Multiple test data blocks are split as, multiple test data blocks are successively backuped into designated position.
In one embodiment, test data backup module 230 further includes the backup units being connected with wire-speed detection unit,
The backup units include:
Backup subelement is used for when the network speed is more than or equal to preset threshold, by the corresponding survey of the free time section
Examination data backup to designated position as a whole;
Test data chooses subelement, when finish time for not reaching free time section also in current time,
Selected part test data and finger is backed up to from section of the next free time corresponding test data of free time section
Positioning is set;
Subelement is divided, for repartitioning the test data being not backed up according to remaining several free times section, is obtained
The corresponding test data of remaining several free times section, return initial time judging unit execute for it is described several
Section of each free time in free time section, judges whether current time reaches the function of the initial time of the free time section
Energy.
In one embodiment, free time section determining module 210 includes:
Preset unit, for being divided into each statistical time section for one day in advance;
Statistic unit counts every for sorting out the history operational data of the automation platform according to the date
It free time section;
Selection unit, for choosing wherein one day free time section;
Number determination unit, for there are when the statistics of intersection by the free time section of each this day of statistical time Duan Zhongyu
Between the corresponding number of section increase preset value;
Selection unit chooses another day free time section, and the execution of recycle time determination unit will be in each statistical time section
With free time of this day section there are the function that the corresponding number of the statistical time section of intersection increases preset value, until all days
Free time, Duan Jun was selected, and obtained the number of each statistical time section;
Free time section determination unit, for arranging according to the sequence of number from big to small each statistical time section
Sequence filters out top n statistical time section as the automation platform in described several free times for setting backup date
Section;N is positive integer.
In one embodiment, described device further includes removing module, for receiving to nominative testing number in database
According to deletion instruction when, to the nominative testing data execute logic delete operation.
Other technical characteristics of the above-mentioned test data processing unit based on automation platform are put down with above-mentioned based on automation
The technical characteristic of the test data processing method of platform is identical, and it will not be described here.
The embodiment of the present application also provides a kind of computer readable storage medium, is stored thereon with computer program, the program
The test data processing method based on automation platform described in above-mentioned any one is realized when being executed by processor.Wherein, institute
Stating storage medium includes but is not limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM
(Read-Only Memory, read-only memory), RAM (Random AcceSS Memory, immediately memory), EPROM
(EraSable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM
(Electrically EraSable Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory),
Flash memory, magnetic card or light card.It is, storage medium includes the form by equipment (for example, computer) can read
Any medium of storage or transmission information.It can be read-only memory, disk or CD etc..
The embodiment of the present application also provides a kind of computer equipment, and the computer equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the test data processing method based on automation platform described in above-mentioned any one.
Fig. 3 is the structural schematic diagram of the application computer equipment, including processor 320, storage device 330, input unit
The devices such as 340 and display unit 350.It will be understood by those skilled in the art that the structure devices shown in Fig. 3 are not constituted to institute
There is the restriction of computer equipment, may include than illustrating more or fewer components, or the certain components of combination.Storage device
330 can be used for storing application program 310 and each functional module, and processor 320 runs the application journey for being stored in storage device 330
Sequence 310, thereby executing the various function application and data processing of equipment.Storage device 330 can be built-in storage or external memory
Reservoir, or including both built-in storage and external memory.Built-in storage may include read-only memory, programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory or random storage
Device.External memory may include hard disk, floppy disk, ZIP disk, USB flash disk, tape etc..Storage device disclosed in the present application includes but not
It is limited to the storage device of these types.Storage device 330 disclosed in the present application is only used as example rather than as restriction.
Input unit 340 is used to receive the input of signal, and receives the history operational data etc. of automation platform.Input
Unit 340 may include touch panel and other input equipments.Touch panel collects the touch behaviour of user on it or nearby
Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel or near touch panel
Operation), and corresponding attachment device is driven according to a pre-set procedure;Other input equipments can include but is not limited to physics
One of keyboard, function key (such as broadcasting control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 350 can be used for showing the information of user's input or be supplied to the information of user and respectively planting vegetables for computer equipment
It is single.The forms such as liquid crystal display, Organic Light Emitting Diode can be used in display unit 350.Processor 320 is the control of computer equipment
Center processed is stored in storage device by running or executing using the various pieces of various interfaces and the entire computer of connection
Software program and/or module in 330, and the data being stored in storage device are called, perform various functions and handle number
According to.
In one embodiment, computer equipment includes one or more processors 320, and one or more storage dresses
330 are set, one or more application program 310, wherein one or more of application programs 310 are stored in storage device 330
In and be configured as being executed by one or more of processors 320, one or more of application programs 310 are configured to hold
Test data processing method based on automation platform described in row above embodiments.
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.
It should be understood that can be integrated in a processing module in each functional unit in each embodiment of the application,
It can be physically existed alone, can also be integrated in two or more units in a module with each unit.It is above-mentioned integrated
Module both can take the form of hardware realization, can also be realized in the form of software function module.
The above is only some embodiments of the application, it is noted that for the ordinary skill people of the art
For member, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications are also answered
It is considered as the protection scope of the application.
Claims (10)
1. a kind of test data processing method based on automation platform characterized by comprising
When setting backup date arrival, according to the history operational data of the automation platform, the automation platform is determined
In several free times section of the setting backup date;
According to test data to be backed up in several free times section partition database, when obtaining several described free time
Between the corresponding test data of section;
The corresponding test data of several free times section is backed up into designated position in corresponding free time section.
2. the test data processing method according to claim 1 based on automation platform, which is characterized in that described by institute
It states the corresponding test data of several free times section and backs up to designated position in corresponding free time section, comprising:
For the section of each free time in several free times section, when judging whether current time reaches the free time
Between section initial time;
If reaching the initial time, detect whether the automation platform is currently in idle condition;
If being in idle condition, the corresponding test data of the free time section is backed up into designated position;
If being not at idle state, the backup of corresponding test data is not executed in the free time section;And there are remaining
When free time section, the test data being not backed up is repartitioned according to remaining several free times section, if obtaining remaining
The corresponding test data of dry free time section is returned for the section of each free time in several free times section,
The step of whether current time reaches the initial time of the free time section judged.
3. the test data processing method according to claim 2 based on automation platform, which is characterized in that described in institute
It states after free time section do not execute the backup of corresponding test data, further includes:
Remaining free time section if it does not exist, after the free time section, whether automation platform described in real-time detection
Into idle state, if the test data being not backed up is backed up to designated position into idle state.
4. the test data processing method according to claim 1 based on automation platform, which is characterized in that described by institute
It states the corresponding test data of several free times section and backs up to designated position in corresponding free time section, comprising:
For the section of each free time in several free times section, when judging whether current time reaches the free time
Between section initial time;
If reaching the initial time, current network speed is detected;
If the network speed is less than preset threshold, the corresponding test data of the free time section is split as multiple test datas
Multiple test data blocks are successively backuped to designated position by block.
5. the test data processing method according to claim 4 based on automation platform, which is characterized in that the detection
After current network speed, further includes:
If the network speed is more than or equal to preset threshold, the corresponding test data of the free time section is backed up as a whole
To designated position;
If current time does not reach the finish time of free time section also, from the free time section it is next idle when
Between selected part test data and back up to designated position in the corresponding test data of section;
The test data being not backed up is repartitioned according to remaining several free times section, when obtaining several remaining free time
Between the corresponding test data of section, return to the section of each free time in several free times section, judgement is worked as
Whether the preceding time reaches the step of initial time of the free time section.
6. according to claim 1 to the test data processing method based on automation platform described in 5 any one, feature exists
In the history operational data according to the automation platform determines the automation platform in the setting backup date
Several free times section, comprising:
Each statistical time section was divided by one day in advance;
The history operational data of the automation platform is sorted out according to the date, counts daily free time section;
Choose wherein one day free time section;
By the free time section of each this day of statistical time Duan Zhongyu, there are the corresponding numbers of the statistical time section of intersection to increase in advance
If value;
Another day free time section is chosen, there are intersections by the free time section of each this day of statistical time Duan Zhongyu for return
The step of corresponding number of statistical time section increases preset value, until all days free time Duan Jun are selected, obtains each
The number of statistical time section;
Each statistical time section is ranked up according to the sequence of number from big to small, filters out top n statistical time section conduct
Several free times section of the automation platform in the setting backup date;N is positive integer.
7. according to claim 1 to the test data processing method based on automation platform described in 5 any one, feature exists
In, further includes:
When receiving to the deletion instruction for specifying test data in database, logic is executed to the nominative testing data and deletes behaviour
Make.
8. a kind of test data processing unit based on automation platform characterized by comprising
Free time section determining module, for being worked according to the history of the automation platform when setting backup date arrival
Data determine the automation platform in several free times section of the setting backup date;
Test data division module, for according to test number to be backed up in several free times section partition database
According to the corresponding test data of acquisition several free times section;
Test data backup module, for the corresponding test data of the section of several free times by described in corresponding free time
Section backs up to designated position.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The test data processing method as claimed in any of claims 1 to 7 in one of claims based on automation platform is realized when row.
10. a kind of computer equipment, which is characterized in that the computer equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now test data processing method as claimed in any of claims 1 to 7 in one of claims based on automation platform.
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 true CN110471846A (en) | 2019-11-19 |
CN110471846B 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)
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 |
-
2019
- 2019-07-23 CN CN201910667635.XA patent/CN110471846B/en active Active
Patent Citations (12)
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 |
---|---|
CN110471846B (en) | 2024-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10692048B2 (en) | Apparatus and method for generating a chronological timesheet | |
EP3456360B1 (en) | Device and method for tuning relational database | |
CN110292775B (en) | Method and device for acquiring difference data | |
CN110175236A (en) | Training sample generation method, device and computer equipment for text classification | |
CN105069617B (en) | A kind of method and apparatus for restoring imperfect transaction | |
US7490269B2 (en) | Noise accommodation in hardware and software testing | |
US5838949A (en) | System and method for execution-sequenced processing of electronic design simulation results | |
CN109783365A (en) | Automated testing method, device, computer equipment and storage medium | |
US6106572A (en) | Forward and reverse hierarchical page level debugger | |
CN104035786A (en) | Optimization method and system of software timers | |
CN111106965A (en) | Intelligent log analysis method, tool, equipment and medium for complex system | |
CN109871368A (en) | Database detection method, apparatus, computer installation and storage medium | |
CN112527671A (en) | Multi-task time sequence conflict detection method based on event stream analysis | |
AU2005200513B2 (en) | Data processing system | |
US11734063B2 (en) | Job management based on generated execution time prediction model and prediction accuracy | |
CN110471846A (en) | Test data processing method, device and computer equipment based on automation platform | |
CN109725785A (en) | Task execution situation method for tracing, device, equipment and readable storage medium storing program for executing | |
CN111124372A (en) | Design method and system for front end and back end of simplified development chart | |
CN110888909B (en) | Data statistical processing method and device for evaluation content | |
JP2003085021A (en) | Batch processing system equipped with recovery/restart function, program for batch processing system equipped with recovery/restart function, and recording medium for recording program | |
CN112181853A (en) | Program debugging method, device and system | |
CN107656859B (en) | Stability test method for high fault tolerance of cloud system | |
US20070010982A1 (en) | Automatic time warp for electronic system simulation | |
CN111159188A (en) | Quasi-real-time large data volume processing method based on DataWorks | |
CN112000405A (en) | Method, equipment and storage medium for conveniently acquiring system logs |
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 |