CN102130929A - Method and device for updating client testing server and testing server - Google Patents

Method and device for updating client testing server and testing server Download PDF

Info

Publication number
CN102130929A
CN102130929A CN201010002407XA CN201010002407A CN102130929A CN 102130929 A CN102130929 A CN 102130929A CN 201010002407X A CN201010002407X A CN 201010002407XA CN 201010002407 A CN201010002407 A CN 201010002407A CN 102130929 A CN102130929 A CN 102130929A
Authority
CN
China
Prior art keywords
testing server
client
file
server
client testing
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.)
Pending
Application number
CN201010002407XA
Other languages
Chinese (zh)
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201010002407XA priority Critical patent/CN102130929A/en
Publication of CN102130929A publication Critical patent/CN102130929A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a device for updating a client testing server, and the testing server. The method comprises the following steps of: before a file on a main testing server is synchronized to the client testing server, judging whether the file on the main testing server is different from the file on the client testing server; and if the file on the main testing server is not different from the file on the client testing server, skipping the file. In the invention, by synchronizing the file on the main testing server, which is different from that on the client testing server, to the client testing server, the time of stopping the running of the client testing server in the synchronizing and updating process is greatly reduced, and the efficiency is improved.

Description

Client testing server method for updating, updating device and testing server
Technical field
The present invention relates to data communication field, especially relate to a kind of client testing server method for updating, updating device and testing server.
Background technology
Along with the scale of some software development companys constantly enlarges, for saving cost and be convenient to factor such as services client, these enterprises can be in different areal setting test research and development centre.Software development company can be provided with a main testing server usually; developer's program newly developed all can be submitted on the main testing server; the client testing server of other test research and development centres is regularly set up session with this main testing server; test environment to self upgrades, with reach with main testing server on the purpose of data sync.
The file of main testing server deploy is generally all many, and other client testing servers are all synchronously come the data on the main testing server need be for a long time; And because the existing network bandwidth is limited, main testing server can't improve the speed that data send other client testing servers to again.
The client testing server can lock the file on it when test run, just mean also at every turn that synchronously more new capital need stop the client testing server, wait the intact All Files of synchronous renewal after, restart the client testing server again.
Since developer every day all can not timing new procedures is submitted to main testing server, therefore, the number of times that upgrade every day synchronously is also about 3 times.Like this, other client testing servers can normally provide the time of service just very limited except the time of synchronous renewal, and efficient is extremely low.
Summary of the invention
The purpose of this invention is to provide a kind of client testing server method for updating, updating device and testing server, to reduce client testing server client testing server time out of service in synchronous renewal process.
The invention provides a kind of client testing server method for updating, comprising:
With the file synchronization on the main testing server before the client testing server, judge whether described file and the described file on the client testing server on the main testing server variant; If not, then skip this document.
Preferably, before judging that described file is whether variant, also comprise: whether the title that detects the file at described file on the main testing server or described file place mates with the project name that presets in the tabulation; If coupling is then skipped corresponding described file or folder.
Preferably, described client testing server can comprise: the first client testing server and the second client testing server;
Then after first client testing server preparation renewal is out of service, switches to the second client testing server testing service is provided;
After the renewal of the first client testing server finishes, switch to the first client testing server testing service is provided.
Describedly judge whether variant being specifically as follows of each file: whether the above file of more main testing server is identical with the size and the final updating time of the above file of client testing server.
Described client testing server can be EAS EAS testing server.
The present invention also provides a kind of updating device, comprises judge module and synchronization module;
Described judge module is used for: described synchronization module with the file synchronization on the main testing server before the client testing server, judge whether described file and the described file on the client testing server on the main testing server variant; If not, then notify described synchronization module to skip this document.
Preferably, described updating device also comprises:
Detection module was used for before described judge module judges that described file is whether variant, and whether the title that detects the file at described file on the main testing server or described file place mates with the project name that presets in the tabulation; If coupling then notifies described synchronization module to skip corresponding described file or folder.
Preferably, described client testing server can comprise: the first client testing server and the second client testing server;
Then described updating device also comprises: handover module is used for switching to the second client testing server testing service being provided after first client testing server preparation renewal is out of service; After the renewal of the first client testing server finishes, switch to the first client testing server testing service is provided.
The present invention also provides a kind of testing server, and described testing server comprises above-mentioned updating device.
Client testing server method for updating, updating device and the testing server of present embodiment, only with discrepant file synchronization on main testing server and the client testing server to the client testing server, significantly reduced client testing server time out of service in synchronous renewal process.
Description of drawings
Fig. 1 is the schematic flow sheet of client testing server method for updating of the present invention;
Fig. 2 is the framework schematic diagram of updating device of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the embodiment of the invention is described in further detail below in conjunction with the drawings and specific embodiments.
Embodiment one
The invention provides a kind of client testing server method for updating, as shown in Figure 1, comprising:
S101, with the file synchronization on the main testing server before the client testing server, judge whether described file and the described file on the client testing server on the main testing server variant; If not, then skip this document.
Prior art is that the All Files on the main testing server is all copied on the client testing server that needs to upgrade synchronously, need copy many, the consuming time length of quantity of documents, take the network bandwidth, influence test job.
The inventor finds to have every day on the main testing server file of change and few by analysis, if only upgrade at the file that change is arranged, can reach equally with main testing server on the purpose of file synchronization.Therefore, among the present invention, adopt the file judged earlier on the main testing server whether with the client testing server on file variant, if there is not difference, then skip this document, as if variant, synchronous again.
Preferably, before judging that described file is whether variant, also comprise S102: whether the title that detects the file at described file on the main testing server or described file place mates with the project name that presets in the tabulation; If coupling is then skipped corresponding described file or folder.
Client testing server among the present invention can be EAS (Enterprise Application Suite, EAS) testing server.
The project correspondence that presets in the tabulation does not need synchronous file or file name, as CONFIG.SYS of main testing server etc.Because the client testing server may dispose different operating system with main testing server, the CONFIG.SYS of so synchronous main testing server causes the trouble that can't start service can for the client testing server; Secondly, the client testing server is concerned about has only the file relevant with test environment, and synchronous other file does not have the use meaning of reality yet.
Therefore, whether the title that detects the described file or folder on the main testing server mates with the project name that presets in the tabulation, if coupling just can directly be ignored skips, and further reduces the quantity of documents that upgrades synchronously.
Concrete, preset tabulation and can adopt the .txt file to store one by one not need synchronous file or file name.
The present invention also provides a kind of preferred implementation, and promptly the client testing server comprises: the first client testing server and the second client testing server.
After first client testing server preparation renewal is out of service, switch to the second client testing server at once, starting second client-server provides testing service (if the first client testing server does not have the second client testing server that just starts out of service can cause port collision) for the tester.After the renewal of the first client testing server finishes, switch to the first up-to-date client testing server of test environment again testing service is provided, subsynchronous renewal is down prepared in second client testing server back out of service.Alternately provide testing service by two client testing servers.
Two client testing server configurations are just the same, switch by setting up virtual disk.When wherein a client testing server is in operation, use an other client testing server to upgrade synchronously, after file has upgraded, stop the client testing server of current operation, use intact synchronously client testing server that testing service is provided.Like this, stop to provide the time of testing service significantly to reduce, just equal to restart the employed time of client testing server one time; And, use two client testing servers to be equivalent to file has been carried out dual backup, can avoid the problem that client testing server one breaks down, the test job of whole research and development centre is paralysed comprehensively occurring, more stable testing service is provided thus.
According to the enlightenment of inventive concept, client can also use three and above client testing server to upgrade/provide testing service by turns, considers cost and efficient, and the client testing server is preferably two in the present embodiment.
Client testing server method for updating of the present invention does not need to install main testing server end software, and a control script can be installed on the client testing server.In the process that the client testing server upgrades, can not influence main testing server provides testing service for the tester of this locality; And, operating system on the client testing server can be different with the operating system of main testing server, identify the size and the final updating time of file on the main testing server, can judge that whether this document carried out change, had further enlarged the range of application of client testing server update method of the present invention.
The client testing server method for updating of present embodiment, only with discrepant file synchronization on main testing server and the client testing server to the client testing server, significantly reduced client testing server time out of service in synchronous renewal process; Judge with the last change time whether file carried out change by the size of discerning file on main testing server and the client testing server, can specify any catalogue on any operating system platform and file are carried out synchronously, dispose very flexible; By with file or folder title on the main testing server and the project name coupling that presets in the tabulation, further got rid of the file of unnecessary renewal, shortened the synchronous required time; By using two client testing servers alternately to upgrade, the time that the client testing server is stopped to serve further is compressed to the client testing server and restarts the required time, and can carry out dual backup to file, more stable testing service is provided.
Embodiment two
The invention provides a kind of updating device, as shown in Figure 2, comprising: judge module 10 and synchronization module 20.
Described judge module 10 is used for: described synchronization module 20 with the file synchronization on the main testing server before the client testing server, judge whether described file and the described file on the client testing server on the main testing server variant; If not, then notify described synchronization module 20 to skip this document, if then synchronization module 20 is synchronized to this document on the client testing server.
Preferably, described updating device also comprises: detection module 30, be used for before described judge module 10 judges that described file is whether variant, whether the title that detects the file at described file on the main testing server or described file place mates with the project name that presets in the tabulation; If coupling then notifies described synchronization module 20 to skip corresponding described file or folder, if do not match, then judge module 10 is carried out and is judged whether discrepant step of file.
If the client testing server comprises the first client testing server and the second client testing server, then described updating device also comprises: handover module 40, be used for after first client testing server preparation renewal is out of service, switches to the second client testing server testing service being provided; After the renewal of the first client testing server finishes, switch to the first client testing server testing service is provided.
The updating device of present embodiment, only with discrepant file synchronization on main testing server and the client testing server to the client testing server, significantly reduced client testing server time out of service in synchronous renewal process; Judge with the last change time whether file carried out change by the size of discerning file on main testing server and the client testing server, can specify any catalogue on any operating system platform and file are carried out synchronously, dispose very flexible; By with file or folder title on the main testing server and the project name coupling that presets in the tabulation, further got rid of the file of unnecessary renewal, shortened the synchronous required time.
Embodiment three
The present invention also provides a kind of testing server, disposes embodiment two described updating devices on the described testing server.
The testing server of present embodiment, only with main testing server be positioned on the testing server of client discrepant file synchronization to described testing server, significantly reduced testing server time out of service in renewal process synchronously; Size and last change time by file on the testing server of discerning main testing server and client judge whether file carried out change, can specify any catalogue on any operating system platform and file are carried out synchronously, dispose very flexible; By with file or folder title on the main testing server and the project name coupling that presets in the tabulation, further got rid of the file of unnecessary renewal, shortened the synchronous required time; By alternately upgrading with other testing servers of client, the time that testing server is stopped to serve further is compressed to testing server and restarts the required time, and can carry out dual backup to file, and more stable testing service is provided.
Because updating device embodiment, testing server embodiment are more to the similar content of method embodiment, that therefore describes is simpler, and relevant part sees also method embodiment part, repeats no more herein.
Need to prove, in this article, relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint and have the relation of any this reality or in proper order between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as this process, method, article or equipment intrinsic key element.Do not having under the situation of more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.All any modifications of being done within the spirit and principles in the present invention, be equal to replacement, improvement etc., all be included in protection scope of the present invention.

