TWI700579B - Storage device testing system and storage device testing method - Google Patents
Storage device testing system and storage device testing method Download PDFInfo
- Publication number
- TWI700579B TWI700579B TW108108761A TW108108761A TWI700579B TW I700579 B TWI700579 B TW I700579B TW 108108761 A TW108108761 A TW 108108761A TW 108108761 A TW108108761 A TW 108108761A TW I700579 B TWI700579 B TW I700579B
- Authority
- TW
- Taiwan
- Prior art keywords
- storage device
- test
- processor
- test script
- read
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/24—Arrangements for testing
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Debugging And Monitoring (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
本揭露是有關於一種儲存裝置測試系統及儲存裝置測試方法,且特別是有關於一種自動化測試儲存裝置的儲存裝置測試系統及儲存裝置測試方法。The present disclosure relates to a storage device testing system and a storage device testing method, and more particularly to a storage device testing system and a storage device testing method for automatically testing storage devices.
現有的手機測試系統通常將測試設備連結到手機以進行測試,這造成測試上的不便。當測試過程中發生手機的內存損壞或手機系統死機時,可能會導致重要測試信息的流失。因此,如何對手機內部儲存裝置進行測試並在錯誤產生時保有完整的測試資訊是本領域技術人員應致力的目標。Existing mobile phone testing systems usually connect test equipment to the mobile phone for testing, which causes inconvenience in testing. When the memory of the mobile phone is damaged or the mobile phone system crashes during the test, it may cause the loss of important test information. Therefore, how to test the internal storage device of the mobile phone and maintain complete test information when an error occurs is a goal that those skilled in the art should strive for.
本揭露提供一種儲存裝置測試系統及儲存裝置測試方法,對手機內部儲存裝置進行自動化測試並在錯誤產生時保有完整的測試資訊。The present disclosure provides a storage device testing system and a storage device testing method, which can automatically test the internal storage device of a mobile phone and retain complete test information when errors occur.
本揭露提出一種儲存裝置測試系統包括:電子裝置,包括處理器及耦接到處理器的內部儲存裝置;以及外部儲存裝置,耦接到電子裝置的處理器。處理器接收測試腳本並執行測試腳本以對內部儲存裝置進行測試操作。處理器將對應測試操作的測試記錄檔傳送到外部儲存裝置。The present disclosure proposes a storage device testing system including: an electronic device including a processor and an internal storage device coupled to the processor; and an external storage device, which is coupled to the processor of the electronic device. The processor receives the test script and executes the test script to perform a test operation on the internal storage device. The processor transmits the test log file corresponding to the test operation to the external storage device.
本揭露提出一種儲存裝置測試方法,適用於電子裝置及外部儲存裝置。電子裝置包括處理器及耦接到處理器的內部儲存裝置。外部儲存裝置耦接到電子裝置的處理器。儲存裝置測試方法包括:藉由處理器接收測試腳本並執行測試腳本以對內部儲存裝置進行測試操作;以及藉由處理器將對應測試操作的測試記錄檔傳送到外部儲存裝置。The present disclosure provides a storage device testing method, which is suitable for electronic devices and external storage devices. The electronic device includes a processor and an internal storage device coupled to the processor. The external storage device is coupled to the processor of the electronic device. The storage device testing method includes: receiving a test script by a processor and executing the test script to perform a test operation on the internal storage device; and transmitting a test log file corresponding to the test operation to the external storage device by the processor.
基於上述,本揭露的儲存裝置測試系統及儲存裝置測試方法能透過電子裝置的處理器執行測試腳本來測試電子裝置的內部儲存裝置,並將測試記錄檔傳送到外部儲存裝置。Based on the above, the storage device testing system and storage device testing method of the present disclosure can test the internal storage device of the electronic device by executing the test script through the processor of the electronic device, and transmit the test log file to the external storage device.
為讓本揭露的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present disclosure more obvious and understandable, the following specific embodiments are described in detail in conjunction with the accompanying drawings.
圖1為根據本揭露一實施例的儲存裝置測試系統的方塊圖。FIG. 1 is a block diagram of a storage device testing system according to an embodiment of the disclosure.
請參照圖1,本揭露一實施例的儲存裝置測試系統100包括電子裝置110及外部儲存裝置120。電子裝置110包括處理器111及耦接到處理器111的內部儲存裝置112。外部儲存裝置120耦接到電子裝置110的處理器111。電子裝置110例如是智慧型手機、平板電腦、智慧型手錶等類似裝置。電子裝置110可執行安卓(android)平台、iOS平台或其他種類的系統平台。處理器111例如是中央處理器(Central Processing Unit,CPU)、微處理器控制單元(Microprocessor Control Unit,MCU)或其他類似元件。內部儲存裝置112例如是反及閘快閃記憶體(NAND flash)或其他類似元件。外部儲存裝置120例如是安全數位卡(Secure Digital card,SD card)或其他類似元件。Please refer to FIG. 1, a storage
在一實施例中,處理器111可接收測試腳本並執行測試腳本以對內部儲存裝置112進行測試操作。處理器111還可將對應測試操作的測試記錄檔即時傳送到外部儲存裝置120,以防止內部儲存裝置112損壞或電子裝置110發生死機時丟失重要的測試資訊。In an embodiment, the
圖2為根據本揭露一實施例的儲存裝置測試方法的流程圖。FIG. 2 is a flowchart of a storage device testing method according to an embodiment of the disclosure.
雖然在本實施例中揭示了依序執行圖2的步驟S201到步驟S208,但本揭露不限於此。在另一實施例中,步驟S201到步驟S208可通過任意的排列順序來執行且單一步驟可執行一到多次或不執行。Although it is disclosed in this embodiment that steps S201 to S208 of FIG. 2 are executed in sequence, the disclosure is not limited to this. In another embodiment, step S201 to step S208 can be executed in any sequence, and a single step can be executed one to multiple times or not.
請參照圖1及圖2,在步驟S201中,進行應用程式套件安裝測試。在一實施例中,應用程式套件例如是安卓應用程式套件(Android Application Package,APK)。具體來說,內部儲存裝置112可接收多個應用程式套件。處理器111執行測試腳本以對應用程式套件執行多次的安裝及卸載操作並判斷每次的安裝及卸載操作是否成功。多個應用程式套件的大小可為不同以測試內部儲存裝置112在不同大小的應用程式套件進行安裝及卸載時是否產生韌體錯誤(firmware bug)。在另一實施例中,多個應用程式套件的大小也可相同。在每次安裝應用程式套件之後,處理器111可在系統中搜尋應用程式套件應用檔是否存在。若有搜尋到應用程式套件應用檔則產生搜尋成功訊息,反之則產生搜尋成功訊息。上述測試資訊都可作為測試記錄檔並即時傳送到外部儲存裝置120。1 and 2, in step S201, an application package installation test is performed. In one embodiment, the application package is, for example, an Android Application Package (APK). Specifically, the
在步驟S202中,進行讀寫測試。具體來說,處理器111執行測試腳本以對內部儲存裝置112進行多次循序及隨機讀寫並判斷內部儲存裝置112是否產生錯誤。讀寫測試選單可包括區塊大小(例如,1KB到512MB)、循序緩衝器大小(例如1KB到21768KB)、隨機緩衝器大小(例如,1KB到4KB)、寫入資料型態(例如,10101010、01010101等)、測試週期、週期模式及時間模式等,以提供測試人員選擇搭配,並提高測試複雜度。如此一來,可測試內部儲存裝置112在不同讀寫模式下是否產生韌體錯誤。In step S202, a read and write test is performed. Specifically, the
在步驟S203中,進行讀寫效能測試。具體來說,處理器111可執行測試腳本以對內部儲存裝置112進行多次循序及隨機讀寫並判斷每次循序及隨機讀寫的讀寫效能,判斷第幾次循序及隨機讀寫的讀寫效能小於門檻值,並在每次循序及隨機讀寫後將讀寫效能傳送到外部儲存裝置120。例如,處理器111可通過基準(benchmark)測試應用程式測試內部儲存裝置112的循序讀寫效能、隨機讀寫效能、資料庫管理系統(例如,SQLite)的插入/更新/刪除效能。In step S203, a read and write performance test is performed. Specifically, the
在步驟S204中,進行視頻老化測試。具體來說,處理器111執行測試腳本以執行視頻(例如,視頻播放器影片、網路影片、遊戲影片等)但不將視頻的視頻資料傳送到電子裝置110的顯示器(未繪示於圖中),並判斷電子裝置110是否產生異常狀態(例如,系統平台產生定屏、死機等現象)。值得注意的是,當處理器111執行自動化視頻老化測試腳本時,測試項目會先被開啟並記錄播放時間等資訊,且測試資訊會定期被寫入外部儲存裝置120。In step S204, a video burn-in test is performed. Specifically, the
在步驟S205中,進行待機喚醒測試。具體來說,處理器111執行測試腳本以進行多次休眠及喚醒操作,並判斷內部儲存裝置112是否產生錯誤。如此一來,可測試內部儲存裝置112在反覆測試睡眠及喚醒操作時是否產生韌體錯誤(例如,休眠後無法喚醒的狀態)。In step S205, a standby wake-up test is performed. Specifically, the
在步驟S206中,進行重開機測試。具體來說,處理器111執行測試腳本以進行多次軟開機操作,並判斷電子裝置110是否產生異常狀態。如此一來,可測試內部儲存裝置112在軟開機的測試中是否造成系統平台死機或卡顯示標識(logo)等狀態發生。In step S206, a restart test is performed. Specifically, the
在步驟S207中,進行讀取壓力測試。具體來說,處理器111執行測試腳本以進行多次讀取操作,並判斷電子裝置110是否產生異常狀態。如此一來,可測試內部儲存裝置112在進行大量資料讀取時是否造成平台死機或讀取資料有誤的問題。In step S207, a reading pressure test is performed. Specifically, the
在步驟S208中,進行掉電測試。具體來說,處理器111執行測試腳本以進行多次讀取操作並在讀取操作過程進行軟開機操作,並在軟開機操作後判斷對應讀取操作的資料是否正確及完整。In step S208, a power-down test is performed. Specifically, the
透過上述測試,可確保軟韌體錯誤不會重複出現並確保產品達到品質要求以建立開發團隊及客戶的信心度。此外,透過上述測試也可達到加速除錯的效果並節省大量人力成本,並且能找出產品的潛在性問題及效能問題。由於上述自動化測試具有一致性及可重覆性,測試結果及測試內容是具有保障的。測試人員可任意組合及調整測試條件來增加測試壓力、測試複雜度或延長測試時間,以提高系統平台兼容性測試的效能、品質及穩定性,並減少產品報修機率。Through the above tests, it can be ensured that the software and firmware errors will not recur and that the product meets the quality requirements to build the confidence of the development team and customers. In addition, the above-mentioned tests can also achieve the effect of speeding up debugging and saving a lot of labor costs, and can identify potential product problems and performance problems. Due to the consistency and repeatability of the above-mentioned automated tests, the test results and test content are guaranteed. Testers can arbitrarily combine and adjust test conditions to increase test pressure, test complexity or extend test time, so as to improve the performance, quality and stability of system platform compatibility testing, and reduce the chance of product repair.
綜上所述,本揭露的儲存裝置測試系統及儲存裝置測試方法能透過電子裝置的處理器執行測試腳本來測試電子裝置的內部儲存裝置,並將測試記錄檔傳送到外部儲存裝置。如此一來,可避免測試產生錯誤時丟失重要的測試資訊。In summary, the storage device testing system and storage device testing method of the present disclosure can test the internal storage device of the electronic device by executing the test script through the processor of the electronic device, and transmit the test log file to the external storage device. In this way, you can avoid losing important test information when the test generates an error.
雖然本揭露已以實施例揭露如上,然其並非用以限定本揭露,任何所屬技術領域中具有通常知識者,在不脫離本揭露的精神和範圍內,當可作些許的更動與潤飾,故本揭露的保護範圍當視後附的申請專利範圍所界定者為準。Although this disclosure has been disclosed in the above embodiments, it is not intended to limit the disclosure. Anyone with ordinary knowledge in the relevant technical field can make some changes and modifications without departing from the spirit and scope of this disclosure. Therefore, The scope of protection of this disclosure shall be subject to those defined by the attached patent scope.
100:儲存裝置測試系統100: Storage device test system
110:電子裝置110: electronic device
111:處理器111: processor
112:內部儲存裝置112: Internal storage device
120:外部儲存裝置120: External storage device
S201~S208:儲存裝置測試方法的步驟S201~S208: Steps of storage device test method
圖1為根據本揭露一實施例的儲存裝置測試系統的方塊圖。 圖2為根據本揭露一實施例的儲存裝置測試方法的流程圖。 FIG. 1 is a block diagram of a storage device testing system according to an embodiment of the disclosure. FIG. 2 is a flowchart of a storage device testing method according to an embodiment of the disclosure.
100:儲存裝置測試系統 100: Storage device test system
110:電子裝置 110: electronic device
111:處理器 111: processor
112:內部儲存裝置 112: Internal storage device
120:外部儲存裝置 120: External storage device
Claims (16)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108108761A TWI700579B (en) | 2019-03-15 | 2019-03-15 | Storage device testing system and storage device testing method |
CN201910378754.3A CN111698362A (en) | 2019-03-15 | 2019-05-08 | Storage device test system and storage device test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108108761A TWI700579B (en) | 2019-03-15 | 2019-03-15 | Storage device testing system and storage device testing method |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI700579B true TWI700579B (en) | 2020-08-01 |
TW202036290A TW202036290A (en) | 2020-10-01 |
Family
ID=72476017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW108108761A TWI700579B (en) | 2019-03-15 | 2019-03-15 | Storage device testing system and storage device testing method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111698362A (en) |
TW (1) | TWI700579B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120331353A1 (en) * | 2005-11-22 | 2012-12-27 | International Business Machines Corporation | Testing a software application interfacing with multiple external software applications in a simulated test environment |
TWI476587B (en) * | 2011-12-01 | 2015-03-11 | Mstar Semiconductor Inc | Testing method and testing apparatus for testing function of electronic apparatus |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103294573B (en) * | 2013-05-23 | 2016-03-23 | 青岛海信移动通信技术股份有限公司 | A kind of intelligent terminal and data back up method thereof |
CN105718332A (en) * | 2013-05-23 | 2016-06-29 | 青岛海信移动通信技术股份有限公司 | Intelligent terminal and data backup method thereof |
CN104301481B (en) * | 2014-09-24 | 2017-12-08 | 福建联迪商用设备有限公司 | A kind of method and system of handset compatibility test result generation |
CN106155824A (en) * | 2016-06-27 | 2016-11-23 | 贵州万臻时代通讯技术有限公司 | A kind of mobile phone hardware accelerated ageing test method and system |
-
2019
- 2019-03-15 TW TW108108761A patent/TWI700579B/en active
- 2019-05-08 CN CN201910378754.3A patent/CN111698362A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120331353A1 (en) * | 2005-11-22 | 2012-12-27 | International Business Machines Corporation | Testing a software application interfacing with multiple external software applications in a simulated test environment |
TWI476587B (en) * | 2011-12-01 | 2015-03-11 | Mstar Semiconductor Inc | Testing method and testing apparatus for testing function of electronic apparatus |
Also Published As
Publication number | Publication date |
---|---|
TW202036290A (en) | 2020-10-01 |
CN111698362A (en) | 2020-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9218893B2 (en) | Memory testing in a data processing system | |
TWI470420B (en) | Dubugging method and computer system using the smae | |
KR20090118863A (en) | Reducing power-on time by simulating operating system memory hot add | |
CN102662701A (en) | Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer | |
US20140068350A1 (en) | Self-checking system and method using same | |
US20080016415A1 (en) | Evaluation system and method | |
US20110185153A1 (en) | Simultaneous execution resumption of multiple processor cores after core state information dump to facilitate debugging via multi-core processor simulator using the state information | |
CN103257922B (en) | A kind of method of quick test BIOS and OS interface code reliability | |
CN106598796A (en) | Method for testing hardware information stability in reboot | |
WO2022222293A1 (en) | Storage device test method and apparatus, television, and storage medium | |
CN112017723A (en) | Power failure test method and device for memory, readable storage medium and electronic equipment | |
US10635554B2 (en) | System and method for BIOS to ensure UCNA errors are available for correlation | |
CN110928786A (en) | Testing method and device for financial program | |
TWI700579B (en) | Storage device testing system and storage device testing method | |
CN113377586A (en) | Automatic server detection method and device and storage medium | |
CN116401086A (en) | Test method, device, equipment and medium for memory funnel error reporting mechanism | |
CN105630523A (en) | Computer BIOS data recovery system and method | |
TW201933091A (en) | A system and a method for testing a data storage device | |
TW201301023A (en) | System and method for testing a mother board | |
CN110008105A (en) | A kind of BMC time reservation method, device and electronic equipment and storage medium | |
US10445218B2 (en) | Execution of graphic workloads on a simulated hardware environment | |
US10922023B2 (en) | Method for accessing code SRAM and electronic device | |
CN113672260A (en) | CPU initialization method for processor | |
CN105068835A (en) | Mobile terminal and debugging information display method thereof | |
CN111694727A (en) | Network card firmware upgrading and downgrading test method, system, terminal and storage medium |