TWI490689B - System for updating test command and method thereof - Google Patents

System for updating test command and method thereof Download PDF

Info

Publication number
TWI490689B
TWI490689B TW102117531A TW102117531A TWI490689B TW I490689 B TWI490689 B TW I490689B TW 102117531 A TW102117531 A TW 102117531A TW 102117531 A TW102117531 A TW 102117531A TW I490689 B TWI490689 B TW I490689B
Authority
TW
Taiwan
Prior art keywords
command
module
command unit
unit
test
Prior art date
Application number
TW102117531A
Other languages
Chinese (zh)
Other versions
TW201445305A (en
Inventor
劉曉鵬
Original Assignee
英業達股份有限公司
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 英業達股份有限公司 filed Critical 英業達股份有限公司
Priority to TW102117531A priority Critical patent/TWI490689B/en
Publication of TW201445305A publication Critical patent/TW201445305A/en
Application granted granted Critical
Publication of TWI490689B publication Critical patent/TWI490689B/en

Links

Description

不間斷自動更新測試命令之系統及方法System and method for automatically updating test commands without interruption

一種更新系統及其方法,特別係指一種更新時結束命令單元並重新載入之系統及其方法。An update system and method thereof, in particular, a system and method for ending a command unit and reloading when updating.

電腦在生產線上完成組裝後,需要進行測試。除了使用人工進行測試之外,目前各家廠商都有開發出自家的測試平台,且各廠商的測試平台都會隨著生產線上所生產的電腦品項不同而有不同的測試方案。After the computer is assembled on the production line, it needs to be tested. In addition to using manual testing, various manufacturers have developed their own test platforms, and each manufacturer's test platform will have different test plans depending on the computer products produced on the production line.

不論是哪一個測試平台哪一種測試方案,測試流程通常是固定的,一旦發生測試流程需要修改或是測試指令中存在臭蟲(Bug)等情況,測試平台便需要停止測試,讓測試平台的維護人員更新測試方案。Regardless of which test platform is used, the test process is usually fixed. Once the test process needs to be modified or there are bugs in the test instructions, the test platform needs to stop testing and let the test platform maintainers. Update the test plan.

上述的更新方式往往不是短時間可以完成的,一旦生產線上生產出大量的電腦,在有出貨的時間壓力下,通常不允許花費一段時間進行測試方案的更新。The above update method is often not completed in a short time. Once a large number of computers are produced on the production line, it is usually not allowed to spend a period of time to update the test plan under the pressure of shipping time.

綜上所述,可知先前技術中長期以來一直存在更新測試方案需要停止測試平台運作的問題,因此有必要提出改進的技術手段,來解決此一問題。In summary, it can be seen that there has been a problem in the prior art that updating the test plan needs to stop the operation of the test platform, and therefore it is necessary to propose an improved technical means to solve this problem.

有鑒於先前技術存在更新測試方案需要停止測試平台運作的問題,本發明遂揭露一種更新時結束命令單元並重新載入之系統及其方法,其中:本發明所揭露之不間斷自動更新測試命令之系統,應用於生產線上,用以於生產線在連續工作時線上更新測試命令,至少包含:任務執行引擎(Executor Engine),包含命令管理模組,命令管理模組包含並管 理命令單元,命令單元包含可測試生產線上之特定目標之命令,且各命令單元各自獨立;流程控制引擎(Flow Engine),用以發出命令單元之呼叫請求,管理被呼叫之命令單元之命令管理模組用以依據呼叫請求載入並實體化被呼叫之命令單元,藉以提供流程控制引擎執行命令單元所包含之命令;更新模組,用以請求管理被呼叫之命令單元之命令管理模組結束被呼叫之命令單元,及用以於被呼叫之命令單元被結束(terminate)後,更新被呼叫之命令單元。In view of the prior art, there is a problem that the update test solution needs to stop the operation of the test platform, and the present invention discloses a system and method for ending the command unit and reloading when updating, wherein: the non-stop automatic update test command disclosed in the present invention The system is applied to the production line for updating the test command on the line during the continuous working time of the production line, and at least includes: an Executor Engine, including a command management module, and the command management module includes and manages a command unit, the command unit includes commands for testing a specific target on the production line, and each command unit is independent; a flow control engine (Flow Engine) for issuing a call request of the command unit, and managing command management of the called command unit The module is configured to load and entity the called command unit according to the call request, so as to provide the process control engine to execute the command included in the command unit; and the update module to request the end of the command management module for managing the called command unit The called command unit, and the command unit used to be called, are updated to terminate the called command unit.

本發明所揭露之不間斷自動更新測試命令之方法,應用於生產線上,用以於生產線連續工作時線上更新測試命令,其步驟至少包括:當生產線上之命令單元需要更新時,更新模組向管理命令單元之命令管理模組請求結束命令單元;命令管理模組響應該更新模組之請求後,更新模組更新命令單元;流程控制引擎發出命令單元之呼叫請求至命令管理模組;命令管理模組依據呼叫請求載入命令單元;命令管理模組實體化命令單元,藉以提供流程控制引擎執行命令單元所包含之命令。The method for continuously updating the test command according to the present invention is applied to a production line for updating the test command on the line during continuous operation of the production line, and the steps include at least: when the command unit on the production line needs to be updated, the update module is updated. The command management module of the management command unit requests the end command unit; after the command management module responds to the request of the update module, the module update command unit is updated; the flow control engine issues a call request of the command unit to the command management module; command management The module loads the command unit according to the call request; the command management module entityizes the command unit to provide the flow control engine to execute the commands included in the command unit.

本發明所揭露之系統與方法如上,與先前技術之間的差異在於本發明透過測試平台的分層架構,由更新模組在更新包含進行測試之命令的命令單元前,請求命令管理模組結束所管理之將被更新的命令單元,之後,流程控制引擎在欲執行測試之命令時,發出呼叫請求至命令管理模組,命令管理模組可以重新載入更新後之命令單元,藉以解決先前技術所存在的問題,並可以達成降低更新命令所需之成本的技術功效。The system and method disclosed in the present invention are as above, and the difference from the prior art is that the present invention passes through the layered architecture of the test platform, and the update module requests the command management module to end before updating the command unit containing the command for testing. The command unit to be updated, after which the flow control engine issues a call request to the command management module when the command is to be executed, and the command management module can reload the updated command unit to solve the prior art. The problems that exist and the technical efficiencies that can be achieved by reducing the cost of updating the commands can be achieved.

100‧‧‧測試平台100‧‧‧Test platform

110‧‧‧表現層110‧‧‧ presentation layer

120‧‧‧業務邏輯層120‧‧‧Business logic layer

121‧‧‧流程控制引擎121‧‧‧Process Control Engine

1211‧‧‧結果記錄模組1211‧‧‧ Results Recording Module

123‧‧‧任務執行引擎123‧‧‧Task execution engine

123a‧‧‧基本命令模組123a‧‧‧Basic Command Module

123b‧‧‧通訊模組123b‧‧‧Communication Module

129‧‧‧記錄管理器129‧‧‧record manager

140‧‧‧資料代理層140‧‧‧Data agent layer

150‧‧‧網路層150‧‧‧Network layer

160‧‧‧業務資料管理層160‧‧‧Business Information Management

170‧‧‧資料存取層170‧‧‧ Data Access Layer

190‧‧‧更新模組190‧‧‧Update Module

步驟310‧‧‧流程控制引擎發出命令單元之呼叫請求至命令管理模組Step 310‧‧‧ The process control engine issues a call request from the command unit to the command management module

步驟320‧‧‧命令管理模組依據呼叫請求載入命令單元Step 320‧‧‧ Command Management Module Loads Command Units Based on Call Request

步驟330‧‧‧命令管理模組實體化命令單元Step 330‧‧‧ Command Management Module Entity Command Unit

步驟340‧‧‧流程控制引擎執行命令單元所包含之命令Step 340‧‧‧ The flow control engine executes the commands contained in the command unit

步驟350‧‧‧更新模組判斷生產線上之命令單元是否需要更新Step 350‧‧‧ Update module to determine if the command unit on the production line needs to be updated

步驟360‧‧‧更新模組向管理命令單元之命令管理模組請求結束命令單元Step 360‧‧‧ Update module requests end command unit from command management module of management command unit

步驟370‧‧‧命令管理模組結束命令單元Step 370‧‧‧ Command Management Module End Command Unit

步驟380‧‧‧更新模組更新命令單元Step 380‧‧‧Update Module Update Command Unit

第1圖為本發明所提之測試平台元件示意圖。Figure 1 is a schematic diagram of the components of the test platform proposed by the present invention.

第2圖為本發明所提之更新時結束命令單元並重新載入之系統架構圖。Figure 2 is a system architecture diagram of the end of the command unit and reloading when updating according to the present invention.

第3圖為本發明所提之更新時結束命令單元並重新載入之方法流程圖。Figure 3 is a flow chart of the method for ending the command unit and reloading when updating according to the present invention.

以下將配合圖式及實施例來詳細說明本發明之特徵與實施方式,內容足以使任何熟習相關技藝者能夠輕易地充分理解本發明解決技術問題所應用的技術手段並據以實施,藉此實現本發明可達成的功效。The features and embodiments of the present invention will be described in detail below with reference to the drawings and embodiments, which are sufficient to enable those skilled in the art to fully understand the technical means to which the present invention solves the technical problems, and The achievable effects of the present invention.

本發明提出一種具有分層架構的測試平台,此測試平台應用在生產線上,其只有在需要執行命令以進行測試時,才會由生產線之測試平台中的命令管理模組載入包含需被使用之命令的命令單元,如此,當命令單元需要更新時,例如新增或修改命令時,只需要向命令管理模組請求結束(terminate)需要被更新之命令單元,之後,在命令管理模組允許該請求並結束需要被更新之命令單元時,即可以在不需要停止生產線的測試平台的情況下直接更新該命令單元。The invention provides a test platform with a layered architecture, which is applied on a production line, and only needs to be executed by the command management module in the test platform of the production line when the command needs to be executed for testing. The command unit of the command, such that when the command unit needs to be updated, such as adding or modifying a command, only the command management module is required to terminate the command unit that needs to be updated, and then allowed in the command management module. When the request ends and the command unit needs to be updated, the command unit can be directly updated without stopping the test platform of the production line.

以下先以「第1圖」本發明所提之測試平台元件示意圖來說明測試平台100,如「第1圖」所示,在本發明所提之測試平台100中,可以包含表現層110、業務邏輯層120、資料代理層140、網路層150、業務資料管理層160、以及資料存取層170等。其中,資料代理層140與網路層150只有在測試平台100透過網路進行測試時才需要設置,否則測試平台100中可以不包含資料代理層140與網路層150。In the following, the test platform 100 will be described with reference to the schematic diagram of the test platform component of the present invention. The test platform 100 of the present invention may include a presentation layer 110 and a service. The logic layer 120, the data agent layer 140, the network layer 150, the business data management layer 160, the data access layer 170, and the like. The data agent layer 140 and the network layer 150 need to be set only when the test platform 100 is tested through the network. Otherwise, the data platform layer 140 and the network layer 150 may not be included in the test platform 100.

表現層110包含一種或多種作業系統(Operation System,OS)的使用者介面,例如,圖形使用者介面(Graphical User Interface,GUI)或命令列(Command Line)等。The presentation layer 110 includes a user interface of one or more operation systems (OS), such as a Graphical User Interface (GUI) or a Command Line.

業務邏輯層120至少包含流程控制引擎(Flow Engine)121以及任務執行引擎(Executor Engine)123,甚至,業務邏輯層120也可以包含可附加的記錄管理器(Log Manager)129。The business logic layer 120 includes at least a flow control engine (Flow Engine) 121 and a task execution engine (Executor Engine) 123. Even the business logic layer 120 may include an attachable record manager (Log Manager) 129.

流程控制引擎121可以控制測試平台100的測試流程。流程控制引擎121中還可以包含結果記錄模組1211,結果記錄模組1211包含一個或多個獨立的記錄單元,例如,資料庫記錄單元(圖中未示)、程序記錄單元(圖中未示)、回響(echo)記錄單元(圖中未示)等,但結果記錄模組1211所包含的記錄單元並不以上述為限,另外,結果記錄模組1211中 的每一個記錄單元都可以透過測試平台100之設定檔中的對應設定來啟用或關閉。The process control engine 121 can control the test flow of the test platform 100. The result control module 121 may further include a result recording module 1211. The result recording module 1211 includes one or more independent recording units, for example, a database recording unit (not shown) and a program recording unit (not shown) ), an echo recording unit (not shown), etc., but the recording unit included in the result recording module 1211 is not limited to the above, and the result recording module 1211 is Each of the recording units can be enabled or disabled through a corresponding setting in the profile of the test platform 100.

