移動app中斷測試之來電中斷

來源:互聯網
上載者:User

標籤:

移動app中斷測試之來電中斷



智慧型裝置功能的日益強大和使用者使用情境的多樣性,使一款APP在行動裝置端中斷操作非常頻繁,APP在中斷情境的表現直接影響使用者體驗,中斷測試是APP功能測試的必測內容。
說到手機的中斷測試,來電中斷是大家最容易想到的,常規的測試包括呼叫和通話中斷,如。



貼近智能手機的使用者應用情境,我們發現打電話已經不局限於使用電訊廠商網路,常用的社交軟體如QQ、微信都支援語音和視頻電話。這些軟體使用網路進行通話或者視頻,與電訊廠商電話網路形式不同,所以非常有必要做中斷測試。來電中斷的測試情境添加如。

 



中斷測試要點 

 

中斷指軟體在工作中被其他的任務或意外事件等情況終止推出,相應的測試即為中斷測試,中斷測試有人為中斷、新任務中斷以及意外中斷等幾種情況 中斷詳細包括以下: 


一. 來電中斷:呼叫掛斷、被呼叫掛斷、通話掛斷、通話被掛斷  


二:簡訊中斷:接收簡訊、查看簡訊 


三:其他中斷:藍芽、鬧鐘、插拔資料線、手機鎖定、手機斷電、手機問題(系統死機、重啟)  

 

中斷情境: 

 

在以下情境介入外來事件(來電、簡訊、插拔資料線等) 


1. 登陸介面load時互動資訊資料 


2. 讀取好友名單介面load時互動資訊資料(最密好友名單重新整理、好友名單重新整理)


3. 好友名單介面load時互動資訊資料(添加、移除朋友時)


4. 查詢設定檔介面load時互動資訊資料 


5. 查詢熱門排行榜介面load時互動資訊資料 


6. 查詢遊戲戰績介面load時互動資訊資料 


7. 查詢財務介面load時互動資訊資料 


8. 遊戲積分上傳介面load時互動資訊資料 

 

遊戲中斷 :

 

在遊戲啟動並執行過程中,對遊戲進行停止動作,例如簡訊,來電等,使遊戲暫停。從而驗證遊戲的穩定性。 中斷操作: 在遊戲從開始起,一直到遊戲完全退出,都算遊戲過程,此過程中,遊戲中的任何一屏,都應該可以中斷,平且正常返回,且不會出現任何問題。遊戲在中斷後,應該會顯示出一個暫停屏,此屏一般為黑底,提示資訊為:“press center/5 key to continue” 或“按中心鍵/5鍵繼續”。按中心鍵後遊戲繼續運行



舉一個中斷測試的案例: 最近一個項目,大量用到時間中斷,也經常出現各種bug,為了尋找原因,特意做了幾個小test 

 

1 using UnityEngine;  2 using System.Collections;  3   4 public class test : MonoBehaviour {  5   6     // Use this for initialization  7     IEnumerator  Start () {  8       9         InvokeRepeating("test1",0f,1f);  10             //yield return new WaitForSeconds(1f);  11             CancelInvoke("test1");  12             yield return null;  13         }  14           15         // Update is called once per frame  16         void Update () {  17           18         }  19           20         void test1()  21         {  22             Debug.Log(Time.time);  23             Debug.Log("haha");  24         }  25     }   什麼都不輸出 如果把name="code" class="csharp">yieldreturn new WaitForSeconds(1f);加上輸出為: <ignore_js_op>   下面這段代碼,就canel不掉,真他媽的坑爹啊 1 using UnityEngine;  2 using System.Collections;  3   4   5 public class test : MonoBehaviour {  6   7   8     // Use this for initialization  9     void  Start () {  10           11             StartCoroutine("createstart");  12         }  13           14         // Update is called once per frame  15         void Update () {  16           17         }  18           19         IEnumerator createstart()  20         {  21             int i=0;  22             while(true)  23             {  24             InvokeRepeating("test1",0f,1f);  25             yield return new WaitForSeconds(5f);  26             CancelInvoke("test1");  27                 print("ok i ge");  28             yield return null;  29                   30             }  31         }  32           33         void test1()  34         {  35             Debug.Log(Time.time);  36             Debug.Log("haha");  37         }  38     }   <ignore_js_op>

 

1 using UnityEngine;  2 using System.Collections;  3   4 public class test : MonoBehaviour {  5       6     public bool isok=true;  7     // Use this for initialization  8     void  Start () {  9       10             StartCoroutine("createstart");  11         }  12           13         // Update is called once per frame  14         void Update () {  15           16         }  17           18         IEnumerator createstart()  19         {  20             int i=0;  21             while(isok)  22             {  23             InvokeRepeating("test1",0f,1f);  24             yield return new WaitForSeconds(5f);  25             isok=false;  26             CancelInvoke("test1");  27                 print("ok i ge");  28             yield return null;  29                   30             }  31         }  32           33         void test1()  34         {  35             Debug.Log(Time.time);  36             Debug.Log("haha");  37         }  }  

 

目前能做中斷測試的一些公司,我知道的有TestFlight、TestFairy、TestBird、GooglePlay等等。

移動app中斷測試之來電中斷

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.