TWI803376B - A test method and device for an android mobile device - Google Patents
A test method and device for an android mobile device Download PDFInfo
- Publication number
- TWI803376B TWI803376B TW111124557A TW111124557A TWI803376B TW I803376 B TWI803376 B TW I803376B TW 111124557 A TW111124557 A TW 111124557A TW 111124557 A TW111124557 A TW 111124557A TW I803376 B TWI803376 B TW I803376B
- Authority
- TW
- Taiwan
- Prior art keywords
- test
- android
- android mobile
- category
- mobile device
- Prior art date
Links
- 238000010998 test method Methods 0.000 title claims abstract description 10
- 238000012360 testing method Methods 0.000 claims abstract description 284
- 238000013101 initial test Methods 0.000 claims abstract description 61
- 238000013102 re-test Methods 0.000 claims abstract description 46
- 238000010801 machine learning Methods 0.000 claims description 8
- 238000000034 method Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Telephone Function (AREA)
Abstract
Description
本發明是有關於一種測試方法,特別是指一種用於安卓行動裝置的測試方法。 The present invention relates to a testing method, in particular to a testing method for Android mobile devices.
習知的安卓行動裝置的測試方法是由測試人員人工操作進行測試,而且需要測試人員手動操作安卓行動裝置才能對安卓行動裝置進行下一個測試步驟。 The known testing method of the Android mobile device is manually operated by the tester, and the tester needs to manually operate the Android mobile device to perform the next test step on the Android mobile device.
此外,測試人員在使用測試套件的過程,從開始測試到結束,只能以過往的經驗估算產生測試報告的時間,一般來說,人工操作進行測試需耗費3天才能產生測試報告。也就是說,習知的安卓行動裝置的測試方法耗時費力,測試效率低。 In addition, in the process of using the test suite, from the beginning to the end of the test, the tester can only estimate the time to generate the test report based on past experience. Generally speaking, it takes 3 days to generate the test report for manual testing. That is to say, the conventional testing methods for Android mobile devices are time-consuming and laborious, and the testing efficiency is low.
因此,對於如何節省測試安卓行動裝置的時間、人力以及提升測試效率已成為相關技術領域所欲解決的議題之一。 Therefore, how to save time and manpower for testing Android mobile devices and improve testing efficiency has become one of the issues to be solved in related technical fields.
因此,本發明的目的,即在提供一種安卓行動裝置的測 試方法,其能克服上述現有技術的至少一缺點。 Therefore, the object of the present invention is to provide a tester for an Android mobile device. A trial method can overcome at least one shortcoming of the above-mentioned prior art.
於是,本發明所提供的一種安卓行動裝置的測試方法,由一測試裝置測試與其電連接的多個安卓行動裝置,每一安卓行動裝置可被配置一特定用戶識別模組;該測試方法包含以下步驟:(A)該測試裝置判斷其中的一安卓測試套件在對該等安卓行動裝置執行一初始測試後產生一初始測試報告時,該測試裝置檢查每一安卓行動裝置的該特定用戶識別模組的類別以確認每一安卓行動裝置的類別;(B)該測試裝置讀取該初始測試報告的一類別值並判斷該類別值是一第一預設值後執行一測試腳本,以產生對應該初始預設值的一測試命令給該安卓測試套件;(C)該測試裝置令該安卓測試套件根據對應該第一預設值的該測試命令,對該等安卓行動裝置中其類別與對應該第一預設值對應的該等安卓行動裝置進行一重新測試並產生一重新測試報告;及(D)該測試裝置判斷該重新測試報告的一測試失敗項目數大於等於一閾值時,重複執行步驟(A)~(C),直到該重新測試報告的該測試失敗項目數小於該閾值。 Thus, a test method for an Android mobile device provided by the present invention is to test a plurality of Android mobile devices electrically connected to it by a test device, and each Android mobile device can be configured with a specific user identification module; the test method includes the following Steps: (A) when the test device determines that one of the Android test suites generates an initial test report after performing an initial test on the Android mobile devices, the test device checks the specific user identification module of each Android mobile device category to confirm the category of each Android mobile device; (B) the test device reads a category value of the initial test report and executes a test script after judging that the category value is a first preset value to generate a corresponding A test command of the initial preset value is given to the Android test suite; (C) the test device makes the Android test suite according to the test command corresponding to the first default value, and the category and corresponding The Android mobile devices corresponding to the first preset value perform a retest and generate a retest report; and (D) when the test device judges that the number of failed test items in the retest report is greater than or equal to a threshold value, repeat the steps (A)~(C), until the number of failed items reported by the retest is less than the threshold.
在一些實施態樣中,該測試方法在步驟(A)之前還包含以下步驟:(a1)該測試裝置藉由執行一機器學習模型,產生該測試腳本;及(a2)該測試裝置預先取得每一安卓行動裝置的該特定用戶識別模組的類別以得知每一安卓行動裝置的類別。 In some implementations, the test method further includes the following steps before step (A): (a1) the test device generates the test script by executing a machine learning model; and (a2) the test device pre-obtains each The specific user of an Android mobile device identifies the category of the module to know the category of each Android mobile device.
在一些實施態樣中,在步驟(A)中,該測試裝置判斷該安 卓測試套件並未產生該初始測試報告時,執行下列步驟:(E)該測試裝置執行該測試腳本,以產生一初始測試命令給該安卓測試套件;及(F)該測試裝置令該安卓測試套件根據該初始測試命令,對該等安卓行動裝置進行該初始測試以產生該初始測試報告,並回到步驟(A)。 In some implementations, in step (A), the test device determines that the safety When the Zhuo test suite does not generate the initial test report, perform the following steps: (E) the test device executes the test script to generate an initial test command to the Android test suite; and (F) the test device makes the Android test The kit performs the initial test on the Android mobile devices according to the initial test command to generate the initial test report, and returns to step (A).
在一些實施態樣中,在步驟(A)中,每一安卓行動裝置會基於其中的該特定用戶識別模組為電信卡、通用IC卡或無卡被歸類為具有電信卡、具有通用IC卡或無卡。 In some implementation aspects, in step (A), each Android mobile device will be classified as having a telecom card, having a universal IC card, or having no card based on the specific user identification module therein being a telecom card, a general IC card or no card. Card or no card.
在一些實施態樣中,在步驟(a1)中,該測試裝置藉由輸入一測試套件命令參數、一重試參數及一類別參數產生該測試腳本,該測試套件命令參數相關於設定該安卓測試套件的測試命令,該重試參數相關於設定該安卓測試套件的重試次數,該類別參數相關於設定重試該安卓測試套件所對應的該等安卓行動裝置的類別。 In some implementations, in step (a1), the test device generates the test script by inputting a test suite command parameter, a retry parameter and a category parameter, the test suite command parameter is related to setting the Android test suite The test command, the retry parameter is related to setting the number of retries of the Android test suite, and the category parameter is related to setting the category of the Android mobile devices corresponding to the Android test suite.
本發明的另一目的在於提供一種安卓行動裝置的測試裝置,其能克服上述現有技術的至少一缺點。 Another object of the present invention is to provide a testing device for an Android mobile device, which can overcome at least one of the disadvantages of the above-mentioned prior art.
於是,本發明所提供的一種安卓行動裝置的測試裝置用以測試與其電連接的多個安卓行動裝置,每一安卓行動裝置可被配置一特定用戶識別模組;該測試裝置包含一介面模組、一儲存器及一處理器。 Therefore, a test device for an Android mobile device provided by the present invention is used to test a plurality of Android mobile devices electrically connected to it, and each Android mobile device can be configured with a specific user identification module; the test device includes an interface module , a memory and a processor.
該介面模組供該等安卓行動裝置電連接。 The interface module is electrically connected to the Android mobile devices.
該儲存器供儲存一安卓測試套件及一預先取得之與該等安卓行動裝置相關的初始測試報告。 The memory is used for storing an Android test suite and a pre-acquired initial test report related to the Android mobile devices.
該處理器連接該介面模組及該儲存器,且該處理器透過該介面模組取得每一安卓行動裝置的該特定用戶識別模組而得知每一安卓行動裝置的類別後,讀取儲存於該儲存器的該初始測試報告中的一類別值並判斷該類別值是一第一預設值後,執行一測試腳本,以產生一對應該第一預設值的測試命令給該安卓測試套件,使該安卓測試套件根據該對應該第一預設值的測試命令,對該等安卓行動裝置中其類別對應於該第一預設值者進行一重新測試並產生一重新測試報告。 The processor is connected to the interface module and the storage, and the processor obtains the specific user identification module of each Android mobile device through the interface module and after knowing the type of each Android mobile device, reads the storage After determining a class value in the initial test report of the storage and judging that the class value is a first default value, execute a test script to generate a test command corresponding to the first default value for the Android test The suite is configured to make the Android test suite perform a retest on the Android mobile devices whose category corresponds to the first preset value according to the test command corresponding to the first preset value and generate a retest report.
在一些實施態樣中,該處理器透過該介面模組取得每一安卓行動裝置的該特定用戶識別模組的類別之前,該處理器會藉由執行一機器學習模型,產生該測試腳本,並取得每一安卓行動裝置的該特定用戶識別模組的類別以得知每一安卓行動裝置的類別;且該處理器從該儲存器中讀取不到該初始測試報告時,該處理器執行該測試腳本,以產生一初始測試命令給該安卓測試套件,使該安卓測試套件根據該初始測試命令,對該等安卓行動裝置進行一初始測試以產生該初始測試報告,並將該初始測試報告儲存在該儲存器。 In some implementations, before the processor obtains the category of the specific user identification module of each Android mobile device through the interface module, the processor generates the test script by executing a machine learning model, and Obtain the category of the specific user identification module of each Android mobile device to know the category of each Android mobile device; and when the processor cannot read the initial test report from the storage, the processor executes the Test script, to generate an initial test command to the Android test suite, so that the Android test suite performs an initial test on the Android mobile devices according to the initial test command to generate the initial test report, and store the initial test report in that storage.
在一些實施態樣中,每一安卓行動裝置會基於其中的該特定用戶識別模組為電信卡、通用IC卡或無卡被歸類為具有電信 卡、具有通用IC卡或無卡。 In some implementations, each Android mobile device will be classified as having a telecom card, with general IC card or without card.
在一些實施態樣中,該處理器藉由輸入一測試套件命令參數、一重試參數及一類別參數產生該測試腳本,該測試套件命令參數相關於設定該安卓測試套件的測試命令,該重試參數相關於設定該安卓測試套件的重試次數,該類別參數相關於設定重試該安卓測試套件所對應的該等安卓行動裝置的類別。 In some implementations, the processor generates the test script by inputting a test suite command parameter, a retry parameter and a class parameter, the test suite command parameter is related to the test command for setting the Android test suite, the retry The parameter is related to setting the number of retries of the Android test suite, and the category parameter is related to setting the category of the Android mobile devices corresponding to the Android test suite for retrying.
本發明的功效在於:由於該測試裝置於測試過程中,由該處理器先確認該儲存器中儲存有該預先取得之第一測試報告後,透過該介面模組取得每一安卓行動裝置的該特定用戶識別模組而得知每一安卓行動裝置的類別後,再讀取儲存於該儲存器的該初始測試報告中的該類別值並判斷該類別值是該第一預設值後,執行該測試腳本,以產生對應該第一預設值的該測試命令給該安卓測試套件,使該安卓測試套件根據對應該第一預設值的該測試命令,對該等安卓行動裝置中其類別與該第一預設值對應的該等安卓行動裝置進行該重新測試並產生該重新測試報告,並於判斷該重新測試報告的該測試失敗項目數大於等於該閾值時,自動重複執行上述步驟(A)~(C),直到該重新測試報告的該測試失敗項目數小於該閾值時,才結束對該等安卓行動裝置的測試流程,藉此,測試過程中不需測試人員手動操作該測試裝置即可進行下一個測試步驟,能有效地節省測試該等安卓行動裝置的時間、人力以及提升測試效率。 The effect of the present invention is that: during the testing process of the test device, the processor first confirms that the first test report obtained in advance is stored in the memory, and obtains the first test report of each Android mobile device through the interface module. After the specific user identification module knows the category of each Android mobile device, read the category value stored in the initial test report in the memory and judge that the category value is the first preset value, and execute The test script is used to generate the test command corresponding to the first preset value to the Android test suite, so that the Android test suite can test the categories of the Android mobile devices according to the test command corresponding to the first preset value. The Android mobile devices corresponding to the first default value perform the retest and generate the retest report, and when the number of failed test items in the retest report is judged to be greater than or equal to the threshold, the above steps are automatically repeated ( A) ~ (C), until the number of failed items in the re-test report is less than the threshold, the test process for these Android mobile devices is ended, so that the tester does not need to manually operate the test device during the test Then the next test step can be carried out, which can effectively save the time and manpower for testing these Android mobile devices and improve the test efficiency.
1:測試裝置 1: Test device
11:介面模組 11:Interface module
12:儲存器 12: Storage
13:處理器 13: Processor
2:安卓行動裝置 2:Android mobile device
3:輸入裝置 3: Input device
S21~S29:步驟 S21~S29: Steps
本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是一方塊圖,說明本發明安卓行動裝置的測試裝置的一實施例;及圖2是一流程圖,說明圖1的該測試裝置的一處理器如何執行本發明安卓行動裝置的測試方法的一實施例。 Other features and effects of the present invention will be clearly presented in the implementation manner with reference to the drawings, wherein: FIG. 1 is a block diagram illustrating an embodiment of a testing device for an Android mobile device of the present invention; and FIG. 2 is a A flowchart illustrating how a processor of the testing device in FIG. 1 executes an embodiment of the testing method for an Android mobile device of the present invention.
在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。 Before the present invention is described in detail, it should be noted that in the following description, similar elements are denoted by the same numerals.
參閱圖1,是本發明安卓行動裝置的測試裝置1的一實施例,其用以測試與其電連接的多個安卓行動裝置2,並適用於與一輸入裝置3電連接,每一安卓行動裝置2可被配置一特定用戶識別模組(subscriber identity module,簡稱SIM),該測試裝置1包含一介面模組11、一儲存器12,及一處理器13。該測試裝置1可實施成如電腦伺服器或任何具有計算(運算)能力的電子裝置。該等安卓行動裝置2可包含例如安卓平板電腦或任何採用安卓系統的電子裝置。該輸入模組3可包含例如滑鼠、鍵盤或任何使用者輸入裝置。
該介面模組11供該等安卓行動裝置2電連接。該儲存器12供儲存一安卓測試套件及一預先取得之與該等安卓行動裝置2相關的初始測試報告。該安卓測試套件例如是由GoogleTM提出之供應商測試套件(Vendor Test Suite,簡稱VTS)、由GoogleTM提出之行動服務測試套件(Google Mobile Services Test Suite,簡稱GTS)、安全測試套件(Security Test Suite,簡稱STS)、兼容性測試套件(Compatibility Test Suite,簡稱CTS)或任何安卓行動裝置2適用之測試套件。
Referring to Fig. 1, it is an embodiment of the
該處理器13連接該介面模組11及該儲存器12,且該處理器13透過該介面模組11取得每一安卓行動裝置2的該特定用戶識別模組的類別之前,會藉由執行一機器學習模型並根據由該輸入裝置3輸入的一測試套件命令參數、一重試參數及一類別參數,產生一測試腳本,並取得每一安卓行動裝置2的該特定用戶識別模組的類別。在本實施例中,該機器學習模型是一種機器學習模型合併工具庫(可以但不限於:combo.py),用於收集每一安卓行動裝置2的資訊(可以但不限於,例如序列號(S/N)、電信卡號、相關軟韌體版本、網路狀態(可連內網或連外網)等各項數據參數)後以做出對應的操作(可以但不限於,例如安排該測試腳本相應分配、篩選並排除非測試的該等安卓行動裝置2、軟韌體版本更新、外網測試網站連線、調整待測的該等安卓行動裝置2的測試項目例如待測的該等
安卓行動裝置2有缺漏元件則可先安排測試其他可執行之測試項目)。在本實施例中,每一安卓行動裝置2會基於其中的該特定用戶識別模組為電信卡(Telecom SIM)、通用IC卡(UICC SIM)或無卡被歸類為具有電信卡、具有通用IC卡或無卡。且該測試套件命令參數相關於設定該安卓測試套件的測試命令,該重試參數相關於設定該安卓測試套件的重試次數,該類別參數相關於設定重試該安卓測試套件時所對應的該等安卓行動裝置2的類別。換句話說,該測試套件命令參數是用以設定各該安卓測試套件的測試命令(例如,設定本次測試是跑兼容性測試套件),該重試參數用以設定各該安卓測試套件的重新測試的次數,該類別參數用以設定各該安卓測試套件所要測試的安卓行動裝置2的類別(例如具有電信卡、具有通用IC卡或無卡),例如當該類別參數為0,則該安卓測試套件要測試全部的安卓行動裝置2,當該類別參數為1,則該安卓測試套件要測試具有電信卡的安卓行動裝置2,當該類別參數為2,則該安卓測試套件要測試具有通用IC卡的安卓行動裝置2。該類別參數對應於該重試參數,例如,當該類別參數由3改成4,則該重試參數也由3改成4,以此類推。
The
當該處理器13從該儲存器12中讀取不到該初始測試報告時,則該處理器13執行該測試腳本,以產生一初始測試命令給該安卓測試套件,使該安卓測試套件根據該初始測試命令,對該等安
卓行動裝置2進行一初始測試以產生該初始測試報告,並將該初始測試報告儲存在該儲存器12。
When the
該處理器13透過該介面模組11取得每一安卓行動裝置2的該特定用戶識別模組而得知每一安卓行動裝置2的類別後,讀取儲存於該儲存器12的該初始測試報告中的一類別值並判斷該類別值是一第一預設值後,執行該測試腳本,以產生對應該第一預設值的一測試命令給該安卓測試套件,使該安卓測試套件根據對應該第一預設值的該測試命令,對該等安卓行動裝置2中其類別與該第一預設值對應的該等安卓行動裝置2進行一重新測試並產生一重新測試報告,例如若該第一預設值為1,則對該等安卓行動裝置2中其類別為具有電信卡的該等安卓行動裝置2進行該重新測試。
After the
以下,參閱圖1及圖2,詳細地說明該處理器13如何搭配該介面模組11、該儲存器12及該輸入裝置3來執行本發明一實施例的安卓行動裝置的測試方法。該安卓行動裝置的測試方法包含以下步驟S21~S29。
Hereinafter, referring to FIG. 1 and FIG. 2 , how the
首先,在對該等安卓行動裝置2進行測試之前,該處理器12會先執行步驟21,在步驟S21中,該處理器13藉由執行該機器學習模型並根據由該輸入裝置3輸入的該測試套件命令參數、該重試參數及該類別參數,產生該測試腳本。在本實施例中,該安卓測試套件為兼容性測試套件。需注意的是,重試次數相關於當前執行的
安卓測試套件,以兼容性測試套件為例,建議的重試次數為3次,並建議以3的倍數設定重試次數。
First, before testing the Android
接著,該處理器12執行步驟22,在步驟S22中,該處理器13透過該介面模組11預先取得每一安卓行動裝置2的該特定用戶識別模組的類別以得知每一安卓行動裝置2的類別。
Next, the
然後,該處理器12執行步驟23,在步驟S23中,該處理器13判斷該儲存器12是否存在有該初始測試報告。若判斷結果是肯定的,則該處理器12將執行步驟S26。反之,若判斷結果是否定的,則該處理器12將執行步驟S24。
Then, the
因此,在步驟S23中,當該處理器13判斷該儲存器12不存在有該初始測試報告時,也就是判斷該安卓測試套件並未產生該初始測試報告時,在步驟S24中,該處理器13執行該測試腳本,以產生該初始測試命令給該安卓測試套件。
Therefore, in step S23, when the
接著,該處理器12執行步驟25,在步驟S25中,該處理器13令該安卓測試套件根據該初始測試命令,對該等安卓行動裝置2進行該初始測試以產生該初始測試報告。
Then, the
而且,為了確認該安卓測試套件是否在步驟S25成功產生該初始測試報告,該處理器13回到步驟S23,重新判斷該儲存器12中是否存在有該初始測試報告,若否(即該儲存器12不存在有該初始測試報告時),該處理器13將重複執行步驟S24、S25,直到該
處理器13(在步驟S23)判斷出該儲存器12存在有該初始測試報告。
And, in order to confirm whether this Android test kit successfully produces this initial test report in step S25, this
反之,在步驟S23中,當該處理器13判斷該儲存器12存在有該初始測試報告時,也就是判斷該安卓測試套件已經有產生該初始測試報告時,該處理器12執行步驟26,在步驟S26中,該處理器13檢查每一安卓行動裝置2的該特定用戶識別模組的類別以確認每一安卓行動裝置2的類別。特別要說明的是,在每一次測試之前確認每一安卓行動裝置2的類別的目的是,首先,確保每一安卓行動裝置2與該介面模組11成功建立連線,其次,該處理器12執行一次完整的測試之後,還會視當下的需求對每一安卓行動裝置2執行出廠重置(factory reset)或快閃映像檔(flash image)等操作以確認每一安卓行動裝置2的軟體及硬體狀態,因此,在步驟S26中,該處理器13需要檢查每一安卓行動裝置2的該特定用戶識別模組的類別以確認每一安卓行動裝置2的類別。
Conversely, in step S23, when the
接著,該處理器12執行步驟27,在步驟S27中,該處理器13讀取該初始測試報告的該類別值並判斷該類別值是該第一預設值後執行該測試腳本,以產生對應該第一預設值的該測試命令給該安卓測試套件。
Next, the
然後,該處理器12執行步驟28,在步驟S28中,該處理器13令該安卓測試套件根據對應該第一預設值的該測試命令,對該等安卓行動裝置2中其類別與該第一預設值對應的該等安卓行動裝
置2進行一重新測試並產生一重新測試報告。
Then, the
最後,該處理器12執行步驟29,在步驟S29中,該處理器13判斷該重新測試報告的一測試失敗項目數是否大於等於一閾值。當該處理器13判斷該重新測試報告的該測試失敗項目數大於等於該閾值時,該處理器13重複執行步驟S26~S28,直到判斷該重新測試報告的該測試失敗項目數小於該閾值時,才結束對安卓行動裝置2的測試流程。需說明的是,該閾值通常設定為小於10的正整數,例如9,因為當該測試失敗項目數小於10時,測試人員即可用手動的方式檢查剩餘的測試失敗項目。
Finally, the
表1示例性地說明本發明安卓行動裝置的測試方法經過1次測試及3次重新測試後之測試相關參數的一種態樣:
參閱表1,本實施例中,在該重新測試(重測1)中,由於該初始測試中的類別值為0,因此該安卓測試套件會不分類別地測試全部的該等安卓行動裝置2。且在之後的重新測試(重測2)中,由於前一次的重新測試(重測1)的類別值為1,因此該安卓測試套件只會對具有電信卡的該等安卓行動裝置2進行測試,而在之後的重新測試
(重測3)中,由於前一次的重新測試(重測2)的類別值為2,因此該安卓測試套件只會對具有通用IC卡的該等安卓行動裝置2進行測試。
Referring to Table 1, in the present embodiment, in the retest (retest 1), since the category value in the initial test is 0, the Android test suite will test all the Android
一般而言,重試的次數設定為3次,因為本實施例安卓行動裝置的測試方法經過1次初始測試及3次重新測試後,通常能將該測試失敗項目數收斂至小於10(如表1所示)。 Generally speaking, the number of retries is set to 3 times, because after the test method of the Android mobile device in this embodiment passes through 1 initial test and 3 retests, the number of failed items in the test can usually be converged to less than 10 (as shown in Table 1).
而當重試的次數設定超過3次時,舉例來說,重試的次數設定為9,其所對應的對話值(session)分別為0~8,因為測試的該等安卓行動裝置2有三種類別(具有電信卡、具有通用IC卡或無卡),因此,這裡採用取餘數的方式將對話值轉換成類別值作為判斷該測試命令所需測試的該等安卓行動裝置2的類別。例如,0,3,6除以3,餘數為0,則類別值為0並表示需對所有的該等安卓行動裝置2進行測試。1,4,7除以3,餘數為1,則類別值為1並表示需對該等安卓行動裝置2中具有電信卡者進行測試。2,5,8除以3,餘數為2,則類別值為2並表示需對該等安卓行動裝置2中具有通用IC卡者進行測試。需注意的是,這裡所述的類別值作為判斷該測試命令所需測試的該等安卓行動裝置2的類別指的是該處理器13讀取上一次重新測試報告的類別值作為下一次重新測試的測試命令所需測試的該等安卓行動裝置2的類別。
And when the number of retries is set to exceed 3 times, for example, the number of retries is set to 9, and the corresponding dialogue values (session) are 0~8 respectively, because the Android
需特別注意的是,當該處理器13執行該測試腳本以進行多次的該重新測試之後,仍無法將該測試失敗項目數收斂到不大於
該閾值時,該處理器13會產生一總結報告。該總結報告相關於測試失敗項目數無法收斂的情況,且可包含過去該處理器13執行該測試腳本時所遇到的相似情況的歷史紀錄資料。該歷史紀錄資料記錄有當時的處置作業程序。該測試腳本可根據該歷史紀錄資料進行調整。當該處理器13執行該測試腳本以進行該等安卓行動裝置2的該初始測試之前,該處理器13會先確認本次測試是否存在有過去無法收斂的測試失敗項目。若有,則該處理器13控制一顯示器(圖未示)顯示一網頁對話框,該網頁對話框的文字內容相關於該先前無法收斂的測試失敗項目以提醒測試人員留意。
It should be noted that, after the
此外,該處理器13在執行該測試腳本以進行測試該等安卓行動裝置2的過程中還會記錄過去歷史測試報告中的測試失敗項目的處置作業程序,在下一次重新測試時,該處理器13在執行該測試腳本以進行測試該等安卓行動裝置2的過程中遇到相同的測試失敗項目時,會依循過去歷史測試報告中對應的測試失敗項目的處置作業程序進行處理,可加速測試過程。該處理器13在執行該測試腳本以進行測試該等安卓行動裝置2的過程中,還會根據多個條件(例如,該等安卓行動裝置2有無特定軟體設備、硬體設備、該等安卓行動裝置2有無與該介面模組11成功建立連線)統計該等條件與該總結報告的結果之關聯性,藉以找出能讓最多的該等安卓行動裝置2通過測試的測試方法或測試順序。
In addition, the
綜上所述,由於該測試裝置1於測試過程中,由該處理器13先確認該儲存器12中儲存有該預先取得之第一測試報告後,透過該介面模組11取得每一安卓行動裝置的該特定用戶識別模組而得知每一安卓行動裝置的類別後,再讀取儲存於該儲存器12的該初始測試報告中的該類別值並判斷該類別值是該第一預設值後,執行該測試腳本,以產生該對應第一預設值的該測試命令給該安卓測試套件,使該安卓測試套件根據對應該第一預設值的該測試命令,對該等安卓行動裝置2中其類別與該第一預設值對應的該等安卓行動裝置2進行該重新測試並產生該重新測試報告,並於判斷該重新測試報告的該測試失敗項目數大於等於該閾值時,自動重複執行上述步驟S26~S28,直到該重新測試報告的該測試失敗項目數小於該閾值時,才結束對該等安卓行動裝置2的測試流程,藉此,測試過程中不需測試人員手動操作該測試裝置1即可進行下一個測試步驟,能有效地節省測試該等安卓行動裝置2的時間、人力以及提升測試效率,而確實能達成本發明的功效與目的。
In summary, since the
惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。 But the above-mentioned ones are only embodiments of the present invention, and should not limit the scope of the present invention. All simple equivalent changes and modifications made according to the patent scope of the present invention and the content of the patent specification are still within the scope of the present invention. Within the scope covered by the patent of the present invention.
S21~S29:步驟 S21~S29: Steps
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111124557A TWI803376B (en) | 2022-06-30 | 2022-06-30 | A test method and device for an android mobile device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111124557A TWI803376B (en) | 2022-06-30 | 2022-06-30 | A test method and device for an android mobile device |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI803376B true TWI803376B (en) | 2023-05-21 |
TW202403540A TW202403540A (en) | 2024-01-16 |
Family
ID=87424647
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW111124557A TWI803376B (en) | 2022-06-30 | 2022-06-30 | A test method and device for an android mobile device |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI803376B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10296444B1 (en) * | 2016-06-03 | 2019-05-21 | Georgia Tech Research Corporation | Methods and systems for testing mobile applications for android mobile devices |
CN112860501A (en) * | 2021-03-17 | 2021-05-28 | 惠州Tcl移动通信有限公司 | Detection method, detection device, storage medium and mobile terminal |
CN113608978A (en) * | 2021-07-15 | 2021-11-05 | 荣耀终端有限公司 | Test method, test device and computer readable storage medium |
TWI750849B (en) * | 2020-10-15 | 2021-12-21 | 中華電信股份有限公司 | Automatic test system and method for testing application of device under test |
CN114036074A (en) * | 2022-01-07 | 2022-02-11 | 荣耀终端有限公司 | Test method and test device for terminal equipment |
-
2022
- 2022-06-30 TW TW111124557A patent/TWI803376B/en active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10296444B1 (en) * | 2016-06-03 | 2019-05-21 | Georgia Tech Research Corporation | Methods and systems for testing mobile applications for android mobile devices |
TWI750849B (en) * | 2020-10-15 | 2021-12-21 | 中華電信股份有限公司 | Automatic test system and method for testing application of device under test |
CN112860501A (en) * | 2021-03-17 | 2021-05-28 | 惠州Tcl移动通信有限公司 | Detection method, detection device, storage medium and mobile terminal |
CN113608978A (en) * | 2021-07-15 | 2021-11-05 | 荣耀终端有限公司 | Test method, test device and computer readable storage medium |
CN114036074A (en) * | 2022-01-07 | 2022-02-11 | 荣耀终端有限公司 | Test method and test device for terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
TW202403540A (en) | 2024-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109726093B (en) | Method, apparatus and computer program product for executing test cases | |
CN111651366B (en) | SDK test method, device, equipment and storage medium | |
US9141519B2 (en) | Accurate identification of software tests based on changes to computer software code | |
CN107145437B (en) | Java annotation test method and device | |
CN112181854A (en) | Method, device, equipment and storage medium for generating flow automation script | |
CN107357721B (en) | Method and device for testing system | |
CN114218072A (en) | Test script generation method and device, storage medium and computer equipment | |
US20050203717A1 (en) | Automated testing system, method and program product using testing map | |
TWI803376B (en) | A test method and device for an android mobile device | |
CN116955193A (en) | Interface testing method, device, equipment and storage medium | |
CN112612665A (en) | Testing method, device and equipment of financial intelligent equipment | |
CN113094281B (en) | Test method and device for hybrid App | |
CN115904962A (en) | Automatic testing method, platform, equipment and storage medium | |
CN113626325B (en) | Interface testing method, device and equipment in code iteration updating | |
CN110737549A (en) | Application testing method, device, server and system | |
CN115086214A (en) | Nest plate detection system and method, electronic equipment and storage medium | |
CN110795338B (en) | Front-end and back-end interaction-based automatic testing method and device and electronic equipment | |
CN110941830B (en) | Vulnerability data processing method and device | |
CN114265735A (en) | Equipment testing method, system, device and computer readable storage medium | |
CN111813665A (en) | Big data platform interface data testing method and system based on python | |
CN117435407A (en) | Android mobile device testing method and device | |
CN112346994A (en) | Test information correlation method and device, computer equipment and storage medium | |
CN111597101A (en) | SDK access state detection method, computer device and computer readable storage medium | |
CN107341423B (en) | Test method and test equipment for smart card and computer readable storage medium | |
CN112069009A (en) | Method and device for pressure test in Recovery mode and terminal equipment |