任務執行引擎123包含一個或多個命令管理模組,每一個命令管理模組管理一個或多個命令單元,每一個命令單元包含多個可被執行的命令,一個命令單元所包含的一個命令或多個命令的組合可以對生產線上的特定目標進行特定的測試。每一個命令管理模組所管理的命令單元是各自獨立的,在更新時並不會影響到其他的命令單元。The task execution engine 123 includes one or more command management modules, each command management module managing one or more command units, each command unit containing a plurality of commands that can be executed, one command unit containing one command or A combination of multiple commands allows specific testing of specific targets on the production line. The command units managed by each command management module are independent, and do not affect other command units when updating.

任務執行引擎123所包含的命令管理模組例如基本命令(Base Command)模組123a、通訊(Communication)模組123b等,但本發明並不以此為限。The command management module included in the task execution engine 123 is, for example, a base command module 123a, a communication module 123b, and the like, but the invention is not limited thereto.

此外,任務執行引擎123還可以包含執行狀態存取模組,執行狀態存取模組可以在測試平台100進行測試的過程中,獲取或修改測試平台100內的執行狀態訊息,例如,直接讀取並使用測試平台100內的環境變數,或是在測試平台100內建立新的環境變數等。In addition, the task execution engine 123 may further include an execution state access module, and the execution state access module may acquire or modify an execution status message in the test platform 100 during the test of the test platform 100, for example, directly reading The environment variables in the test platform 100 are used, or new environmental variables are established in the test platform 100.

