An electronic device is provided. The electronic device includes a medical testing unit. The medical testing unit includes a medical processor, an electrocardio testing module, and an electrocardio sensor. The electrocardio sensor is electrically coupled to the electrocardio testing module. The medical processor is electrically coupled to the electrocardio oxygen testing module. The medical processor is configured to control the electrocardio testing module and the electrocardio sensor to test electrocardio parameter of a user.一種電子裝置,包括醫療測試單元,該醫療測試單元至少包括醫療處理單元、心電測試模組及心電感測器,該心電感測器與該心電測試模組電性連接,該醫療處理單元與該心電測試模組電性連接,用於控制該心電測試模組與該心電感測器對使用者的心電參數進行測試。1‧‧‧電子裝置10‧‧‧主機單元20‧‧‧醫療測試單元30‧‧‧殼體