CN1798071A - Method for testing mechanism of data rollback - Google Patents
Method for testing mechanism of data rollback Download PDFInfo
- Publication number
- CN1798071A CN1798071A CN 200410102545 CN200410102545A CN1798071A CN 1798071 A CN1798071 A CN 1798071A CN 200410102545 CN200410102545 CN 200410102545 CN 200410102545 A CN200410102545 A CN 200410102545A CN 1798071 A CN1798071 A CN 1798071A
- Authority
- CN
- China
- Prior art keywords
- message
- data
- foreground
- response message
- backstage
- 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
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The method includes following steps: a) presets a single board in front stage to return the error code after executing an instruction of renewing data, and to send an configuration instruction o the back stage; after processing, the back stage sends an instruction of renewing data to the front stage; b) after the back stage receives the response message returned from the front stage, it decides if the response message is from the preset signal board; if yes, modifies the message block in the response message by the preset error code, and sends the modified response message to the functional process module in the back stage; c)after the functional process module in the back stage receives the modified response message, it triggers the data returning process, and reports the result message; d) compares the result message above with the result message in normal data returning state to decide if they are the same; if not, then it is confirmed that there is failure in data returning process of the configuration instruction.
Description
Technical field
The present invention relates to a kind of method of testing of mechanism of data rollback, be applicable to the system that all adopt the foreground and background data library structure.
Background technology
In the system based on the AM/BAM structure, there is the complete database of a cover on the backstage, and each plate of foreground then has a cover and the relevant database of self veneer.
In actual use, Foreground Data can occur and upgrade failure, thereby cause the inconsistent situation of data in the foreground and background databases.In order to address this problem, the general employing when Foreground Data is upgraded failure carried out the method for data-backoff to AM/BAM.
The Data Update flow process is:
Configuration client transmission configuration order, the data of self are upgraded on the backstage earlier, send the Data Update order that needs execution to each purpose veneer of foreground then;
After veneer is received operational order, upgrade the Foreground Data success, then send success response;
After the success response that all veneers return is received on backstage etc., confirm to upgrade successfully, and to the successful message of configuration client transmission command execution;
If wherein a certain purpose veneer returns failure, then the backstage stops to carry out subsequent operation, and to the more anti-operation of each purpose veneer transmission needs execution of new data, makes it return to previous status, simultaneously back-end data is carried out rollback, guarantee the consistency of foreground and background data.
If the rollback function can not normally be moved, configuration order is carried out some foreground veneer of back and is run succeeded so, and some foreground veneer is carried out failure, and each veneer is operated under the different condition, causes each veneer can not collaborative work; Simultaneously also can cause foreground and back-end data inconsistent, make the backstage correctly not manage the foreground.
Therefore, guarantee that the foreground upgrades failure back foreground and background data consistency, will guarantee that the rollback function normally moves.In the prior art also not preferably means come the test data fallback mechanism whether working properly.
Summary of the invention
The invention provides a kind of method of testing of mechanism of data rollback,, carry out data-backoff, come whether operate as normal of test data fallback mechanism with this thereby trigger the backstage by the various abnormal conditions of simulation foreground veneer.
The method of testing of mechanism of data rollback provided by the invention is applicable to the system with foreground and background data library structure, may further comprise the steps:
A: preset the foreground veneer and carry out the error code that returns after the Data Update order, and send configuration order, send the Data Update order to the foreground after the background process to the backstage;
B: after the response message of returning on the foreground is received on the backstage, judge whether to presetting the return messages of veneer, if then revise message elements in this response message, and amended response message is sent to the functional processing module on backstage with the error code that presets;
C: the functional processing module on backstage receives amended response message, trigger data rollback flow process, and reported result message;
D: relatively whether this message as a result that reports is identical with message as a result under the mechanism of data rollback normal condition, if not, judges that then the mechanism of data rollback of this configuration order breaks down.
Among the described step B,, then this response message is directly passed through the background function processing module, handle by the normal flow of respective acknowledgement message by the background function processing module if judge that the response message that the foreground is returned is not to preset the return messages of veneer.
Described step C also includes in the record background process process and the step of the interaction message between the foreground.
Described step D more comprises following concrete steps:
D1) message as a result under the mechanism of data rollback normal condition is prestored in the automatic analysis module;
D2) message as a result that the functional processing module on backstage is exported imports in this automatic analysis module;
D3) otherness of being carried out automatically between the two by automatic analysis module is compared.
Described step D also includes the following step: judge whether to continue to test the mechanism of data rollback under other prerequisites, if then go to steps A; Otherwise finish test.
The present invention controls Foreground Data renewal operating result according to the pre-conditioned of setting, can control the trigger point and the error code of data-backoff in the layoutprocedure arbitrarily, thereby realizes the data submission rollback test under the different situations.
Description of drawings
Fig. 1 is an enforcement schematic diagram of the present invention.
Fig. 2 is the flow chart of the method for the invention.
Embodiment
Referring to Fig. 1, be the related high-level schematic functional block diagram of the inventive method.
As shown in the figure, the AM/BAM system is embedded in the test module on backstage by use, intercepts and captures the AM/BAM interactive messages, and according to the prerequisite that the user is provided with Foreground Data is upgraded operating result and control.
This test module comprises a communication interface, command interpreter, command executer, message forwarder.
The communication interface realization is communicated by letter with test console, receives prerequisite and sets, and send the test process data.
Command interpreter is used for analyzing prerequisite, generates the data format that can contrast with the Foreground Data bag, and is set to command executer.
Command executer is handled the message from message forwarder, for being sent to message forwarder behind the message modification corresponding message unit (Information Element) that meets prerequisite according to the prerequisite that command interpreter generates; Ineligible message directly is transparent to message forwarder; Simultaneously, the message through this module is carried out record by the process data recording module that communication interface sends to test console.
Message forwarder receives the interaction message between background function processing module and the foreground, and is forwarded to command executer; Simultaneously, command executer transparent transmission or the message handled are distributed to the destination.
The user sets by the prerequisite input module of test console and presets initial conditions, presets the foreground veneer and carries out the error code that returns after the Data Update order.
The user is by the tested configuration order of test console configuration order input module input, send to the backstage through the analog configuration platform, revise data in the background data base by the functional processing module in the backstage, and send one or more Data Update order to the one or more veneers in foreground.Echo reply message after the foreground veneer execution Data Update, response message is forwarded to command executer through message forwarder.
Command executer is to preset the message that veneer returns according to prerequisite if confirm this response message, then revises the corresponding message unit in this message, and amended response message is sent to the background function processing module by message forwarder; If this response message is not to preset the message that veneer returns, then this message is directly sent to message forwarder, send to the background function processing module by message forwarder, handle according to the normal flow of respective acknowledgement message by the background function processing module.
After the background function processing module is received amended response message, trigger data rollback flow process.All interaction messages in the back off procedure between backstage and the foreground all can pass through behind message forwarder-command executer-test console by the process data recording module records.
After the rollback flow process was finished, functional processing module was to test console reported result message, and this message is directed in the automatic analysis module of a result.The automatic analysis module of this result carries out otherness relatively with the user by the message as a result under the mechanism of data rollback normal condition of expected results input module input with the message as a result that the backstage reports, if both are inequality, judge that then the mechanism of data rollback of this configuration order breaks down.
After testing process finished, all process datas and result were saved, and are used for manual analysis and location of mistake.
Fig. 2 comprises the steps: for the idiographic flow that the present invention realizes the mechanism of data rollback test
100: preset the foreground veneer at testboard and carry out the error code that returns after the Data Update order, and send configuration order, send the Data Update order to the foreground after the background process to the backstage;
200: after the response message of returning on the foreground is received on the backstage, judge whether it is the return messages that veneer is preset on the foreground, in this way, change step 300 over to,, change step 700 over to as not;
300: the error code that usefulness presets is revised the message elements in this response message, and amended response message is sent to the functional processing module on backstage;
400: the functional processing module on backstage receives amended response message, trigger data rollback flow process, and reported result message;
500: automatically analysis module is judged this whether message is identical with message as a result under the mechanism of data rollback normal condition as a result, as difference, judges that then the mechanism of data rollback of this configuration order breaks down;
600: judge whether to continue to test the fallback mechanism under other conditions,, finish test, in this way, change step 100 over to as not;
700: response message is directly passed through the background function processing module, handle by the normal flow of corresponding message by the background function processing module.
In sum, the present invention can simulate the foreground veneer that produces any condition and return unusually (various mistakes, overtime etc.), thereby data-backoff is carried out in triggering under different condition, and contrastive test result automatically, the recording process data are for the positioning problems analysis provides foundation.
Though more than be that example is illustrated the inventive method with the test module; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.
Claims (5)
1, a kind of method of testing of mechanism of data rollback is applicable to the system with foreground and background data library structure, it is characterized in that may further comprise the steps:
A: preset the foreground veneer and carry out the error code that returns after the Data Update order, and send configuration order, send the Data Update order to the foreground after the background process to the backstage;
B: after the response message of returning on the foreground is received on the backstage, judge whether to presetting the return messages of veneer, if then revise message elements in this response message, and amended response message is sent to the functional processing module on backstage with the error code that presets;
C: the functional processing module on backstage receives amended response message, trigger data rollback flow process, and reported result message;
D: relatively whether this message as a result that reports is identical with message as a result under the mechanism of data rollback normal condition, if not, judges that then the mechanism of data rollback of this configuration order breaks down.
2, the method for claim 1, it is characterized in that: among the described step B, if judge that the response message that the foreground is returned is not to preset the return messages of veneer, then this response message is directly passed through the background function processing module, handle by the normal flow of respective acknowledgement message by the background function processing module.
3, the method for claim 1 is characterized in that: described step C also includes in the record background process process and the step of the interaction message between the foreground.
4, method as claimed in claim 3 is characterized in that: described step D more comprises following concrete steps:
D1) message as a result under the mechanism of data rollback normal condition is prestored in the automatic analysis module;
D2) message as a result that the functional processing module on backstage is exported imports in this automatic analysis module;
D3) otherness of being carried out automatically between the two by automatic analysis module compares.
5, as claim 1,2,3 or 4 described methods, it is characterized in that: also include the following step: judge whether to continue to test the mechanism of data rollback under other prerequisites, if then go to steps A; Otherwise finish test.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB200410102545XA CN100387002C (en) | 2004-12-24 | 2004-12-24 | Method for testing mechanism of data rollback |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB200410102545XA CN100387002C (en) | 2004-12-24 | 2004-12-24 | Method for testing mechanism of data rollback |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1798071A true CN1798071A (en) | 2006-07-05 |
CN100387002C CN100387002C (en) | 2008-05-07 |
Family
ID=36818863
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB200410102545XA Expired - Fee Related CN100387002C (en) | 2004-12-24 | 2004-12-24 | Method for testing mechanism of data rollback |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100387002C (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103731457A (en) * | 2012-10-15 | 2014-04-16 | 中兴通讯股份有限公司 | Service processing method and terminal |
CN107943705A (en) * | 2017-12-08 | 2018-04-20 | 中国银行股份有限公司 | A kind of test method and device of workflow examination and approval class system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3120033B2 (en) * | 1996-03-19 | 2000-12-25 | 株式会社東芝 | Distributed memory multiprocessor system and fault recovery method |
US6397227B1 (en) * | 1999-07-06 | 2002-05-28 | Compaq Computer Corporation | Database management system and method for updating specified tuple fields upon transaction rollback |
US6631374B1 (en) * | 2000-09-29 | 2003-10-07 | Oracle Corp. | System and method for providing fine-grained temporal database access |
US20020152396A1 (en) * | 2001-04-11 | 2002-10-17 | Fox Michael S. | Method for secure restoration of a database stroring non-secure content |
-
2004
- 2004-12-24 CN CNB200410102545XA patent/CN100387002C/en not_active Expired - Fee Related
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103731457A (en) * | 2012-10-15 | 2014-04-16 | 中兴通讯股份有限公司 | Service processing method and terminal |
CN103731457B (en) * | 2012-10-15 | 2019-02-26 | 中兴通讯股份有限公司 | A kind of method for processing business and terminal |
CN107943705A (en) * | 2017-12-08 | 2018-04-20 | 中国银行股份有限公司 | A kind of test method and device of workflow examination and approval class system |
CN107943705B (en) * | 2017-12-08 | 2021-02-26 | 中国银行股份有限公司 | Method and device for testing process approval system |
Also Published As
Publication number | Publication date |
---|---|
CN100387002C (en) | 2008-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1282078C (en) | Method and device for firmware renewal | |
CN1118749C (en) | Remote software download with automatic adjustment for data access compatibility | |
US6334215B1 (en) | Methodology for migration of legacy applications to new product architectures | |
US6564369B1 (en) | Conflict checking using configuration images | |
CN1147190C (en) | Method and apparatus for downloading into radio terminal | |
CN1212062A (en) | Extended BIOS adapted for remote diagnostic repair | |
CN1851666A (en) | Method and system for realizing software automatic test | |
CN1684427A (en) | Method for software upgrading and withdrawing | |
CN1834917A (en) | Remote boot method and mechanism and computer readable record medium | |
CN102866930A (en) | Blue screen repairing method, device and system | |
CN101655802B (en) | System and method for downloading files in batches | |
CN1967499A (en) | Journal output system and output method | |
CN100346290C (en) | Programmable controller, programmable controller system, CPU unit and method of starting duplexed operation | |
CN1798071A (en) | Method for testing mechanism of data rollback | |
CN1220809A (en) | Method of preventing data inconisistency between master exchange data and backup exchange data | |
CN1731881A (en) | Method for carrying out active inquiry maintenance on mobile terminal | |
CN1805582A (en) | Method of testing with integrated test tools | |
CN1326155A (en) | Method for instantaneous generation of file version | |
CN1975701A (en) | Master machine driving external equipment method and system | |
CN113672516B (en) | Automatic testing method and system for virtual screen interconnection interface control | |
CN1087573C (en) | Method for managing data in digital cellular system | |
CN1684043A (en) | Real time monitoring system and method for computer files | |
CN1470985A (en) | Error back-report and correction method for peripheral unit | |
CN116383093B (en) | Windows test environment deployment method and device, readable storage medium and electronic equipment | |
US20230050723A1 (en) | Device testing arrangement |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080507 Termination date: 20131224 |