Claims (9)

1. a client testing server method for updating is characterized in that, comprising:
With the file synchronization on the main testing server before the client testing server, judge whether described file and the described file on the client testing server on the main testing server variant; If not, then skip this document.
2. the method for claim 1, it is characterized in that, before judging that described file is whether variant, also comprise: whether the title that detects the file at described file on the main testing server or described file place mates with the project name that presets in the tabulation; If coupling is then skipped corresponding described file or folder.
3. the method for claim 1 is characterized in that, described client testing server comprises: the first client testing server and the second client testing server;
Then after first client testing server preparation renewal is out of service, switches to the second client testing server testing service is provided;
After the renewal of the first client testing server finishes, switch to the first client testing server testing service is provided.
4. as each described method of claim 1-3, it is characterized in that, describedly judge whether variant being specially of each file: whether the above file of more main testing server is identical with the size and the final updating time of the above file of client testing server.
5. as each described method of claim 1-3, it is characterized in that described client testing server is an EAS EAS testing server.
6. a updating device is characterized in that, comprises judge module and synchronization module;
Described judge module is used for: described synchronization module with the file synchronization on the main testing server before the client testing server, judge whether described file and the described file on the client testing server on the main testing server variant; If not, then notify described synchronization module to skip this document.
7. updating device as claimed in claim 6 is characterized in that, described updating device also comprises:
Detection module was used for before described judge module judges that described file is whether variant, and whether the title that detects the file at described file on the main testing server or described file place mates with the project name that presets in the tabulation; If coupling then notifies described synchronization module to skip corresponding described file or folder.
8. as claim 6 or 7 described updating devices, it is characterized in that described client testing server comprises: the first client testing server and the second client testing server;
Then described updating device also comprises: handover module is used for switching to the second client testing server testing service being provided after first client testing server preparation renewal is out of service; After the renewal of the first client testing server finishes, switch to the first client testing server testing service is provided.
9. a testing server is characterized in that, described testing server comprises each described updating device as claim 6-8.
CN201010002407XA 2010-01-20 2010-01-20 Method and device for updating client testing server and testing server Pending CN102130929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010002407XA CN102130929A (en) 2010-01-20 2010-01-20 Method and device for updating client testing server and testing server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010002407XA CN102130929A (en) 2010-01-20 2010-01-20 Method and device for updating client testing server and testing server

