测试架构
本页面列出了可用于向电子邮件中添加结构化数据并验证数据是否正确的工具和技术。
自测
您可以给自己发送电子邮件,轻松地端到端测试您的标记是否正常运行。发件人和收件人为同一账号的所有电子邮件会忽略注册要求,并可用于自行测试。DKIM 或 SPF 身份验证
仍为自测试的必填项。
在使用这种技术对标记进行端到端测试后,当您准备好将集成发布到生产环境中时,请查看向 Google 注册以了解后续步骤。
结构化数据标记助手
结构化数据标记助手可指导您如何标记包含以下任意数据类型的电子邮件:Event Reservation
、Flight Reservation
、Lodging Reservation
、Restaurant Reservation
。
电子邮件标记测试工具
借助电子邮件标记测试工具,您可以测试标记并验证从您的文档中提取的结构化数据。
如需使用该工具,请将标记粘贴到下面的输入文本框中,然后点击 Validate
。该工具的输出将包含提取的结构化数据以及每个实体的所有属性,以及输入无效时的具体错误消息。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-03。
[null,null,["最后更新时间 (UTC):2024-09-03。"],[[["This page provides resources for adding structured data to emails, enabling features like interactive cards in Gmail."],["Self-testing your email markup is possible by sending emails to yourself, ensuring functionality before wider implementation."],["Google provides tools like the Structured Data Markup Helper and Email Markup Tester to assist with markup creation and validation."]]],["Self-testing of email markup can be done by sending emails to yourself, bypassing registration requirements, but still requiring DKIM or SPF authentication. The Structured Data Markup Helper aids in marking up emails with event, flight, lodging, or restaurant reservation data. The Email Markup Tester validates markup, extracts structured data, and provides error messages for invalid input, by allowing users to paste markup and click \"Validate\". Once self testing is complete, register with Google.\n"]]