با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
مراحل این راهنما را دنبال کنید تا بررسی های درون برنامه ای خود را در برنامه یا بازی خود آزمایش کنید.
با استفاده از فروشگاه Google Play تست کنید
برای بررسی های درون برنامه ای باید برنامه شما در Play Store منتشر شود. با این حال، میتوانید ادغام خود را بدون انتشار برنامهتان برای تولید با استفاده از مسیرهای آزمایشی داخلی یا اشتراکگذاری داخلی برنامه آزمایش کنید. هر دو روش در این بخش توضیح داده شده است.
با استفاده از یک مسیر تست داخلی تست کنید
برنامه خود را در مسیر تست داخلی آپلود کنید و آن را روی دستگاهی با حساب کاربری که به مسیر تست داخلی دسترسی دارد نصب کنید. هنگام استفاده از مسیر تست داخلی، شرایط زیر باید رعایت شود:
حساب کاربری بخشی از مسیر تست داخلی است.
حساب کاربری حساب اصلی است و در فروشگاه Play انتخاب شده است.
حساب کاربری برنامه را از فروشگاه Play دانلود کرده است (این برنامه در کتابخانه Google Play کاربر فهرست شده است).
حساب کاربری در حال حاضر برای برنامه بازبینی ندارد.
پس از اینکه حساب موجود در دستگاه حداقل یک بار برنامه را از مسیر آزمایشی داخلی دانلود کرد و بخشی از لیست آزمایشکنندگان شد، میتوانید نسخههای جدید برنامه را به صورت محلی در آن دستگاه اجرا کنید (مثلاً با استفاده از Android Studio).
با استفاده از اشتراک گذاری داخلی برنامه تست کنید
از طرف دیگر، برای تکرار سریع میتوانید از اشتراکگذاری داخلی برنامه برای آزمایش یکپارچهسازی خود استفاده کنید. این روش به شما امکان میدهد تا با نادیده گرفتن برخی از تأییدیههایی که در مسیرهای آزمایشی دیگر اتفاق میافتد، به سرعت تغییرات را آزمایش کنید.
با استفاده از FakeReviewManager تست کنید
مصنوع بررسی درون برنامهای حاوی یک پیادهسازی FakeReviewManager است که به شما امکان میدهد رفتار API را جعل کنید.
این فقط باید برای تست های واحد یا یکپارچه سازی برای تأیید رفتار برنامه پس از تکمیل بررسی استفاده شود. برای استفاده از FakeReviewManager ، نمونه ReviewManager را با یک نمونه از FakeReviewManager جایگزین کنید، همانطور که در مثال زیر نشان داده شده است:
همانطور که بررسی های درون برنامه ای را ادغام و آزمایش می کنید، ممکن است با مشکلاتی مواجه شوید. جدول زیر متداولترین مشکلاتی را که میتواند مانع از نمایش گفتگوی مرور درونبرنامه در برنامه شما شود، نشان میدهد:
موضوع
راه حل
برنامه شما هنوز در فروشگاه Play منتشر نشده است.
برای آزمایش، لازم نیست برنامه شما منتشر شود، اما applicationID برنامه شما باید حداقل در مسیر آزمایش داخلی موجود باشد.
حساب کاربری نمی تواند برنامه را بررسی کند.
برنامه شما باید در کتابخانه Google Play کاربر باشد. برای افزودن برنامه خود به کتابخانه کاربر، برنامه خود را از فروشگاه Play با استفاده از حساب آن کاربر دانلود کنید.
حساب اصلی در فروشگاه Play انتخاب نشده است.
وقتی چندین حساب در دستگاه موجود است، مطمئن شوید که حساب اصلی همان حسابی است که در فروشگاه Play انتخاب شده است.
حساب کاربری محافظت می شود (به عنوان مثال، با حساب های سازمانی).
مشکلی در فروشگاه Google Play یا Google Play Services در دستگاه وجود دارد.
این معمولاً زمانی اتفاق میافتد که Play Store روی دستگاه بارگذاری شود. از دستگاه دیگری استفاده کنید که نسخه معتبری از Play Store و Google Play Services دارد.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Test in-app reviews\n\nFollow the steps in this guide to test your integration of in-app reviews in\nyour app or game.\n\nTest using the Google Play Store\n--------------------------------\n\nIn-app reviews require your app to be published in Play Store. However, you can\ntest your integration without publishing your app to production using either\ninternal test tracks or internal app sharing. Both methods are described in this\nsection.\n\n### Test using an internal test track\n\nUpload your app to the internal test track and install it on a device with a\nuser account that has access to the internal test track. When using an internal\ntest track, the following conditions must be met:\n\n1. The user account is part of the Internal Test Track.\n2. The user account is the primary account and it's selected in the Play Store.\n3. The user account has downloaded the app from the Play Store (the app is listed in the user's Google Play library).\n4. The user account does not currently have a review for the app.\n\nAfter the account on the device has downloaded the app at least once from the\ninternal test track and is part of the testers list, you can deploy new\nversions of the app locally to that device (for example, using Android Studio).\n| **Note:** The quota limits are **not** enforced if the app is downloaded from the internal test track.\n\n### Test using internal app sharing\n\nAlternatively, for rapid iteration you can use [internal app sharing](https://play.google.com/console/internal-app-sharing/)\nto test your integration. This method lets you quickly test changes by skipping\nsome of the verification that happens with other test tracks.\n| **Important:** When using an app installed with internal app sharing, reviews **can't be submitted**. To emphasize this difference, the button is disabled in the UI.\n\nTest using FakeReviewManager\n----------------------------\n\nThe in-app review artifact contains a `FakeReviewManager` implementation that\nallows you to fake the behavior of the API.\n\nThis should only be used for unit or integration tests to verify the behaviour\nof the app once the review is completed. To use the `FakeReviewManager`, replace\nthe `ReviewManager` instance with an instance of `FakeReviewManager`, as shown\nin the following example: \n\n### Kotlin\n\n```kotlin\nval manager = FakeReviewManager(context)\n```\n\n### Java\n\n```java\nReviewManager manager = new FakeReviewManager(context);\n```\n| **Note:** `FakeReviewManager` does not simulate the UI. It only fakes the API method result by always providing a fake `ReviewInfo` object and returning a success status when the in-app review flow is launched.\n\nTroubleshooting\n---------------\n\nAs you integrate and test in-app reviews, you might run into some issues. The\nfollowing table outlines the most common issues that can prevent the in-app\nreview dialog from displaying in your app:\n\n| Issue | Solution |\n|-------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Your app is not published yet in the Play Store. | Your app doesn't have to be published to test, but your app's `applicationID` must be available at least in the internal testing track. |\n| The user account can't review the app. | Your app must be in the user's Google Play library. To add your app to the user's library, download your app from the Play Store using that user's account. |\n| The primary account is not selected in the Play Store. | When multiple accounts are available in the device, ensure that the primary account is the one selected in the Play Store. |\n| The user account is protected (for example, with enterprise accounts). | Use a Gmail account instead. |\n| The user has already reviewed the app. | Delete the review directly from Play Store. |\n| The quota has been reached. | Use an [internal test track](#internal-test-track) or [internal app sharing](#internal-app-sharing). |\n| There is an issue with the Google Play Store or Google Play Services on the device. | This commonly occurs when the Play Store was sideloaded onto the device. Use a different device that has a valid version of the Play Store and Google Play Services. |"]]