記錄管理器129可以將結果記錄模組1211所產生的記錄檔傳送至特定位置儲存。記錄管理器129包含多個記錄處理模組(圖中未示),每一個記錄處理模組分別與結果記錄模組1211所包含的各個記錄單元對應,每一個記錄處理模組都可以透過測試平台100的設定檔設定收集記錄檔的時間以及傳送記錄檔的時間,也可以設定是否啟用或關閉。The record manager 129 can transfer the log files generated by the result recording module 1211 to a specific location for storage. The recording manager 129 includes a plurality of recording processing modules (not shown), each of which corresponds to each recording unit included in the result recording module 1211, and each recording processing module can pass through the testing platform. The setting of 100 sets the time for collecting the log file and the time for transmitting the log file. It can also be set whether to enable or disable.

資料代理層140可以透過網路層150獲取儲存在測試平台100外部的資料及/或檔案,也可以透過業務資料管理層160獲取儲存在測試平台100本地的資料或檔案。資料代理層140也可以管理資料的生命週期。其中,資料代理層140在獲取測試平台100外部的資料時,還可以暫存透過網路層150所獲取的資料,藉以降低遠端存取的次數。The data agent layer 140 can obtain the data and/or files stored outside the test platform 100 through the network layer 150, and can also obtain the data or files stored in the test platform 100 through the service data management layer 160. The data agent layer 140 can also manage the lifecycle of the data. The data agent layer 140 may temporarily store the data acquired through the network layer 150 when acquiring the data outside the test platform 100, thereby reducing the number of remote accesses.

業務資料管理層160可以提供資料及/或檔案給流程控制引擎121。業務資料管理層160可以包含腳本資料提供單元、本機管理資料提供單元、系統設定資料提供單元、外部系統整合單元、記錄檔提供單元等,但業務資料管理層160並不以此為限。一般而言,業務資料管理層160所包含的各個單元所存取之資料的來源不同,且可以依據測試平台100之設 定檔中的對應設定來啟用或關閉,也就是說,業務資料管理層160所包含的各個單元是各自獨立的,可以單獨修改或更新而不會影響其他單元。The business profile management layer 160 can provide data and/or files to the process control engine 121. The business data management layer 160 may include a script data providing unit, a local management data providing unit, a system setting data providing unit, an external system integration unit, a log file providing unit, etc., but the business data management layer 160 is not limited thereto. Generally, the sources of the data accessed by the units included in the business data management layer 160 are different, and may be based on the test platform 100. The corresponding settings in the profile are enabled or disabled, that is, the units included in the business profile management layer 160 are independent and can be individually modified or updated without affecting other cells.

其中,腳本資料提供單元可以提供腳本以及相對應的資料,本機管理資料提供單元可以提供本機管理資料、系統設定資料提供單元可以提供測試平台100的系統設定資料、記錄檔提供單元可以提供結果記錄模組所產生的記錄檔,外部系統整合單元可以將測試平台100與外部服務進行整合。The script data providing unit can provide the script and the corresponding data, the local management data providing unit can provide the local management data, the system setting data providing unit can provide the system setting data of the testing platform 100, and the record file providing unit can provide the result. The external system integration unit can integrate the test platform 100 with external services by recording the log files generated by the module.

資料存取層170可以在實際儲存資料的物理裝置(圖中未示)中存取資料,例如,開啟儲存於儲存媒體中的XML檔案,並讀出被開啟之XML檔中的內容,也可以搜尋被儲存在資料庫中的資料等。The data access layer 170 can access the data in a physical device (not shown) that actually stores the data, for example, open an XML file stored in the storage medium, and read the content in the opened XML file, or Search for data stored in the database, etc.

接著進一步以「第2圖」來說明本發明所提之更新時結束命令單元並重新載入之系統的運作。如「第2圖」所示,本發明之系統主要由流程控制引擎121、任務執行引擎123、以及更新模組190來完成命令單元的更新。Next, the operation of the system in which the command unit is terminated and reloaded at the time of updating according to the present invention will be further described with reference to "Fig. 2". As shown in FIG. 2, the system of the present invention mainly updates the command unit by the flow control engine 121, the task execution engine 123, and the update module 190.

流程控制引擎121負責將命令單元的呼叫請求發送給任務執行引擎123。被流程控制引擎121所呼叫的命令單元包含流程控制引擎121欲執行的命令。流程控制引擎121也負責在被呼叫的命令單元被任務執行引擎123載入並實體化後,執行欲執行之命令。The flow control engine 121 is responsible for transmitting a call request of the command unit to the task execution engine 123. The command unit called by the flow control engine 121 contains commands to be executed by the flow control engine 121. The flow control engine 121 is also responsible for executing the command to be executed after the called command unit is loaded and instantiated by the task execution engine 123.

其中,若流程控制引擎121中包含結果記錄模組,則結果記錄模組中可以記錄流程控制引擎121所執行之命令及/或執行命令後所產生之訊息。If the result control module is included in the process control engine 121, the result record module can record the command executed by the flow control engine 121 and/or the message generated after executing the command.

任務執行引擎123在接收到流程控制引擎121所發送的呼叫請求後,會將所接收到的呼叫請求發送給管理與該呼叫請求對應之命令單元的命令管理模組。管理與任務執行引擎123所接收到之呼叫請求對應之命令單元的命令管理模組會負責載入並實體化與被接收到之呼叫請求對應的命令單元,藉以提供流程控制引擎121執行包含於被載入並實體化之命令單元中的命令。Upon receiving the call request sent by the flow control engine 121, the task execution engine 123 transmits the received call request to the command management module that manages the command unit corresponding to the call request. The command management module that manages the command unit corresponding to the call request received by the task execution engine 123 is responsible for loading and instantiating the command unit corresponding to the received call request, thereby providing the flow control engine 121 to execute the included The command in the command unit that is loaded and instantiated.

其中,任務執行引擎123可以先判斷管理與所接收到之呼叫請求對應之命令單元的命令管理模組,再將所接收到之呼叫請求傳送至所 判斷出之管理該命令單元的命令管理模組,但本發明並不以此為限,任務執行引擎123也可以將所接收到的呼叫請求發送給所包含的所有命令管理模組,例如,發送給基本命令模組123a、通訊模組123b等命令管理模組,而後由接收到呼叫請求的命令管理模組判斷是否管理與所接收到之呼叫請求對應的命令單元,若是,則載入並實體化與所接收到之呼叫請求對應的命令單元,若否,則不進行任何動作。The task execution engine 123 may first determine a command management module that manages a command unit corresponding to the received call request, and then transmit the received call request to the location. Determining the command management module for managing the command unit, but the invention is not limited thereto, and the task execution engine 123 may also send the received call request to all the command management modules included, for example, sending a command management module such as a basic command module 123a, a communication module 123b, and the like, and then a command management module that receives the call request determines whether to manage a command unit corresponding to the received call request, and if so, loads and entities The command unit corresponding to the received call request is processed, and if not, no action is taken.

