সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Firebase Test Lab অ্যান্ড্রয়েড অ্যাপ পরীক্ষা করার জন্য ক্লাউড-ভিত্তিক পরিকাঠামো প্রদান করে। এই দস্তাবেজটি বর্ণনা করে কিভাবে Firebase কনসোল ব্যবহার করে Test Lab সাথে শুরু করা যায়।
Test Lab আপনাকে নিম্নলিখিত ধরণের পরীক্ষা চালাতে দেয়:
ইন্সট্রুমেন্টেশন পরীক্ষা : আপনার লেখা একটি পরীক্ষা যা আপনাকে আপনার নির্দিষ্ট করা ক্রিয়াগুলির সাথে আপনার অ্যাপের UI চালাতে দেয়। AndroidJUnitRunnerAPIs ব্যবহার করে সঠিক কার্যকারিতা যাচাই করতে একটি ইন্সট্রুমেন্টেশন পরীক্ষা আপনার অ্যাপের অবস্থা সম্পর্কে স্পষ্ট দাবি করতে পারে। Test Labএসপ্রেসো এবং ইউআই অটোমেটর ইন্সট্রুমেন্টেশন টেস্ট ফ্রেমওয়ার্ক সমর্থন করে।
রোবো পরীক্ষা : একটি পরীক্ষা যা আপনার অ্যাপের ইন্টারফেস বিশ্লেষণ করে এবং তারপর ব্যবহারকারীর কার্যকলাপ অনুকরণ করে স্বয়ংক্রিয়ভাবে এটি অন্বেষণ করে।
গেম লুপ টেস্ট : একটি পরীক্ষা যা গেম অ্যাপে প্লেয়ার অ্যাকশন অনুকরণ করতে একটি "ডেমো মোড" ব্যবহার করে।
আপনি শুরু করার আগে
আপনার ফায়ারবেস প্রজেক্ট অবশ্যই পে-অ্যাজ-ইউ-গো ব্লেজ প্রাইসিং প্ল্যানে থাকতে হবে, যার অর্থ হল আপনার প্রোজেক্ট একটি Cloud Billing অ্যাকাউন্টের সাথে লিঙ্ক করা আছে। আপনি Firebase কনসোলে Blaze মূল্য নির্ধারণের পরিকল্পনায় আপগ্রেড করতে পারেন। একটি Cloud Billing অ্যাকাউন্ট লিঙ্ক করার জন্য আপনাকে আপনার প্রকল্পের মালিক বা সম্পাদক হতে হবে৷
ধাপ 1. একটি ফায়ারবেস প্রকল্প তৈরি করুন
আপনি যদি এখনও না করে থাকেন তাহলে Firebase কনসোলে যান এবং একটি নতুন Firebase প্রকল্প তৈরি করুন৷
ধাপ 2. একটি পরীক্ষা চালান
ইন্সট্রুমেন্টেশন পরীক্ষা
Firebase কনসোল নেভিগেশন বারে, Test Lab ক্লিক করুন এবং তারপর Get Started -> Run an Instrumentation test-এ ক্লিক করুন।
ব্রাউজ ক্লিক করুন, এবং তারপর আপনার অ্যাপ APK বা AAB-এ ব্রাউজ করুন এবং Continue-এ ক্লিক করার আগে APK বা AAB পরীক্ষা করুন।
কোন ডিভাইস, অ্যান্ড্রয়েড এপিআই লেভেল, স্ক্রিন ওরিয়েন্টেশন এবং লোকেল আপনি আপনার অ্যাপের বিরুদ্ধে পরীক্ষা করতে চান তা নির্বাচন করে আপনার টেস্ট ম্যাট্রিক্স সংজ্ঞায়িত করুন। আপনি শুধুমাত্র সেই ডিভাইস এবং অ্যান্ড্রয়েড এপিআই স্তরের সংমিশ্রণগুলি নির্বাচন করতে পারেন যা আপনি পরীক্ষার জন্য লক্ষ্য করতে চান৷
(ঐচ্ছিক) পরীক্ষার সময়সীমা পরিবর্তন করতে উন্নত বিকল্পগুলি দেখান ক্লিক করুন যা প্রতিটি পরীক্ষা সম্পাদনের সর্বোচ্চ সময়কাল নির্ধারণ করে।
(ঐচ্ছিক) Firebase কনসোলে আপনার পরীক্ষার ম্যাট্রিক্স সনাক্ত করতে এবং সনাক্ত করতে সাহায্য করার জন্য, আপনি টেস্ট ম্যাট্রিক্স লেবেল (ঐচ্ছিক) ক্ষেত্রে একটি লেবেল নাম লিখে আপনার পরীক্ষা ম্যাট্রিক্সে একটি লেবেল যোগ করতে পারেন।
স্টার্ট N টেস্টে ক্লিক করুন, যেখানে "N" হল টেস্ট ম্যাট্রিক্স থেকে বৈধ পরীক্ষার কনফিগারেশনের সংখ্যা যা আপনি এই স্ক্রিনে সংজ্ঞায়িত করেছেন। প্রতিটি মুলতুবি থাকা পরীক্ষাটি চালানোর জন্য অপেক্ষা করার সময় একটি নীল ঘড়ির আইকন সহ দেখানো হয়, এবং পরীক্ষা শেষ হলে সেই আইকনটি একটি সবুজ চেক আইকনে পরিবর্তিত হয়।
প্রতিটি পরীক্ষা চালানোর পরে, পরীক্ষার কেস, লগ, স্ক্রিনশট এবং ভিডিও সহ পরীক্ষার ফলাফল দেখতে টেস্ট এক্সিকিউশন কলামে তালিকাভুক্ত ডিভাইসটিতে ক্লিক করুন।
রোবো পরীক্ষা
Firebase কনসোল নেভিগেশন বারে, Test Lab ক্লিক করুন এবং তারপর Get Started -> Run a Robo test-এ ক্লিক করুন।
ব্রাউজ ক্লিক করুন, আপনার অ্যাপ APK ব্রাউজ করুন, এবং তারপর চালিয়ে যান ক্লিক করুন।
কোন ডিভাইস, অ্যান্ড্রয়েড এপিআই লেভেল, স্ক্রিন ওরিয়েন্টেশন এবং লোকেল আপনি আপনার অ্যাপের বিরুদ্ধে পরীক্ষা করতে চান তা নির্বাচন করে আপনার টেস্ট ম্যাট্রিক্স সংজ্ঞায়িত করুন।
(ঐচ্ছিক) নিম্নলিখিত বিকল্পগুলি পরিবর্তন করতে উন্নত বিকল্পগুলি দেখান ক্লিক করুন:
পরীক্ষার সময়সীমা প্রতিটি পরীক্ষা সম্পাদনের সর্বোচ্চ সময়কাল নির্ধারণ করে।
টেস্ট অ্যাকাউন্টের শংসাপত্রগুলি একটি পরীক্ষার অ্যাকাউন্টের জন্য শংসাপত্র সরবরাহ করতে ব্যবহৃত হয়।
আপনার অ্যাপের অন্যান্য টেক্সট ফিল্ডের জন্য টেক্সট ইনপুট দিতে অতিরিক্ত ফিল্ড ব্যবহার করা হয়।
(ঐচ্ছিক) Firebase কনসোলে আপনার পরীক্ষার ম্যাট্রিক্স সনাক্ত করতে এবং সনাক্ত করতে সাহায্য করার জন্য, আপনি টেস্ট ম্যাট্রিক্স লেবেল (ঐচ্ছিক) ক্ষেত্রে একটি লেবেল নাম লিখে আপনার পরীক্ষা ম্যাট্রিক্সে একটি লেবেল যোগ করতে পারেন।
স্টার্ট N টেস্টে ক্লিক করুন, যেখানে "N" হল টেস্ট ম্যাট্রিক্স থেকে বৈধ পরীক্ষার কনফিগারেশনের সংখ্যা যা আপনি এই স্ক্রিনে সংজ্ঞায়িত করেছেন। প্রতিটি মুলতুবি পরীক্ষা চালানোর জন্য অপেক্ষা করার সময় একটি নীল ঘড়ির আইকন সহ দেখানো হয় এবং পরীক্ষা শেষ হলে সেই আইকনটি সবুজ চেকে পরিবর্তিত হয়।
প্রতিটি পরীক্ষা চলা শেষ হওয়ার পর, টেস্ট কেস, লগ, স্ক্রিনশট এবং ভিডিও সহ পরীক্ষার ফলাফল দেখতে টেস্ট এক্সিকিউশন কলামে তালিকাভুক্ত ডিভাইসটিতে ক্লিক করুন।
Firebase কনসোলেরTest Lab পৃষ্ঠায়, আপনার প্রথম পরীক্ষা চালান > একটি Android গেম লুপ চালান ক্লিক করুন।
আপলোড অ্যাপ বিভাগে, ব্রাউজ ক্লিক করুন, তারপরে আপনার অ্যাপের APK ফাইল নির্বাচন করুন (যদি আপনি ইতিমধ্যে না থাকেন তবে আপনার অ্যাপের জন্য একটি APK ফাইল তৈরি করুন )।
(ঐচ্ছিক) Firebase কনসোলে আপনার পরীক্ষার ম্যাট্রিক্স সনাক্ত করতে এবং সনাক্ত করতে সাহায্য করার জন্য, আপনি টেস্ট ম্যাট্রিক্স লেবেল (ঐচ্ছিক) ক্ষেত্রে একটি লেবেল নাম লিখে আপনার পরীক্ষা ম্যাট্রিক্সে একটি লেবেল যোগ করতে পারেন।
(ঐচ্ছিক) আপনি যদি একবারে একাধিক লুপ বা দৃশ্যকল্প চালাতে চান, বা চালানোর জন্য নির্দিষ্ট লুপ নির্বাচন করতে চান, তাহলে দৃশ্যকল্প ক্ষেত্রে লুপ সংখ্যা লিখুন।
উদাহরণ স্বরূপ, আপনি যখন "1-3, 5" লিখবেন, Test Lab লুপ 1, 2, 3, এবং 5 চালায়। ডিফল্টরূপে (যদি আপনি দৃশ্যকল্প ক্ষেত্রে কিছু না লিখে থাকেন), Test Lab শুধুমাত্র লুপ 1 চালায়।
ডিভাইস বিভাগে, আপনি আপনার অ্যাপ পরীক্ষা করতে চান এমন এক বা একাধিক শারীরিক ডিভাইস নির্বাচন করুন, তারপরে টেস্ট শুরু করুন-এ ক্লিক করুন।
ধাপ 3. আপনার পরীক্ষার ফলাফল তদন্ত করুন
পরীক্ষা শুরু হলে, আপনাকে স্বয়ংক্রিয়ভাবে পরীক্ষার ফলাফলের পৃষ্ঠায় পুনঃনির্দেশিত করা হবে। আপনার নির্বাচন করা বিভিন্ন কনফিগারেশনের সংখ্যা এবং আপনার পরীক্ষার জন্য সেট করা পরীক্ষার সময়সীমার উপর নির্ভর করে পরীক্ষাগুলি চালানোর জন্য কয়েক মিনিট সময় নিতে পারে। আপনার পরীক্ষা চালানোর পরে, আপনি পরীক্ষার ফলাফল পর্যালোচনা করতে পারেন। পরীক্ষার ফলাফলগুলি কীভাবে ব্যাখ্যা করতে হয় সে সম্পর্কে আরও জানতে Firebase Test Lab ফলাফল বিশ্লেষণ করা দেখুন।
[null,null,["2025-08-15 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["\u003cbr /\u003e\n\nFirebase Test Lab provides cloud-based infrastructure for testing\nAndroid apps. This document describes how to get started with Test Lab using the\nFirebase console.\n\nTest Lab lets you run the following types of tests:\n\n- [Instrumentation test](/docs/test-lab/android/instrumentation-test):\n A test you write that allows you to drive the UI of your app with the actions\n you specify. An instrumentation test can also make explicit assertions about\n the state of your app to verify correct functionality using\n [AndroidJUnitRunnerAPIs](https://developer.android.com/reference/android/support/test/runner/AndroidJUnitRunner). Test Lab supports\n [Espresso](https://developer.android.com/training/testing/espresso)\n and\n [UI Automator](https://developer.android.com/training/testing/other-components/ui-automator) instrumentation test frameworks.\n\n- [Robo test](/docs/test-lab/android/robo-ux-test):\n A test that analyzes your app's interface and then explores it automatically\n by simulating user activities.\n\n- [Game loop test](/docs/test-lab/android/game-loop): A test\n that uses a \"demo mode\" to simulate player actions in game apps.\n\nBefore you begin\n\nYour Firebase project must be on the [pay-as-you-go Blaze pricing plan](/pricing), which means that\nyour project is linked to a Cloud Billing account. You can\n[upgrade to the Blaze pricing plan](//console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered)\nin the Firebase console. You need to be an Owner or Editor for your project\nto link a Cloud Billing account.\n\nStep 1. Create a Firebase project\n\nIf you haven't yet, go to the [Firebase console](https://console.firebase.google.com/)\nand create a new Firebase project.\n| **Note:** If you're working on a shared Firebase project, you'll need to have ownership or edit permissions for the project.\n\nStep 2. Run a test \n\nInstrumentation test**Note:** If you want to run an instrumentation test with [Android Test Orchestrator](https://developer.android.com/training/testing/junit-runner.html#using-android-test-orchestrator), see [Enable Orchestrator](/docs/test-lab/android/instrumentation-test#orchestrator).\n\n1. On the [Firebase console](https://g.co/firebase) navigation bar,\n click **Test Lab** , and then click **Get Started -\\\u003e Run an Instrumentation\n test**.\n\n2. Click **Browse** , and then browse to your app APK or AAB and test APK or\n AAB before clicking **Continue**.\n\n3. Define your test matrix by selecting which devices, Android API levels,\n screen orientations and locales you want to test your app against. You can\n select only those device and Android API level combinations that you want\n to target for testing.\n\n4. (Optional) Click **Show advanced options** to change the Test timeout\n that determines the maximum duration of each test execution.\n\n5. (Optional) To help you identify and locate your test matrices in the\n Firebase console, you can add a label to your test matrix by entering a\n label name in the **Test matrix label (optional)** field.\n\n6. Click **Start *N* Tests**, where \"N\" is the number of valid test\n configurations from the test matrix that you define on this screen. Each\n pending test is shown with a blue clock icon while it is waiting to run,\n and that icon changes to a green check icon when the test has completed.\n\n7. After each test has run, click the device listed in the Test Execution\n column to see test results, including test cases, logs, screenshots and\n videos.\n\nRobo test\n\n1. On the [Firebase console](https://g.co/firebase) navigation bar,\n click **Test Lab** , and then click **Get Started -\\\u003e Run a Robo test**.\n\n2. Click **Browse** , browse to your app APK, and then click **Continue**.\n\n3. Define your test matrix by selecting which devices, Android API levels,\n screen orientations and locales you want to test your app against.\n\n4. (Optional) Click **Show advanced options** to change the following options:\n\n - Test timeout determines the maximum duration of each test execution.\n - Test account credentials are usedis used to provide credentials for a test account.\n\n | **Caution:** Never use this option with real user accounts.\n - Additional fields are used to provide text input for other text fields in your app.\n\n | **Note:** To learn more about Test account credentials and additional fields, see [Test account sign-in and predefined text](/docs/test-lab/robo-ux-test#test_account_sign-in_and_predefined_text_input).\n5. (Optional) To help you identify and locate your test matrices in the\n Firebase console, you can add a label to your test matrix by entering\n a label name in the **Test matrix label (optional)** field.\n\n6. Click **Start *N* Tests**, where \"N\" is the number of valid test\n configurations from the test matrix that you define on this screen. Each\n pending test is shown with a blue clock icon while it is waiting to run,\n and that icon changes to a green check when the test has completed.\n\n7. After each test finishes running, click the device listed in the Test\n Execution column to see test results, including test cases, logs,\n screenshots and videos.\n\nIf you want to create a script to guide the Robo test, see\n[Record a Robo script using Test Lab in Android Studio](/docs/test-lab/android/run-robo-scripts#record-android-studio).\n\nGame Loop test\n\n1. On the Test Lab page of the [Firebase console](https://console.firebase.google.com/project/_/%0Atestlab), click **Run Your First Test \\\u003e Run an Android Game Loop**.\n\n2. In the **Upload App** section, click **Browse** , then select your app's\n APK file (if you haven't already, [generate an APK file](https://firebase.google.com/docs/test-lab/android/game-loop#run-testlab) for your app).\n\n3. (Optional) To help you identify and locate your test matrices in the\n Firebase console, you can add a label to your test matrix by entering\n a label name in the **Test matrix label (optional)** field.\n\n4. (Optional) If you want to run multiple loops or scenarios at a time, or\n select specific loops to run, enter the loop numbers in the\n **Scenarios** field.\n\n For example, when you enter \"1-3, 5\", Test Lab runs loops 1, 2, 3, and 5.\n By default (if you don't enter anything in the **Scenarios** field),\n Test Lab only runs loop 1.\n5. In the **Devices** section, select one or more physical devices you\n want to test your app on, then click **Start Tests**.\n\nStep 3. Investigate your test results\n\nWhen the test starts, you're automatically redirected to the test results page.\nTests can take a number of minutes to run, depending on the number of different\nconfigurations you have selected and the test timeout duration set for your\ntests. After your tests have run, you can review test results. See\n[Analyzing Firebase Test Lab Results](/docs/test-lab/android/analyzing-results) to learn more\nabout how to interpret the test results.\n| **Note:** For all test types, any uncaught exception will cause a test failure."]]