TW201814523A - Electronic apparatus, and testing method and system applied to the same - Google Patents
Electronic apparatus, and testing method and system applied to the same Download PDFInfo
- Publication number
- TW201814523A TW201814523A TW105132764A TW105132764A TW201814523A TW 201814523 A TW201814523 A TW 201814523A TW 105132764 A TW105132764 A TW 105132764A TW 105132764 A TW105132764 A TW 105132764A TW 201814523 A TW201814523 A TW 201814523A
- Authority
- TW
- Taiwan
- Prior art keywords
- test
- operating system
- electronic device
- category
- command set
- Prior art date
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
本發明係涉及測試領域,特別是指涉及一種電子設備及其應用的測試方法及系統。The present invention relates to the field of testing, and more particularly to a testing method and system involving an electronic device and its application.
不同類型的操作系統或者同一類型不同版本的操作系統,系統服務命令有些差別,會導致同一測試工具不能同時在不同類型的操作系統或者同一類型但是不同版本的操作系統中兼容。如此一來,針對每種類型的操作系統或者同一類型每個版本的操作系統都要更換對應的測試工具,不僅操作麻煩,且會降低測試效率。Different types of operating systems or operating systems of the same type and different versions have different system service commands, which may result in the same test tool not being compatible with different types of operating systems or operating systems of the same type but different versions. In this way, the corresponding test tool is replaced for each type of operating system or each version of the same type of operating system, which is not only troublesome to operate, but also reduces test efficiency.
有鑒於先前技術的缺點,本發明的目的在於提供一種電子設備及其應用的測試方法及系統,用於解決先前技術中同一測試工具不能同時在不同類型的操作系統或者同一類型但是不同版本的操作系統中兼容的問題。In view of the disadvantages of the prior art, an object of the present invention is to provide a testing method and system for an electronic device and an application thereof, which are used to solve the problem that the same testing tool in the prior art cannot simultaneously operate in different types of operating systems or the same type but different versions. A compatibility issue in the system.
為解決先前技術所帶來的問題,本發明之主要技術特徵係提供一種測試方法,兼容於多個類別操作系統,包括:預先在一測試工具中設置與各類別的操作系統分別對應的測試命令集,各測試命令集包括測試指令以及與測試指令對應的測試程序;在啟用測試工具對一電子設備進行測試時,讀取電子設備當前運行的操作系統的類別;擷取與電子設備當前運行的操作系統的類別對應的測試命令集;根據接收的測試指令從擷取的測試命令集中匹配相應的測試程序而進行相應的測試操作。In order to solve the problems caused by the prior art, the main technical feature of the present invention is to provide a test method, which is compatible with multiple categories of operating systems, including: setting test commands corresponding to operating systems of each category in a test tool in advance. The test command set includes a test command and a test program corresponding to the test command; when the test tool is enabled to test an electronic device, reading a category of an operating system currently running by the electronic device; capturing the current operation of the electronic device The test command set corresponding to the category of the operating system; according to the received test command, the corresponding test program is matched from the captured test command set to perform the corresponding test operation.
由上述必要技術手段所衍生之一附屬技術手段為,操作系統的類別的劃分依據包括操作系統的類型、同一類型的操作系統的版本或不同類型的操作系統版本。An auxiliary technical means derived from the above-mentioned necessary technical means is that the classification of the operating system is based on the type of the operating system, the version of the same type of operating system, or a different type of operating system version.
由上述必要技術手段所衍生之一附屬技術手段為,操作系統的類型包括Linux操作系統、Windows操作系統以及IOS操作系統中之至少一者。An auxiliary technical means derived from the above-mentioned necessary technical means is that the type of the operating system includes at least one of a Linux operating system, a Windows operating system, and an IOS operating system.
由上述必要技術手段所衍生之一附屬技術手段為,操作系統的類別包括Linux操作系統第6版和Linux操作系統第7版。One of the subsidiary technical means derived from the above-mentioned necessary technical means is that the operating system category includes the Linux operating system version 6 and the Linux operating system version 7.
由上述必要技術手段所衍生之一附屬技術手段為,對所述電子設備的測試操作包括重啟循環測試、直流通電循環測試以及交流通電循環測試。An auxiliary technical means derived from the above-mentioned necessary technical means is that the testing operation of the electronic device includes a restart cycle test, a DC power-on cycle test, and an AC power-on cycle test.
另外,本發明更提供一種測試系統,測試系統兼容於多個類別操作系統,包括:預設模組,預先在一測試工具中設置與各類別的操作系統分別對應的測試命令集,各測試命令集包括測試指令以及與測試指令對應的測試程序;系統類別讀取模組,用以在啟用測試工具對一電子設備進行測試時,讀取電子設備當前運行的操作系統的類別;測試模組,用以擷取與電子設備當前運行的操作系統的類別對應的測試命令集,且根據接收的測試指令,從擷取的測試命令集中匹配相應的測試程序而進行相應的測試操作。In addition, the present invention further provides a test system, the test system is compatible with a plurality of types of operating systems, including: a preset module, and a test command set corresponding to each operating system of each category is set in advance in a test tool, and each test command is respectively The set includes a test instruction and a test program corresponding to the test instruction; a system category reading module is configured to read a category of an operating system currently running by the electronic device when the test tool is enabled to test an electronic device; the test module, The test command set corresponding to the category of the operating system currently running by the electronic device is used, and according to the received test command, the corresponding test program is matched from the captured test command set to perform a corresponding test operation.
由上述必要技術手段所衍生之一附屬技術手段為,操作系統類別的劃分依據包括操作系統的類型、同一類型的操作系統的版本或不同類型的操作系統的版本。An auxiliary technical means derived from the above-mentioned necessary technical means is that the classification of the operating system category includes the type of the operating system, the version of the operating system of the same type, or the version of the operating system of a different type.
由上述必要技術手段所衍生之一附屬技術手段為,操作系統的類型包括Linux操作系統、Windows操作系統或IOS操作系統。An auxiliary technical means derived from the above-mentioned necessary technical means is that the type of the operating system includes a Linux operating system, a Windows operating system or an IOS operating system.
由上述必要技術手段所衍生之一附屬技術手段為,對所述電子設備的測試操作包括重啟循環測試、直流通電循環測試以及交流通電循環測試。An auxiliary technical means derived from the above-mentioned necessary technical means is that the testing operation of the electronic device includes a restart cycle test, a DC power-on cycle test, and an AC power-on cycle test.
最後,本發明還提供一種電子設備,包括如上述的測試系統。Finally, the invention also provides an electronic device comprising a test system as described above.
承上所述,本發明的電子設備及其應用的測試方法及系統,可兼容於多個類別操作系統,方法包括:預先在一測試工具中設置與各類別的操作系統分別對應的測試命令集,各測試命令集包括測試指令以及與測試指令對應的測試程序;在啟用測試工具對一電子設備進行測試時,讀取電子設備當前運行的操作系統的類別;擷取與電子設備當前運行的操作系統類別對應的測試命令集;根據接收的測試指令,從擷取的測試命令集中匹配相應的測試程序而進行相應的測試操作。本發明對於不同類別的操作系統,即可啟用相應的測試命令集進行相應的測試操作,可兼容於不同類別的操作系統,且直接對多種不同類別的操作系統進行測試,而無需進行測試工具的更換。As described above, the testing method and system of the electronic device and the application thereof of the present invention are compatible with a plurality of types of operating systems, and the method includes: setting a test command set corresponding to each operating system of each category in a test tool in advance. Each test command set includes a test instruction and a test program corresponding to the test instruction; when the test tool is enabled to test an electronic device, reading a category of an operating system currently running by the electronic device; capturing an operation currently running with the electronic device The test command set corresponding to the system category; according to the received test command, the corresponding test program is matched from the captured test command set to perform the corresponding test operation. The invention can enable the corresponding test command set to perform corresponding test operations for different types of operating systems, can be compatible with different types of operating systems, and directly test a plurality of different types of operating systems without testing tools. replace.
以下通過特定的具體實例說明本發明的實施方式,本領域技術人員可由本說明書所揭露的內容輕易地了解本發明的其他優點與功效。本發明還可以通過另外不同的具體實施方式加以實施或應用,本說明書中的各項細節也可以基於不同觀點與應用,在沒有背離本發明的精神下進行各種修飾或改變。需說明的是,在不衝突的情況下,以下實施例及實施例中的特徵可以相互組合。The embodiments of the present invention are described below by way of specific examples, and those skilled in the art can readily understand other advantages and effects of the present invention from the disclosure of the present disclosure. The present invention may be embodied or applied in various other specific embodiments, and various modifications and changes can be made without departing from the spirit and scope of the invention. It should be noted that the features in the following embodiments and embodiments may be combined with each other without conflict.
需要說明的是,以下實施例中所提供的圖示僅以示意方式說明本發明的基本構想,遂圖示中僅顯示與本發明中有關的組件而非按照實際實施時的組件數目、形狀及尺寸繪製,其實際實施時各組件的型態、數量及比例可為一種隨意的改變,且其組件佈局型態也可能更為複雜。It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention in a schematic manner, and only the components related to the present invention are shown in the drawings, rather than the number and shape of components in actual implementation. Dimensional drawing, the actual type of implementation of each component's type, number and proportion can be a random change, and its component layout can be more complicated.
請參閱第一圖,第一圖係顯示本發明較佳實施例之測試方法的流程示意圖。測試方法兼容於多個類別操作系統,於本發明較佳實施例中,操作系統的類別的劃分依據包括操作系統的類型、同一類型不同版本的操作系統以及不同類型不同版本的操作系統。較佳者,操作系統的類型是選用Linux操作系統、Windows操作系統或IOS操作系統。Please refer to the first figure, which is a schematic flow chart showing the test method of the preferred embodiment of the present invention. The test method is compatible with multiple types of operating systems. In the preferred embodiment of the present invention, the classification of the operating system is based on the type of the operating system, the operating system of the same type and different versions, and the operating systems of different types and versions. Preferably, the type of the operating system is a Linux operating system, a Windows operating system or an IOS operating system.
所述測試方法是預先在一測試工具中設置與各類別的操作系統分別對應的測試命令集,各測試命令集包括測試指令以及與測試指令對應的測試程序(步驟S11)。再來,在啟用測試工具對一電子設備進行測試時,讀取電子設備當前運行的操作系統的類別(步驟S12)。接著,擷取與電子設備當前運行的操作系統類別對應的測試命令集(步驟S13)。最後,根據接收的測試指令,從擷取的測試命令集中匹配相應的測試程序,而進行相應的測試操作(步驟S14)。The test method is to set a test command set respectively corresponding to each category of operating system in a test tool, and each test command set includes a test instruction and a test program corresponding to the test instruction (step S11). Then, when the test tool is enabled to test an electronic device, the category of the operating system currently running by the electronic device is read (step S12). Next, a test command set corresponding to the operating system category currently running by the electronic device is retrieved (step S13). Finally, according to the received test command, the corresponding test program is matched from the captured test command set, and the corresponding test operation is performed (step S14).
請參閱第二圖,第二圖係顯示本發明較佳實施例之測試方法的應用流程示意圖。如圖所示,於本發明較佳實施例中,操作系統的類別包括Linux操作系統第6版和Linux操作系統第7版本。Please refer to the second figure, which is a schematic diagram showing the application flow of the test method of the preferred embodiment of the present invention. As shown, in the preferred embodiment of the present invention, the operating system category includes the Linux operating system version 6 and the Linux operating system version 7.
首先,讀取Linux操作系統的版本,並判斷Linux操作系統的版本;當版本為第6版時,選擇與Linux操作系統第6版對應的測試命令集,並根據接收的測試指令(例如為0、1或2),擷取的測試命令集中匹配相應的測試程序而進行相應的測試操作。對電子設備的測試操作例如包括重啟循環測試、直流通電循環測試以及交流通電循環測試。另外,於本實施例中,測試指令(0)對應電子設備的重啟循環測試,測試指令(1)對應電子設備的直流通電循環測試,測試指令(2)對應電子設備的交流通電循環測試。First, read the version of the Linux operating system and determine the version of the Linux operating system; when the version is version 6, select the test command set corresponding to the Linux operating system version 6 and according to the received test command (for example, 0) , 1 or 2), the test command is selected to match the corresponding test program and the corresponding test operation is performed. Test operations on electronic devices include, for example, a restart cycle test, a DC power cycle test, and an AC power cycle test. In addition, in this embodiment, the test command (0) corresponds to the restart cycle test of the electronic device, the test command (1) corresponds to the DC power-on cycle test of the electronic device, and the test command (2) corresponds to the AC power-on cycle test of the electronic device.
當版本為第7版時,選擇與Linux操作系統第7版對應的測試命令集,並根據接收的測試指令(例如為0、1或2),擷取的測試命令集中匹配相應的測試程序而進行相應的測試操作。對電子設備的測試操作例如包括重啟循環測試、直流通電循環測試、以及交流通電循環測試。且於本實施例中,測試指令(0)對應電子設備的重啟循環測試,測試指令(1)對應電子設備的直流通電循環測試,測試指令(2),對應電子設備的交流通電循環測試。When the version is version 7, select the test command set corresponding to the 7th edition of the Linux operating system, and according to the received test instructions (for example, 0, 1, or 2), the captured test commands are collectively matched with the corresponding test programs. Carry out the corresponding test operation. Test operations on electronic devices include, for example, restart cycle tests, DC power cycle tests, and AC power cycle tests. In this embodiment, the test command (0) corresponds to the restart cycle test of the electronic device, and the test command (1) corresponds to the DC power cycle test of the electronic device, and the test command (2) corresponds to the AC power cycle test of the electronic device.
於本應用實例中,可使用命令cat /etc/redhat-release 來讀取Linux的版本,可使用命令grep 'V$' text3 | sed s'/\(.*\):[-]*\ ([-0-9.]*\)V$/\2/g'來判斷Linux 版本是第6版還是第7版,並透過上述選擇進入相應Linux版本的系統服務命令代碼中。In this application example, you can use the command cat /etc/redhat-release to read the Linux version. You can use the command grep 'V$' text3 | sed s'/\(.*\):[-]*\ ( [-0-9.]*\)V$/\2/g' to determine whether the Linux version is the 6th or 7th version, and enter the corresponding Linux version of the system service command code through the above options.
請參閱第三圖,第三圖係顯示本發明較佳實施例之測試系統的模組方塊示意圖。如圖所示,測試系統1兼容於多個類別操作系統,操作系統1包括預設模組11、系統類別讀取模組12以及測試模組13。Please refer to the third figure, which is a block diagram showing the module of the test system of the preferred embodiment of the present invention. As shown, the test system 1 is compatible with a plurality of operating systems, and the operating system 1 includes a preset module 11, a system category reading module 12, and a test module 13.
預設模組11預先在一測試工具中設置與各類別操作系統分別對應的測試命令集,各測試命令集包括測試指令以及與測試指令對應的測試程序。The preset module 11 pre-sets a test command set corresponding to each type of operating system in a test tool, and each test command set includes a test command and a test program corresponding to the test command.
系統類別讀取模組12用以在啟用測試工具對一電子設備進行測試時,讀取電子設備當前運行的操作系統的類別。The system category reading module 12 is configured to read the category of the operating system currently running by the electronic device when the testing tool is enabled to test an electronic device.
測試模組13用以擷取與電子設備當前運行的操作系統的類別對應的測試命令集,且根據接收的測試指令,從擷取的測試命令集中匹配相應的測試程序而進行相應的測試操作。The test module 13 is configured to capture a test command set corresponding to a category of an operating system currently running by the electronic device, and according to the received test command, match the corresponding test program from the captured test command set to perform a corresponding test operation.
於本發明較佳實施例中,操作系統的類別的劃分依據包括操作系統的類型、同一類型不同版本的操作系統以及不同類型不同版本的操作系統。In the preferred embodiment of the present invention, the classification of the operating system is based on the type of the operating system, the operating system of the same type and the version, and the operating systems of different types and versions.
於本發明具體實施例中,操作系統的類型包括Linux操作系統、Windows操作系統或IOS操作系統。In a specific embodiment of the present invention, the type of the operating system includes a Linux operating system, a Windows operating system, or an IOS operating system.
於本發明較佳實施例中,對電子設備的測試操作包括重啟循環測試、直流通電循環測試以及交流通電循環測試。In a preferred embodiment of the invention, the test operations on the electronic device include a restart cycle test, a DC power cycle test, and an AC power cycle test.
測試系統1為與第一圖所示的測試方法對應的系統,兩者相互呼應,所有關於測試方法的描述均可應用於本實施例中。The test system 1 is a system corresponding to the test method shown in the first figure, and the two correspond to each other, and all descriptions about the test method can be applied to the present embodiment.
請參閱第四圖,第四圖係顯示本發明較佳實施例之電子設備的組成方塊示意圖。如圖所示,電子設備2包括如第三圖所示的測試系統1,電子設備2例如為平板電腦、台式電腦、或服務器等智能處理終端。Please refer to the fourth figure, which is a block diagram showing the composition of an electronic device according to a preferred embodiment of the present invention. As shown, the electronic device 2 includes a test system 1 as shown in the third figure, such as a smart processing terminal such as a tablet computer, a desktop computer, or a server.
綜上所述,本發明的電子設備及其應用的測試方法及系統,可兼容於多個類別操作系統,測試方法是預先在一測試工具中設置與各類別的操作系統分別對應的測試命令集,各測試命令集包括測試指令以及與測試指令對應的測試程序。在啟用測試工具對一電子設備進行測試時,讀取電子設備當前運行的操作系統的類別。接著,擷取與電子設備當前運行的操作系統的類別對應的測試命令集。再來,根據接收的測試指令,從擷取的測試命令集中匹配相應的測試程序而進行相應的測試操作。本發明對於不同類別的操作系統,即可啟用相應的測試命令集進行相應的測試操作,可兼容於不同類別的操作系統,且直接對多種不同類別的操作系統進行測試而無需進行測試工具的更換。所以本發明有效克服了現有技術中的種種缺點而具高度產業利用價值。In summary, the testing method and system of the electronic device and the application thereof of the present invention are compatible with a plurality of types of operating systems, and the testing method is to set a test command set corresponding to each operating system of each category in a test tool in advance. Each test command set includes a test instruction and a test program corresponding to the test instruction. When the test tool is enabled to test an electronic device, the category of the operating system currently running by the electronic device is read. Next, a test command set corresponding to the category of the operating system currently running by the electronic device is retrieved. Then, according to the received test command, the corresponding test program is matched from the captured test command set to perform the corresponding test operation. The invention can enable the corresponding test command set to perform corresponding test operations for different types of operating systems, is compatible with different types of operating systems, and directly tests a plurality of different types of operating systems without replacing test tools. . Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.
藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。The features and spirit of the present invention will be more apparent from the detailed description of the preferred embodiments. On the contrary, the intention is to cover various modifications and equivalents within the scope of the invention as claimed.
1‧‧‧測試系統
11‧‧‧預設模組
12‧‧‧系統類別讀取模組
13‧‧‧測試模組
2‧‧‧電子設備1‧‧‧Test system
11‧‧‧Preset module
12‧‧‧System Category Read Module
13‧‧‧Test module
2‧‧‧Electronic equipment
第一圖係顯示本發明較佳實施例之測試方法的流程示意圖; 第二圖係顯示本發明較佳實施例之測試方法的應用流程示意圖; 第三圖係顯示本發明較佳實施例之測試系統的模組方塊示意圖;以及 第四圖係顯示本發明較佳實施例之電子設備的組成方塊示意圖。The first figure shows a schematic flow chart of a test method of a preferred embodiment of the present invention; the second figure shows a flow chart of the application of the test method of the preferred embodiment of the present invention; and the third figure shows the test of the preferred embodiment of the present invention. A schematic block diagram of a system; and a fourth block diagram showing the composition of an electronic device in accordance with a preferred embodiment of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW105132764A TW201814523A (en) | 2016-10-11 | 2016-10-11 | Electronic apparatus, and testing method and system applied to the same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW105132764A TW201814523A (en) | 2016-10-11 | 2016-10-11 | Electronic apparatus, and testing method and system applied to the same |
Publications (1)
Publication Number | Publication Date |
---|---|
TW201814523A true TW201814523A (en) | 2018-04-16 |
Family
ID=62639134
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW105132764A TW201814523A (en) | 2016-10-11 | 2016-10-11 | Electronic apparatus, and testing method and system applied to the same |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW201814523A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109195172A (en) * | 2018-07-27 | 2019-01-11 | 闻泰通讯股份有限公司 | Radio frequency test method, device, test equipment and storage medium |
TWI697772B (en) * | 2019-05-08 | 2020-07-01 | 立端科技股份有限公司 | Automatic test host operating system test method and test system thereof |
-
2016
- 2016-10-11 TW TW105132764A patent/TW201814523A/en unknown
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109195172A (en) * | 2018-07-27 | 2019-01-11 | 闻泰通讯股份有限公司 | Radio frequency test method, device, test equipment and storage medium |
TWI697772B (en) * | 2019-05-08 | 2020-07-01 | 立端科技股份有限公司 | Automatic test host operating system test method and test system thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7487139B2 (en) | Method and system for filtering a table | |
WO2021003818A1 (en) | Interface test case generating method and apparatus, computer device, and storage medium | |
WO2018120721A1 (en) | Method and system for testing user interface, electronic device, and computer readable storage medium | |
CN109002971B (en) | Task management method and device, computer equipment and storage medium | |
JP2014174701A (en) | Control system, control apparatus, image processing apparatus, and control method | |
CN105511936B (en) | Test system, method and device | |
WO2019029155A1 (en) | Data comparison method and device, computer device and storage medium | |
CN105677344A (en) | Updating system of firmware of complex programmable logic device and updating method of updating system | |
CN110928802A (en) | Test method, device, equipment and storage medium based on automatic generation of case | |
CN110727716B (en) | Identification method for integrated SDK in application, intelligent terminal and storage medium | |
WO2021068609A1 (en) | Method and apparatus for automatically testing visual report tool based on vuex | |
TW201814523A (en) | Electronic apparatus, and testing method and system applied to the same | |
CN111258799A (en) | Error reporting information processing method, electronic device and computer readable storage medium | |
CN108121774B (en) | Data table backup method and terminal equipment | |
CN103425580A (en) | Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device | |
CN111177119A (en) | Database-based full-data comparison method, device, equipment and storage medium | |
CN103092955B (en) | Checkpointed method, Apparatus and system | |
JP6434435B2 (en) | Information processing apparatus, operation support method, and operation support program | |
US10782963B2 (en) | Introducing artifact information system and method | |
CN105474774B (en) | Show the device of data used in electronic part mounting | |
US11017144B2 (en) | Form board merge | |
WO2018040966A1 (en) | Method for facilitating on-site failure identification of payment terminal, and system for same | |
JP2009071230A (en) | System and method for analyzing defect distribution, and program | |
US10891332B2 (en) | Instrumentation diagram data generation device, instrumentation diagram search system, and computer readable medium | |
CN112527655A (en) | Software version quality abnormity detection method and device, electronic equipment and storage medium |