[go: up one dir, main page]

TWI905825B - Apparatus, method, and recording medium for managing test data related to the execution of test case - Google Patents

Apparatus, method, and recording medium for managing test data related to the execution of test case

Info

Publication number
TWI905825B
TWI905825B TW113124617A TW113124617A TWI905825B TW I905825 B TWI905825 B TW I905825B TW 113124617 A TW113124617 A TW 113124617A TW 113124617 A TW113124617 A TW 113124617A TW I905825 B TWI905825 B TW I905825B
Authority
TW
Taiwan
Prior art keywords
test
test data
mentioned
data
item
Prior art date
Application number
TW113124617A
Other languages
Chinese (zh)
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 韓商韓領有限公司
Application granted granted Critical
Publication of TWI905825B publication Critical patent/TWI905825B/en

Links

Abstract

本發明提出一種用以管理與測試用例之執行相關之測試資料之電子裝置。本發明之電子裝置可包括:一個以上之處理器;及一個以上之記憶體,其儲存有用以藉由上述一個以上之處理器而執行之命令;且上述電子裝置以如下之方式構成:於執行上述命令時,上述一個以上之處理器判斷儲存複數個測試資料之測試資料池是否滿足針對對象測試項目而預先設定之條件,於上述測試資料池不滿足上述預先設定之條件之情形時,產生與上述對象測試項目相關之至少一個測試資料,將產生之上述至少一個測試資料儲存於上述測試資料池。This invention provides an electronic device for managing test data related to the execution of test cases. The electronic device of this invention may include: one or more processors; and one or more memory stores commands to be executed by the one or more processors; and the electronic device is configured such that, when executing the commands, the one or more processors determine whether a test data pool storing a plurality of test data meets pre-set conditions for a target test item; if the test data pool does not meet the pre-set conditions, at least one test data related to the target test item is generated, and the generated at least one test data is stored in the test data pool.

Description

用以管理與測試用例之執行相關之測試資料之裝置、方法及記錄媒體Apparatus, methods, and recording media for managing test data related to the execution of test cases.

本發明係關於一種用以管理與測試用例之執行相關之測試資料之技術。更具體而言,本發明係關於一種為了順利地執行測試用例而產生及儲存測試資料之技術。This invention relates to a technique for managing test data related to the execution of test cases. More specifically, this invention relates to a technique for generating and storing test data for the smooth execution of test cases.

軟體測試係表示對軟體是否按照開發者之意圖準確地動作進行驗證之作業。最近,於軟體開發流程中,自動化測試之重要性日益增加。軟體自動化測試係自動執行軟體測試者,表示使用準備好之測試資料自動執行事前製作之測試用例或即時製作之測試用例的過程。軟體自動化測試可藉由有效地執行測試用例而縮短開發週期,最大限度地減少人為錯誤,有助於提供高品質之軟體。然而,於軟體自動化測試之流程中存在多個問題。問題之一係對用以穩定地執行測試用例之測試資料進行管理。若未適當地準備測試資料,則難以確保軟體自動化測試之穩定性與可靠性,因此測試結果不一致或失敗之可能性會變高。因此,於軟體自動化測試環境中快速且準確地準備測試資料係用以成功地執行測試用例之核心要素。Software testing refers to the process of verifying whether software functions accurately as intended by the developer. Recently, the importance of automated testing in the software development process has been increasing. Software automated testing automates the execution of software testers, meaning the process of automatically executing pre-made or on-the-spot test cases using prepared test data. Software automated testing can shorten development cycles and minimize human error by effectively executing test cases, contributing to the delivery of high-quality software. However, several problems exist in the software automated testing process. One problem is the management of test data used to reliably execute test cases. Without proper test data preparation, it is difficult to ensure the stability and reliability of software automation testing, thus increasing the likelihood of inconsistent test results or failures. Therefore, preparing test data quickly and accurately in a software automation testing environment is a core element for successfully executing test cases.

[發明所欲解決之問題][The problem that the invention aims to solve]

本發明係關於一種用以管理與測試用例之執行相關之測試資料之技術。 [解決問題之技術手段] This invention relates to a technique for managing test data related to the execution of test cases. [Technical means to solve the problem]

本發明可提出一種用以管理與測試用例之執行相關之測試資料之方法。本發明之一實施例之方法可包括如下步驟:判斷儲存複數個測試資料之測試資料池是否滿足針對對象測試項目而預先設定之條件;於上述測試資料池不滿足上述預先設定之條件之情形時,產生與上述對象測試項目相關之至少一個測試資料;及將產生之上述至少一個測試資料儲存於上述測試資料池。This invention provides a method for managing test data related to the execution of test cases. One embodiment of this invention may include the following steps: determining whether a test data pool storing a plurality of test data meets pre-defined conditions for an object test item; when the test data pool does not meet the pre-defined conditions, generating at least one test data item related to the object test item; and storing the generated at least one test data item in the test data pool.

於一實施例中,上述預先設定之條件可包括:上述測試資料池是否儲存有臨界個數以上之與上述對象測試項目相關之有效測試資料。In one embodiment, the aforementioned pre-set conditions may include whether the aforementioned test data pool stores a critical number or more of valid test data related to the aforementioned object test items.

於一實施例中,上述臨界個數可設定為與上述對象測試項目相關且同時實行之測試用例之最大個數以上。In one embodiment, the above-mentioned critical number can be set to more than the maximum number of test cases that are related to the above-mentioned object test items and are executed simultaneously.

於一實施例中,上述產生之步驟可包括如下步驟:於上述測試資料池未儲存上述臨界個數以上之與上述對象測試項目相關之有效測試資料之情形時,按照自上述臨界個數減去儲存於上述測試資料池中之與上述對象測試項目相關之有效測試資料之個數所得之數,產生與上述對象測試項目相關之測試資料。In one embodiment, the above-mentioned generation steps may include the following steps: when the test data pool does not store more than the above-mentioned critical number of valid test data related to the above-mentioned target test item, generate test data related to the above-mentioned target test item according to the number obtained by subtracting the number of valid test data related to the above-mentioned target test item stored in the test data pool from the above-mentioned critical number.

於一實施例中,上述判斷之步驟可包括如下步驟:按照預先設定之時間週期判斷上述測試資料池是否滿足針對上述對象測試項目之上述預先設定之條件。In one embodiment, the above-mentioned determination steps may include the following steps: determining whether the above-mentioned test data pool meets the above-mentioned pre-set conditions for the test items of the above-mentioned object according to a pre-set time cycle.

於一實施例中,上述判斷之步驟可包括如下步驟:於與上述對象測試項目相關之測試資料存在複數個類型之情形時,判斷上述測試資料池是否儲存有針對上述各類型而設定之臨界個數以上之上述複數個類型中之每個類型之有效測試資料。In one embodiment, the above-mentioned determination step may include the following steps: when there are multiple types of test data related to the above-mentioned object test items, determine whether the above-mentioned test data pool stores valid test data for each of the multiple types, which is more than the number of critical values set for each of the above-mentioned types.

於一實施例中,針對上述複數個類型之第1類型而設定之臨界個數與針對上述複數個類型之第2類型而設定之臨界個數可不同。In one embodiment, the number of critical points set for the first type of the plurality of types may be different from the number of critical points set for the second type of the plurality of types.

一實施例之方法可進而包括如下步驟:隨著與上述對象測試項目相關之一個測試用例之執行,將儲存於上述測試資料池中之與上述對象測試項目相關之有效測試資料中任意之測試資料分配至上述一個測試用例。An embodiment of the method may further include the following steps: as a test case related to the above-mentioned object test item is executed, any test data from the valid test data related to the above-mentioned object test item stored in the above-mentioned test data pool is assigned to the above-mentioned test case.

一實施例之方法可進而包括如下步驟:將標籤映射至儲存於上述測試資料池中之上述複數個測試資料各者;且上述分配之步驟包括如下步驟:藉由在上述一個測試用例中提供映射至上述任意之測試資料之標籤,將上述任意之測試資料分配至上述一個測試用例。An embodiment of the method may further include the following steps: mapping tags to each of the plurality of test data stored in the test data pool; and the allocation step includes the following steps: allocating the arbitrary test data to the test case by providing tags mapped to the arbitrary test data in the test case.

一實施例之方法可進而包括如下步驟:於使用上述任意之測試資料執行上述一個測試用例之期間,激活上述任意之測試資料之鎖定功能;且上述任意之測試資料係於上述鎖定功能被激活後,終止向其他測試用例之分配直至鎖定功能被解除前為止。An embodiment of the method may further include the following steps: during the execution of the test case using the aforementioned test data, activating the locking function of the aforementioned test data; and the aforementioned test data, after the locking function is activated, is terminated from being allocated to other test cases until the locking function is released.

一實施例之方法可進而包括如下步驟:於上述一個測試用例之執行結束之情形時,解除上述任意之測試資料之鎖定功能。An embodiment of the method may further include the following steps: when the execution of the above test case ends, unlocking the locking function of any of the above test data.

一實施例之方法可進而包括如下步驟:於與上述對象測試項目相關之上述任意之測試資料為不可重複使用之資料之情形時,若上述一個測試用例之執行成功,則將上述任意之測試資料之狀態自有效狀態變更為無效狀態,若上述一個測試用例之執行失敗,則將上述任意之測試資料之狀態保持為有效狀態。An embodiment of the method may further include the following steps: when any of the test data related to the above-mentioned object test item is non-reusable data, if the execution of the above-mentioned test case is successful, the state of the above-mentioned test data is changed from a valid state to an invalid state; if the execution of the above-mentioned test case fails, the state of the above-mentioned test data is kept in a valid state.

一實施例之方法可進而包括如下步驟:於與上述對象測試項目相關之上述任意之測試資料為可重複使用之資料之情形時,與上述一個測試用例之執行結果無關地將上述任意之測試資料之狀態保持為有效狀態。An embodiment of the method may further include the following steps: when any of the test data related to the above-mentioned object test items is reusable data, the state of the above-mentioned test data is kept in a valid state regardless of the execution result of the above-mentioned test case.

一實施例之方法可進而包括如下步驟:於執行與上述對象測試項目相關之一個測試用例之狀態下,在判斷為於上述測試資料池中不存在可執行上述一個測試用例之有效測試資料之情形時,即時產生可執行上述一個測試用例之測試資料。One embodiment of the method may further include the following steps: when executing a test case related to the above-mentioned object test item, if it is determined that there is no valid test data in the above-mentioned test data pool that can execute the above-mentioned test case, test data that can execute the above-mentioned test case is generated immediately.

一實施例之方法可進而包括如下步驟:於上述測試資料池不滿足上述預先設定之條件之情形時,產生表示不滿足上述預先設定之條件之資訊。One embodiment of the method may further include the following steps: when the test data pool does not meet the pre-set conditions, generating information indicating that the pre-set conditions are not met.

於一實施例中,上述至少一個測試資料可基於自動化工具內嵌入之與上述對象測試項目對應之一個以上之參數及由用戶對上述對象測試項目輸入之一個以上之參數中之至少一者而產生。In one embodiment, the at least one test data may be generated based on at least one of one or more parameters embedded in the automation tool corresponding to the above-mentioned object test item and one or more parameters input by the user for the above-mentioned object test item.

本發明可提出一種用以管理與測試用例之執行相關之測試資料之裝置。本發明之電子裝置可包括:一個以上之處理器;及一個以上之記憶體,其儲存有用以藉由上述一個以上之處理器而執行之命令。上述電子裝置以如下之方式構成:於執行上述命令時,上述一個以上之處理器可判斷儲存複數個測試資料之測試資料池是否滿足針對對象測試項目而預先設定之條件,於上述測試資料池不滿足上述預先設定之條件之情形時,產生與上述對象測試項目相關之至少一個測試資料,將產生之上述至少一個測試資料儲存於上述測試資料池。This invention provides an apparatus for managing test data related to the execution of test cases. The electronic apparatus of this invention may include: one or more processors; and one or more memory units storing commands to be executed by the one or more processors. The electronic apparatus is configured such that, when executing the commands, the one or more processors can determine whether a test data pool storing a plurality of test data sets meets pre-set conditions for a target test item. If the test data pool does not meet the pre-set conditions, at least one test data set related to the target test item is generated, and the generated at least one test data set is stored in the test data pool.

本發明可提出一種記錄有用以管理與測試用例之執行相關之測試資料之命令的非暫時性電腦可讀記錄媒體。本發明之一實施例之記錄媒體所記錄之命令可為用以藉由一個以上之處理器來執行或於電腦上實行之命令。該命令於藉由一個以上之處理器執行時可使一個以上之處理器判斷儲存複數個測試資料之測試資料池是否滿足針對對象測試項目而預先設定之條件,於上述測試資料池不滿足上述預先設定之條件之情形時,產生與上述對象測試項目相關之至少一個測試資料,將產生之上述至少一個測試資料儲存於上述測試資料池。 [發明之效果] This invention provides a non-transitory computer-readable recording medium for recording commands related to the management and execution of test data. In one embodiment of this invention, the commands recorded on the recording medium can be commands that can be executed by one or more processors or implemented on a computer. When executed by one or more processors, the commands can cause one or more processors to determine whether a test data pool storing a plurality of test data meets pre-set conditions for a test item. If the test data pool does not meet the pre-set conditions, at least one test data item related to the test item is generated and stored in the test data pool. [Effects of the Invention]

