TWI502342B - Method and system for automatic synchronization of dual - track test - Google Patents

Method and system for automatic synchronization of dual - track test Download PDF

Info

Publication number
TWI502342B
TWI502342B TW102108183A TW102108183A TWI502342B TW I502342 B TWI502342 B TW I502342B TW 102108183 A TW102108183 A TW 102108183A TW 102108183 A TW102108183 A TW 102108183A TW I502342 B TWI502342 B TW I502342B
Authority
TW
Taiwan
Prior art keywords
data
verification
environment
demand event
verification environment
Prior art date
Application number
TW102108183A
Other languages
Chinese (zh)
Other versions
TW201435583A (en
Inventor
Kuan Chung Chen
Yen Heng Lin
Shao Chen Chang
Min Huang Ku
Jeu Yih Jeng
Original Assignee
Chunghwa Telecom 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 Chunghwa Telecom Co Ltd filed Critical Chunghwa Telecom Co Ltd
Priority to TW102108183A priority Critical patent/TWI502342B/en
Publication of TW201435583A publication Critical patent/TW201435583A/en
Application granted granted Critical
Publication of TWI502342B publication Critical patent/TWI502342B/en

Links

Landscapes

  • Train Traffic Observation, Control, And Security (AREA)

Description

自動同步雙軌測試比對之方法與系統Automatic synchronization dual-track test comparison method and system

本發明係關於一種測試比對之方法與系統,特別係一種自動同步雙軌測試比對之方法與系統。The present invention relates to a method and system for testing comparisons, and more particularly to a method and system for automatically synchronizing two-track test comparisons.

資訊系統在因應作業平台更新、系統環境變動、程式語言轉換、產品改版時,為求系統穩定與無縫轉換,一般對於已上線的重大系統變更,為求謹慎常用雙軌測試,也就是新系統在正式上線前先進行功能平行測試,但平行測試多以人工仿效方式進行,往往需花費許多人力與工程,對於大型且業務邏輯複雜之專案系統品質把關尤為不易,一般自動化測試工具並無有效驗證測試結果之方式,導致資訊系統在轉換時,往往工程浩大卻常遭遇新上線系統品質不佳之反應。In response to the update of the operating platform, system environment changes, program language conversion, product revision, in order to achieve system stability and seamless conversion, generally for major system changes that have been launched, for the purpose of cautious common dual-track test, that is, the new system is Functional parallel testing is carried out before the official launch, but parallel testing is mostly performed by artificial emulation. It often takes a lot of manpower and engineering. It is especially difficult for large-scale and complex business logic system quality. The general automated testing tools do not have valid verification tests. The result of the way, when the information system is converted, often the project is huge but often encounters the reaction of the poor quality of the new online system.

為此,資料測試系統以及方法(專利證書號I273448)提出透過編輯平台輸入待測資料,透過分析模組分析待測資料並產生分析結果,而測試模組由資料庫取得檢測準據資料與分析結果進行比對,最後則由報告模組檢測錯誤點並生成檢測報告。惟該專利之待測資料為仿真資料,而非真實而連續的事件資料,因而在問題檢測、效能評估、壓力測試等數據,都有待進一步提升。To this end, the data testing system and method (Patent Certificate No. I273448) proposes to input the data to be tested through the editing platform, analyze the data to be tested through the analysis module and generate the analysis results, and the test module obtains the data and analysis of the test data from the database. The results are compared, and finally the error module is detected by the reporting module and a test report is generated. However, the data to be tested in this patent is simulation data, not real and continuous event data, so the data such as problem detection, performance evaluation, stress test, etc. need to be further improved.

有鑑於上述舊有習知技術之諸多缺點,乃亟思加以改良創新,並基於對資訊系統演進的了解,經過縝密的資料研蒐、評估考量、測試驗證與改良,終於成功研發完成本發明「自動同步雙軌測試比對之方法與系統」。In view of the many shortcomings of the above-mentioned old and well-known technologies, Nai Si has made improvements and innovations, and based on the understanding of the evolution of information systems, after careful data research, evaluation considerations, test verification and improvement, the invention has finally been successfully developed. Automatic synchronization of dual-track test comparison methods and systems."

本發明之目的在提供一種自動同步雙軌測試比對之方法與系統,用以自動化檢測一驗證環境系統與一現場環境系統所運算產出結果是否一致,能減少人工輸入與比對之工作與時間,進而以節省專案成本,且本發明能在驗證環境系統更完整模擬出現場環境系統的資料處理情境,在問題檢測、效能評估、壓力測試的數據將更準確。The object of the present invention is to provide a method and system for automatically synchronizing two-track test comparison, which is used for automatically detecting whether a verification environment system and a field environment system have the same output results, and can reduce the work and time of manual input and comparison. In order to save the cost of the project, and the present invention can more accurately simulate the data processing situation of the field environment system in the verification environment system, the data in the problem detection, performance evaluation, and stress test will be more accurate.

根據本發明之一目的係提供一種自動同步雙軌測試比對之系統,用以檢測一驗證環境系統與一現場環境系統所運算產出結果是否一致,其包括一同步測試過濾模組、一業務資料包裝模組、一代理同步回寫模組、一同步測試資料處理模組、以及一資料比對模組;其作法是檢驗於現場環境系統運作的需求事件,若為該同步測試過濾模組所設定需測試之需求事件,則透過該業務資料包裝模組新增一筆相同的佇列資料,並由該代理同步回寫模組將該佇列資料同步至驗證環境佇列資料中;為確保需求事件驗證之正確性,該同步測試資料處理模組將複製的驗證環境佇列資料依照驗證環境系統設定,包裝轉換成可於驗證環境系統執行之需求事件及參數,再交由驗證環境系統執行,待需求事件執行完成後,最後由該資料比對模組比對現場環境資料庫與驗證環境資料庫之執行結果資料是否相同,為加速比對效益,對針對不同的需求事件建立資料庫篩選比對規則,避免不必要而耗時的資料比對;如果比對資料相同,則表示驗證環境系統功能正確,如果不同則表示驗證環境系統功能有誤,則可達到自動化檢測驗證環境系統與現場環境系統之目的;其中,為避免現場環境系統與驗證環境系統直接互相叫用導致資源互咬與循環等待而影響系統效能,本發明透過建立效能防水艙架構以保持兩環境系統作業順暢,防水艙架構係於驗證環境系統、現場環境系統分別建立驗證環境佇列、現場環境佇列, 讓兩環境系統盡量能各自獨立運作,讓在驗證環境系統在完整模擬出現場環境系統的資料處理情境時,在問題檢測、效能評估、壓力測試的數據更準確。According to one aspect of the present invention, a system for automatically synchronizing a two-track test comparison is provided for detecting whether a verification environment system and a field environment system are consistent in output results, and includes a synchronous test filter module and a service data. a packaging module, a proxy synchronous write back module, a synchronous test data processing module, and a data comparison module; the method is to verify the demand event of the on-site environmental system operation, if the synchronous test filter module is To set a demand event to be tested, a new queue data is added through the business data packaging module, and the proxy synchronization write-back module synchronizes the queue data to the verification environment queue data; The correctness of the event verification, the synchronous test data processing module will copy the verified verification environment data according to the verification environment system setting, and the package is converted into a required event and parameter that can be executed by the verification environment system, and then executed by the verification environment system. After the completion of the demand event, the data comparison library compares the on-site environmental database and the verification environment data. Whether the implementation result data is the same, in order to speed up the comparison efficiency, establish a database screening comparison rule for different demand events, avoid unnecessary and time-consuming data comparison; if the comparison data is the same, it means verifying the environmental system function. Correct, if different means that the verification environment system function is wrong, it can achieve the purpose of automatic detection and verification of the environmental system and the on-site environmental system; in order to avoid direct interaction between the on-site environmental system and the verification environment system, resource mutual biting and loop waiting In addition to affecting system performance, the present invention maintains the operation of the two environmental systems by establishing a performance waterproof cabin structure. The waterproof cabin structure is established in the verification environment system and the on-site environment system to establish a verification environment queue and a site environment queue. Let the two environmental systems operate as independently as possible, so that the data in the problem detection, performance evaluation, and stress test is more accurate when the verification environment system completely simulates the data processing situation of the field environment system.

根據本發明之一目的所提供之一種自動同步雙軌測試比對之方法,其步驟為:針對該現場環境系統所執行之一需求事件,過濾需進行檢測之需求事件及其參數設定;將該需求事件及其參數寫入一現場環境佇列資料;將現場環境佇列資料依序寫入一驗證環境佇列資料;依據驗證環境系統設定,將驗證環境佇列資料依序轉換為需求事件之驗證參數,並由驗證環境系統執行需求事件之驗證參數;最後比對驗證環境系統與現場環境系統於執行該需求事件所產出之資料是否一致,則可達到減少人工輸入與比對之工作與時間,以及在驗證環境系統更完整模擬出現場環境系統的資料處理情境,使得驗證環境系統在問題檢測、效能評估、壓力測試的數據更加準確,此外,透過將現場環境佇列資料與驗證環境佇列資料分開,可讓兩環境系統盡量能各自獨立運作,避免現場環境系統與驗證環境系統直接互相叫用導致資源互咬與循環等待而影響系統效能。According to one aspect of the present invention, a method for automatically synchronizing a two-track test comparison is to: filter a demand event to be detected and a parameter setting thereof for a demand event executed by the field environment system; The event and its parameters are written into a site environment queue data; the site environment queue data is sequentially written into a verification environment queue data; according to the verification environment system setting, the verification environment queue data is sequentially converted into a requirement event verification. The parameters are verified by the verification environment system to perform the verification parameters of the demand event. Finally, whether the verification environment system and the on-site environment system are consistent with the data generated by the execution of the demand event can reduce the work and time of manual input and comparison. And verifying the environmental system to more fully simulate the data processing situation of the field environment system, making the verification environment system more accurate in the problem detection, performance evaluation, stress test data, in addition, by listing the field environment and verification environment Separate data allows the two environmental systems to operate independently and avoid Field verification environment system and environmental system directly call each other using resources lead to bite each other and wait for the cycle to affect system performance.

本發明所提供的一種自動同步雙軌測試比對之方法與系統,與現行的測試方法與系統相較,具備了以下優點:The method and system for automatically synchronizing two-track test comparison provided by the invention have the following advantages compared with the current test method and system:

1.以人工仿效進行之雙軌測試耗時耗費人力,對於大型且業務邏輯複雜之專案系統品質把關尤為不易,本發明提供自動同步雙軌測試比對之方法與系統,以效能防水艙架構,讓驗證環境系統進行同步測試,而不影響現場環境系統,並透過自動化達到減少人工輸入與比對之工作與時間。1. The double-track test by artificial imitation takes time and labor, and it is not easy to check the quality of the project system with large and complex business logic. The present invention provides an automatic synchronous dual-track test comparison method and system, and the performance waterproof shell structure is verified. The environmental system performs simultaneous testing without affecting the on-site environmental system, and reduces the labor and time of manual input and comparison through automation.

2.一般自動化測試工具並無有效驗證測試結果之方式,本發明從真實的需求事件過濾無效的需求事件而篩選 出待檢測的需求事件,並以同步技術將需求事件由現場環境系統送至驗證環境系統進行自動化測試,使得在驗證環境系統可更完整模擬出現場環境系統的資料處理情境,而達到在問題檢測、效能評估、壓力測試的數據更加準確。2. The general automated test tool does not have a way to validate the test results effectively. The present invention filters out invalid demand events from real demand events. The demand event to be detected is sent out, and the demand event is sent from the on-site environmental system to the verification environment system for automatic testing by using synchronous technology, so that the verification environment system can more completely simulate the data processing situation of the field environment system, and achieve the problem detection. Data for performance evaluation and stress testing are more accurate.

3.本發明可應用於各種資訊系統使用,並僅需建立驗證環境系統與現場環境系統之系統設定對照及資料庫篩選規則,則可進行穩定且有效率的資訊系統變更轉換。3. The invention can be applied to various information systems, and only needs to establish a system setting comparison and database screening rule of the verification environment system and the on-site environment system, so that stable and efficient information system change conversion can be performed.

100‧‧‧現場環境系統100‧‧‧ On-site environmental system

110‧‧‧現場環境應用程式伺服器110‧‧‧ Live Environment Application Server

120‧‧‧現場環境資料庫120‧‧‧ On-site environmental database

200‧‧‧自動同步雙軌測試比對之系統200‧‧‧Automatic Synchronous Dual Track Test Comparison System

210‧‧‧同步測試過濾模組210‧‧‧Synchronous test filter module

220‧‧‧業務資料包裝模組220‧‧‧Business Information Packaging Module

221‧‧‧現場環境佇列221‧‧‧ On-site environmental queue

230‧‧‧代理同步回寫模組230‧‧‧Proxy synchronous write back module

231‧‧‧驗證環境佇列231‧‧‧Verification of environmental records

240‧‧‧同步測試資料處理模組240‧‧‧Synchronous test data processing module

250‧‧‧資料比對模組250‧‧‧ data comparison module

300‧‧‧驗證環境系統300‧‧‧Verification of environmental systems

310‧‧‧驗證環境應用程式伺服器310‧‧‧Verification Environment Application Server

320‧‧‧驗證環境資料庫320‧‧‧Verification Environmental Database

S201~S205‧‧‧自動同步雙軌測試比對之方法之步驟流程Step procedure of S201~S205‧‧‧Automatic Synchronous Dual Track Test Comparison Method

S211~S213‧‧‧同步測試過濾之步驟流程Step process of S211~S213‧‧‧ synchronous test filtering

S221~S223‧‧‧業務資料包裝之步驟流程S221~S223‧‧‧Steps for packaging business data

S231~S232‧‧‧代理同步回寫之步驟流程Step process of S231~S232‧‧‧Proxy synchronous write back

S241~S244‧‧‧同步測試資料處理之步驟流程Steps for S241~S244‧‧‧Synchronous Test Data Processing

S251~S253‧‧‧資料比對之步驟流程S251~S253‧‧‧Steps of data comparison

第1圖為本發明一種自動同步雙軌測試比對之系統概略圖。1 is a schematic diagram of a system for automatically synchronizing a two-track test comparison according to the present invention.

第2圖為本發明一種自動同步雙軌測試比對之系統架構圖。FIG. 2 is a system architecture diagram of an automatic synchronous dual-track test comparison according to the present invention.

第3圖為本發明一種自動同步雙軌測試比對方法之步驟流程圖。FIG. 3 is a flow chart showing the steps of an automatic synchronization dual-track test comparison method according to the present invention.

第4圖為本發明一種自動同步雙軌測試比對方法之同步測試過濾步驟流程圖。4 is a flow chart of a synchronous test filtering step of an automatic synchronous dual-track test comparison method according to the present invention.

第5圖為本發明一種自動同步雙軌測試比對方法之業務資料包裝流程圖。FIG. 5 is a flow chart of business data packaging of an automatic synchronization dual-track test comparison method according to the present invention.

第6圖為本發明一種自動同步雙軌測試比對方法之代理同步回寫步驟流程圖。FIG. 6 is a flow chart of a proxy synchronous write back step of an automatic synchronous dual-track test comparison method according to the present invention.

第7圖為本發明一種自動同步雙軌測試比對方法之同步測試資料處理步驟流程圖。FIG. 7 is a flow chart showing the steps of the synchronous test data processing of the automatic synchronization dual-track test comparison method according to the present invention.

第8圖為本發明一種自動同步雙軌測試比對方法之資料比對步驟流程圖。FIG. 8 is a flow chart of a data comparison step of an automatic synchronization dual-track test comparison method according to the present invention.

為利 貴審查員瞭解本發明之技術特徵、內容與優點及其所能達成之功效,茲將本發明配合附圖,並以實施 例之表達形式詳細說明如下,而其中所使用之圖式,其主旨僅為示意及輔助說明書之用,未必為本發明實施後之真實比例與精準配置,故不應就所附之圖式的比例與配置關係解讀、侷限本發明於實際實施上的權利範圍,合先敘明。To understand the technical features, contents, and advantages of the present invention and the effects thereof, the present invention will be implemented in conjunction with the drawings and implemented. The expressions of the examples are described in detail below, and the drawings are used for the purpose of illustration and supplementary description, and are not necessarily true proportions and precise configurations after the implementation of the invention, and therefore should not be attached to the drawings. Interpretation and limitation of the relationship between proportion and configuration The scope of rights of the present invention in actual implementation is described in the first place.

本發明之目的在提供一種自動同步雙軌測試比對之方法與系統,用以自動化檢測一驗證環境系統與一現場環境系統所運算產出結果是否一致,能減少人工輸入與比對之工作與時間,進而以節省專案成本,且本發明能在驗證環境系統更完整模擬出現場環境系統的資料處理情境,在問題檢測、效能評估、壓力測試的數據將更準確。The object of the present invention is to provide a method and system for automatically synchronizing two-track test comparison, which is used for automatically detecting whether a verification environment system and a field environment system have the same output results, and can reduce the work and time of manual input and comparison. In order to save the cost of the project, and the present invention can more accurately simulate the data processing situation of the field environment system in the verification environment system, the data in the problem detection, performance evaluation, and stress test will be more accurate.

本發明之一實施例可參照第1圖之系統概略圖,本發明之自動同步雙軌測試比對之系統200,連結一現場環境系統100與一驗證環境系統300,用以自動化檢測驗證環境系統300與現場環境系統100所運算產出結果是否一致。An embodiment of the present invention can refer to the system schematic diagram of FIG. 1 . The system 200 for automatically synchronizing dual-track test comparison of the present invention is coupled to a field environment system 100 and a verification environment system 300 for automatically detecting and verifying the environment system 300. Whether it is consistent with the output result calculated by the on-site environmental system 100.

其中,該現場環境系統100包含一現場環境應用程式伺服器110以及一現場環境資料庫120,該現場環境應用程式伺服器110執行需求事件,會將執行結果儲存於該現場環境資料庫120。The site environment system 100 includes a site environment application server 110 and a site environment database 120. The site environment application server 110 executes a demand event, and stores the execution result in the site environment database 120.

此外,該驗證環境系統300包含一驗證環境應用程式伺服器310以及一驗證環境資料庫320,該驗證環境應用程式伺服器310執行需求事件,會將執行結果儲存於該驗證環境資料庫320。In addition, the verification environment system 300 includes a verification environment application server 310 and a verification environment database 320. The verification environment application server 310 executes a requirement event, and stores the execution result in the verification environment database 320.

本實施例之系統架構圖可參照第2圖,本發明之自動同步雙軌測試比對之系統200包含一同步測試過濾模組210、一業務資料包裝模組220、一代理同步回寫模組230、一同步測試資料處理模組240、以及一資料比對模組250;針對現場環境系統所執行之需求事件,透過該同步測試過濾模組過濾210需進行檢測之需求事件及該需求事件之參數設定;並由該業務資料包裝模組220將需求事件及其參數寫入 一現場環境佇列221資料;代理同步回寫模組230將該現場環境佇列221資料依序寫入一驗證環境佇列231資料;再由同步測試資料處理模組240依據該驗證環境系統300設定,將驗證環境佇列231資料依序轉換為該需求事件之驗證參數,並由該驗證環境系統300執行該需求事件之驗證參數;最後由資料比對模組250擷取驗證環境系統300之驗證環境資料庫320資料與現場環境系統100之現場環境資料庫120資料,並比對驗證環境系統300與現場環境系統100於執行該需求事件所產出之資料是否一致,則可達到自動化檢測驗證環境系統與現場環境系統所運算產出結果是否一致之目的。The system architecture diagram of this embodiment can be referred to FIG. 2. The system for automatically synchronizing dual-track test comparison 200 includes a synchronous test filter module 210, a service data package module 220, and a proxy synchronous write-back module 230. a synchronous test data processing module 240 and a data comparison module 250; for the demand event executed by the on-site environment system, the demand event and the parameter of the demand event to be detected by the synchronous test filter module filter 210 Setting; and the service data packaging module 220 writes the demand event and its parameters An on-site environment queue 221 data; the proxy synchronous write-back module 230 sequentially writes the field environment queue 221 data into a verification environment queue 231 data; and the synchronization test data processing module 240 according to the verification environment system 300 The verification environment 231 data is sequentially converted into the verification parameter of the requirement event, and the verification environment system 300 executes the verification parameter of the requirement event; finally, the data comparison module 250 retrieves the verification environment system 300 Verifying the environmental database 320 and the on-site environmental database 120 of the on-site environmental system 100, and comparing the verification environment system 300 with the information generated by the on-site environmental system 100 in performing the demand event, the automated detection verification can be achieved. Whether the environmental system is consistent with the output of the field environment system.

其中,該同步測試過濾模組210包含一同步測試規則庫211以及一同步測試過濾器212,分別說明如下:The synchronization test filter module 210 includes a synchronization test rule base 211 and a synchronization test filter 212, which are respectively described as follows:

1.同步測試規則庫211:係記錄需進行檢測之需求事件類別與規則,其可包含規則如下:一總開關設定資料,用以設定啟動或關閉本發明之自動同步雙軌測試比對之系統200運作;一回寫目標環境設定,係該驗證環境系統300之相關配置設定資料;一回寫規則資料,用以記錄需進行檢測之該需求事件之判斷條件;一回寫限制資料,用以記錄效能控管資料,包含現場環境系統100處理時間限制以避免本發明之自動同步雙軌測試比對之系統200運作影響現場環境系統100運作、需求事件之參數完整性限制以避免無效的需求事件輸入;其中,該同步測試規則庫211可為該現場環境資料庫120之資料表。1. Synchronization test rule base 211: records the demand event categories and rules to be detected, which may include the following rules: a total switch setting data for setting the system 200 for starting or deactivating the automatic synchronous dual-track test comparison of the present invention. Operation; write back the target environment setting, which is the configuration configuration data of the verification environment system 300; write the rule data once to record the judgment condition of the demand event to be detected; write back the restriction data for recording The performance control data, including the on-site environmental system 100 processing time limit, to avoid the automatic synchronization dual-track test comparison system of the present invention affecting the operation of the on-site environmental system 100, the parameter integrity limit of the demand event to avoid invalid demand event input; The synchronization test rule base 211 can be a data table of the site environment database 120.

2.同步測試過濾器212:依該同步測試規則庫211所記 錄之需求事件類別與規劃過濾該需求事件是否需進行檢測,並擷取該需求事件之參數設定。2. Synchronization test filter 212: according to the synchronization test rule base 211 Record the demand event category and plan to filter whether the demand event needs to be detected, and take the parameter setting of the demand event.

其中,業務資料包裝模組220將該同步測試過濾模組210產出之該需求事件及其參數組成一物件資料,再寫入一現場環境佇列資料,由現場環境系統100依序執行現場環境佇列資料。The service data packaging module 220 composes the demand event and its parameters generated by the synchronous test filter module 210 into an object data, and then writes the information into the site environment, and executes the site environment sequentially by the site environment system 100. Queued data.

其中,該資料比對模組250目的在提供有效的資料正確性比對,並產出資料比對結果之一資料異同清單,該資料比對模組250包含一篩選規則庫以及一比對過濾器,分別說明如下: 1.篩選規則庫251:用以記錄驗證環境系統300與現場環境系統100執行該需求事件將影響之驗證環境資料庫320資料表與現場環境資料庫120資料表,其中,該篩選規則庫可為該驗證環境資料庫320之資料表; 2.比對過濾器252:依該篩選規則庫251比對執行該需求事件所產生之結果,並產出比對結果之資料異同清單。Wherein, the data comparison module 250 aims to provide an effective data correctness comparison, and outputs a data comparison result list, the data comparison module 250 includes a screening rule base and a comparison filter. The instructions are as follows: 1. The screening rule base 251: used to record the verification environment system 300 and the field environment system 100 to execute the verification environment database 320 data table and the field environment database 120 data table that the demand event will affect, wherein the screening rule library may be a data sheet of the verification environment database 320; 2. Alignment filter 252: Align the results of the demand event according to the screening rule base 251, and output a data similarity list of the comparison results.

本發明所提供的一種自動同步雙軌測試比對之之方法,用以自動化檢測一驗證環境系統300與一現場環境系統100所運算產出結果是否一致,其步驟流程圖可參照第3圖,其步驟如下:S201:針對該現場環境系統所執行之一需求事件,過濾需進行檢測之需求事件及其參數設定;S202:將該需求事件及其參數寫入一現場環境佇列資料221;S203:將該現場環境佇列221資料依序寫入一驗證環境佇列231資料;S204:依據該驗證環境系統300設定,將該驗證環境佇列231資料依序轉換為該需求事件之驗證參數, 並由該驗證環境系統300執行該需求事件之驗證參數;S205:比對該驗證環境系統300與該現場環境系統100於執行該需求事件所產出之資料是否一致。The method for automatically synchronizing the two-track test of the present invention is used for automatically detecting whether the verification environment system 300 is consistent with the output result calculated by a field environment system 100, and the step flow chart thereof can refer to FIG. 3, The steps are as follows: S201: filtering a demand event and a parameter setting thereof to be detected for a demand event executed by the site environment system; S202: writing the demand event and its parameter into a site environment queue data 221; S203: The field environment queue 221 data is sequentially written into a verification environment queue 231 data; S204: according to the verification environment system 300 setting, the verification environment queue 231 data is sequentially converted into the verification parameter of the requirement event, And verifying the parameter of the demand event by the verification environment system 300; S205: comparing whether the verification environment system 300 and the field environment system 100 are consistent with the data generated by the execution of the demand event.

其中,過濾需進行檢測之該需求事件及該需求事件之參數設定S201之步驟流程圖可參照第4圖,其步驟如下:S211:建立一同步測試規則庫資料,記錄需進行檢測之需求事件類別與規則;S212:依該同步測試規則庫所記錄之需求事件類別與規劃過濾該需求事件是否需進行檢測;S213:如該需求事件需進行檢測,則擷取該需求事件之參數設定。The flow chart of the step of step S201 for filtering the demand event to be detected and the parameter setting of the demand event may refer to FIG. 4, and the steps are as follows: S211: Establish a synchronization test rule base data, and record the required event category to be detected. And the rule; S212: filtering whether the demand event needs to be detected according to the demand event category and the plan recorded by the synchronization test rule base; S213: if the demand event needs to be detected, the parameter setting of the demand event is taken.

其中,將該需求事件及其參數寫入現場環境佇列資料並由該現場環境系統100依序執行該現場環境佇列資料S202之步驟流程圖可參照第5圖,其步驟如下:S221:取得需進行檢測之該需求事件及其參數;S222:將該需求事件及其參數組成一物件資料;S223:將該物件資料寫入該現場環境佇列221,其中該現場環境佇列為一先進先出佇列。The step of writing the demand event and its parameters into the site environment queue data and sequentially executing the site environment queue data S202 by the site environment system 100 can refer to FIG. 5, and the steps are as follows: S221: Obtained The demand event and its parameters to be detected; S222: forming the demand event and its parameters into an object data; S223: writing the object data into the site environment queue 221, wherein the site environment is listed as an advanced first Out of the queue.

其中,將該驗證環境佇列資料依序轉換為該需求事件之驗證參數並由該驗證環境系統300執行該需求事件之驗證參數S203之步驟流程圖可參照第6圖,其步驟如下:S231:傾聽(Listen)並檢查該現場環境佇列221是否有資料;S232:如該現場環境佇列221存在資料,則將現場環境佇列221資料寫入該驗證環境佇列231,其中該驗證環境佇列231為一先進先出佇列。The step of converting the verification environment queue data into the verification parameter of the requirement event and executing the verification parameter S203 of the requirement event by the verification environment system 300 can refer to FIG. 6 , and the steps are as follows: S231: Listening (Listen) and checking whether the site environment queue 221 has data; S232: If the site environment queue 221 has data, the site environment queue 221 data is written into the verification environment queue 231, wherein the verification environment伫Column 231 is a first in first out queue.

其中,將該現場環境佇列資料依序寫入驗證環境佇列資料S204之步驟流程圖可參照第7圖,其步驟如下: S241:傾聽並檢查該驗證環境佇列231是否有資料;S242:如該驗證環境佇列231存在資料,則將該驗證環境佇列231資料取出;S243:連結該驗證環境系統300之驗證資料庫320取得驗證環境系統300之設定資料,依驗證環境系統300之設定資料將驗證環境佇列231資料轉換為可在驗證環境系統300執行之該需求事件之驗證參數;S244:由該驗證環境系統300執行該需求事件之驗證參數。The flowchart of the step of sequentially writing the on-site environment queue data into the verification environment queue data S204 can refer to FIG. 7 , and the steps are as follows: S241: Listening and checking whether the verification environment queue 231 has data; S242: if the verification environment queue 231 has data, the verification environment queue 231 data is taken out; S243: linking the verification environment system 300 verification database The configuration data of the verification environment system 300 is obtained, and the verification environment 231 data is converted into the verification parameter of the requirement event that can be executed in the verification environment system 300 according to the setting data of the verification environment system 300; S244: The verification environment system 300 Execute the verification parameters for this requirement event.

其中,比對該驗證環境系統300與該現場環境系統100於執行該需求事件所產出之資料是否一致S205之步驟流程圖可參照第8圖,其步驟如下:S251:建立一篩選規則庫,用以記錄該驗證環境系統300與該現場環境系統100執行該需求事件將影響之驗證環境資料庫320資料表與現場環境資料庫120資料表;S252:依該篩選規則庫讀取該需求事件所關連之驗證環境資料庫320資料表與現場環境資料庫120資料表;S253:比對執行該需求事件所產生之驗證環境資料庫320資料與現場環境資料庫120資料,並產出比對結果之資料異同清單。For a flowchart of the steps of the verification environment system 300 and the field environment system 100 for performing the data generated by the demand event, the flowchart of the step S205 can be referred to the eighth figure, and the steps are as follows: S251: Establish a screening rule base. The verification environment database 300 and the on-site environment system 100 execute the verification environment database 320 data table and the field environment database 120 data table that are affected by the requirement environment; S252: read the demand event according to the screening rule library The related verification environment database 320 data table and the on-site environmental database 120 data table; S253: comparing the verification environment database 320 data generated by the demand event and the on-site environmental database 120 data, and outputting the comparison result List of data similarities and differences.

上列詳細說明乃針對本發明之一可行實施例進行具體說明,惟該實施例並非用以限制本發明之專利範圍,凡未脫離本發明技藝精神所為之等效實施或變更,均應包含於本案之專利範圍中。The detailed description of the present invention is intended to be illustrative of a preferred embodiment of the invention, and is not intended to limit the scope of the invention. The patent scope of this case.

綜上所述,本案不僅於技術思想上確屬創新,並具備習用之傳統方法所不及之上述多項功效,已充分符合新 穎性及進步性之法定發明專利要件,爰依法提出申請,懇請 貴局核准本件發明專利申請案,以勵發明,至感德便。In summary, this case is not only innovative in terms of technical thinking, but also has many of the above-mentioned effects that are not in the traditional methods of the past. The statutory and progressive statutory invention patent requirements, 提出 apply in accordance with the law, and ask your bureau to approve the invention patent application, in order to invent invention, to the sense of virtue.

100‧‧‧現場環境系統100‧‧‧ On-site environmental system

110‧‧‧現場環境應用程式伺服器110‧‧‧ Live Environment Application Server

120‧‧‧現場環境資料庫120‧‧‧ On-site environmental database

200‧‧‧自動同步雙軌測試比對之系統200‧‧‧Automatic Synchronous Dual Track Test Comparison System

210‧‧‧同步測試過濾模組210‧‧‧Synchronous test filter module

220‧‧‧業務資料包裝模組220‧‧‧Business Information Packaging Module

221‧‧‧現場環境佇列221‧‧‧ On-site environmental queue

230‧‧‧代理同步回寫模組230‧‧‧Proxy synchronous write back module

231‧‧‧驗證環境佇列231‧‧‧Verification of environmental records

240‧‧‧同步測試資料處理模組240‧‧‧Synchronous test data processing module

250‧‧‧資料比對模組250‧‧‧ data comparison module

300‧‧‧驗證環境系統300‧‧‧Verification of environmental systems

310‧‧‧驗證環境應用程式伺服器310‧‧‧Verification Environment Application Server

320‧‧‧驗證環境資料庫320‧‧‧Verification Environmental Database

Claims (16)

一種自動同步雙軌測試比對之系統,包括:一同步測試過濾模組,負責過濾需進行檢測之一需求事件及該需求事件之參數設定;一業務資料包裝模組,連結該同步測試過濾模組,負責將該需求事件及其參數寫入一現場環境佇列資料;一代理同步回寫模組,連結該業務資料包裝模組,負責將該現場環境佇列資料依序寫入一驗證環境佇列資料;一同步測試資料處理模組,連結該代理同步回寫模組,依據該驗證環境系統設定,將驗證環境佇列資料依序轉換為該需求事件之驗證參數,並由該驗證環境系統執行該需求事件之驗證參數;以及一資料比對模組,連結該同步測試資料處理模組,用以擷取該驗證環境系統之一驗證環境資料庫資料與該現場環境系統之一現場環境資料庫資料,並比對該驗證環境系統與該現場環境系統於執行該需求事件所產出之資料是否一致。 A system for automatically synchronizing two-track test comparison, comprising: a synchronous test filter module, configured to filter a demand event and a parameter setting of the demand event; a business data packaging module, and the synchronous test filter module It is responsible for writing the demand event and its parameters into a site environment queue data; a proxy synchronous write-back module, which is connected to the service data packaging module, and is responsible for sequentially writing the field environment queue data into a verification environment. Column data; a synchronous test data processing module, connecting the proxy synchronous write back module, according to the verification environment system setting, sequentially converting the verification environment queue data into the verification parameter of the demand event, and the verification environment system Performing the verification parameter of the demand event; and a data comparison module, connecting the synchronous test data processing module, for extracting one of the verification environment system and verifying the environmental database data and one of the on-site environmental systems Library data, and whether the information produced by the verification environment system and the field environment system in performing the demand event is Cause. 如申請專利範圍第1項所述之自動同步雙軌測試比對之系統,其中該同步測試過濾模組包括:一同步測試規則庫,係記錄需進行檢測之需求事件類別與規則;以及一同步測試過濾器,依該同步測試規則庫所記錄之需求事件類別與規劃過濾該需求事件是否需進行檢測,並擷取該需求事件之參數設定。 The system for automatically synchronizing two-track test comparison according to claim 1, wherein the synchronous test filter module comprises: a synchronous test rule base, which records required event categories and rules to be detected; and a synchronous test The filter filters the demand event according to the demand event category and plan recorded by the synchronization test rule base, and takes the parameter setting of the demand event. 如申請專利範圍第2項所述之自動同步雙軌測試比對之系 統,其中該同步測試規則庫,包含一總開關設定資料,用以設定啟動或關閉該自動同步雙軌測試比對之系統運作。 Automatic synchronization double-track test comparison system as described in item 2 of the patent application scope The synchronization test rule base includes a total switch setting data for setting the system operation for starting or closing the automatic synchronization dual-track test comparison. 如申請專利範圍第2項所述之自動同步雙軌測試比對之系統,其中該同步測試規則庫,包含一回寫目標環境設定,係該驗證環境系統之相關配置設定資料。 The automatic synchronization dual-track test comparison system described in claim 2, wherein the synchronization test rule base includes a write-back target environment setting, which is related configuration configuration data of the verification environment system. 如申請專利範圍第2項所述之自動同步雙軌測試比對之系統,其中該同步測試規則庫,包含一回寫規則資料,用以記錄需進行檢測之該需求事件之判斷條件。 The automatic synchronization dual-track test comparison system described in claim 2, wherein the synchronization test rule base includes a write-back rule data for recording a judgment condition of the demand event to be detected. 如申請專利範圍第2項所述之自動同步雙軌測試比對之系統,其中該同步測試規則庫,包含一回寫限制資料,用以記錄效能控管資料,包含現場環境系統之處理時間限制、需求事件之參數完整性限制。 The system for automatically synchronizing two-track test comparison according to item 2 of the patent application scope, wherein the synchronization test rule base includes a write-back restriction data for recording performance control data, including processing time limit of the on-site environment system, Parameter integrity limits for demand events. 如申請專利範圍第2項所述之自動同步雙軌測試比對之系統,其中該同步測試規則庫為該現場環境資料庫之資料表。 The system for automatically synchronizing two-track test comparison according to item 2 of the patent application scope, wherein the synchronization test rule base is a data table of the on-site environmental database. 如申請專利範圍第1項所述之自動同步雙軌測試比對之系統,其中該業務資料包裝模組可將該需求事件及其參數組成一物件資料再寫入該現場環境佇列資料。 For example, the automatic synchronization dual-track test comparison system described in claim 1 wherein the service data packaging module can rewrite the demand event and its parameters into an object environment data. 如申請專利範圍第1項所述之自動同步雙軌測試比對之系統,其中該資料比對模組包含:一篩選規則庫,用以記錄該驗證環境系統與該現場環境系統執行該需求事件將影響之驗證環境資料庫資料表與現場環境資料庫資料表;以及一比對過濾器,依該篩選規則庫比對執行該需求事件所產生之結果,並產出比對結果之資料異同清單。 The system for automatically synchronizing two-track test comparison according to claim 1, wherein the data comparison module comprises: a screening rule library for recording the verification environment system and the on-site environment system to execute the demand event The verification environment database data table and the on-site environmental database data table; and a comparison filter, according to the screening rule library, compare the results of the execution of the demand event, and produce a data similarity list of the comparison results. 如申請專利範圍第9項所述之自動同步雙軌測試比對之系 統,其中該篩選規則庫為該驗證環境資料庫之資料表。 Automatic synchronization double-track test comparison system as described in item 9 of the patent application scope The screening rule base is a data table of the verification environment database. 一種自動同步雙軌測試比對之方法,用以檢測一驗證環境系統與一現場環境系統所運算產出結果是否一致,其包括步驟如下:針對該現場環境系統所執行之一需求事件,過濾需進行檢測之需求事件及該需求事件之參數設定;將該需求事件及其參數寫入一現場環境佇列資料;將該現場環境佇列資料依序寫入一驗證環境佇列資料;依據該驗證環境系統設定,將驗證環境佇列資料依序轉換為該需求事件之驗證參數,並由該驗證環境系統執行該需求事件之驗證參數;比對該驗證環境系統與該現場環境系統於執行該需求事件所產出之資料是否一致。 An automatic synchronization dual-track test comparison method for detecting whether a verification environment system and a field environment system perform the same output result, the steps including the following: for a demand event executed by the field environment system, filtering needs to be performed Detecting the demand event and the parameter setting of the demand event; writing the demand event and its parameters into a site environment queue data; sequentially writing the site environment queue data into a verification environment queue data; according to the verification environment The system is configured to sequentially convert the verification environment queue data into the verification parameter of the requirement event, and execute the verification parameter of the requirement event by the verification environment system; perform the demand event on the verification environment system and the on-site environment system Whether the information produced is consistent. 如申請專利範圍第11項所述之自動同步雙軌測試比對之方法,其中過濾需進行檢測之該需求事件及該需求事件之參數設定之步驟如下:建立一同步測試規則庫資料,記錄需進行檢測之需求事件類別與規則;依該同步測試規則庫所記錄之需求事件類別與規則過濾該需求事件是否需進行檢測;如該需求事件需進行檢測,則擷取該需求事件之參數設定。 The method for automatically synchronizing two-track test comparison according to claim 11, wherein the step of filtering the demand event and the parameter setting of the demand event is as follows: establishing a synchronization test rule base data, and the record needs to be performed. The demand event category and rule are detected; whether the demand event needs to be detected according to the demand event category and rule recorded by the synchronization test rule base; if the demand event needs to be detected, the parameter setting of the demand event is taken. 如申請專利範圍第11項所述之自動同步雙軌測試比對之方法,其中將該需求事件及其參數寫入該現場環境佇列資 料之步驟如下:取得需進行檢測之該需求事件及其參數;將該需求事件及其參數組成一物件資料;將該物件資料寫入該現場環境佇列,其中該現場環境佇列為一先進先出佇列。 For example, the method for automatically synchronizing two-track test comparison described in claim 11 wherein the demand event and its parameters are written into the site environment The steps of the material are as follows: obtaining the demand event and its parameters to be detected; composing the demand event and its parameters into an object data; writing the object data into the site environment queue, wherein the site environment is listed as an advanced First out of the queue. 如申請專利範圍第11項所述之自動同步雙軌測試比對之方法,其中將該現場環境佇列資料依序寫入一驗證環境佇列資料之步驟如下:傾聽並檢查該現場環境佇列是否有資料;如該現場環境佇列存在資料,則將現場環境佇列資料寫入驗證環境佇列,其中該驗證環境佇列為一先進先出佇列。 For example, the method for automatically synchronizing two-track test comparison described in claim 11 wherein the step of writing the on-site environmental queue data into a verification environment queue is as follows: listening and checking whether the site environment queue is If there is data in the on-site environment, the on-site environmental data will be written into the verification environment, and the verification environment will be listed as a first-in-first-out queue. 如申請專利範圍第11項所述之自動同步雙軌測試比對之方法,其中將驗證環境佇列資料依序轉換為該需求事件之驗證參數並由該驗證環境系統執行該需求事件之驗證參數之步驟如下:傾聽並檢查該驗證環境佇列是否有資料;如該驗證環境佇列存在資料,則將該驗證環境佇列資料取出;連結該驗證環境系統之一驗證資料庫取得驗證環境系統之設定資料,依驗證環境系統之設定資料將驗證環境佇列資料轉換為可在驗證環境系統執行之該需求事件之驗證參數;由該驗證環境系統執行該需求事件之驗證參數。 The method for automatically synchronizing two-track test comparison according to claim 11, wherein the verification environment queue data is sequentially converted into the verification parameter of the requirement event, and the verification environment system executes the verification parameter of the requirement event. The steps are as follows: listening and checking whether the verification environment queue has data; if the verification environment lists the existence data, the verification environment queue data is taken out; and the verification environment system is verified to obtain the verification environment system setting. The verification data of the verification environment is converted into the verification parameter of the requirement event that can be executed in the verification environment system according to the setting data of the verification environment system; and the verification parameter of the requirement event is executed by the verification environment system. 如申請專利範圍第11項所述之自動同步雙軌測試比對之 方法,其中比對該驗證環境系統與該現場環境系統於執行該需求事件所產出之資料是否一致之步驟如下:建立一篩選規則庫,用以記錄該驗證環境系統與該現場環境系統執行該需求事件將影響之驗證環境資料庫資料表與現場環境資料庫資料表;依該篩選規則庫讀取該需求事件所關連之驗證環境資料庫資料表與現場環境資料庫資料表;比對執行該需求事件所產生之驗證環境資料庫資料與現場環境資料庫資。Automatic synchronization double-track test comparison as described in claim 11 The method, wherein the step of determining whether the verification environment system and the on-site environment system are consistent with the data generated by the execution of the demand event is as follows: establishing a screening rule base for recording the verification environment system and the on-site environment system to execute the The demand event will affect the verification environment database data table and the on-site environmental database data table; according to the screening rule library, the verification environment database data table and the on-site environmental database data table related to the demand event are read; The verification environment database data and the on-site environmental database generated by the demand event.
TW102108183A 2013-03-08 2013-03-08 Method and system for automatic synchronization of dual - track test TWI502342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102108183A TWI502342B (en) 2013-03-08 2013-03-08 Method and system for automatic synchronization of dual - track test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102108183A TWI502342B (en) 2013-03-08 2013-03-08 Method and system for automatic synchronization of dual - track test

Publications (2)

Publication Number Publication Date
TW201435583A TW201435583A (en) 2014-09-16
TWI502342B true TWI502342B (en) 2015-10-01

Family

ID=51943356

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102108183A TWI502342B (en) 2013-03-08 2013-03-08 Method and system for automatic synchronization of dual - track test

Country Status (1)

Country Link
TW (1) TWI502342B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389254A (en) * 2015-10-19 2016-03-09 浪潮(北京)电子信息产业有限公司 System and method for verifying compatibility of server and Oracle Linux system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5819268A (en) * 1995-01-10 1998-10-06 International Business Machines Corporation Method and system for testing for equality/difference in multiple tables of a database
TW200513889A (en) * 2003-10-07 2005-04-16 Inventec Corp Data-testing system and method
US20050262086A1 (en) * 2000-08-28 2005-11-24 Content Guard Holdings, Inc. Systems and methods for integrity certification and verification
TW201303582A (en) * 2011-07-13 2013-01-16 Inst Information Industry Cloud-based test system, method and computer readable storage medium storing thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5819268A (en) * 1995-01-10 1998-10-06 International Business Machines Corporation Method and system for testing for equality/difference in multiple tables of a database
US20050262086A1 (en) * 2000-08-28 2005-11-24 Content Guard Holdings, Inc. Systems and methods for integrity certification and verification
TW200513889A (en) * 2003-10-07 2005-04-16 Inventec Corp Data-testing system and method
TW201303582A (en) * 2011-07-13 2013-01-16 Inst Information Industry Cloud-based test system, method and computer readable storage medium storing thereof

Also Published As

Publication number Publication date
TW201435583A (en) 2014-09-16

Similar Documents

Publication Publication Date Title
WO2018010552A1 (en) Test method and device
CN106446412B (en) Model-based test method for avionics system
US20180307594A1 (en) System, method and storage device for cim/e model standard compliance test
Elghondakly et al. Waterfall and agile requirements-based model for automated test cases generation
CN105279092A (en) Software testing method and apparatus
CN110990285B (en) UI (user interface) automatic testing method and device
CN102567351B (en) Testing method and testing device for database modification effects
CN111966575B (en) Graphic automatic test method for aviation onboard display software
Yu Design and application on Agile software exploratory testing model
TWI502342B (en) Method and system for automatic synchronization of dual - track test
CN110286882B (en) Foreground system design and verification method based on model detection
CN112559359B (en) S-based 2 ML security critical system analysis and verification method
CN111008140B (en) Cross-platform UI (user interface) automatic testing method and device
CN112560290A (en) Automatic testing method and system based on countermeasure simulation platform
JP2011154568A (en) Information processing apparatus, program verification method and program
JP5568779B2 (en) Logic verification method and logic verification system
Shi et al. Cross-browser compatibility testing based on model comparison
Harrer et al. A pattern language for workflow engine conformance and performance benchmarking
Liu et al. Autonomic self-testing of regression and internationalization based on cloud computing
Winkler AI-Driven E2E testing and cucumber test generation: a GPT-powered approach for improved software quality and collaboration
Nikfard et al. Functional testing on web applications
Wang et al. Modeling and analysis of IMA inter-partition communication safety requirement based on STPA
JP6072547B2 (en) Application test system
Mohacsi et al. A case study on the efficiency of model-based testing at the european space agency
JP6146224B2 (en) Determination method, determination program, and determination apparatus

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees