测试架构
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面列出了可用于向电子邮件中添加结构化数据并验证数据是否正确的工具和技术。
自测
您可以给自己发送电子邮件,轻松地端到端测试您的标记是否正常运行。发件人和收件人为同一账号的所有电子邮件会忽略注册要求,并可用于自行测试。DKIM 或 SPF 身份验证
仍为自测试的必填项。
在使用这种技术对标记进行端到端测试后,当您准备好将集成发布到生产环境中时,请查看向 Google 注册以了解后续步骤。
结构化数据标记助手
结构化数据标记助手可指导您如何标记包含以下任意数据类型的电子邮件:Event Reservation
、Flight Reservation
、Lodging Reservation
、Restaurant Reservation
。
电子邮件标记测试工具
借助电子邮件标记测试工具,您可以测试标记并验证从您的文档中提取的结构化数据。
如需使用该工具,请将标记粘贴到下面的输入文本框中,然后点击 Validate
。该工具的输出将包含提取的结构化数据以及每个实体的所有属性,以及输入无效时的具体错误消息。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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."]]