根據本發明,由於可於執行測試用例之前,事先產生測試資料並儲存於測試資料池內,因此可防止因測試資料不足而導致測試用例之執行失敗。According to the present invention, since test data can be generated and stored in the test data pool before test cases are executed, test case execution failure due to insufficient test data can be prevented.

根據本發明,由於可藉由對測試資料池之驗證來利用自動化工具自動產生與測試項目相關之測試資料而無需用戶之輸入,因此可縮短產生測試資料所要求之時間。According to this invention, since test data related to the test items can be automatically generated by automation tools through the verification of the test data pool without user input, the time required to generate test data can be shortened.

根據本發明,可藉由在執行測試用例之期間激活對輸入至測試用例之測試資料之鎖定功能,而防止測試資料同時被用於複數個測試用例,從而穩定地執行測試用例。According to the present invention, test cases can be executed stably by activating the locking function of the test data input into the test cases during the execution of the test cases, thereby preventing the test data from being used for multiple test cases at the same time.

根據本發明,可隨著測試用例之執行而更新測試資料之狀態,藉此,可於測試資料池內保持固定個數以上之有效測試資料。According to this invention, the status of test data can be updated as test cases are executed, thereby maintaining a fixed number of valid test data in the test data pool.

本發明之技術思想之效果並不限制於以上提及之效果,普通技術人員可根據說明書之記載而明確地理解未提及之其他效果。The effects of the technical concept of this invention are not limited to those mentioned above. Those skilled in the art can clearly understand other effects not mentioned based on the description in the manual.

本發明中記載之各種實施例係以明確地說明本發明之技術思想為目的而例示者,並非意欲將其限定為特定之實施方式。本發明之技術思想包括本發明中記載之各實施例之各種變更(modifications)、均等物(equivalents)、替代物(alternatives)及選擇性地組合各實施例之全部或一部分所得之實施例。又,本發明之技術思想之權利範圍並不限定於下文所示之各種實施例或對其之具體說明。The various embodiments described herein are illustrated for the purpose of clearly illustrating the technical concept of the invention and are not intended to limit them to specific embodiments. The technical concept of the invention includes various modifications, equivalents, alternatives, and embodiments obtained by selectively combining all or part of the embodiments described herein. Furthermore, the scope of the technical concept of the invention is not limited to the various embodiments shown below or their specific descriptions.

關於本發明中使用之用語,包括技術性或科學性用語,除非另外定義,否則可具有本發明所屬之技術領域內具有常識者通常理解之含義。The terms used in this invention, including technical or scientific terms, shall, unless otherwise defined, have the meanings commonly understood by a person of common knowledge in the technical field to which this invention pertains.

關於本發明中使用之如「包括」、「可包括」、「具備」、「可具備」、「具有」、「可具有」等表述,意味著存在對象特徵(例如,功能、動作或構成要素等),不排除其他追加性特徵之存在。即,如上所述之表述應理解為具有包含其他實施例之可能性之開放型用語(open-ended terms)。The use of terms such as "including," "may include," "possibly possess," "has," "may have," and "may have" in this invention implies the presence of object features (e.g., functions, actions, or constituent elements), and does not exclude the existence of other additional features. That is, the above-mentioned expressions should be understood as open-ended terms that have the possibility of including other embodiments.

關於本發明中使用之單數型表述,除非另有提及,否則可包含複數型之含義,這同樣適用於申請專利範圍中記載之單數型表述。Unless otherwise stated, the singular expressions used in this invention may contain the meaning of the plural form, and this also applies to the singular expressions recorded in the scope of the patent application.

關於本文中使用之「第1」、「第2」或「第一」、「第二」等表述,除非另有提及,否則係用以於指代複數個同類對象時將一個對象與其他對象區分開來,並非用以限定該等對象之順序或重要度。The terms “first,” “second,” “first,” “second,” etc., used in this document are, unless otherwise specified, used to distinguish one object from others when referring to multiple objects of the same kind, and are not used to define the order or importance of such objects.

本文中使用之「A、B及C」、「A、B或C」、「A、B及/或C」、「A、B及C中之至少一者」、「A、B或C中之至少一者」或「A、B及/或C中之至少一者」等表述可指列出之各個項目或列出之項目之所有可能的組合。例如,「A或B中之至少一者」可指(1)至少一個A、(2)至少一個B、(3)至少一個A及至少一個B。The expressions “A, B and C”, “A, B or C”, “A, B and/or C”, “at least one of A, B and C”, “at least one of A, B or C”, or “at least one of A, B and/or C” as used herein may refer to each of the listed items or all possible combinations of the listed items. For example, “at least one of A or B” may refer to (1) at least one A, (2) at least one B, or (3) at least one A and at least one B.

本發明中使用之所謂「基於~」之表述,用於描述包含該表述之語句或文章中描述之對確定、判斷之行為或動作產生影響之一個以上之因素,該表述不排除對確定、判斷之行為或動作產生影響之其他因素。The term "based on" as used in this invention is used to describe one or more factors described in the statement or text containing the term that affect the determination or judgment of an action or behavior. The term does not exclude other factors that affect the determination or judgment of an action or behavior.

本發明中使用之某個構成要素(例如,第1構成要素)「連接」或「連結」於另一構成要素(例如:第2構成要素)之表述,不僅可指上述某個構成要素直接連接或連結於上述另一構成要素,亦可指以新的其他構成要素(例如:第3構成要素)為介質而連接或連結於上述另一構成要素。The expression used in this invention to say that a certain constituent element (e.g., the first constituent element) is "connected" or "linked" to another constituent element (e.g., the second constituent element) may not only mean that the aforementioned constituent element is directly connected or linked to the aforementioned other constituent element, but may also mean that it is connected or linked to the aforementioned other constituent element through a new other constituent element (e.g., the third constituent element).

本發明中使用之表述「以~方式構成(configured to)」,根據上下文,可具有「以~方式設定」、「具有~之能力」、「以~方式變更」、「以~方式製成」、「可進行~」等含義。該表述不限定於「硬體上特別設計」之含義,例如,所謂以實行特定動作之方式構成之處理器可指可藉由執行軟體而實行該特定動作之通用處理器(generic purpose processor)、或藉由程式構造化以實行該特定動作之特殊用途電腦(special purpose computer)。The phrase "configured to" as used in this invention can have meanings such as "configured in a ~ manner," "possessing ~ capabilities," "modified in a ~ manner," "made in a ~ manner," and "capable of ~ operations," depending on the context. This phrase is not limited to the meaning of "specially designed in hardware." For example, a processor configured to perform a specific action can refer to a general-purpose processor that can perform that specific action by executing software, or a special-purpose computer that performs that specific action through programming.

以下,參照附圖,對本發明中記載之各種實施例進行說明。於附圖及附圖說明中,可對相同或實質上等同(substantially equivalent)之構成要素賦予相同之參照符號。又,於以下各種實施例之說明中,可省略對相同或對應之構成要素之重複描述,但這並不意味著該構成要素不包括於該實施例。The various embodiments described in this invention will now be described with reference to the accompanying drawings. In the drawings and their descriptions, identical or substantially equivalent constituent elements may be assigned the same reference numerals. Furthermore, in the following descriptions of the embodiments, repeated descriptions of identical or corresponding constituent elements may be omitted, but this does not mean that the constituent element is not included in that embodiment.

圖1示出了可應用本發明之一實施例之電子裝置之環境。Figure 1 illustrates the environment in which an electronic device of one embodiment of the present invention can be applied.

測試用例可包括或表示為了驗證軟體是否滿足特定設計規格而設計之一系列作業、動作、條件及/或變量。為了執行一個測試用例,可能需要輸入一個以上之測試資料。為了穩定地執行測試用例,一實施例之電子裝置110可對測試資料進行管理。更具體而言,電子裝置110可為產生及儲存一個以上之測試資料之裝置。Test cases may include or represent a series of operations, actions, conditions, and/or variables designed to verify whether the software meets specific design specifications. To execute a test case, more than one set of test data may need to be entered. To ensure stable execution of test cases, an electronic device 110 in one embodiment may manage the test data. More specifically, the electronic device 110 may be a device for generating and storing more than one set of test data.

於一實施例中,電子裝置110可實現為一個以上之計算裝置。例如,電子裝置110之所有功能可於單個計算裝置中實現。又例如,電子裝置110之第1功能可於第1計算裝置中實現且第2功能可於第2計算裝置中實現。作為又一例,可使用分別實現電子裝置110之所有功能或特定功能之複數個計算裝置。如上所述之計算裝置可為桌上型電腦(Desktop Computer)、膝上型電腦(Laptop Computer)、應用程式伺服器(Application Server)、代理伺服器(Proxy Server)或雲端伺服器(Cloud Server)等,但並不侷限於此,具備計算功能之所有種類之裝置均可為計算裝置。In one embodiment, electronic device 110 may be implemented as more than one computing device. For example, all functions of electronic device 110 may be implemented in a single computing device. As another example, a first function of electronic device 110 may be implemented in a first computing device and a second function may be implemented in a second computing device. As yet another example, a plurality of computing devices may be used to implement all or specific functions of electronic device 110. The computing device described above may be a desktop computer, laptop computer, application server, proxy server, or cloud server, but is not limited thereto; all types of devices with computing capabilities may be computing devices.

於一實施例中,用戶終端120可產生測試用例並傳輸至電子裝置110。電子裝置110可將自用戶終端120接收之測試用例儲存於測試用例池(test case pool)。又,電子裝置110可於自用戶終端120接收之測試用例輸入事前製作之測試資料或即時產生之測試資料而執行該測試用例,並且可將該測試用例之執行結果傳輸至用戶終端120。然而,測試用例之產生主體並不限定於用戶終端120,電子裝置110可自用戶終端120接收資訊而產生測試用例。又,電子裝置110即使不自用戶終端120接收資訊亦可自動產生測試用例。In one embodiment, user terminal 120 can generate test cases and transmit them to electronic device 110. Electronic device 110 can store test cases received from user terminal 120 in a test case pool. Furthermore, electronic device 110 can execute test cases received from user terminal 120 by inputting pre-prepared test data or real-time generated test data, and can transmit the execution result of the test cases to user terminal 120. However, the generator of test cases is not limited to user terminal 120; electronic device 110 can generate test cases by receiving information from user terminal 120. Furthermore, the electronic device 110 can automatically generate test cases even without receiving information from the user terminal 120.

於一實施例中,用戶終端120可產生用以執行測試用例之測試資料並傳輸至電子裝置110。電子裝置110可將自用戶終端120接收之測試資料儲存於測試資料池(test data pool)。又,電子裝置110可自用戶終端120接收資訊而產生測試資料,或即使不自用戶終端120接收資訊亦可自動產生測試資料。In one embodiment, user terminal 120 can generate test data for executing test cases and transmit it to electronic device 110. Electronic device 110 can store the test data received from user terminal 120 in a test data pool. Alternatively, electronic device 110 can generate test data by receiving information from user terminal 120, or it can automatically generate test data even without receiving information from user terminal 120.

於一實施例中,電子裝置110與用戶終端120可作為一個裝置進行動作。用戶終端120可作為電子裝置110之全部或一部分構成要素包括於電子裝置110。於此情形時,例如,電子裝置110與用戶終端120之間藉由網路而收發之各種資訊可為於一個裝置內在各構成要素間收發之各種資訊。In one embodiment, the electronic device 110 and the user terminal 120 can operate as a single device. The user terminal 120 can be included as all or part of the constituent elements of the electronic device 110. In this case, for example, the various information exchanged between the electronic device 110 and the user terminal 120 via a network can be various information exchanged between the constituent elements within a single device.

於一實施例中,用戶終端120可實現為可藉由網路而與電子裝置110收發各種資訊之終端。例如,用戶終端120可為電腦、膝上型電腦(laptop)、攜帶用通訊終端(智慧型手機等)、攜帶用多媒體裝置、可穿戴裝置或HMD(Head-Mounted Display,頭戴式顯示器)中之一者。然而,用戶終端120之種類並不限定於此,用戶終端120可為如下之任意裝置:可包括可自用戶接收資訊或向用戶輸出資訊之輸入輸出介面,且藉由網路而與電子裝置110或其他裝置實行通訊。In one embodiment, user terminal 120 may be implemented as a terminal capable of sending and receiving various information with electronic device 110 via a network. For example, user terminal 120 may be one of a computer, laptop, portable communication terminal (smartphone, etc.), portable multimedia device, wearable device, or HMD (Head-Mounted Display). However, the type of user terminal 120 is not limited to these, and user terminal 120 may be any device that includes an input/output interface capable of receiving or sending information to the user, and communicates with electronic device 110 or other devices via a network.

