APP專項測試實戰1

首先,如果測試需要用到的話,還是建議一下大家去看下Android-studio的官方文檔。文檔地址:Documentation  |  Android 開發者  |  Android Developers (google.cn)

然後點擊performance,基本上就是性能方面的指南了

 

Google中的Network

 

 web弱網

可以模擬手機,模擬弱網

 過濾表達式:

domain :展示domain中的資源,域名篩選

has-response-header:包含指定HTTP響應header

is:表達式

larger-than:展示大於某個尺寸的資源,1000等於1K

method: 指定HTTP請求方法,比如:get或者是post

mime-type:資源mime類型,比如application/json

status-code: 狀態碼

 

例子:

1、大於10K的圖片資源:

mime-type:image/png larger-than:1K

2、所有狀態碼為304的http請求:

scheme:https status-code:304

3、域名以.com結尾,使用http協議

domain:*.com  scheme:https

Google的performance

可以查看調用關係圖和布局圖

 

 

綠線:提前進行了頁面的渲染,在藍線之前FP/FTP。讓用戶有更好的體驗。

解析HTML中斷,遇到js,相當於預加載

在main下面有調用關係圖

frames->layers:可以查看頁面布局

 

W3C的內容可以查看我前面的博客:H5性能分析 – 絲瓜獃獃 – 博客園 (cnblogs.com)

unload :處理同源時,進行時間 計算

protocol、port和host相同