# pywinauto.tests.asianhotkey
亞洲熱鍵格式測試
> **What is checked**
此測試檢查快捷方式/熱鍵的格式是否遵循本地化Windows應用程序的標準。 此格式為{localized text}({uppercase hotkey}),例如,如果英語控件為“&Help”,則亞洲語言的本地化控件應為“LocHelp(H)”
> **How is it checked**
檢查此控件是否顯示熱鍵后,它會檢查控件的第一個字符串,以確保格式正確。 如果參考控件可用,那么它還確保熱鍵字符與參考相同。 標題少于4個字符的控件將被忽略。 這樣做是為了避免像“&X:”這樣的字符串的誤報錯誤報告。
> **When is a bug reported**
當控件具有熱鍵并且格式不正確時,會報告錯誤。 此外,如果參考控件可用,如果熱鍵字符與參考中使用的不同,則會報告錯誤
> **Bug Extra Information**
此測試產生兩種不同類型的錯誤:BugType:“AsianHotkeyFormat”沒有與此錯誤類型相關的額外信息
> **BugType: “AsianHotkeyDiffRef”**
沒有與此錯誤類型相關的額外信息
> **Is Reference dialog needed**
不需要參考對話框。 如果它不可用,則只報告類型為“AsianHotkeyFormat”的錯誤,將找不到類型為“AsianHotkeyDiffRef”的錯誤。
> **False positive bug reports**
在測試亞洲軟件時,應該很少有誤報錯誤報告。 如果一個字符串非常短(例如“&Y:”),但是用空格填充,那么它將被報告。
> **Test Identifier**
此測試/錯誤的標識符是“AsianHotkeyTests”
>[success] `pywinauto.tests.asianhotkey.AsianHotkeyTest(windows)`
返回重復的熱鍵錯誤
- 什么是Pywinauto
- 入門指南
- 如何
- 等待長時間操作
- 遠程執行指南
- 每種不同控制類型可用的方法
- 貢獻者
- 開發筆記
- 待辦項目
- 更新日志
- 基本用戶輸入模塊
- pywinauto.mouse
- pywinauto.keyboard
- 主要用戶模塊
- pywinauto.application
- pywinauto.findbestmatch
- pywinauto.findwindows
- pywinauto.timings
- 特定功能
- pywinauto.clipboard
- pywinauto.win32_hooks
- 控件參考
- pywinauto.base_wrapper
- pywinauto.controls.hwndwrapper
- pywinauto.controls.menuwrapper
- pywinauto.controls.common_controls
- pywinauto.controls.win32_controls
- pywinauto.controls.uiawrapper
- pywinauto.controls.uia_controls
- Pre-supplied Tests
- pywinauto.tests.allcontrols
- pywinauto.tests.asianhotkey
- pywinauto.tests.comboboxdroppedheight
- pywinauto.tests.comparetoreffont
- pywinauto.tests.leadtrailspaces
- pywinauto.tests.miscvalues
- pywinauto.tests.missalignment
- pywinauto.tests.missingextrastring
- pywinauto.tests.overlapping
- pywinauto.tests.repeatedhotkey
- pywinauto.tests.translation
- pywinauto.tests.truncation
- 后端內部實施模塊
- pywinauto.backend
- pywinauto.element_info
- pywinauto.win32_element_info
- pywinauto.uia_element_info
- pywinauto.uia_defines
- 內部模塊
- pywinauto.controlproperties
- pywinauto.handleprops
- pywinauto.xml_helpers
- pywinauto.fuzzydict
- pywinauto.actionlogger
- pywinauto.sysinfo
- pywinauto.remote_memory_block