於一實施例中,用戶終端120可向用戶提供自電子裝置110接收之資訊,並且可自用戶接收輸入並傳輸至電子裝置110。具體而言,用戶終端120可自用戶獲得指示呼叫各種頁面之輸入,並對應於獲得之輸入而產生指示呼叫各種頁面之命令。用戶終端120可將指示呼叫各種頁面之命令傳輸至電子裝置110。自用戶獲得之輸入可包括利用滑鼠進行之點擊、利用觸控板或觸控屏進行之點擊、語音辨識、其他電子輸入等各種形態之輸入。用戶終端120可自電子裝置110接收各種頁面,並輸出接收到之各種頁面。In one embodiment, user terminal 120 can provide information received from electronic device 110 to the user, and can receive input from the user and transmit it to electronic device 110. Specifically, user terminal 120 can obtain input from the user instructing them to call various pages, and generate commands instructing them to call various pages in response to the obtained input. User terminal 120 can transmit commands instructing them to call various pages to electronic device 110. Input obtained from the user can include various forms of input such as mouse clicks, touchpad or touchscreen clicks, voice recognition, and other electronic inputs. User terminal 120 can receive various pages from electronic device 110 and output the received pages.

網路可實行將電子裝置110與用戶終端120或其他外部裝置連接之作用。例如,網路可提供連接路徑,以便用戶終端120或其他外部裝置可與電子裝置110連接並與電子裝置110之間收發封包資料。網路例如可實現為如區域網路(Local Area Network,LAN)、廣域網路(Wide Area Network,WAN)、行動無線電通訊網路(Mobile Radio Communication Network)、Wibro(Wireless Broadband Internet,無線寬頻網際網路)等各種類型之有線或無線網路。The network enables the connection of electronic device 110 to user terminal 120 or other external devices. For example, the network provides connection paths so that user terminal 120 or other external devices can connect to electronic device 110 and send and receive packet data with electronic device 110. The network can be implemented as various types of wired or wireless networks, such as Local Area Network (LAN), Wide Area Network (WAN), Mobile Radio Communication Network, and Wibro (Wireless Broadband Internet).

圖2係本發明之一實施例之電子裝置之方塊圖。電子裝置200(例如:圖1之電子裝置110)可產生及儲存一個以上之測試資料。於一實施例中,電子裝置200可包括一個以上之處理器210、一個以上之記憶體220及通訊介面230作為構成要素。於一實施例中,可省略電子裝置200之構成要素中之至少一者,或對電子裝置200追加其他構成要素。於一實施例中,可附加地或替代地(alternatively)整合一部分構成要素而實現,或實現為單個或複數個個體。於本發明中,一個以上之處理器210可表述為處理器210。若於文中未明確地進行不同之表述,則所謂處理器210之表述可指一個或一個以上之處理器之集合。於本發明中,一個以上之記憶體220可表述為記憶體220。若於文中未明確地進行不同之表述,則所謂記憶體220之表述可指一個或一個以上之記憶體之集合。於一實施例中,電子裝置200之內部/外部之構成要素中之至少一部分構成要素藉由匯流排、GPIO(General Purpose Input/Output,通用目的輸入輸出)、SPI(Serial Peripheral Interface,串列周邊介面)或MIPI(Mobile Industry Processor Interface,行動產業處理器介面)等而彼此連接,從而可收發資訊(資料、信號等)。Figure 2 is a block diagram of an electronic device according to one embodiment of the present invention. The electronic device 200 (e.g., the electronic device 110 of Figure 1) can generate and store more than one set of test data. In one embodiment, the electronic device 200 may include one or more processors 210, one or more memory units 220, and a communication interface 230 as constituent elements. In one embodiment, at least one of the constituent elements of the electronic device 200 may be omitted, or other constituent elements may be added to the electronic device 200. In one embodiment, some constituent elements may be additionally or alternatively integrated, or implemented as a single or multiple entities. In the present invention, one or more processors 210 may be referred to as processor 210. Unless otherwise specified in the text, the term "processor 210" may refer to a collection of one or more processors. In this invention, one or more memory units 220 may be referred to as memory 220. Unless otherwise specified in the text, the term "memory unit 220" may refer to a collection of one or more memory units. In one embodiment, at least some of the internal/external components of the electronic device 200 are interconnected via buses, GPIO (General Purpose Input/Output), SPI (Serial Peripheral Interface), or MIPI (Mobile Industry Processor Interface), thereby enabling the transmission and reception of information (data, signals, etc.).

於一實施例中,處理器210可藉由驅動軟體(例如命令、程式等)來控制與處理器210連接之電子裝置200之至少一個構成要素。又,處理器210可實行與本發明相關之各種動作,諸如運算、處理、資料產生、加工等。處理器210可自記憶體220載入資料等,或將資料等儲存於記憶體220。於一實施例中,處理器210可對通訊介面230進行控制,從而可向用戶終端(例如:圖1之用戶終端120)請求各種資訊並自用戶終端接收各種資訊。In one embodiment, processor 210 can control at least one component of electronic device 200 connected to processor 210 via driver software (e.g., commands, programs, etc.). Furthermore, processor 210 can perform various actions related to the present invention, such as calculation, processing, data generation, and manipulation. Processor 210 can load data from memory 220 or store data in memory 220. In one embodiment, processor 210 can control communication interface 230, thereby requesting and receiving various information from a user terminal (e.g., user terminal 120 in FIG. 1).

於一實施例中,記憶體220可儲存各種資訊(資料)。儲存於記憶體220中之資訊係可藉由電子裝置200之至少一個構成要素而獲得、處理或使用之資訊,可包括軟體(例如命令、程式等)。記憶體220可包括揮發性及/或非揮發性記憶體。於本發明中,命令及程式係儲存於記憶體220中之軟體,可包括用以控制電子裝置200之資源之操作系統、應用程式及/或將各種功能提供至應用程式以便應用程式可利用電子裝置200之資源之中間件等。於一實施例中,記憶體220可儲存命令,該命令於藉由處理器210執行時使處理器210實行運算。記憶體220可儲存藉由通訊介面230自資料庫接收之資訊及/或藉由通訊介面230發送至資料庫之資訊之至少一部分。具體而言,記憶體220可儲存藉由處理器210執行之命令。In one embodiment, memory 220 may store various information (data). The information stored in memory 220 is information that can be obtained, processed, or used by at least one component of electronic device 200, and may include software (e.g., commands, programs, etc.). Memory 220 may include volatile and/or non-volatile memory. In this invention, commands and programs are software stored in memory 220, and may include operating systems for controlling the resources of electronic device 200, applications, and/or middleware that provides various functions to applications so that applications can utilize the resources of electronic device 200. In one embodiment, memory 220 may store commands that, when executed by processor 210, cause processor 210 to perform calculations. Memory 220 may store at least a portion of information received from a database via communication interface 230 and/or information sent to a database via communication interface 230. Specifically, memory 220 may store commands executed by processor 210.

於一實施例中,通訊介面(communication interface)230可實行電子裝置200與資料庫或其他外部電子裝置間之無線或有線通訊。例如,通訊介面230可實行基於eMBB(enhanced Mobile Broadband,增強型行動寬頻)、URLLC(Ultra Reliable Low-Latency Communications,超可靠低延遲通訊)、MMTC(Massive Machine Type Communications,大規模機器型通訊)、LTE(Long-Term Evolution,長期演進)、LTE-A(LTE Advance,高級長期演進)、NR(New Radio,新無線)、UMTS(Universal Mobile Telecommunications System,通用行動通訊系統)、GSM(Global System for Mobile communications,全球行動通訊系統)、CDMA(Code Division Multiple Access,碼分多重存取)、WCDMA(Wideband CDMA),WiBro(Wireless Broadband,寬頻碼分多重存取)、WiFi(Wireless Fidelity,無線保真)、藍牙(Bluetooth)、NFC(Near Field Communication,近場通訊)、GPS(Global Positioning System,全球定位系統)或GNSS(Global Navigation Satellite System,全球導航衛星系統)等方式之無線通訊。例如,通訊介面230可實行基於USB(Universal Serial Bus,通用串列匯流排)、HDMI(High Definition Multimedia Interface,高解析度多媒體介面)、RS-232(Recommended Standard-232,建議標準-232)或POTS(Plain Old Telephone Service,簡易舊式電話服務)等方式之有線通訊。於一實施例中,電子裝置200亦可與其他裝置整合而實現。於此情形時,通訊介面230可作為將電子裝置200與該其他裝置連接之連接電路或介面而發揮功能。In one embodiment, the communication interface 230 enables wireless or wired communication between the electronic device 200 and a database or other external electronic device. For example, the communication interface 230 can implement communication based on eMBB (enhanced Mobile Broadband), URLLC (Ultra Reliable Low-Latency Communications), MMTC (Massive Machine Type Communications), LTE (Long-Term Evolution), LTE-A (LTE Advance), NR (New Radio), UMTS (Universal Mobile Telecommunications System), GSM (Global System for Mobile communications), CDMA (Code Division Multiple Access), WCDMA (Wideband CDMA), WiBro (Wireless Broadband), WiFi (Wireless Fidelity), Bluetooth, NFC (Near Field Communication), and GPS (Global Positioning System). Wireless communication can be achieved using methods such as the Global Positioning System (GPS) or GNSS (Global Navigation Satellite System). For example, the communication interface 230 can implement wired communication based on methods such as USB (Universal Serial Bus), HDMI (High Definition Multimedia Interface), RS-232 (Recommended Standard-232), or POTS (Plain Old Telephone Service). In one embodiment, the electronic device 200 can also be integrated with other devices. In this case, the communication interface 230 functions as a connection circuit or interface for connecting the electronic device 200 to the other device.

以下,圖3至圖9中被說明為藉由電子裝置而實行之動作,可理解為藉由圖2中說明之電子裝置200之處理器210而實行。The actions described below in Figures 3 to 9 as being performed by an electronic device can be understood as being performed by the processor 210 of the electronic device 200 described in Figure 2.

圖3係說明本發明之一實施例之電子裝置產生及儲存與對象測試項目相關之至少一個測試資料之過程的流程圖。Figure 3 is a flowchart illustrating the process by which an electronic device of one embodiment of the present invention generates and stores at least one piece of test data related to a test item of the object.

於動作S310中,電子裝置110可判斷儲存複數個測試資料之測試資料池是否滿足針對對象測試項目而預先設定之條件。In action S310, the electronic device 110 can determine whether the test data pool storing multiple test data meets the conditions preset for the test items of the target.

於一實施例中,電子裝置110可於測試資料池內儲存複數個測試資料。電子裝置110可儲存與各種測試項目(test item)相關之測試資料。電子裝置110可將一個測試資料與一個以上之測試項目進行映射。In one embodiment, electronic device 110 can store a plurality of test data in a test data pool. Electronic device 110 can store test data associated with various test items. Electronic device 110 can map one piece of test data to one or more test items.

於本說明書中,測試項目可表示軟體測試過程中之特定場景。例如,可考慮對食物訂購應用程式(以下,稱為「應用程式」)之軟體進行測試之狀況。此時,軟體測試過程可包括與應用程式之登入相關之場景、與藉由應用程式進行之訂購請求相關之場景、及與藉由應用程式進行之商店資訊之輸出相關之場景等。各場景均可表示一個測試項目。In this specification, test items may represent specific scenarios in the software testing process. For example, consider the testing of software for a food ordering application (hereinafter referred to as the "Application"). In this case, the software testing process may include scenarios related to logging into the Application, scenarios related to ordering requests made through the Application, and scenarios related to the output of store information made through the Application. Each scenario can represent a test item.

於軟體測試過程中,需對測試項目所表示之場景進行驗證。為此,可準備用以對測試項目所表示之場景進行驗證之複數個測試用例。具體而言,測試項目可與複數個測試用例對應,複數個測試用例各者可實行對測試項目所表示之場景進行驗證之作用。測試用例可包括一個以上之測試步驟(test step)及一個以上之驗證步驟(assertion step)中之至少一者。又,與測試項目對應之複數個測試用例各者可將與測試項目相關之測試資料用作輸入資料。換言之,與測試項目相關之測試資料可表示可用於執行用以對測試項目所表示之場景進行驗證之測試用例的資料。During software testing, the scenarios represented by the test items need to be verified. For this purpose, multiple test cases can be prepared to verify the scenarios represented by the test items. Specifically, a test item can correspond to multiple test cases, each of which performs the function of verifying the scenarios represented by the test item. A test case can include at least one of one or more test steps and one or more verification steps. Furthermore, each of the multiple test cases corresponding to a test item can use test data related to the test item as input data. In other words, the test data related to the test item represents the data that can be used to execute the test cases used to verify the scenarios represented by the test item.

例如,作為對與應用程式之登入相關之場景進行驗證之測試用例,可包含以顧客賬戶(customer account)登入應用程式之測試用例、以商店賬戶(merchant account)登入之測試用例、以配送員賬戶(delivery account)登入之測試用例。然而,與應用程式之登入相關之場景並不限定於對實行登入之動作進行驗證之測試用例,可包括驗證可於登入之後實行之各種動作之測試用例。該場景可包括如下之測試用例:於以顧客賬戶登入應用程式之後,在主頁(home page)內點擊特定圖標或特定按鈕來確認結果。此時,作為可用於執行對該場景進行驗證之測試用例之測試資料,可包含包括賬戶標識符及賬戶密碼之測試賬戶(test account)(例如:顧客賬戶、商店賬戶、配送員賬戶)。電子裝置110可將各測試資料與表示與應用程式之登入相關之場景之測試項目進行映射並儲存於測試資料池內。For example, test cases for verifying scenarios related to application login may include test cases for logging into the application with a customer account, a merchant account, or a delivery account. However, scenarios related to application login are not limited to test cases that verify the login action; they may include test cases that verify various actions that can be performed after login. This scenario could include test cases such as clicking a specific icon or button on the home page to confirm the result after logging into the application with a customer account. At this time, the test data, which can be used to execute test cases to verify the scenario, may include test accounts (e.g., customer accounts, store accounts, delivery person accounts) including account identifiers and account passwords. The electronic device 110 can map each test data to the test items representing the scenario related to application login and store them in the test data pool.

又例如,作為對與藉由應用程式而進行之訂購請求相關之場景進行驗證之測試用例,可包含商店接受顧客之配送訂單之測試用例、配送員接受分配顧客之配送訂單之測試用例。此時,作為可用於執行驗證該場景之測試用例之測試資料,可包含包括顧客選擇之商店之菜單資訊、顧客之結算資訊及配送位置資訊的測試訂單(test order)。電子裝置110可將各測試資料與表示和藉由應用程式而進行之訂購請求相關之場景之測試項目進行映射並儲存於測試資料池內。於以下說明書中,為了便於說明,將軟體測試過程中之任意之一個場景說明為對象測試項目。For example, test cases used to verify scenarios related to order requests made through the application may include test cases of a store accepting a customer's delivery order and test cases of a delivery person accepting and assigning a customer's delivery order. In this case, the test data used to execute the test cases verifying the scenario may include test orders containing information such as the menu of the store selected by the customer, the customer's payment information, and the delivery location information. The electronic device 110 can map each test data to test items representing scenarios related to order requests made through the application and store them in a test data pool. In the following description, for ease of explanation, any scenario in the software testing process will be described as an object test item.

於動作S320中,於測試資料池不滿足針對對象測試項目而預先設定之條件之情形時,電子裝置110可產生與對象測試項目相關之至少一個測試資料。In action S320, when the test data pool does not meet the conditions pre-set for the test item of the object, the electronic device 110 may generate at least one test data related to the test item of the object.

如上所述,儲存於測試資料池內之測試資料可與一個以上之測試項目進行映射。電子裝置110可識別儲存於測試資料池內之複數個測試資料中與對象測試項目相關之測試資料。電子裝置110可判斷儲存於測試資料池內之與對象測試項目相關之測試資料是否滿足預先設定之條件。As described above, the test data stored in the test data pool can be mapped to one or more test items. The electronic device 110 can identify the test data related to the target test item among the plurality of test data stored in the test data pool. The electronic device 110 can determine whether the test data related to the target test item stored in the test data pool meets the preset conditions.

預先設定之條件可包括測試資料池是否儲存有臨界個數以上之與對象測試項目相關之有效測試資料。此處,臨界個數可為固定之個數,亦可為可變動之個數。又,臨界個數可根據測試項目而不同地確定。例如,針對第1測試項目設定之臨界個數(例如:5個)與針對第2測試項目設定之臨界個數(例如:10個)可不同。然而,預先設定之條件並不限定於此。預先設定之條件亦可包括儲存於測試資料池內之與對象測試項目相關之有效測試資料中包括特定識別資訊之資料是否為固定個數以上。此處,特定識別資訊可表示滿足為了用作與對象測試項目對應之一部分測試用例之輸入資料而要求之條件。例如,於對象測試項目為測試訂單項目之情形時,特定識別資訊可為與「酒訂單」相關之識別資訊。即,一部分測試用例可接收與「酒訂單」相關之測試訂單作為輸入資料,並且可藉由是否包括與「酒訂單」相關之識別資訊而判斷測試訂單是否為與「酒訂單」相關之資料。例如,電子裝置110為了判斷測試資料池是否滿足預先設定之條件,可判斷與測試訂單項目相關之有效測試資料中包括與「酒訂單」相關之識別資訊之資料是否為固定個數以上。Pre-defined conditions may include whether the test data pool stores a critical number or more of valid test data related to the target test item. Here, the critical number can be fixed or variable. Furthermore, the critical number can be determined differently depending on the test item. For example, the critical number set for the first test item (e.g., 5) may differ from the critical number set for the second test item (e.g., 10). However, the pre-defined conditions are not limited to this. Pre-defined conditions may also include whether the number of valid test data related to the target test item stored in the test data pool that includes specific identification information is a fixed number or more. Here, specific identification information may represent conditions required for use as input data for a portion of test cases corresponding to an object test item. For example, when the object test item is a test order item, specific identification information may be identification information related to "wine order". That is, a portion of the test cases may receive test orders related to "wine order" as input data, and whether the test order is data related to "wine order" can be determined by whether it includes identification information related to "wine order". For example, in order to determine whether the test data pool meets the pre-set conditions, electronic device 110 may determine whether the number of valid test data related to the test order item that includes identification information related to "wine order" is a fixed number or more.

測試資料可根據測試資料之狀態(status)而區分為有效測試資料或無效測試資料。關於測試資料之狀態,將於下文進行敍述。Test data can be categorized as valid or invalid based on its status. The status of test data will be described below.

於一實施例中,於測試資料池儲存有臨界個數以上之與對象測試項目相關之有效測試資料之情形時,電子裝置110可不產生與對象測試項目相關之測試資料。相反地,於測試資料池儲存有未達臨界個數之與對象測試項目相關之有效測試資料之情形時,電子裝置110可產生與對象測試項目相關之至少一個測試資料。In one embodiment, when the test data pool contains more than a critical number of valid test data related to the target test item, the electronic device 110 may not generate test data related to the target test item. Conversely, when the test data pool contains fewer than a critical number of valid test data related to the target test item, the electronic device 110 may generate at least one piece of test data related to the target test item.

於動作S330中,電子裝置110可將與對象測試項目相關而產生之至少一個測試資料儲存於測試資料池。此時,電子裝置110可將產生之至少一個測試資料各者與對象測試項目進行映射。In action S330, electronic device 110 may store at least one piece of test data generated in relation to the target test item in a test data pool. At this time, electronic device 110 may map each of the generated test data to the target test item.

圖4係說明本發明之一實施例之電子裝置產生測試資料之過程的圖。於一實施例中,電子裝置110可包括資料管理部410及資料驗證部440。資料管理部410可對複數個測試資料進行管理。資料驗證部440可對資料管理部410管理之複數個測試資料進行驗證。Figure 4 is a diagram illustrating the process of generating test data by an electronic device according to one embodiment of the present invention. In one embodiment, the electronic device 110 may include a data management unit 410 and a data verification unit 440. The data management unit 410 can manage a plurality of test data. The data verification unit 440 can verify the plurality of test data managed by the data management unit 410.

於一實施例中,資料管理部410可包括測試資料池420及資料產生模組430。測試資料池420可儲存複數個測試資料,資料產生模組430可產生與測試項目相關之測試資料。In one embodiment, the data management unit 410 may include a test data pool 420 and a data generation module 430. The test data pool 420 may store a plurality of test data, and the data generation module 430 may generate test data related to the test items.

於一實施例中,資料驗證部440可對資料管理部410中包括之測試資料池420進行驗證。首先,資料驗證部440可訪問資料管理部410。資料驗證部440可判斷測試資料池420是否滿足針對複數個測試項目各者而預先設定之條件。於測試資料池420不滿足針對對象測試項目而預先設定之條件之情形時,資料驗證部440可將不滿足針對對象測試項目而預先設定之條件之資訊傳輸至資料管理部410之資料產生模組430。以下,主要說明針對對象測試項目而預先設定之條件為測試資料池420儲存有臨界個數以上之與對象測試項目相關之有效測試資料的條件。In one embodiment, the data verification unit 440 can verify the test data pool 420 included in the data management unit 410. First, the data verification unit 440 can access the data management unit 410. The data verification unit 440 can determine whether the test data pool 420 meets the pre-set conditions for each of the plurality of test items. If the test data pool 420 does not meet the pre-set conditions for the test items, the data verification unit 440 can transmit the information indicating that the pre-set conditions for the test items are not met to the data generation module 430 of the data management unit 410. The following mainly explains the condition that the test data pool 420 stores more than the critical number of valid test data related to the test items for the target.

於一實施例中,資料驗證部440可判斷測試資料池420是否儲存有臨界個數以上之與對象測試項目相關之有效測試資料。此時,臨界個數可設定為與對象測試項目相關且可同時實行之測試用例之最大個數以上。其原因在於,為了穩定地執行測試用例,同時實行之測試用例應使用不同之測試資料。例如,於多個測試用例輸入一個顧客賬戶作為測試資料並同時執行之情形時,會發生賬戶登入衝突,因此測試用例失敗之可能性較大。與對象測試項目相關之測試用例可表示將與對象測試項目相關之測試資料用作輸入資料之測試用例。換言之,與對象測試項目相關之測試用例可表示驗證對象測試項目所表示之場景之測試用例。In one embodiment, the data validation unit 440 can determine whether the test data pool 420 stores more than a critical number of valid test data related to the target test item. In this case, the critical number can be set to more than the maximum number of test cases related to the target test item that can be executed simultaneously. This is because, for stable execution of test cases, simultaneously executed test cases should use different test data. For example, if multiple test cases input a customer account as test data and execute them simultaneously, an account login conflict will occur, thus increasing the likelihood of test case failure. Test cases related to the target test item can represent test cases that use test data related to the target test item as input data. In other words, test cases related to the object test item can represent test cases that verify the scenario represented by the object test item.

於一實施例中,與對象測試項目相關且可同時實行之測試用例之最大個數可根據對象測試項目所表示之場景之驗證頻率來確定。對象測試項目所表示之場景之驗證頻率,可表示為了於預先設定之時間期間對該場景進行驗證而執行測試用例之次數。於對象測試項目所表示之場景之驗證過程中發生測試用例之執行失敗等軟體測試之錯誤之情形時,資料驗證部440可增加該場景之驗證頻率。於資料驗證部440增加對象測試項目所表示之場景之驗證頻率之情形時,與對象測試項目相關之測試用例可同時實行之最大個數可增加。於此種情形時,由於與對象測試項目相關之測試用例可同時實行之最大個數增加,故而資料驗證部440可增加與對象測試項目對應之臨界個數。相反地,於資料驗證部440減少對象測試項目所表示之場景之驗證頻率之情形時,與對象測試項目相關之測試用例可同時實行之最大個數可減少,並且可減少與對象測試項目對應之臨界個數。此時,資料驗證部440可不同地設定各場景之驗證頻率,故而與各測試項目相關且可同時實行之測試用例之最大個數可根據測試項目而不同地確定。In one embodiment, the maximum number of test cases related to and simultaneously executable in the object test item can be determined based on the verification frequency of the scenario represented by the object test item. The verification frequency of the scenario represented by the object test item can be expressed as the number of times test cases are executed to verify the scenario within a pre-set time period. When software testing errors, such as test case execution failures, occur during the verification process of the scenario represented by the object test item, the data verification unit 440 can increase the verification frequency of that scenario. When the data verification unit 440 increases the verification frequency of the scenario represented by the object test item, the maximum number of test cases related to the object test item that can be executed simultaneously can increase. In this situation, since the maximum number of test cases that can be executed simultaneously related to the target test item increases, the data validation unit 440 can increase the number of critical points corresponding to the target test item. Conversely, when the data validation unit 440 reduces the validation frequency of the scenario represented by the target test item, the maximum number of test cases that can be executed simultaneously related to the target test item can decrease, and the number of critical points corresponding to the target test item can also decrease. In this case, the data validation unit 440 can set different validation frequencies for each scenario, so the maximum number of test cases that can be executed simultaneously related to each test item can be determined differently depending on the test item.

於一實施例中,於測試資料池420未儲存臨界個數以上之與對象測試項目相關之有效測試資料之情形時,資料驗證部440可計算需要產生之與對象測試項目相關之測試資料之個數。資料驗證部440可計算自臨界個數減去儲存於測試資料池420中之與對象測試項目相關之有效測試資料之個數所得的個數。資料驗證部440可將計算出之個數傳輸至資料產生模組430。資料產生模組430可按照計算出之個數產生與對象測試項目相關之測試資料,亦可視需要產生超過接收到之個數之測試資料。例如,參照圖4,可於測試資料池420內儲存與測試賬戶項目421相關之測試資料、與測試訂單項目422相關之測試資料及與測試商店項目423相關之測試資料。資料產生模組430可基於自資料驗證部440接收之資訊,而產生測試賬戶之測試資料(動作431)、或產生測試訂單之測試資料(動作432)、或產生測試商店之測試資料(動作433)。此時,資料產生模組430可使用自動化工具(automation tool)產生測試資料。In one embodiment, when the test data pool 420 does not store more than the critical number of valid test data related to the target test item, the data validation unit 440 can calculate the number of test data related to the target test item that needs to be generated. The data validation unit 440 can calculate the number obtained by subtracting the number of valid test data related to the target test item stored in the test data pool 420 from the critical number. The data validation unit 440 can transmit the calculated number to the data generation module 430. The data generation module 430 can generate test data related to the target test item according to the calculated number, or can generate more test data than the received number as needed. For example, referring to Figure 4, test data related to test account item 421, test order item 422, and test store item 423 can be stored in test data pool 420. Data generation module 430 can generate test data for the test account (action 431), test order test data (action 432), or test store test data (action 433) based on information received from data verification unit 440. In this case, data generation module 430 can use automation tools to generate test data.

於一實施例中,資料驗證部440能夠以預先設定之時間週期判斷測試資料池411是否滿足針對對象測試項目而預先設定之條件。此處,預先設定之時間可為固定之時間,亦可為可變動之時間。例如,預先設定之時間可為5分鐘。又,預先設定之時間可根據測試項目而不同地確定。例如,判斷是否滿足針對第1測試項目而預先設定之條件的時間週期與判斷是否滿足針對第2測試項目而預先設定之條件的時間週期可不同。於一實施例中,針對對象測試項目而預先設定之時間,可根據對象測試項目所表示之場景之驗證頻率而變更。例如,於對象測試項目所表示之場景之驗證頻率增加之情形時,資料驗證部440可減少預先設定之時間。相反地,於對象測試項目所表示之場景之驗證頻率減少之情形時,資料驗證部440可增加預先設定之時間。In one embodiment, the data verification unit 440 can determine whether the test data pool 411 meets the pre-set conditions for the target test items at a pre-defined time cycle. Here, the pre-set time can be a fixed time or a variable time. For example, the pre-set time can be 5 minutes. Furthermore, the pre-set time can be determined differently depending on the test item. For example, the time cycle for determining whether the pre-set conditions for the first test item are met can be different from the time cycle for determining whether the pre-set conditions for the second test item are met. In one embodiment, the preset time for a test item can be changed according to the verification frequency of the scenario represented by the test item. For example, if the verification frequency of the scenario represented by the test item increases, the data verification unit 440 can reduce the preset time. Conversely, if the verification frequency of the scenario represented by the test item decreases, the data verification unit 440 can increase the preset time.

圖5係說明本發明之一實施例之於對於對象測試項目存在複數個類型之測試資料之情形時判斷是否滿足預先設定之條件之方法的圖。Figure 5 illustrates an embodiment of the present invention for determining whether pre-set conditions are met when there are multiple types of test data for a test item.

於一實施例中,與對象測試項目相關之測試資料可存在複數個類型。例如,與測試賬戶項目421相關之測試資料可分類為與顧客賬戶對應之第1類型、與商店賬戶對應之第2類型、與配送員賬戶對應之第3類型中之一者,但並不將與測試賬戶項目421相關之測試資料之類型限定於此。又例如,與測試訂單項目422相關之測試資料可分類為與配送訂單對應之第1類型、與酒訂單對應之第2類型、與獲取訂單對應之第3類型中之一者,但並不將與測試訂單項目422相關之測試資料之類型限定於此。參照圖5,測試資料池420可儲存與測試訂單項目422相關之第1類型之測試訂單531、534、第2類型之測試訂單532、535及第3類型之測試訂單533、536。In one embodiment, test data related to a test item may exist in multiple types. For example, test data related to test account item 421 may be classified into one of the following: type 1 corresponding to a customer account, type 2 corresponding to a store account, and type 3 corresponding to a delivery person account, but the type of test data related to test account item 421 is not limited to this. As another example, test data related to test order item 422 may be classified into one of the following: type 1 corresponding to a delivery order, type 2 corresponding to a wine order, and type 3 corresponding to a purchase order, but the type of test data related to test order item 422 is not limited to this. Referring to Figure 5, the test data pool 420 can store test orders of type 1 531 and 534, test orders of type 2 532 and 535 and test orders of type 3 533 and 536 related to test order item 422.

於一實施例中,資料驗證部440可判斷測試資料池420是否儲存有針對各類型而設定之臨界個數以上之複數個類型中之每個類型之有效測試資料。換言之,於與對象測試項目相關之測試存在複數個類型之情形時,資料驗證部440可對與各類型相關之測試資料進行驗證。具體而言,於測試資料池420未儲存針對特定類型而設定之臨界個數以上之與複數個類型中之特定類型相關之有效測試資料之情形時,資料產生模組430可產生與特定類型相關之至少一個測試資料。此時,針對複數個類型各者而設定之臨界個數可相同,亦可不同。針對複數個類型之第1類型而設定之臨界個數與針對複數個類型之第2類型而設定之臨界個數可不同。例如,可考慮用以對一個顧客藉由應用程式向複數個商店請求訂購進行驗證之一個以上之測試用例。於此種情形時,為了執行一個以上之測試用例,可要求用以供一個顧客登入應用程式之一個第1類型之顧客賬戶及用以供各商店登入應用程式之複數個第2類型之商店賬戶。即,為了執行一個以上之測試用例而要求之第1類型之測試資料之個數與第2類型之測試資料之個數可不同,故而針對各類型而設定之臨界個數可不同。例如,參照圖5,資料驗證部440可單獨地判斷測試資料池420是否儲存有2個、6個、5個以上之與測試訂單項目422相關之第1類型、第2類型、第3類型各者之有效測試資料。In one embodiment, the data validation unit 440 can determine whether the test data pool 420 stores valid test data for each of the multiple types, exceeding the threshold number set for each type. In other words, when there are multiple types of tests related to the test items of the target, the data validation unit 440 can validate the test data related to each type. Specifically, when the test data pool 420 does not store valid test data related to a specific type among the multiple types, exceeding the threshold number set for a specific type, the data generation module 430 can generate at least one test data related to the specific type. In this case, the threshold number set for each of the multiple types may be the same or different. The number of thresholds set for a plurality of Type 1 test cases can differ from the number of thresholds set for a plurality of Type 2 test cases. For example, consider more than one test case used to verify that a customer is placing an order with multiple stores through an application. In this case, to execute more than one test case, one Type 1 customer account for a customer logging into the application and multiple Type 2 store accounts for each store logging into the application are required. That is, the number of Type 1 test data required to execute more than one test case can differ from the number of Type 2 test data, and therefore the number of thresholds set for each type can differ. For example, referring to Figure 5, the data verification unit 440 can independently determine whether the test data pool 420 stores 2, 6, or 5 or more valid test data of type 1, type 2, and type 3 related to the test order item 422.

於一實施例中,於測試資料池420未儲存針對特定類型而設定之臨界個數以上之與對象測試項目相關之複數個類型中之特定類型之有效測試資料之情形時,資料驗證部440可計算自臨界個數減去儲存於測試資料池420中之與特定類型相關之有效測試資料之個數所得的個數。資料驗證部440可將計算出之個數傳輸至資料產生模組430。資料產生模組430可按照計算出之個數產生與對象測試項目之特定類型相關之測試資料。資料產生模組430可將所產生之測試資料與對象測試項目之特定類型進行映射。In one embodiment, when the test data pool 420 does not store valid test data for a specific type among multiple types related to the target test item that exceed the threshold number set for a specific type, the data validation unit 440 can calculate the number obtained by subtracting the number of valid test data related to the specific type stored in the test data pool 420 from the threshold number. The data validation unit 440 can transmit the calculated number to the data generation module 430. The data generation module 430 can generate test data related to the specific type of the target test item according to the calculated number. The data generation module 430 can map the generated test data to the specific type of the target test item.

圖6係說明本發明之一實施例之電子裝置將測試資料分配至測試用例之過程的圖。Figure 6 is a diagram illustrating the process by which an electronic device of one embodiment of the present invention distributes test data to test cases.

於一實施例中,電子裝置110可包括測試執行部650,測試執行部650可包括測試用例池660。可於測試用例池660內儲存複數個測試用例(第1測試用例651、第2測試用例652、第3測試用例653、…)。測試用例可於CI/CD管線作業(continuous integration(持續整合)/continuous delivery(持續交貨) pipeline)、線上巡查(online patrol)、日常運行(daily run)及調試(debug)過程中執行。CI/CD管線作業可表示將軟體開發及發佈之整個過程自動化而持續地彙總代碼之變更事項並發佈之步驟,線上巡查表示對正在即時運營之系統進行監控以早期發現潛在問題或性能下降並予以應對之步驟,日常運行表示定期實行之軟體測試流程,調試表示對軟體中發生之錯誤進行探測及分析並加以修正之步驟。於一實施例中,測試執行部650可執行儲存於測試用例池660中之測試用例,且可儲存測試用例之執行結果。然而,並非將儲存測試用例之裝置限定為電子裝置110,亦可由外部裝置(例如:用戶終端120)儲存測試用例,並且電子裝置110自外部裝置(例如:用戶終端120)接收測試用例來執行。In one embodiment, the electronic device 110 may include a test execution unit 650, which may include a test case pool 660. A plurality of test cases (test case 1 651, test case 2 652, test case 3 653, ...) may be stored in the test case pool 660. The test cases may be executed during CI/CD pipeline operations (continuous integration/continuous delivery pipeline), online patrol, daily run, and debugging processes. CI/CD pipeline operations can represent the steps of automating the entire software development and release process by continuously compiling and releasing code changes; online inspections represent the steps of monitoring systems that are in real-time operation to detect potential problems or performance degradation early and address them; daily operations represent the software testing process performed periodically; and debugging represents the steps of detecting, analyzing, and correcting errors that occur in the software. In one embodiment, the test execution unit 650 can execute test cases stored in the test case pool 660 and can store the execution results of the test cases. However, the device for storing test cases is not limited to electronic device 110. Test cases may also be stored by an external device (e.g., user terminal 120), and electronic device 110 may receive test cases from the external device (e.g., user terminal 120) for execution.

於一實施例中,測試執行部650可隨著與對象測試項目相關之一個測試用例之執行,將儲存於測試資料池420內之與對象測試項目相關之有效測試資料中任意之測試資料分配至一個測試用例。又,執行測試用例之狀態可包括執行測試用例並等待輸入資料之狀態。具體而言,資料管理部410可將標籤(label)映射至儲存於測試資料池420中之複數個測試資料各者。映射至儲存於測試資料池420內之複數個測試資料各者之標籤可不同。例如,資料產生模組430可產生測試資料,且可產生與產生之測試資料對應之標籤並將其映射至測試資料。資料產生模組430可將測試資料映射至標籤並儲存於測試資料池420內。與測試資料映射之標籤可包括與測試資料對應之測試項目、測試項目之類型及狀態。即,於與測試資料對應之測試項目、測試項目之類型或狀態更新之情形時,與測試資料映射之標籤可一併更新。測試執行部650隨著與對象測試項目相關之一個測試用例之執行,將映射至儲存於測試資料池420內之與對象測試項目相關之有效測試資料中任意之測試資料之標籤提供至一個測試用例,藉此,可將任意之測試資料分配至一個測試用例。以下,更詳細地說明對一個測試用例分配任意之測試資料之過程。In one embodiment, the test execution unit 650 can assign any test data from the valid test data related to the target test item stored in the test data pool 420 to a test case as a test case related to the target test item is executed. Furthermore, the execution status of a test case can include executing the test case and waiting for input data. Specifically, the data management unit 410 can map labels to each of the plurality of test data stored in the test data pool 420. The labels mapped to each of the plurality of test data stored in the test data pool 420 can be different. For example, the data generation module 430 can generate test data and can generate labels corresponding to the generated test data and map them to the test data. The data generation module 430 can map test data to tags and store it in the test data pool 420. The tags mapped to the test data can include the test item, type, and status corresponding to the test data. That is, when the test item, type, or status corresponding to the test data is updated, the tags mapped to the test data can be updated simultaneously. As a test case related to an object test item is executed, the test execution unit 650 provides the tags of any test data mapped to the valid test data related to the object test item stored in the test data pool 420 to a test case, thereby allowing any test data to be assigned to a test case. The following section explains in more detail the process of assigning arbitrary test data to a test case.

於一實施例中,測試執行部650可執行一個測試用例(例如:第1測試用例661)。測試執行部650可隨著一個測試用例之執行,分配要輸入至一個測試用例之測試資料。具體而言,測試執行部650可識別與一個測試用例對應之對象測試項目。測試執行部650可向資料管理部410請求自測試資料池420分配與和一個測試用例對應之對象測試項目(例如:測試賬戶項目421)相關之有效測試資料。資料管理部410可選擇儲存於測試資料池420中之與對象測試項目相關之有效測試資料中任意之測試資料,並將與任意之測試資料映射之標籤傳輸至測試執行部650。測試執行部650可對自資料管理部410接收到之標籤進行驗證,從而判斷與標籤映射之任意之測試資料是否適合輸入至一個測試用例。測試執行部650可判斷標籤中包括之測試項目、測試項目之類型及狀態各者是否適合輸入至一個測試用例。例如,測試執行部650可判斷標籤中包括之測試項目是否與和一個測試用例對應之對象測試項目一致、及標籤中包括之狀態是否為有效狀態。測試執行部650於判斷為與標籤映射之任意之測試資料適合輸入至一個測試用例之情形時,可將標籤分配至一個測試用例。In one embodiment, the test execution unit 650 can execute a test case (e.g., test case 661). With the execution of a test case, the test execution unit 650 can allocate test data to be input into that test case. Specifically, the test execution unit 650 can identify the object test item corresponding to a test case. The test execution unit 650 can request from the data management unit 410 to allocate valid test data from the test data pool 420 related to the object test item (e.g., test account item 421) corresponding to a test case. The data management unit 410 can select any test data from the valid test data related to the target test item stored in the test data pool 420, and transmit the tag mapped to the arbitrary test data to the test execution unit 650. The test execution unit 650 can verify the tag received from the data management unit 410 to determine whether the arbitrary test data mapped to the tag is suitable for input into a test case. The test execution unit 650 can determine whether the test item, the type of test item, and the status included in the tag are suitable for input into a test case. For example, the test execution unit 650 can determine whether the test item included in the tag is consistent with the target test item corresponding to a test case, and whether the status included in the tag is a valid status. When the test execution unit 650 determines that any test data mapped to a tag is suitable for input into a test case, it may assign the tag to a test case.

總而言之,測試執行部650於執行一個測試用例後,可將自資料管理部410接收之標籤分配至一個測試用例,使用標籤自資料管理部410接收映射至標籤之任意之測試資料,並將任意之測試資料輸入至一個測試用例。測試執行部650可儲存一個測試用例之執行結果。於本說明書中,主要說明向一個測試用例分配一個測試資料者,但並不限定於此,可向一個測試用例分配複數個測試資料。例如,特定測試用例可對複數個場景進行驗證。於特定測試用例對複數個頁面之動作進行驗證之情形時,可對複數個場景進行驗證。於此種情形時,特定測試用例為了對複數個場景各者進行驗證,需輸入與表示各場景之測試項目相關之測試資料方可進行。即,可向特定測試用例分配複數個測試資料,與分配之複數個測試資料對應之測試項目可不同。In summary, after executing a test case, the test execution unit 650 can assign tags received from the data management unit 410 to a test case, use the tags to receive arbitrary test data mapped to the tags from the data management unit 410, and input the arbitrary test data into a test case. The test execution unit 650 can store the execution result of a test case. This specification mainly describes assigning one piece of test data to a test case, but it is not limited to this; multiple pieces of test data can be assigned to a test case. For example, a specific test case can verify multiple scenarios. When a specific test case verifies the actions of multiple pages, multiple scenarios can be verified. In this situation, in order to verify each of the multiple scenarios, a specific test case needs to input test data related to the test items representing each scenario. That is, multiple test data can be assigned to a specific test case, and the test items corresponding to the multiple assigned test data may be different.

進而,一個測試用例亦可指示要接收之對象測試項目之特定類型。例如,於一個測試用例指示對象測試項目之特定類型之情形時,測試執行部650亦可隨著一個測試用例之執行,向資料管理部410請求分配與一個測試用例所指示之對象測試項目之特定類型相關之有效測試資料。Furthermore, a test case can also specify the specific type of the object test item to be received. For example, when a test case specifies the specific type of the object test item, the test execution unit 650 can also request the data management unit 410 to allocate valid test data related to the specific type of the object test item specified by the test case as the test case is executed.

圖7係說明本發明之一實施例之電子裝置激活測試資料之鎖定功能之過程的圖。Figure 7 is a diagram illustrating the process of locking the test data activation function of an electronic device according to one embodiment of the present invention.

於一實施例中,於使用分配之測試資料執行一個測試用例之期間,電子裝置110可激活該測試資料之鎖定功能。此處,激活測試資料之鎖定功能,可表示終止將該測試資料分配至除一個測試用例以外之其他測試用例。換言之,當激活測試資料之鎖定功能時,可終止向其他測試用例之分配直至鎖定功能被解除前為止。即,為了穩定地執行測試用例,同時實行之測試用例必須使用不同之測試資料,故而可激活對測試資料之鎖定功能。具體而言,資料管理部410可於將與測試資料映射之標籤傳輸至測試執行部650之時點、或將該測試資料提供至測試執行部650之時點,激活該測試資料之鎖定功能。In one embodiment, during the execution of a test case using allocated test data, the electronic device 110 may activate a locking function for the test data. Here, activating the locking function for test data indicates the termination of the allocation of the test data to any test case other than the one assigned to the test case. In other words, when the locking function for test data is activated, allocation to other test cases is terminated until the locking function is released. That is, for stable execution of test cases, simultaneously executed test cases must use different test data, hence the activation of the locking function for the test data. Specifically, the data management unit 410 can activate the locking function of the test data when the tag mapped to the test data is transmitted to the test execution unit 650, or when the test data is provided to the test execution unit 650.

於一實施例中,於分配要輸入至一個測試用例之測試資料之情形時,電子裝置110可追加確認測試資料之鎖定功能是否被激活。具體而言,電子裝置110可識別與一個測試用例對應之對象測試項目相關之有效且未激活鎖定功能之測試資料,並將所識別之測試資料中任意之測試資料分配至一個測試用例。例如,參照圖7,電子裝置110可執行測試用例711,並且可分配與測試用例711所指示之測試訂單項目422之第1類型相關之呈有效狀態且未激活鎖定功能的測試訂單531。電子裝置110可於測試用例711輸入測試訂單531,且可於執行測試用例711之期間激活測試訂單531之鎖定功能。又例如,電子裝置110可隨著測試用例712之執行,分配測試訂單536。電子裝置110可於執行測試用例712之期間,激活測試訂單536之鎖定功能。In one embodiment, when assigning test data to be input into a test case, the electronic device 110 may additionally verify whether the locking function of the test data is activated. Specifically, the electronic device 110 may identify valid test data with the locking function not activated that is associated with the object test item corresponding to a test case, and assign any of the identified test data to a test case. For example, referring to FIG7, the electronic device 110 may execute test case 711 and may assign a valid test order 531 with the locking function not activated that is associated with the first type of test order item 422 indicated by test case 711. Electronic device 110 can input test order 531 in test case 711 and can activate the locking function of test order 531 during the execution of test case 711. Alternatively, electronic device 110 can assign test order 536 as test case 712 is executed. Electronic device 110 can activate the locking function of test order 536 during the execution of test case 712.

於一實施例中,於一個測試用例之執行結束之情形時,電子裝置110可解除對該測試資料之鎖定功能。測試用例之執行結束之情形,不僅包括測試用例之執行成功或失敗之情形,亦包括測試用例之執行中途發生特定狀況(例如:錯誤)而導致測試用例之執行中斷之情形。具體而言,於一個測試用例之執行結束後,測試執行部650可將一個測試用例之結束之資訊傳輸至測試管理部410。測試管理部410可於自測試執行部650接收該資訊之時點,解除該測試資料之鎖定功能。例如,參照圖7,於測試用例711及測試用例712各者之執行結束之情形時,電子裝置110可單獨地解除對測試訂單531及測試訂單536之鎖定功能。In one embodiment, when the execution of a test case ends, the electronic device 110 can unlock the test data. The end of test case execution includes not only successful or failed execution, but also interruption caused by a specific condition (e.g., an error) during execution. Specifically, after the execution of a test case ends, the test execution unit 650 can transmit information indicating the end of a test case to the test management unit 410. The test management unit 410 can unlock the test data upon receiving this information from the test execution unit 650. For example, referring to Figure 7, when the execution of test case 711 and test case 712 has ended, the electronic device 110 can independently unlock the locking function of test order 531 and test order 536.

圖8至圖9係說明本發明之一實施例之電子裝置確定測試資料之狀態之過程的圖。Figures 8 and 9 illustrate the process by which an electronic device of one embodiment of the present invention determines the state of test data.

於一實施例中,與測試項目相關之測試資料可為不可重複使用之資料,亦可為可重複使用之資料。不可重複使用之測試資料可表示如測試訂單般,於一個測試用例中使用後無需在其他測試用例中使用之資料。例如,於一個測試用例中使用後無需在其他測試用例中使用之資料可表示如下之情形:於在其他測試用例中使用該測試資料之情形時,無法根據先前測試用例之執行結果獲得追加資訊。相反地,可重複使用之資料可表示如下之資料:如測試賬戶般,於一個測試用例中使用後可於其他測試用例中使用並且可根據其他測試用例之執行結果獲得追加資訊。In one embodiment, test data related to a test item can be either non-reusable or reusable. Non-reusable test data can represent data, such as a test order, that is used in one test case and does not need to be used in other test cases. For example, data that is used in one test case and does not need to be used in other test cases can represent situations where, when the test data is used in other test cases, additional information cannot be obtained based on the execution results of the previous test cases. Conversely, reusable data can represent data such as a test account that, after being used in one test case, can be used in other test cases and additional information can be obtained based on the execution results of the other test cases.

於一實施例中,與複數個測試項目中之一部分測試項目相關之測試資料可為不可重複使用之資料,與其餘測試項目相關之測試資料可為可重複使用之資料。即,判斷測試資料是否為可重複使用之資料之基準,能夠基於該測試資料所屬之測試項目來確定。In one embodiment, test data related to a portion of the test items among a plurality of test items may be non-reusable, while test data related to the remaining test items may be reusable. That is, the criterion for determining whether test data is reusable can be determined based on the test item to which the test data belongs.

於圖8中,主要對與對象測試項目相關之測試資料為不可重複使用之資料之情形進行說明。於一實施例中,電子裝置110可將與對象測試項目相關之測試資料(例如:測試訂單)判斷為不可重複使用之資料。電子裝置110可根據與對象測試項目對應之測試用例之執行是否成功而確定分配至該測試用例之測試資料之有效狀態。Figure 8 primarily illustrates the situation where test data related to an object test item is non-reusable. In one embodiment, electronic device 110 can determine that test data (e.g., test orders) related to an object test item is non-reusable. Electronic device 110 can determine the validity status of test data allocated to a test case based on whether the execution of the test case corresponding to the object test item is successful.

於一實施例中,於與對象測試項目對應之測試用例之執行成功後,電子裝置110可將分配至測試用例之測試資料之狀態自有效狀態變更為無效狀態。於測試用例之執行結束後,電子裝置110可將測試資料之狀態自有效狀態變更為無效狀態。具體而言,測試執行部650可將測試用例之執行結束之資訊連同測試用例之執行結果一併傳輸至測試管理部410。測試管理部410可於自測試執行部650接收到該資訊之時點變更該測試資料之狀態。此處,測試用例之執行成功可表示於測試用例輸入測試資料而獲得之執行結果與對測試用例之預測結果相同。例如,參照圖8,電子裝置110可執行測試用例711,並向測試用例711分配與測試訂單項目422之第1類型相關之測試訂單831。於測試用例711之執行成功後,電子裝置110可將測試訂單831之狀態自有效狀態(例如:第1狀態)變更為無效狀態(例如:第2狀態)。於此種情形時,於測試資料池420內測試訂單項目422之第1類型之有效測試資料減少。資料驗證部440以預先設定之時間週期判斷測試資料池420內是否儲存有特定個數以上之測試訂單項目422之第1類型之有效測試資料,藉此,資料產生模組430可重新產生測試訂單項目422之第1類型之測試訂單並儲存於測試資料池420內。In one embodiment, after the successful execution of a test case corresponding to an object test item, the electronic device 110 can change the status of the test data assigned to the test case from a valid state to an invalid state. After the execution of the test case ends, the electronic device 110 can change the status of the test data from a valid state to an invalid state. Specifically, the test execution unit 650 can transmit the information indicating the completion of test case execution, along with the execution result of the test case, to the test management unit 410. The test management unit 410 can change the status of the test data at the moment the test execution unit 650 receives this information. Here, successful execution of a test case can mean that the execution result obtained by inputting test data into the test case is the same as the predicted result for the test case. For example, referring to Figure 8, the electronic device 110 can execute test case 711 and assign test order 831 associated with the first type of test order item 422 to test case 711. After successful execution of test case 711, the electronic device 110 can change the status of test order 831 from a valid state (e.g., the first state) to an invalid state (e.g., the second state). In this case, the valid test data of the first type of test order item 422 in the test data pool 420 decreases. The data verification unit 440 determines at a pre-set time cycle whether the test data pool 420 contains a specific number or more of valid test data of type 1 of test order item 422. In this way, the data generation module 430 can regenerate test orders of type 1 of test order item 422 and store them in the test data pool 420.

於一實施例中,於與對象測試項目對應之測試用例之執行失敗後,電子裝置110可將分配至測試用例之測試資料之狀態保持為有效狀態。進而,即使與對象測試項目對應之測試用例之執行中斷,電子裝置110亦可將分配至測試用例之測試資料之狀態保持為有效狀態。測試用例可包括一個以上之連續之測試步驟。例如,於在執行一個以上之測試步驟之期間特定測試步驟失敗之情形時,測試用例會結束,或者亦可執行所有測試步驟直至結束。於此兩種情形時,電子裝置110可判斷測試用例之執行失敗,於測試用例之執行結束後,可將輸入至測試用例之測試資料之狀態保持為有效狀態。例如,參照圖8,電子裝置110可執行測試用例712,且可向測試用例712分配與測試訂單項目422之第3類型相關之測試訂單536。測試用例712可能會在輸入測試訂單536並執行之中途中斷、或執行失敗。於測試用例712之執行失敗或中斷後,電子裝置110可將測試訂單536之狀態保持為有效狀態(例如:第1狀態)。In one embodiment, after the execution of a test case corresponding to an object test item fails, the electronic device 110 can maintain the status of the test data assigned to the test case as valid. Furthermore, even if the execution of a test case corresponding to an object test item is interrupted, the electronic device 110 can still maintain the status of the test data assigned to the test case as valid. A test case may include more than one consecutive test step. For example, if a specific test step fails during the execution of more than one test step, the test case will terminate, or all test steps may be executed until termination. In both cases, the electronic device 110 can determine that the test case execution has failed. After the test case execution ends, the device can maintain the status of the test data input into the test case as valid. For example, referring to Figure 8, the electronic device 110 can execute test case 712 and assign test order 536 related to the third type of test order item 422 to test case 712. Test case 712 may be interrupted or fail to execute during the input and execution of test order 536. After the execution of test case 712 fails or is interrupted, the electronic device 110 can maintain the status of test order 536 as valid (e.g., the first status).

於圖9中,主要對與對象測試項目相關之測試資料為可重複使用之資料之情形進行說明。於一實施例中,電子裝置110可將與對象測試項目相關之測試資料(例如:測試賬戶)判斷為可重複使用之資料。電子裝置110可與和對象測試項目對應之測試用例之執行結果無關地確定分配至該測試用例之測試資料之有效狀態。Figure 9 primarily illustrates the case where test data related to an object test item is reusable. In one embodiment, electronic device 110 can determine that test data (e.g., test accounts) related to an object test item is reusable. Electronic device 110 can determine the validity status of test data assigned to a test case, independent of the execution result of the test case corresponding to the object test item.

於一實施例中,電子裝置110可與和對象測試項目對應之測試用例之執行結果無關地將分配至測試用例之測試資料之狀態保持為有效狀態。例如,參照圖9,電子裝置110可執行測試用例911,且可向測試用例911分配與測試賬戶項目421之第1類型相關之測試賬戶931。電子裝置110可與測試用例911之執行結果無關地將測試賬戶931之狀態保持為有效狀態(例如:第1狀態)。換言之,電子裝置110可隨著測試用例911之執行,調整測試賬戶931之鎖定功能,但亦可不調整測試賬戶931之狀態。資料產生模組430可於與測試賬戶項目421對應之測試用例之執行頻率變高時,重新產生測試賬戶,以代替根據是否執行各測試用例(例如:測試用例911、測試用例912)而每次重新產生與測試賬戶項目421相關之測試賬戶。又,於測試產生模組430在儲存於測試資料池420內之與測試賬戶項目421相關之測試資料中發現錯誤、或測試資料中不包括為了執行測試用例而要求之資訊之情形時,可藉由資料管理部410而於測試資料池420內刪除該測試資料。因此,測試產生模組430亦可重新產生測試賬戶。In one embodiment, the electronic device 110 can maintain the state of the test data assigned to the test case in a valid state regardless of the execution result of the test case corresponding to the test item. For example, referring to FIG9, the electronic device 110 can execute test case 911 and can assign test account 931 associated with the first type of test account item 421 to test case 911. The electronic device 110 can maintain the state of test account 931 in a valid state (e.g., the first state) regardless of the execution result of test case 911. In other words, the electronic device 110 can adjust the locking function of test account 931 as test case 911 is executed, but can also choose not to adjust the state of test account 931. The data generation module 430 can regenerate the test account when the execution frequency of the test cases corresponding to the test account item 421 becomes high, instead of regenerating the test account related to the test account item 421 each time based on whether each test case (e.g., test case 911, test case 912) is executed. Furthermore, if the test generation module 430 finds errors in the test data related to the test account item 421 stored in the test data pool 420, or if the test data does not include the information required to execute the test cases, the data management unit 410 can delete the test data from the test data pool 420. Therefore, the test generation module 430 can also regenerate the test account.

於以上實施例中,說明了資料驗證部440判斷測試資料池420是否滿足針對測試項目而預先設定之條件,藉此資料產生模組430事先產生測試資料的過程,但產生測試資料之過程並不限定於以上實施例。於一實施例中,資料產生模組430亦可即時(real time)產生測試資料。具體而言,測試執行部650可執行儲存於測試用例池660內之測試用例,且可向資料管理部410請求分配要輸入至測試用例之測試資料。此時,於測試資料池420內可能不存在可執行該測試用例之有效測試資料。例如,測試資料池420可能未儲存與該測試用例對應之測試項目相關之測試資料,或即使測試資料池420儲存有與該測試用例對應之測試項目相關之測試資料,亦可能不存在包括該測試用例所要求之資料之測試資料。於此種情形時,資料產生模組430可即時產生可執行該測試用例之測試資料。The above embodiments illustrate the process by which the data validation unit 440 determines whether the test data pool 420 meets the pre-set conditions for the test item, thereby enabling the data generation module 430 to generate test data in advance. However, the process of generating test data is not limited to the above embodiments. In one embodiment, the data generation module 430 can also generate test data in real time. Specifically, the test execution unit 650 can execute test cases stored in the test case pool 660 and can request the data management unit 410 to allocate test data to be input into the test cases. At this time, there may not be valid test data in the test data pool 420 that can be used to execute the test case. For example, test data pool 420 may not store test data related to the test item corresponding to the test case, or even if test data pool 420 stores test data related to the test item corresponding to the test case, it may not contain test data including the data required by the test case. In this case, data generation module 430 can generate test data that can execute the test case in real time.

又,於以上實施例中,說明了資料產生模組430在無外部(例如:用戶)之介入的情況下產生測試資料,但並不限定於此,亦可藉由外部之介入而產生測試資料。於一實施例中,於測試資料池不滿足針對對象測試項目而預先設定之條件之情形時,電子裝置110可產生表示不滿足預先設定之條件之資訊。電子裝置110可將此種資訊傳輸至用戶終端120。例如,電子裝置110可將該資訊連同警報消息(alarm message)一併傳輸至用戶終端120。用戶終端120可基於自電子裝置110接收到之資訊,為了滿足針對對象測試項目而預先設定之條件,可將測試資料之產生命令傳輸至電子裝置110。用戶終端120可視情況將要產生之測試資料之詳情資訊(例如:對象測試項目之類型)傳輸至電子裝置110。電子裝置110可根據用戶終端120之命令,利用資料產生模組430產生與對象測試項目相關之測試資料。Furthermore, the above embodiments illustrate that the data generation module 430 generates test data without external (e.g., user) intervention, but it is not limited to this; test data can also be generated with external intervention. In one embodiment, when the test data pool does not meet the pre-set conditions for the test items of the target object, the electronic device 110 can generate a message indicating that the pre-set conditions are not met. The electronic device 110 can transmit this message to the user terminal 120. For example, the electronic device 110 can transmit this message together with an alarm message to the user terminal 120. User terminal 120 can transmit a test data generation command to electronic device 110 based on information received from electronic device 110 in order to meet pre-set conditions for the target test item. User terminal 120 can also transmit detailed information about the test data to be generated (e.g., the type of target test item) to electronic device 110 as needed. Electronic device 110 can then use data generation module 430 to generate test data related to the target test item according to the command from user terminal 120.

於一實施例中,資料產生模組430可基於各種參數而產生與對象測試項目相關之至少一個測試資料各者。更具體而言,資料產生模組430可基於與自動化工具內嵌入(embedding)之對象測試項目對應之一個以上之參數及由用戶對對象測試項目輸入之一個以上之參數中之至少一者,產生測試資料。資料產生模組430可考慮針對對象測試項目之特性、需要之驗證場景、交界值分析(boundary value analysis)、錯誤用例(error case)等細緻地設定之所有條件而產生測試資料。因此,資料產生模組430可提供豐富之各種測試資料,以便能夠模擬於實際運營環境中可能發生之各種狀況並進行驗證。此種功能可大幅提高軟體測試流程之可靠性,且可於事前發現並解決潛在缺陷時發揮重要之作用。In one embodiment, the data generation module 430 can generate at least one set of test data related to the target test item based on various parameters. More specifically, the data generation module 430 can generate test data based on at least one of one or more parameters corresponding to the target test item embedded in the automation tool and one or more parameters input by the user for the target test item. The data generation module 430 can generate test data considering all finely configured conditions such as the characteristics of the target test item, the required verification scenarios, boundary value analysis, and error cases. Therefore, the data generation module 430 can provide a wealth of test data to simulate and verify various situations that may occur in the actual operating environment. This functionality can significantly improve the reliability of the software testing process and play an important role in identifying and resolving potential defects in advance.

本發明之方法可為藉由電腦實現之方法。電腦例如可包括可實行處理之電子裝置。於本發明中,按照特定之順序示出並說明了該方法之各步驟,但各步驟除依序實行以外,亦能夠以可根據本發明任意組合之順序實行。於一實施例中,可並行地、重複地或啟發地實行至少一部分步驟。本發明不排除對該方法施加變化或修正。於一實施例中,可省略至少一部分步驟,或追加其他步驟。The method of this invention can be implemented by a computer. The computer may include, for example, an electronic device capable of processing. In this invention, the steps of the method are shown and described in a specific order, but the steps can be performed not only sequentially, but also in any combination according to this invention. In one embodiment, at least some steps may be performed in parallel, repeatedly, or inspiredly. This invention does not preclude variations or modifications to the method. In one embodiment, at least some steps may be omitted, or other steps may be added.

