這一章接着上一章,來講講工具欄的剩餘部分。
過濾
點擊過濾按鈕右邊的小三角,出現的子菜單說明如下:
Filter… | 打開過濾設置對話框 |
Filtering Off | 關閉過濾,這時將錄製所有請求 |
Filtering On | 開啓過濾,這時僅錄製滿足過濾條件的請求 |
Next Highlight | 轉到後一個高亮處 |
Previous Highlight | 轉到前一個高亮處 |
點擊Filter後就會彈出過濾設置窗口,如下圖所示:
說明如下:
Enabling filtering | 啓用/禁用過濾 |
Content is | 根據內容的類型來進行錄製,例如選擇text/xml就是錄製xml格式的數據 |
Result is | 根據狀態碼來進行錄製,例如選擇200就是錄製返回成功的數據 |
URL contains | 當URL中包含所輸入的字符串時,進行錄製 |
Request headers contain | 當請求頭中包含所輸入的字符串時,進行錄製 |
Response headers contain | 當響應頭中包含所輸入的字符串時,進行錄製 |
Content contains | 當響應內容中包含所輸入的字符串時,進行錄製 |
Action to perform on filtered items Apply filter action to items that |
當Apply filter action to items that選擇Don’t Match時,Action to perform on filtered items取值如下:
Hide:不匹配過濾條件的項將隱藏 Highlight:匹配過濾條件的項將高亮顯示 Discard:不匹配過濾條件項將被丟棄,無法再次顯示這些項 當Apply filter action to items that選擇Match時則相反。 |
Combine filter conditions using | 設置過濾條件如何組合 OR:所有條件中只要有一個條件匹配就錄製 AND:所有條件中所有條件同時匹配才錄製 |
保存
點擊保存按鈕右邊的小三角,出現的子菜單說明如下:Save… | 保存日誌文件(.hwl) |
Export to CSV… | 導出爲CSV文件 |
Export to XML… | 導出爲XML文件 |
Export to HAR… | 導出爲HAR文件 |
Send by Email… | 發送郵件,並將日誌信息作爲郵件的附件 |
打印
點擊打印按鈕右邊的小三角,出現的子菜單說明如下:Print… | 打開打印窗口 |
Print Preview | 打印預覽 |
Page Setup… | 打開頁面設置窗口 |
Landscape/Portrait | 設置頁面的內容是以橫向還是縱向進行打印 |
Properties header on first page | 將屬性窗口的內容放在第1頁 |
Print horizontally across multiple pages | 當列太寬時,將其水平地打印到多頁中 |
Avoid splitting columns across pages | 當列太寬並水平地打印到多頁時,將打印不完的整列移到下一頁,而不只是無法完整打印的部分 |
Printer | 打印機的設置信息,可通過Printer…按鈕進行修改 |
工具
點擊工具按鈕右邊的小三角,出現的子菜單說明如下:Clear Cache and All Cookies | 清空所有的cache和cookies |
Clear Cache | 清空所有的cache |
Clear Cache for Recorded URLs | 清空已錄製URL的cache |
Clear Cache for Selected URLs | 清空已選擇URL的cache |
Clear All Cookies | 清空所有的session和cookies |
Clear Session Cookies | 清空所有的session |
Clear Recorded Cookies | 清空已錄製的cookies |
Warnings | 打開告警設置窗口 |
Options | 打開選項窗口 |
HttpWatch可以檢測到的告警有3類:性能、功能、安全,可以從上圖的Type列中加以區分,Description列中是關於告警的詳細描述。
如果不希望HttpWatch檢測某種警告,取消前面的勾選並點擊ok按鈕就行了。
選項窗口包括3個標籤頁,如下所示:
第1個標籤頁是通用選項的設置,說明如下:
Clear log when recording starts | 錄製開始時自動清空日誌 |
Confirm cache and cookie clearing | 清空cache和cookie時顯示確認窗口 |
Use shortcut keys in IE | 在IE中使用快捷鍵 |
Allow shortcut keys that open HttpWatch | 允許使用快捷鍵打開HttpWatch |
Only allow other shortcut keys if HttpWatch is open | 僅僅在HttpWatch打開時,才允許使用HttpWatch中的快捷鍵 |
Use Record button to start recording | 點擊Record按鈕來啓動錄製,這時需要點擊Stop按鈕來停止錄製 |
Start Recording when HttpWatch is opened | 當HttpWatch窗口打開時,自動啓動錄製 |
Stop recording when HttpWatch is closed | 當HttpWatch窗口關閉時,自動停止錄製 |
Automatically record when IE starts | 當IE開啓時,自動啓動HttpWatch進行錄製 |
Display confirmation message | 顯示確認窗口,詢問用戶是否啓動錄製 |
Save log files when IE closes or every…minutes | 當IE關閉時進行日誌的自動保存 當IE關閉前每隔固定的分鐘數進行日誌的自動保存 |
Write log files | 自動保存日誌到指定的目錄 |
Automatically purge log files older than…days | 自動清除指定天數以前的日誌文件 |
The same fields as HttpWatch request grid | 導出字段和請求網格中的字段相同 |
These fields | 指定要導出的字段 |
The same data as HttpWatch version 6.x and earlier | 和早期版本相同的字段 |
好了,先寫到這裏,下一部分準備寫最重要的部分了。