更新模組190負責向管理欲更新之命令單元的命令管理模組請求結束欲更新之命令單元,並更新被結束的命令單元。其中,更新模組190對命令單元所進行之更新,包含新增、修改、刪除命令單元中所包含的命令。The update module 190 is responsible for requesting the command management module managing the command unit to be updated to end the command unit to be updated, and updating the terminated command unit. The update module 190 updates the command unit, and includes commands added, modified, and deleted in the command unit.

更新模組190在更新各個命令單元時,是單獨更新各該命令單元。另外,更新模組190也會判斷管理欲更新之命令單元的命令管理模組。The update module 190 updates each of the command units individually when updating each command unit. In addition, the update module 190 also determines the command management module that manages the command unit to be updated.

如此,當流程控制引擎121再次發送被更新之命令單元的呼叫請求至任務執行引擎123時,管理被更新之命令單元的命令管理模組會再次載入並實體化被更新的命令單元,藉以提供被更新的命令單元所包含的命令給流程控制引擎121執行。As such, when the flow control engine 121 transmits the call request of the updated command unit to the task execution engine 123 again, the command management module that manages the updated command unit reloads and instantiates the updated command unit, thereby providing The commands contained in the updated command unit are executed by the flow control engine 121.

接著以一個實施例來解說本發明的運作系統與方法,並請參照「第3圖」本發明所提之更新時結束命令單元並重新載入之方法流程圖。Next, an operation system and method of the present invention will be described with reference to an embodiment. Referring to FIG. 3, a flowchart of a method for ending a command unit and reloading at the time of updating according to the present invention will be described.

當生產線的測試平台100進行一般的測試時,流程控制引擎121會執行進行測試的命令。在流程控制引擎121執行命令前,可以先判斷包含欲執行之命令的命令單元是否已經被任務執行引擎123所包含的命令管理模組載入並實體化。在本實施例中,假設命令管理模組為基本命令模組123a,也就是說,包含流程控制引擎121欲執行之命令的命令單元是由基本命令模組123a所管理。When the test platform 100 of the production line performs a general test, the flow control engine 121 executes a command to perform the test. Before the flow control engine 121 executes the command, it may be determined whether the command unit containing the command to be executed has been loaded and instantiated by the command management module included in the task execution engine 123. In this embodiment, it is assumed that the command management module is the basic command module 123a, that is, the command unit including the command to be executed by the flow control engine 121 is managed by the basic command module 123a.

若該命令單元已經被基本命令模組123a實體化,則流程控制引擎121可以直接呼叫該命令單元,並執行該命令單元所包含的該命令,藉以在生產線上進行測試,而若該命令單元尚未被基本命令模組123a實體化,則流程控制引擎121可以發出呼叫該命令單元的呼叫請求至任務執行 引擎123(步驟310)。If the command unit has been instantiated by the basic command module 123a, the flow control engine 121 can directly call the command unit and execute the command included in the command unit to perform testing on the production line, and if the command unit has not yet been Being instantiated by the basic command module 123a, the flow control engine 121 can issue a call request to the command unit to the task execution. Engine 123 (step 310).

任務執行引擎123在接收到流程控制引擎121所發出的呼叫請求後,會將所接收到的呼叫請求發送給管理與該呼叫請求對應之命令單元的命令管理模組,在本實施例中,也就是發給基本命令模組123a。After receiving the call request sent by the flow control engine 121, the task execution engine 123 sends the received call request to the command management module that manages the command unit corresponding to the call request. In this embodiment, It is sent to the basic command module 123a.

在基本命令模組123a接收到呼叫請求後,會依據所接收到的呼叫請求載入並實體化相對應的命令單元(步驟320、330),並回傳相關的位址給流程控制引擎121,之後,流程控制引擎121便可以依據基本命令模組123a所傳送的位址呼叫命令單元,並由命令單元中取得欲執行的命令後執行該命令(步驟340),藉以進行測試。After receiving the call request, the basic command module 123a loads and instantiates the corresponding command unit according to the received call request (steps 320, 330), and returns the relevant address to the process control engine 121. Thereafter, the flow control engine 121 can call the command unit according to the address transmitted by the basic command module 123a, and execute the command after obtaining the command to be executed by the command unit (step 340), thereby performing the test.

在測試平台100持續進行測試的過程中,測試平台100中的更新模組190會持續判斷被流程控制引擎121所呼叫而在生產線上運行的命令單元是否需要被更新(步驟350),若測試平台100的維護人員需要更新命令單元,則更新模組190會判斷管理將被更新之命令單元之命令管理模組,並向所判斷出之命令管理模組請求結束需要被更新之命令單元(步驟360)。在本實施例中,假設需要被更新之命令單元由基本命令模組123a所管理。During the continuous test of the test platform 100, the update module 190 in the test platform 100 continuously determines whether the command unit that is called by the flow control engine 121 and runs on the production line needs to be updated (step 350), if the test platform The maintenance personnel of 100 need to update the command unit, and the update module 190 determines the command management module of the command unit that manages the update, and requests the command management module to terminate the command unit that needs to be updated (step 360). ). In the present embodiment, it is assumed that the command unit that needs to be updated is managed by the basic command module 123a.

在基本命令模組123a結束需要被更新的命令單元(步驟370)後,基本命令模組123a可以傳送回應訊號給測試平台100中的更新模組190,藉以響應更新模組190的請求,接著,更新模組190可以更新基本命令模組123a所管理的命令單元(步驟380)。After the basic command module 123a ends the command unit that needs to be updated (step 370), the basic command module 123a can transmit a response signal to the update module 190 in the test platform 100, in response to the request of the update module 190, and then, The update module 190 can update the command unit managed by the basic command module 123a (step 380).