Publications (1)

Publication Number Publication Date
CN102130929A true CN102130929A (en) 2011-07-20

Family

ID=44268817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010002407XA Pending CN102130929A (en) 2010-01-20 2010-01-20 Method and device for updating client testing server and testing server

Country Status (1)

Country Link
CN (1) CN102130929A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532920A (en) * 2012-07-06 2014-01-22 腾讯科技(深圳)有限公司 Cookie update method and cookie update system
CN103997517A (en) * 2014-05-06 2014-08-20 广州金山网络科技有限公司 CDN-node file synchronization method and device
CN109669700A (en) * 2018-12-17 2019-04-23 恒生电子股份有限公司 Automatically method, apparatus and system are submitted

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064630A (en) * 2006-04-24 2007-10-31 华为技术有限公司 Data synchronization method and system
CN101354708A (en) * 2008-07-29 2009-01-28 四川大学 Remote file rapid synchronization method
CN101453418A (en) * 2007-12-05 2009-06-10 高德软件有限公司 Updating method for synchronization between customer terminal and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064630A (en) * 2006-04-24 2007-10-31 华为技术有限公司 Data synchronization method and system
CN101453418A (en) * 2007-12-05 2009-06-10 高德软件有限公司 Updating method for synchronization between customer terminal and server
CN101354708A (en) * 2008-07-29 2009-01-28 四川大学 Remote file rapid synchronization method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532920A (en) * 2012-07-06 2014-01-22 腾讯科技(深圳)有限公司 Cookie update method and cookie update system
CN103532920B (en) * 2012-07-06 2018-01-23 腾讯科技(深圳)有限公司 Cookie update methods and cookie more new systems
CN103997517A (en) * 2014-05-06 2014-08-20 广州金山网络科技有限公司 CDN-node file synchronization method and device
CN109669700A (en) * 2018-12-17 2019-04-23 恒生电子股份有限公司 Automatically method, apparatus and system are submitted

