測試結構定義
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁列出各項工具和技術,可用來在電子郵件中加入結構化資料,並驗證資料正確性。
自我測試
如果想測試標記能否全程正常運作,可以傳送電子郵件給自己。寄件者和收件者為同一帳戶的所有電子郵件都會略過註冊規定,可用於自我測試。DKIM 或 SPF 驗證
仍然需要進行自我測試
等標記進行端對端標記測試後,並準備推出正式版整合服務後,請參閱「向 Google 註冊」一文瞭解後續步驟。
結構化資料標記協助工具
結構化資料標記協助工具可為您示範如何標記含有下列任何資料類型的電子郵件:Event Reservation
、Flight Reservation
、Lodging Reservation
、Restaurant Reservation
。
電子郵件標記測試工具
電子郵件標記測試工具工具可讓您測試標記,並驗證從文件中擷取的結構化資料。
如要使用這項工具,請將標記貼到下方的輸入文字方塊中,然後按一下 Validate
。工具輸出的內容會包括擷取的結構化資料,以及每個實體的所有屬性,以及輸入內容無效時可出現的特定錯誤訊息。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Test Your Schemas\n\nThis page lists the tools and techniques that can be used to add structured data to your emails and validate its correctness.\n\nSelf testing\n------------\n\nYou can easily test if your markup is working correctly end-to-end by sending emails to yourself. All emails where the sender and the recipient are the same account ignore the [registration requirements](/workspace/gmail/markup/registering-with-google) and can be used for self-testing. DKIM or SPF authentication\nis still required for self-testing.\n\nOnce the markup is tested end-to-end with this technique and you are ready to launch your integration to production, check [Registering with Google](/workspace/gmail/markup/registering-with-google) for the next steps.\n\nStructured Data Markup Helper\n-----------------------------\n\nThe [Structured Data Markup Helper](https://www.google.com/webmasters/markup-helper/?email=true) can show you how to mark up emails that contain any of the following data types: `Event Reservation`, `Flight Reservation`, `Lodging Reservation`, `Restaurant Reservation`.\n\nEmail Markup Tester\n-------------------\n\nThe [Email Markup Tester](https://www.google.com/webmasters/markup-tester/) tool lets you test your markup and verify the structured data that is extracted from your documents.\n\nTo use the tool, paste the markup in the input text box below and click on `Validate`. The output of the tool will include the extracted structured data with all the properties for each entity, and specific error messages in case the input is invalid."]]