由於測試平台100中的更新模組190在更新命令單元(步驟380)前,基本命令模組123a會結束所載入並實體化之將被更新的命令單元(步驟370),因此,在測試平台100持續進行的測試過程中,若流程控制引擎121需要執行基本命令模組123a所管理之命令單元所包含的命令,則流程控制引擎121可以判斷出包含欲執行之命令的命令單元尚未被基本命令模組123a載入並實體化,所以,流程控制引擎121會發送包含欲執行命令之命令單元的呼叫請求至任務執行引擎123(步驟310),而在更新模組190完成命令單元的更新並重新載入基本命令模組123a(步驟370、380)後,基本命令模組123a可以接收到流程控制引擎121所發送的呼叫請求, 並可以載入並實體化被流程控制引擎121所請求的命令單元(步驟320、330),藉以提供包含流程控制引擎121欲執行之命令的命令單元給流程控制引擎121,使得流程控制引擎121可以執行欲執行的命令(步驟340)。其中,流程控制引擎121所發送之呼叫請求可能會與被更新之命令單元對應。Since the update module 190 in the test platform 100 is before the update command unit (step 380), the basic command module 123a ends the loaded and instantiated command unit to be updated (step 370), thus, on the test platform During the ongoing test, if the flow control engine 121 needs to execute the command contained in the command unit managed by the basic command module 123a, the flow control engine 121 can determine that the command unit containing the command to be executed has not been subjected to the basic command. The module 123a is loaded and instantiated, so the flow control engine 121 sends a call request containing the command unit to execute the command to the task execution engine 123 (step 310), and the update module 190 completes the update of the command unit and restarts After the basic command module 123a is loaded (steps 370, 380), the basic command module 123a can receive the call request sent by the flow control engine 121. And the command unit requested by the flow control engine 121 can be loaded and enriched (steps 320, 330), thereby providing a command unit including the command to be executed by the flow control engine 121 to the flow control engine 121, so that the flow control engine 121 can The command to be executed is executed (step 340). The call request sent by the flow control engine 121 may correspond to the updated command unit.

如此,透過本發明,便可以在不需要停止生產線的測試平台100之測試過程的情況下,更新測試平台100中的命令單元。Thus, with the present invention, the command unit in the test platform 100 can be updated without the need to stop the test process of the test platform 100 of the production line.

另外,在上述的實施例中,若流程控制引擎121還包含結果記錄模組1211,則在流程控制引擎121執行命令時,會記錄流程控制引擎121所執行之命令及/或執行命令後所產生之訊息。如此,當業務邏輯層120包含記錄管理器129時,則記錄管理器129可以傳送結果記錄模組1211所記錄之各該命令及/或訊息至特定的裝置。In addition, in the above embodiment, if the flow control engine 121 further includes the result recording module 1211, when the flow control engine 121 executes the command, the command executed by the flow control engine 121 and/or the executed command may be recorded. Message. Thus, when the business logic layer 120 includes the record manager 129, the record manager 129 can transmit each of the commands and/or messages recorded by the result record module 1211 to a particular device.

綜上所述,可知本發明與先前技術之間的差異在於具有分層架構,當更新模組在更新包含進行測試之命令的命令單元時,會結束管理命令單元的命令管理模組,並在更新完成後重新載入命令管理模組,之後,流程控制引擎在欲執行測試之命令時,發出呼叫請求至命令管理模組,命令管理模組會重新載入更新後之命令單元的技術手段,藉由此一技術手段可以解決先前技術所存在更新測試方案需要停止測試平台的問題,進而達成降低更新命令所需之成本的技術功效。In summary, it can be seen that the difference between the present invention and the prior art is that there is a layered architecture. When the update module updates the command unit including the command for testing, the command management module of the management command unit ends. After the update is completed, the command management module is reloaded. After that, the process control engine issues a call request to the command management module when the command is to be executed, and the command management module reloads the technical means of the updated command unit. By means of this technical means, the problem that the prior art update test solution needs to stop the test platform can be solved, thereby achieving the technical effect of reducing the cost required for the update command.

再者,本發明之更新時結束命令單元並重新載入之方法,可實現於硬體、軟體或硬體與軟體之組合中,亦可在電腦系統中以集中方式實現或以不同元件散佈於若干互連之電腦系統的分散方式實現。Furthermore, the method of terminating the command unit and reloading in the updating of the present invention can be implemented in hardware, software or a combination of hardware and software, or can be implemented in a centralized manner in a computer system or distributed in different components. The decentralized implementation of several interconnected computer systems.

雖然本發明所揭露之實施方式如上,惟所述之內容並非用以直接限定本發明之專利保護範圍。任何本發明所屬技術領域中具有通常知識者,在不脫離本發明所揭露之精神和範圍的前提下,對本發明之實施的形式上及細節上作些許之更動潤飾,均屬於本發明之專利保護範圍。本發明之專利保護範圍,仍須以所附之申請專利範圍所界定者為準。While the embodiments of the present invention have been described above, the above description is not intended to limit the scope of the invention. Any modification of the form and details of the practice of the present invention, which is a matter of ordinary skill in the art to which the present invention pertains, is a patent protection of the present invention. range. The scope of the invention is to be determined by the scope of the appended claims.