Similar Documents

Publication Publication Date Title
CN101110788B (en) Method and system for updating client software
CN102262544B (en) The method and apparatus of software upgrading
CN101719073B (en) Intelligent client-based on-demand downloading realization method
CN101794222A (en) Software version collecting method, management system and software upgrading detection method and system
CN104918114A (en) Method and device for upgrading operation system
CN102546246A (en) Method and system for automatic upgrade of software
CN102262549B (en) Method and system for installing patches
CN106557347B (en) Software updating method and device
CN103530150A (en) Remote updating method for Linux operating system
CN1684427A (en) Method for software upgrading and withdrawing
CN101610449B (en) Method for upgrading and rolling back configuration data and system thereof
CN102833350A (en) Processing method and processing device of WebApp updating
CN105260209A (en) Hot-update solution of program
CN107704550B (en) File migration method and device and computer readable storage medium
CN102520997A (en) Semi-automatic batch deploying method of homogenous cluster operating system
CN109992450A (en) System upgrade backing method, terminal, server and storage medium
CN105528205A (en) Update control method and update control system
CN103164247A (en) Method and device for automatically repairing system application
CN103077059A (en) Method for judging whether application is matched or not
CN102130929A (en) Method and device for updating client testing server and testing server
CN100373861C (en) Software upgrade device in communication network management system and method thereof
CN101859250A (en) Online game client system
CN107766063A (en) A kind of method and system of batch upgrade software
EP3260981B1 (en) Information processing apparatus, information processing system, and information processing method for updating firmware
CN101989920A (en) Distributed communication equipment version upgrading method and device and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110720