আপনার অ্যাপ পরীক্ষা করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
এই পৃষ্ঠাটি বিভিন্ন সরঞ্জামের বর্ণনা করে যা আপনাকে অ্যান্ড্রয়েড স্টুডিও বা কমান্ড লাইন থেকে আপনার পরীক্ষা তৈরি, কনফিগার এবং চালাতে সাহায্য করে।
আপনি যদি পরীক্ষার মৌলিক বিষয়গুলি এবং কীভাবে পরীক্ষা লিখতে হয় সে সম্পর্কে আরও জানতে চান, Android এ পরীক্ষা অ্যাপগুলি দেখুন।
আপনার পরীক্ষা চালানো এবং কনফিগার করার বিভিন্ন উপায় আছে:
অ্যান্ড্রয়েড স্টুডিওতে পরীক্ষা করুন
মৌলিক পরীক্ষার প্রয়োজনের জন্য, Android স্টুডিওতে এমন বৈশিষ্ট্য রয়েছে যা আপনাকে IDE থেকে পরীক্ষার ফলাফল তৈরি করতে, চালাতে এবং দেখতে সাহায্য করে। অ্যান্ড্রয়েড স্টুডিও ব্যবহার করে, আপনি নির্দিষ্ট ক্লাস বা পদ্ধতির জন্য পরীক্ষা তৈরি করতে এবং চালানোর জন্য অ্যাপ সোর্স কোডে নির্দেশ করতে এবং ক্লিক করতে পারেন, একাধিক পরীক্ষা ডিভাইস কনফিগার করতে মেনু ব্যবহার করতে পারেন এবং পরীক্ষার ফলাফলগুলি কল্পনা করতে টেস্ট ম্যাট্রিক্স টুল উইন্ডোর সাথে ইন্টারঅ্যাক্ট করতে পারেন। আপনার পরীক্ষাগুলি তৈরি এবং পরিচালনা করতে অ্যান্ড্রয়েড স্টুডিও কীভাবে ব্যবহার করবেন সে সম্পর্কে আরও তথ্যের জন্য, অ্যান্ড্রয়েড স্টুডিওতে পরীক্ষা দেখুন।
কমান্ড লাইন থেকে পরীক্ষা চালান
আরও সূক্ষ্ম নিয়ন্ত্রণের জন্য, আপনি কমান্ড লাইন থেকে পরীক্ষা চালাতে পারেন। কমান্ড-লাইন টেস্টিং মডিউলগুলিকে টার্গেট করার বা পৃথকভাবে বা সংমিশ্রণে ভেরিয়েন্টগুলি তৈরি করার একটি সহজ উপায় সরবরাহ করে। অ্যান্ড্রয়েড ডিবাগ ব্রিজ (এডিবি) শেলের মাধ্যমে পরীক্ষা চালানোর ফলে আপনি কোন পরীক্ষা চালাতে চান তার পরিপ্রেক্ষিতে সর্বাধিক কাস্টমাইজেশনের অনুমতি দেয়।
কমান্ড লাইন থেকে পরীক্ষা চালানো একটি অবিচ্ছিন্ন ইন্টিগ্রেশন সিস্টেমেও কার্যকর।
আরও তথ্যের জন্য, কমান্ড লাইন থেকে পরীক্ষা দেখুন।
উন্নত পরীক্ষা
উন্নত পরীক্ষার প্রয়োজনের জন্য, আপনি ডিফল্ট সেটিংস ওভাররাইড করতে, গ্রেডল বিকল্পগুলি কনফিগার করতে বা আপনার কোড রিফ্যাক্টর করতে চাইতে পারেন যাতে পরীক্ষাগুলি তাদের নিজস্ব মডিউলে আলাদা করা হয়। বিশেষ ব্যবহারের ক্ষেত্রে আপনার পরীক্ষার কনফিগারেশনগুলি কীভাবে সেট আপ করবেন সে সম্পর্কে আরও তথ্যের জন্য, উন্নত পরীক্ষা সেটআপ দেখুন।
আপনার ব্যবহারকারী যখন এটির সাথে ইন্টারঅ্যাক্ট করে তখন আপনার অ্যাপটি কীভাবে আচরণ করে তা পরীক্ষা করতে, আপনি Espresso Test Recorder , App Crawler , UI Automator , বা Monkey testing এর মতো টুল ব্যবহার করতে পারেন৷
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-10-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-10-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Test your app\n\nThis page describes various tools that help you create, configure, and\nrun your tests from Android Studio or the command line.\n\nIf you want to learn more about the fundamentals of testing and how to write\ntests, see [Test apps on Android](/training/testing).\n\nThere are different ways to run and configure your tests:\n\n- **Test in Android Studio**\n\n For basic testing needs, Android Studio includes features that help you\n create, run, and view results of tests all from the IDE. Using Android Studio,\n you can point and click in the app source code to create and run tests for\n specific classes or methods, use menus to configure multiple test\n devices, and interact with the Test Matrix tool window to visualize test\n results. For more information on how to use Android Studio to create and\n manage your tests, see\n [Test in Android Studio](/studio/test/test-in-android-studio).\n- **Run tests from the command line**\n\n For more fine-grained control, you can run tests from the command line.\n Command-line testing provides a straightforward way to target modules or\n build variants individually or in combinations. Running tests through the\n Android Debug Bridge (adb) shell allows for the most customization in terms of\n which tests you want to run.\n\n Running tests from the command line is also useful on a [continuous\n integration system](/studio/projects/continuous-integration).\n\n For more information, see\n [Test from the command line](/studio/test/command-line).\n- **Advanced testing**\n\n For advanced testing needs, you may want to override default settings,\n configure Gradle options, or refactor your code so that tests are separated in\n their own module. For more information about how to set up your test\n configurations for special use cases, see [Advanced test\n setup](/studio/test/advanced-test-setup).\n\n To test how your app behaves when your user interacts with it, you can use\n tools such as [Espresso Test\n Recorder](/studio/test/other-testing-tools/espresso-test-recorder),\n [App Crawler](/studio/test/other-testing-tools/app-crawler),\n [UI Automator](/training/testing/other-components/ui-automator), or\n [Monkey testing](/studio/test/other-testing-tools/monkey)."]]