CN100387002C - Method for testing mechanism of data rollback - Google Patents

Method for testing mechanism of data rollback Download PDF

Info

Publication number
CN100387002C
CN100387002C CNB200410102545XA CN200410102545A CN100387002C CN 100387002 C CN100387002 C CN 100387002C CN B200410102545X A CNB200410102545X A CN B200410102545XA CN 200410102545 A CN200410102545 A CN 200410102545A CN 100387002 C CN100387002 C CN 100387002C
Authority
CN
China
Prior art keywords
data
message
foreground
background
processing module
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.)
Expired - Fee Related
Application number
CNB200410102545XA
Other languages
Chinese (zh)
Other versions
CN1798071A (en
Inventor
王冶波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB200410102545XA priority Critical patent/CN100387002C/en
Publication of CN1798071A publication Critical patent/CN1798071A/en
Application granted granted Critical
Publication of CN100387002C publication Critical patent/CN100387002C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a testing method for a data retroversion mechanism, which comprises the following steps: step A, after a certain single plate of a preset foreground executes an error code which is returned by a command for updating data, a configuration command is sent to a background, and the command for updating data is sent to the foreground after the configuration command is processed in the background; step B, after the background receives response information returned by the foreground, whether the information is returned by the preset single plate is judged; if the information is returned by the preset single plate, the error code which is preset modifies an information unit in the response information, and the response information which is modified is sent to a function processing module of the background; step C, the function processing module of the background receives the response information which is modified, and the data retroversion flow path is triggered so as to report result messages; step D, whether the result messages which are reported are identical to result messages under the normal condition of a data retroversion mechanism is compared; if the result messages which are reported are not identical to the result messages under the normal condition of the data retroversion mechanism, the data retroversion mechanism used for judging configuration commands goes wrong. The method of the present invention is used for fully testing whether the data retroversion mechanism normally works or not.

Description

A kind of method of testing of mechanism of data rollback
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 an error code, described error code with carry out the data update command after the foreground veneer of echo reply message corresponding, and send configuration order to the backstage, send the Data Update order to the foreground after the background process;
B: after the response message of returning on the foreground is received on the backstage, judge whether return messages, 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 into described veneer;
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 of other veneer, 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. the method for testing of a 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 an error code, described error code with carry out the data update command after the foreground veneer of echo reply message corresponding, and send configuration order to the backstage, send the Data Update order to the foreground after the background process;
B: after the response message of returning on the foreground is received on the backstage, judge whether return messages, 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 into described veneer;
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 of other veneer, if then go to steps A; Otherwise finish test.
CNB200410102545XA 2004-12-24 2004-12-24 Method for testing mechanism of data rollback Expired - Fee Related CN100387002C (en)

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 CN1798071A (en) 2006-07-05
CN100387002C true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731457B (en) * 2012-10-15 2019-02-26 中兴通讯股份有限公司 A kind of method for processing business and terminal
CN107943705B (en) * 2017-12-08 2021-02-26 中国银行股份有限公司 Method and device for testing process approval system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1164710A (en) * 1996-03-19 1997-11-12 株式会社东芝 Scatter storage type multiple processor system and failure recovery method
WO2002027561A2 (en) * 2000-09-29 2002-04-04 Oracle Corporation System and method for providing fine-grained temporal database access
US6397227B1 (en) * 1999-07-06 2002-05-28 Compaq Computer Corporation Database management system and method for updating specified tuple fields upon transaction rollback
US20020152396A1 (en) * 2001-04-11 2002-10-17 Fox Michael S. Method for secure restoration of a database stroring non-secure content

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1164710A (en) * 1996-03-19 1997-11-12 株式会社东芝 Scatter storage type multiple processor system and failure 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
WO2002027561A2 (en) * 2000-09-29 2002-04-04 Oracle Corporation 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

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Oracle数据库中的回退段管理. 霍宇红等.应用技术. 2002
Oracle数据库中的回退段管理. 霍宇红等.应用技术. 2002 *
ORACLE的回退段管理研究. 段隆振等.计算机应用,第17卷第1期. 1997
ORACLE的回退段管理研究. 段隆振等.计算机应用,第17卷第1期. 1997 *

Also Published As

Publication number Publication date
CN1798071A (en) 2006-07-05

Similar Documents

Publication Publication Date Title
US5367667A (en) System for performing remote computer system diagnostic tests
EP1490253B1 (en) Method and device of generating logic control units for railroad station-based vital computer apparatuses
EP1504347B1 (en) Automated software testing system and method
CN101088071B (en) Method and device for secure parameterization of electronic devices
EP1100011A2 (en) Scriptor and interpreter
EP0477124B1 (en) Method and apparatus for distributed processing of display panel information
CN1199476A (en) Method and apparatus for handling processing errors in telecommunications exchanges
CN113325810B (en) Automatic data interaction method
US8024706B1 (en) Techniques for embedding testing or debugging features within a service
JP4799114B2 (en) NC machine tool control program update method and apparatus
CN112579455A (en) Interface automatic testing method and device, electronic equipment and storage medium
CN100387002C (en) Method for testing mechanism of data rollback
CN100485618C (en) Program actuating system, and its programming, analyzing, and managing system, and checking device
CN111813683B (en) Universal automatic synchronization method for software testing environment
CN112199283A (en) Program test control and execution method and corresponding device, equipment and medium
KR101252358B1 (en) Apparatus and method for testing plc command
CN116755720A (en) Chip burning method, device, equipment and medium
CN112416805A (en) Test management cloud platform and method
CN111309235B (en) Software control method and device and readable storage medium
CN112214407A (en) Data verification control and execution method and corresponding device, equipment and medium
US20230050723A1 (en) Device testing arrangement
CN112579443B (en) Automatic testing method and platform of intelligent testing robot
CN111190615A (en) Method for remotely modifying equipment parameters and upgrading equipment parameters
CN113672516B (en) Automatic testing method and system for virtual screen interconnection interface control
US7720827B2 (en) Network meta-data libraries and related methods

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