本發明之各種實施例可實現為記錄於設備(machine)可讀記錄媒體(machine-readable recording medium)之軟體。軟體可為用以實現上述本發明之各種實施例之軟體。本發明所屬之技術領域內之程式設計師可根據本發明之各種實施例推測出軟體。例如,軟體可為設備可讀命令(例如:代碼或碼段)或程式。設備係可根據自記錄媒體呼叫之命令進行動作之裝置,例如可為電腦。於一實施例中,設備可為本發明之實施例之電子裝置。於一實施例中,設備之處理器執行呼叫之命令,從而可使設備之構成要素實行與該等命令對應之功能。於一實施例中,處理器可為本發明之實施例之處理器。記錄媒體可指可由設備讀取且儲存資料之所有種類之記錄媒體(recording medium)。記錄媒體例如可包括ROM(Read Only Memory,唯讀記憶體)、RAM(Random-Access Memory,隨機存取記憶體)、CD-ROM(Compact Disc Read-Only Memory,光碟唯讀記憶體)、磁帶、軟碟、光學資料儲存裝置等。於一實施例中,記錄媒體可為記憶體。於一實施例中,記錄媒體亦能夠以分散於與網路連接之電腦系統等之形態實現。軟體可分散儲存於電腦系統等來執行。記錄媒體可為非暫時性(non-transitory)記錄媒體。非暫時性記錄媒體係指無論資料是半永久儲存還是暫時性地儲存均實際存在之媒體(tangible medium),且不包括暫時(transitory)傳播之信號(signal)。Various embodiments of the present invention can be implemented as software recorded on a machine-readable recording medium. The software can be software used to implement the various embodiments of the present invention described above. Programmers in the art to which the present invention pertains can infer the software based on the various embodiments of the present invention. For example, the software can be machine-readable commands (e.g., code or code segments) or programs. A device is an apparatus capable of performing actions according to commands invoked from a recording medium, such as a computer. In one embodiment, the device can be an electronic device of an embodiment of the present invention. In one embodiment, the processor of the device executes the invoked commands, thereby enabling the components of the device to perform functions corresponding to those commands. In one embodiment, the processor may be the processor of the embodiment of the present invention. Recording medium may refer to all types of recording medium that can be read and stored by a device. Recording medium may include, for example, ROM (Read Only Memory), RAM (Random-Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, optical data storage device, etc. In one embodiment, the recording medium may be memory. In one embodiment, the recording medium may also be implemented in a form distributed across computer systems connected to a network. Software may be distributed and executed within computer systems, etc. Recording media can be non-transitory. Non-transitory recording media refers to media that actually exist regardless of whether the data is stored semi-permanently or temporarily, and does not include transiently transmitted signals.

以上,根據各種實施例對本發明之技術思想進行了說明,但本發明之技術思想包括能夠於本發明所屬之技術領域內具有常識者可理解之範圍內實現之各種置換、變化及變更。又,應理解此種置換、變化及變更可包括於隨附之發明申請專利範圍內。本發明之實施例可彼此組合。各實施例可根據情形之數量而進行各種組合,組合而成之實施例亦屬於本發明之範圍內。The technical concept of this invention has been described above based on various embodiments. However, the technical concept of this invention includes various substitutions, variations, and modifications that can be implemented within the scope understandable to a person of ordinary skill in the art to which this invention pertains. Furthermore, it should be understood that such substitutions, variations, and modifications may be included within the scope of the appended invention claims. The embodiments of this invention can be combined with each other. The embodiments can be combined in various ways depending on the number of cases, and the combined embodiments also fall within the scope of this invention.

110:電子裝置 120:用戶終端 200:電子裝置 210:處理器 220:記憶體 230:通訊介面 410:資料管理部 420:測試資料池 421:測試賬戶項目 422:測試訂單項目 423:測試商店項目 430:資料產生模組 431:動作 432:動作 433:動作 440:資料驗證部 531:(第1類型之)測試訂單 532:(第2類型之)測試訂單 533:(第3類型之)測試訂單 534:(第1類型之)測試訂單 535:(第2類型之)測試訂單 536:(第3類型之)測試訂單 650:測試執行部 660:測試用例池 661:第1測試用例 662:第2測試用例 663:第3測試用例 711:測試用例 712:測試用例 831:測試訂單 911:測試用例 912:測試用例 931:測試賬戶 S310:動作 S320:動作 S330:動作 110: Electronic Device 120: User Terminal 200: Electronic Device 210: Processor 220: Memory 230: Communication Interface 410: Data Management Department 420: Test Data Pool 421: Test Account Item 422: Test Order Item 423: Test Store Item 430: Data Generation Module 431: Action 432: Action 433: Action 440: Data Verification Department 531: (Type 1) Test Order 532: (Type 2) Test Order 533: (Type 3) Test Order 534: (Type 1) Test Order 535: (Type 2) Test Order 536: (Type 3) Test Order 650: Test Execution Department 660: Test Case Pool 661: Test Case 1 662: Test Case 2 663: Test Case 3 711: Test Case 712: Test Case 831: Test Order 911: Test Case 912: Test Case 931: Test Account S310: Action S320: Action S330: Action

圖1示出了可應用本發明之一實施例之電子裝置之環境。 圖2係本發明之一實施例之電子裝置之方塊圖。 圖3係說明本發明之一實施例之電子裝置產生及儲存與對象測試項目相關之至少一個測試用例之過程的流程圖。 圖4係說明本發明之一實施例之電子裝置產生測試資料之過程的圖。 圖5係說明本發明之一實施例之於對於對象測試項目存在複數個類型之測試資料之情形時判斷是否滿足預先設定之條件之方法的圖。 圖6係說明本發明之一實施例之電子裝置將測試資料分配至測試用例之過程的圖。 圖7係說明本發明之一實施例之電子裝置激活測試資料之鎖定功能之過程的圖。 圖8至圖9係說明本發明之一實施例之電子裝置確定測試資料之狀態之過程的圖。 Figure 1 illustrates the environment in which an electronic device according to an embodiment of the present invention can be applied. Figure 2 is a block diagram of the electronic device according to an embodiment of the present invention. Figure 3 is a flowchart illustrating the process by which the electronic device according to an embodiment of the present invention generates and stores at least one test case related to an object test item. Figure 4 is a diagram illustrating the process by which the electronic device according to an embodiment of the present invention generates test data. Figure 5 is a diagram illustrating a method according to an embodiment of the present invention for determining whether pre-set conditions are met when there are multiple types of test data for an object test item. Figure 6 is a diagram illustrating the process by which the electronic device according to an embodiment of the present invention allocates test data to test cases. Figure 7 illustrates the process of activating the test data locking function of an electronic device according to an embodiment of the present invention. Figures 8 and 9 illustrate the process of determining the state of test data using an electronic device according to an embodiment of the present invention.

S310:動作 S310: Action

S320:動作 S320:Action

S330:動作 S330: Action

Claims (16)

一種用於管理測試資料之方法,其係藉由電子裝置而實行者,其包括如下步驟: 判斷儲存複數個測試資料之測試資料池是否滿足針對對象測試項目而預先設定之條件; 於上述測試資料池不滿足上述預先設定之條件之情形時,產生與上述對象測試項目相關之至少一個測試資料; 將產生之上述至少一個測試資料儲存於上述測試資料池; 將標籤映射至儲存於上述測試資料池中之上述複數個測試資料各者;且 隨著與上述對象測試項目相關之一個測試用例之執行,將儲存於上述測試資料池中之與上述對象測試項目相關之有效測試資料中任意之測試資料分配至上述一個測試用例, 其中上述分配包含藉由將映射至上述任意之測試資料之標籤提供至上述一個測試用例而將上述任意之測試資料分配至上述一個測試用例。A method for managing test data, implemented via an electronic device, includes the following steps: determining whether a test data pool storing a plurality of test data meets pre-set conditions for a test item of a target; when the test data pool does not meet the pre-set conditions, generating at least one test data related to the test item of the target; storing the generated at least one test data in the test data pool; mapping tags to each of the plurality of test data stored in the test data pool; and As a test case related to the aforementioned object test item is executed, any test data from the valid test data related to the aforementioned object test item stored in the aforementioned test data pool is allocated to the aforementioned test case, wherein the allocation includes allocating the aforementioned test data to the aforementioned test case by providing a tag mapped to the aforementioned arbitrary test data to the aforementioned test case. 如請求項1之方法,其中上述預先設定之條件包括: 上述測試資料池是否儲存有臨界個數以上之與上述對象測試項目相關之有效測試資料。As in Request 1, the aforementioned pre-set conditions include: whether the aforementioned test data pool stores more than a critical number of valid test data related to the aforementioned object test items. 如請求項2之方法,其中上述臨界個數設定為與上述對象測試項目相關且同時實行之測試用例之最大個數以上。As in Request 2, the critical number is set to be greater than or equal to the maximum number of test cases that are related to and executed simultaneously with the above-mentioned object test items. 如請求項2之方法,其中上述產生之步驟包括如下步驟: 於上述測試資料池未儲存上述臨界個數以上之與上述對象測試項目相關之有效測試資料之情形時,按照自上述臨界個數減去儲存於上述測試資料池中之與上述對象測試項目相關之有效測試資料之個數所得之數,產生與上述對象測試項目相關之測試資料。As in claim 2, the above-mentioned generation steps include the following steps: When the above-mentioned test data pool does not store more than the above-mentioned critical number of valid test data related to the above-mentioned object test item, generate test data related to the above-mentioned object test item according to the number obtained by subtracting the number of valid test data related to the above-mentioned object test item stored in the above-mentioned test data pool from the above-mentioned critical number. 如請求項1之方法,其中上述判斷之步驟包括如下步驟: 按照預先設定之時間週期判斷上述測試資料池是否滿足針對上述對象測試項目之上述預先設定之條件。As in Request 1, the above-mentioned determination steps include the following steps: Determine whether the above-mentioned test data pool meets the above-mentioned pre-set conditions for the above-mentioned test items according to a pre-set time cycle. 如請求項1之方法,其中上述判斷之步驟包括如下步驟: 於與上述對象測試項目相關之測試資料存在複數個類型之情形時,判斷上述測試資料池是否儲存有針對上述各類型而設定之臨界個數以上之上述複數個類型中之每個類型之有效測試資料。As in the method of Request 1, the above-mentioned determination steps include the following steps: When there are multiple types of test data related to the above-mentioned test items, determine whether the above-mentioned test data pool stores valid test data for each of the multiple types, which is more than the number of critical values set for each of the above-mentioned types. 如請求項6之方法,其中針對上述複數個類型之第1類型而設定之臨界個數與針對上述複數個類型之第2類型而設定之臨界個數不同。As in the method of claim 6, the number of critical points set for the first type of the aforementioned plurality of types is different from the number of critical points set for the second type of the aforementioned plurality of types. 如請求項1之方法,其進而包括如下步驟: 於使用上述任意之測試資料執行上述一個測試用例之期間,激活上述任意之測試資料之鎖定功能;且 上述任意之測試資料係於上述鎖定功能被激活後,終止向其他測試用例之分配直至鎖定功能被解除前為止。The method of claim 1 further includes the following steps: during the execution of the test case using the aforementioned test data, activating the locking function of the aforementioned test data; and the aforementioned test data is terminated from being allocated to other test cases after the locking function is activated until the locking function is released. 如請求項8之方法,其進而包括如下步驟: 於上述一個測試用例之執行結束之情形時,解除上述任意之測試資料之鎖定功能。The method of Request 8 further includes the following steps: when the execution of the above test case ends, unlock the locking function of any of the above test data. 如請求項1之方法,其進而包括如下步驟: 於與上述對象測試項目相關之上述任意之測試資料為不可重複使用之資料之情形時,若上述一個測試用例之執行成功,則將上述任意之測試資料之狀態自有效狀態變更為無效狀態,若上述一個測試用例之執行失敗,則將上述任意之測試資料之狀態保持為有效狀態。The method of Request 1 further includes the following steps: In the case where any of the test data related to the above-mentioned test items is non-reusable data, if the execution of the above-mentioned test case is successful, the status of the above-mentioned test data is changed from a valid state to an invalid state; if the execution of the above-mentioned test case fails, the status of the above-mentioned test data is kept in a valid state. 如請求項1之方法,其進而包括如下步驟: 於與上述對象測試項目相關之上述任意之測試資料為可重複使用之資料之情形時,與上述一個測試用例之執行結果無關地將上述任意之測試資料之狀態保持為有效狀態。The method of Request 1 further includes the following steps: when any of the test data related to the above-mentioned object test items is reusable data, the state of the above-mentioned test data is kept in a valid state regardless of the execution result of the above-mentioned test case. 如請求項1之方法,其進而包括如下步驟: 於執行與上述對象測試項目相關之另一個測試用例之狀態下,在判斷為於上述測試資料池中不存在可執行上述另一個測試用例之有效測試資料之情形時,即時產生可執行上述另一個測試用例之測試資料。The method of claim 1 further includes the following steps: When executing another test case related to the above-mentioned object test item, if it is determined that there is no valid test data in the above-mentioned test data pool that can execute the other test case, test data that can execute the other test case is generated immediately. 如請求項1之方法,其進而包括如下步驟: 於上述測試資料池不滿足上述預先設定之條件之情形時,產生表示不滿足上述預先設定之條件之資訊。The method of Request 1 further includes the following steps: when the test data pool does not meet the pre-set conditions, generating information indicating that the pre-set conditions are not met. 如請求項1之方法,其中上述至少一個測試資料係基於自動化工具內嵌入之與上述對象測試項目對應之一個以上之參數及由用戶對上述對象測試項目輸入之一個以上之參數中之至少一者而產生。The method of claim 1, wherein the above-mentioned at least one test data is generated based on at least one of one or more parameters embedded in the automation tool corresponding to the above-mentioned object test item and one or more parameters input by the user for the above-mentioned object test item. 一種電子裝置,其包括: 一個以上之處理器;及 一個以上之記憶體,其儲存有用以藉由上述一個以上之處理器而執行之命令;且 上述電子裝置以如下之方式構成: 於執行上述命令時,上述一個以上之處理器執行請求項1至14中任一項之方法。An electronic device includes: one or more processors; and one or more memory stores commands to be executed by the one or more processors; and the electronic device is configured such that, when executing the commands, the one or more processors perform a method of executing any one of requests 1 to 14. 一種非暫時性電腦可讀記錄媒體,其係記錄有於藉由一個以上之處理器而執行時使上述一個以上之處理器實行動作之命令者,其以如下之方式構成: 上述命令使上述一個以上之處理器執行請求項1至14中任一項之方法。A non-temporary computer-readable recording medium that records commands that, when executed by one or more processors, cause the one or more processors to perform actions, is configured in such a way as to provide a method by which the commands cause the one or more processors to perform any one of requests 1 to 14.
TW113124617A 2024-06-18 2024-07-02 Apparatus, method, and recording medium for managing test data related to the execution of test case TWI905825B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2024-0078915 2024-06-18

Publications (1)

Publication Number Publication Date
TWI905825B true TWI905825B (en) 2025-11-21

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10324827B2 (en) 2016-09-30 2019-06-18 Wipro Limited Method and system for automatically generating test data for testing applications

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10324827B2 (en) 2016-09-30 2019-06-18 Wipro Limited Method and system for automatically generating test data for testing applications

Similar Documents

Publication Publication Date Title
US10146524B1 (en) Preemptive deployment in software deployment pipelines
US9720812B2 (en) Risk-based test coverage and prioritization
US10423523B2 (en) Automated selection of test cases for regression testing
JP6130518B2 (en) Instance host configuration
CN110058920B (en) Virtual machine performance detection method and device, electronic equipment and storage medium
CN111666217B (en) Method and apparatus for testing code
CN111124871A (en) Interface test method and device
CN109388569B (en) Method for remotely detecting environmental anomaly of client, test server and storage medium
US20170109257A1 (en) Use case driven stepping component automation framework
CN110727581B (en) Crash location method and electronic device
CN111221727A (en) Test method, test device, electronic equipment and computer readable medium
CN113360365A (en) Flow testing method and flow testing system
US20150082287A1 (en) Scenario based test design
JP2013524312A (en) Method, computer program, and apparatus for verifying task execution in an adaptive computer system
US8762781B2 (en) Method and apparatus useful in manufacturing test case operations
CN117193798A (en) Application deployment method, apparatus, device, readable storage medium and program product
CN113392002A (en) Test system construction method, device, equipment and storage medium
TWI905825B (en) Apparatus, method, and recording medium for managing test data related to the execution of test case
CN112084114B (en) Method and apparatus for testing interfaces
CN116306409B (en) Chip verification method, device, equipment and storage medium
CN113760475A (en) Online system migration method, device, medium and electronic device
KR20250178016A (en) Apparatus, method, and recording medium for managing test data related to the execution of test case
CN116150033A (en) A software testing method, system, computer equipment and storage medium
CN117131545A (en) Data processing method and device, storage medium and terminal
CN114416537A (en) Unit testing method, server, client and storage medium