步驟310‧‧‧流程控制引擎發出命令單元之呼叫請求至命令管理模組Step 310‧‧‧ The process control engine issues a call request from the command unit to the command management module

步驟320‧‧‧命令管理模組依據呼叫請求載入命令單元Step 320‧‧‧ Command Management Module Loads Command Units Based on Call Request

步驟330‧‧‧命令管理模組實體化命令單元Step 330‧‧‧ Command Management Module Entity Command Unit

步驟340‧‧‧流程控制引擎執行命令單元所包含之命令Step 340‧‧‧ The flow control engine executes the commands contained in the command unit

步驟350‧‧‧更新模組判斷生產線上之命令單元是否需要更新Step 350‧‧‧ Update module to determine if the command unit on the production line needs to be updated

步驟360‧‧‧更新模組向管理命令單元之命令管理模組請求結束命令單元Step 360‧‧‧ Update module requests end command unit from command management module of management command unit

步驟370‧‧‧命令管理模組結束命令單元Step 370‧‧‧ Command Management Module End Command Unit

步驟380‧‧‧更新模組更新命令單元Step 380‧‧‧Update Module Update Command Unit

Claims (10)

一種不間斷自動更新測試命令之系統,係應用於一生產線上,用以於該生產線在連續工作時線上更新測試命令,該系統至少包含:一任務執行引擎(Executor Engine),包含至少一命令管理模組,每一該命令管理模組包含並管理至少一命令單元,各該命令單元都包含可測試該生產線上之特定目標之至少一命令,且各該命令單元各自獨立;一流程控制引擎(Flow Engine),用以發出一該命令單元之一呼叫請求,管理該被呼叫之命令單元之命令管理模組用以依據該呼叫請求載入並實體化該被呼叫之命令單元,藉以提供該流程控制引擎執行該被呼叫之命令單元所包含之命令;及一更新模組,用以請求管理該被呼叫之命令單元之命令管理模組結束(terminate)該被呼叫之命令單元,及用以於該被呼叫之命令單元被停止後,更新該被呼叫之命令單元。 A system for automatically updating test commands without interruption is applied to a production line for updating test commands on the line during continuous operation. The system includes at least: a task execution engine (Executor Engine) including at least one command management a module, each of the command management modules includes and manages at least one command unit, each of the command units includes at least one command that can test a specific target on the production line, and each of the command units is independent; a process control engine ( a flow engine for issuing a call request of the command unit, and a command management module for managing the called command unit for loading and authenticating the called command unit according to the call request, thereby providing the process Controlling the engine to execute the command included in the called command unit; and an update module for requesting the command management module managing the called command unit to terminate the called command unit and for After the called command unit is stopped, the called command unit is updated. 如申請專利範圍第1項所述之不間斷自動更新測試命令之系統,其中該流程控制引擎更包含至少一結果記錄模組,用以記錄該流程控制引擎所執行之命令及/或執行命令後所產生之訊息。 The system of claim 1, wherein the process control engine further comprises at least one result recording module for recording the command executed by the process control engine and/or executing the command. The resulting message. 如申請專利範圍第2項所述之不間斷自動更新測試命令之系統,其中該系統更包含一記錄管理器(Log Manager),用以傳送該結果記錄模組所記錄之各該命令及/或訊息。 A system for continuously updating a test command according to claim 2, wherein the system further comprises a Log Manager for transmitting each of the commands recorded by the result recording module and/or message. 如申請專利範圍第1項所述之不間斷自動更新測試命令之系統,其中該更新模組是單獨更新各該命令單元。 A system for continuously updating test commands according to claim 1 of the patent scope, wherein the update module separately updates each of the command units. 如申請專利範圍第1項所述之不間斷自動更新測試命令之系統,其中該命令管理模組為基本命令模組或通訊模組。 The system for continuously updating the test command according to the first aspect of the patent application, wherein the command management module is a basic command module or a communication module. 如申請專利範圍第1項所述之不間斷自動更新測試命令之系統,其中該系統更包含:一資料存取層,用以存取該流程控制引擎執行各該命令單元所包含之命令所需之資料及/或檔案;及一業務資料管理層,用以將該些資料及/或檔案提供給該流程控制引擎執行。 A system for continuously updating a test command according to claim 1, wherein the system further comprises: a data access layer for accessing the flow control engine to execute the commands included in each command unit. The information and/or files; and a business data management layer for providing the data and/or files to the process control engine for execution. 如申請專利範圍第1項所述之不間斷自動更新測試命令之系統,其中該系統更包含一表現層,該表現層提供至少一圖形使用者介面。 A system for continuously updating test commands according to claim 1, wherein the system further comprises a presentation layer, the presentation layer providing at least one graphical user interface. 一種不間斷自動更新測試命令之方法,係應用於一生產線上,用以於該生產線連續工作時線上更新測試命令,該方法至少包含下列步驟:當該生產線上之一命令單元需要更新時,一更新模組向管理該命令單元之一命令管理模組請求結束該命令單元;該命令管理模組響應該更新模組之請求後,該更新模組更新該命令單元;一流程控制引擎發出該命令單元之一呼叫請求至該命令管理模組;該命令管理模組依據該呼叫請求載入該命令單元;及該命令管理模組實體化該命令單元,藉以提供該流程控制引擎執行該命令單元所包含之命令。 A method for automatically updating test commands without interruption is applied to a production line for updating a test command on the line while the production line is continuously working. The method includes at least the following steps: when one of the command lines on the production line needs to be updated, The update module requests the management module of the command unit to request to end the command unit; after the command management module responds to the request of the update module, the update module updates the command unit; a process control engine issues the command One of the units calls a request to the command management module; the command management module loads the command unit according to the call request; and the command management module entityizes the command unit to provide the flow control engine to execute the command unit Contains the commands. 如申請專利範圍第8項所述之不間斷自動更新測試命令之方法,其中該流程控制引擎執行該命令單元所包含之命令之步驟更包含記錄該流程控制引擎所執行之命令及/或執行命令後所產生之訊息之步驟。 The method of automatically updating a test command according to claim 8 of the patent application, wherein the step of the flow control engine executing the command included in the command unit further comprises recording a command executed by the flow control engine and/or executing a command. The steps of the resulting message. 如申請專利範圍第9項所述之不間斷自動更新測試命令之方法,其中該方法於記錄該流程控制引擎所執行之命令及/或執行命令後所產生 之訊息之步驟後,更包含傳送被記錄之各該命令及/或訊息之步驟。 The method of automatically updating a test command according to claim 9 of the patent application, wherein the method is generated after recording a command executed by the process control engine and/or executing a command After the step of the message, the step of transmitting each of the commands and/or messages recorded is further included.
TW102117531A 2013-05-17 2013-05-17 System for updating test command and method thereof TWI490689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102117531A TWI490689B (en) 2013-05-17 2013-05-17 System for updating test command and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102117531A TWI490689B (en) 2013-05-17 2013-05-17 System for updating test command and method thereof

Publications (2)

Publication Number Publication Date
TW201445305A TW201445305A (en) 2014-12-01
TWI490689B true TWI490689B (en) 2015-07-01

Family

ID=52707045

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102117531A TWI490689B (en) 2013-05-17 2013-05-17 System for updating test command and method thereof

Country Status (1)

Country Link
TW (1) TWI490689B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1215518A (en) * 1996-03-22 1999-04-28 贝尔通讯研究股份有限公司 Remote proxy system and method
TW200401975A (en) * 2002-07-29 2004-02-01 Ibm Method and system for upgrading drive firmware in a non-disruptive manner
US20070169102A1 (en) * 2005-11-17 2007-07-19 Bea Systems, Inc. Production redeployment
CN100585422C (en) * 2004-05-22 2010-01-27 株式会社爱德万测试 Be used for modular test system is carried out method of emulation and system
CN100592745C (en) * 2001-12-28 2010-02-24 Abb股份有限公司 Method and system for sending localization and identity dependent information to mobile terminals
CN102236562A (en) * 2010-04-23 2011-11-09 英业达集团(天津)电子技术有限公司 Method for updating files in computer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1215518A (en) * 1996-03-22 1999-04-28 贝尔通讯研究股份有限公司 Remote proxy system and method
CN100592745C (en) * 2001-12-28 2010-02-24 Abb股份有限公司 Method and system for sending localization and identity dependent information to mobile terminals
TW200401975A (en) * 2002-07-29 2004-02-01 Ibm Method and system for upgrading drive firmware in a non-disruptive manner
CN100585422C (en) * 2004-05-22 2010-01-27 株式会社爱德万测试 Be used for modular test system is carried out method of emulation and system
US20070169102A1 (en) * 2005-11-17 2007-07-19 Bea Systems, Inc. Production redeployment
CN102236562A (en) * 2010-04-23 2011-11-09 英业达集团(天津)电子技术有限公司 Method for updating files in computer

Also Published As

Publication number Publication date
TW201445305A (en) 2014-12-01

Similar Documents

Publication Publication Date Title
US8918783B2 (en) Managing virtual computers simultaneously with static and dynamic dependencies
US9253265B2 (en) Hot pluggable extensions for access management system
US10873512B2 (en) Methods for managing self-healing cloud infrastructure and applications
CN105681104B (en) Method, system and the computer readable storage devices of network and machine are managed for online service
CN105577475B (en) Automated performance testing system and method
US9122716B1 (en) Database upgrade management
EP3694167B1 (en) Method and device for managing services in network function virtualization architecture
US10592312B2 (en) Message oriented middleware with integrated rules engine
US9652220B2 (en) Zero down-time deployment of new application versions
CN110098952B (en) Server management method and device
WO2018001091A1 (en) Method and device for updating virtualized network function (vnf), and vnf packet
US9336020B1 (en) Workflows with API idiosyncrasy translation layers
US11281550B2 (en) Disaster recovery specific configurations, management, and application
CN114356504A (en) Data migration method and device in cluster, electronic equipment and storage medium
US20150160955A1 (en) Dynamically modifiable component model
CN104410511A (en) Server management method and system
US20100180157A1 (en) Remote hardware inspection system and method
US9135457B1 (en) System and method for recording and applying access privileges in a virtualized environment
TWI490689B (en) System for updating test command and method thereof
US20150154038A1 (en) Scriptable hierarchical emulation engine
US8850427B2 (en) Bulk data management in a virtual environment
CN114756293A (en) Service processing method, device, computer equipment and storage medium
CN112559157A (en) Kubernetes-based rail transit software application scheduling method
CN102752151B (en) Measuring and controlling product management method and device based on flexibility testing technology
CN104636086A (en) HA storage device and HA state managing method

Legal Events

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