---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/games/doc/en/console/test-game.md
  - https://yandex.com/dev/games/doc/hi/console/test-game.md
  - https://yandex.com/dev/games/doc/ko/console/test-game.md
  - https://yandex.com/dev/games/doc/ru/console/test-game.md
  - https://yandex.com/dev/games/doc/tr/console/test-game.md
  - https://yandex.com/dev/games/doc/vi/console/test-game.md
  - https://yandex.com/dev/games/doc/zh/console/test-game.md
  - href: zh/console/test-game.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/zh/llms.txt

# 测试

<!-- source: zh/_includes/script-common.md -->
<!-- source: zh/_includes/script/index-js.md -->

<!-- endsource: zh/_includes/script/index-js.md -->

<!-- source: zh/_includes/script/requirements-js.md -->

<!-- endsource: zh/_includes/script/requirements-js.md -->

<!-- source: zh/_includes/script/image-modal-js.md -->

<!-- endsource: zh/_includes/script/image-modal-js.md -->
<!-- endsource: zh/_includes/script-common.md -->


在目录中发布前，每款游戏都必须通过审核 —— 检查是否符合[要求](https://yandex.com/dev/games/doc/zh/concepts/requirements.md)。您也可以在游戏开发过程中或将归档文件上传到Yandex服务器后自行测试游戏。

## 测试方法 {#testing-methods}

<div class="striped-none colored-header">

#|
|| **方法** | **适用时机** | **游戏文件存储位置** | **与平台交互** ||
|| [开发环境](https://yandex.com/dev/games/doc/zh/concepts/local-launch.md#dev-env) |::{align="center"} 在游戏逻辑的积极开发和调试阶段。 |::{align="center"} 本地 |::{align="center"} 否 ||
|| [生产环境](https://yandex.com/dev/games/doc/zh/concepts/local-launch.md#prod-env) |::{align="center"} 在提交审核前的游戏最终检查阶段。 | ^ |::{align="center"} 是 ||
|| [草稿模式](https://yandex.com/dev/games/doc/zh/console/draft-mode.md) | ^ |::{align="center"} Yandex服务器上 | ^ ||
|#

</div>

## 调试工具 {#debugging-tools}

- [Debug面板](https://yandex.com/dev/games/doc/zh/console/debug-panel.md) 帮助检查SDK使用的基本要求是否得到满足。
- [DevTools 中的 Performance](https://yandex.com/dev/games/doc/zh/concepts/performance.md) 帮助分析性能（Game Ready和Time To Interactive指标）。

## 常见问题 {#faq}

{% cut "**如何测试购买功能？**" %} {#testing-purchases}

要测试购买功能，请使用您[添加](https://yandex.com/dev/games/doc/zh/console/purchases.md#test)到**List of logins for test purchases**的账户登录。在这种情况下，游戏中的所有支付都将被视为测试支付，不会产生实际费用。

{% endcut %}

{% cut "**可以在电视上测试游戏吗？**" %} {#tv-testing}

可以。

更多详情，请参阅[测试游戏](https://yandex.com/dev/games/doc/zh/requirements/1/6/3.md#game-test)部分。

{% endcut %}

{% cut "**如何检查我的游戏是否在所有浏览器和操作系统上运行？**" %} {#testing-2}

通过控制台[添加游戏](https://yandex.com/dev/games/doc/zh/console/add-new-game.md)并提交审核。审核人员将按照队列顺序在[要求](https://yandex.com/dev/games/doc/zh/concepts/requirements.md)中列出的所有浏览器和操作系统上检查游戏。

如果游戏在要求中列出的某个浏览器和/或操作系统上无法正常运行，审核将拒绝该游戏。系统会向您Yandex ID中指定的邮箱发送一份通知，详细说明拒绝原因。

{% endcut %}

{% cut "**如何检查我是否正确设置了游戏中的广告调用？**" %} {#adv-sdk}

确保满足所有条件：
1. 在游戏源文件中[添加了SDK代码](https://yandex.com/dev/games/doc/zh/sdk/sdk-adv.md)。
1. 通过控制台上传了游戏的[新版本](https://yandex.com/dev/games/doc/zh/console/update-game.md)并成功通过了审核。
1. 您是Yandex Advertising Network的[成员](https://yandex.com/dev/games/doc/zh/console/adv-monetization.md)，并在控制台中点击了**Monetization**按钮。

如果所有条件都满足，系统会为每个添加了SDK的游戏自动创建广告块。您可以自行测试游戏并检查广告：
1. 在开发人员控制台中，打开[游戏列表](https://games.yandex.com/console/applications){.external}。
1. 找到您想要检查广告的游戏。
1. 打开游戏：点击右侧的![链接图标](../_images/icons/game-link.svg)。

{% note info %}

由于我们托管服务的限制，广告可能不会在游戏开发者的本地设备上显示。但是，广告块的展示和点击统计会在添加到游戏后立即开始。您可以在[Yandex Advertising Network合作伙伴界面](https://partner.yandex.com/){.external}和[开发人员控制台](https://games.yandex.com/console){.external}的**Metrics** → **Monetization metrics**标签页中查看统计报告。

{% endnote %}

{% endcut %}
