একটি রোবো স্ক্রিপ্ট চালান (iOS+)
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
এই দস্তাবেজটি বর্ণনা করে যে কীভাবে Robo স্ক্রিপ্টগুলি ব্যবহার করতে হয়, যা এমন পরীক্ষা যা মোবাইল অ্যাপের জন্য ম্যানুয়াল QA কাজগুলিকে স্বয়ংক্রিয় করে এবং ক্রমাগত ইন্টিগ্রেশন (CI) এবং প্রি-লঞ্চ টেস্টিং কৌশলগুলি সক্ষম করে৷ উদাহরণস্বরূপ, আপনি একটি সাধারণ ব্যবহারকারীর যাত্রা পরীক্ষা করতে বা ব্যবহারকারীর নাম এবং পাসওয়ার্ডের মতো নির্দিষ্ট ব্যবহারকারী ইন্টারফেস (UI) ইনপুট প্রদান করতে রোবো স্ক্রিপ্ট ব্যবহার করতে পারেন। রোবো স্ক্রিপ্টগুলি রোবো পরীক্ষার একটি বৈশিষ্ট্য।
রোবো স্ক্রিপ্টগুলি পরীক্ষা ইঞ্জিন হিসাবে রোবো পরীক্ষা ব্যবহার করে। এর সবচেয়ে মৌলিক আকারে, একটি রোবো স্ক্রিপ্টে UI অ্যাকশনের একটি ক্রম থাকে যেমন পাঠ্য 'ব্যবহারকারীর নাম' লিখুন এবং তারপরে ঠিক আছে বোতামে আলতো চাপুন । রোবো স্ক্রিপ্টগুলিতে একটি উপাদান উপস্থিত হওয়ার জন্য অপেক্ষা করা, একটি উপাদানের মধ্যে একটি নির্দিষ্ট বিন্দুতে ট্যাপ করা এবং অ্যান্ড্রয়েড ডিবাগ ব্রিজ ( adb
) শেল কমান্ড চালানোর মতো ক্রিয়াগুলি অন্তর্ভুক্ত থাকতে পারে।
প্রথাগত টেস্টিং ফ্রেমওয়ার্কের তুলনায় রোবো স্ক্রিপ্টের নিম্নলিখিত সুবিধা রয়েছে:
সামর্থ্য | বর্ণনা |
অত্যন্ত মজবুত | রোবো স্ক্রিপ্টগুলি অ্যাপ সংস্করণ এবং অ্যাপ ফ্লাকনেসের মধ্যে উল্লেখযোগ্য কাঠামোগত এবং আচরণগত পার্থক্য সহ্য করতে পারে। |
ওপেন-এন্ডেড | একটি রোবো স্ক্রিপ্ট সম্পূর্ণ হওয়ার পরে, বেস রোবো পরীক্ষাটি গ্রহণ করতে পারে এবং অ্যাপটি পরীক্ষা চালিয়ে যেতে পারে। এই ক্রমাগত পরীক্ষার পদ্ধতি বেশ কয়েকটি মূল ব্যবহারের ক্ষেত্রে সক্ষম করে। উদাহরণস্বরূপ, আপনি একটি কাস্টম সাইন-ইন প্রবাহ সম্পাদন করে একটি অ্যাপকে একটি নির্দিষ্ট অবস্থায় আনতে একটি রোবো স্ক্রিপ্ট ব্যবহার করতে পারেন৷ |
রেকর্ডযোগ্য | আপনাকে ম্যানুয়ালি রোবো স্ক্রিপ্ট কোড করতে হবে না। এগুলি অ্যান্ড্রয়েড স্টুডিওতে রোবো স্ক্রিপ্ট রেকর্ডার ব্যবহার করে রেকর্ড করা যেতে পারে। রোবো স্ক্রিপ্ট তৈরি বা পরিবর্তন করার জন্য সাধারণত মোবাইল ডেভেলপমেন্টের কোনো জ্ঞানের প্রয়োজন হয় না। |
নমনীয় | Robo স্ক্রিপ্টগুলি অ-নেটিভ UI উপাদানগুলির সাথে ইন্টারঅ্যাক্ট করতে পারে যা গেমগুলিতে সাধারণ। |
Robo স্ক্রিপ্ট শর্তসাপেক্ষে একটি Robo পরীক্ষার সময় ট্রিগার করা হয়, যা ব্যবহারকারীদের Robo-এর আচরণ বাড়াতে দেয় - সাধারণত আরও বেশি কভারেজ বা লক্ষ্য নির্দিষ্ট কার্যকারিতা অর্জন করতে। ঐতিহ্যগত পরীক্ষার কাঠামোর বিপরীতে, রোবো স্ক্রিপ্টগুলি নিম্নলিখিতগুলিকে সমর্থন করে:
- বিভিন্ন ট্রিগারিং শর্ত, উদাহরণস্বরূপ, একটি নির্দিষ্ট অ্যাপ প্যাকেজ নাম সক্রিয় (বা না) বা একটি নির্দিষ্ট উপাদান স্ক্রিনে প্রদর্শিত হচ্ছে (বা না)।
- এক্সিকিউশন কন্ট্রোল, উদাহরণস্বরূপ, সর্বোচ্চ সংখ্যক এক্সিকিউশন, অগ্রাধিকার, প্রাসঙ্গিক ক্রল স্টেজ।
- অপ্রচলিত কর্মের ধরন (শর্তসাপেক্ষ, উপাদান-উপেক্ষা, স্ক্রিন-ক্লোজিং)।
আমরা সুপারিশ করি যে আপনি যখনই সম্ভব রোবো স্ক্রিপ্টগুলি ব্যবহার করুন কারণ সেগুলি অনায়াসে বজায় রাখা যেতে পারে। উদাহরণস্বরূপ, আপনি নিম্নলিখিতগুলি করতে একটি রোবো স্ক্রিপ্ট ব্যবহার করতে পারেন:
- একটি অ্যাপের কার্যকারিতার মূলে যেতে উল্লেখযোগ্য ওয়ার্কফ্লো নেভিগেট করুন। উদাহরণস্বরূপ, আপনি একটি সাইন-ইন সঞ্চালন করতে পারেন, প্রথম লঞ্চের পরে একটি অ্যাপের অবস্থা সেট আপ করতে পারেন এবং একটি নতুন ব্যবহারকারী নিবন্ধন করতে পারেন৷
- রোবো পরীক্ষার সময় থেকে সর্বাধিক সুবিধা পেতে একটি অ্যাপের একটি নির্দিষ্ট অংশে রোবোকে ফোকাস করুন। রোবো স্ক্রিপ্ট একটি অ্যাপের প্রাসঙ্গিক অংশে পৌঁছানোর জন্য রোবো পরীক্ষাকে গাইড করে, যেখানে রোবো পরীক্ষা একটি সম্পূর্ণ স্বয়ংক্রিয় ক্রল পুনরায় শুরু করে।
- একটি বিশ্লেষণ করার জন্য একটি অ্যাপকে একটি নির্দিষ্ট অবস্থা বা স্ক্রিনে আনুন, উদাহরণস্বরূপ, একটি ইন-অ্যাপ বার্তা, গোপনীয়তা নীতি, বা একটি গেমের নির্দিষ্ট স্তর বিশ্লেষণ করতে৷
- রোবো স্ক্রিপ্ট সম্পূর্ণ হওয়ার পরে সম্পূর্ণ স্বয়ংক্রিয় ক্রল পুনরায় শুরু করে রোবো টেস্ট সহ বা ছাড়াই এন্ড-টু-এন্ড ইন্সট্রুমেন্টেশন পরীক্ষা করুন।
নিম্নলিখিতগুলি করতে আরও উন্নত রোবো স্ক্রিপ্ট বৈশিষ্ট্যগুলি ব্যবহার করুন:
- রোবো অ্যাপ-আন্ডার-টেস্ট ক্রল করা শুরু করার আগে বা ক্রল শেষ হওয়ার পরে অ্যাকশনগুলি সম্পাদন করুন, উদাহরণস্বরূপ, ক্রল করার আগে অ্যাপ-আন্ডার-টেস্ট ডেটা পরিষ্কার করুন বা ডিভাইস সেটিংস পরিবর্তন করুন।
- ক্রল করার সময় Robo আচরণের দিক পরিবর্তন করুন, বিশেষ করে:
- রোবোকে কিছু UI উইজেট বা অ্যাপ স্ক্রীন উপেক্ষা করুন।
- একটি নির্দিষ্ট স্ক্রীন থেকে ব্যাকট্র্যাক করার সময় রোবোর জন্য একটি কাস্টম অ্যাকশন প্রদান করুন।
- যখনই একটি ক্রল করার সময় একটি নির্দিষ্ট অ্যাপ স্ক্রীনের সম্মুখীন হয় তখনই রোবোকে নির্দিষ্ট ক্রিয়া সম্পাদন করতে দিন।
- রোবো কীভাবে ক্রল করে তা সম্পূর্ণরূপে কাস্টমাইজ করুন। উদাহরণস্বরূপ, ডিভাইস ম্যানিপুলেশনগুলি সম্পাদন করার সময় এবং পথের ধারে প্রদর্শিত যে কোনও পপআপ ডায়ালগ খারিজ করার সময়, ক্রল জুড়ে পটভূমিতে অ্যাপ-আন্ডার-টেস্ট রাখতে শর্তাধীন এবং অ-শর্তহীন ক্রিয়াগুলির সংমিশ্রণ ব্যবহার করুন৷
মনে রাখবেন যে রোবো স্ক্রিপ্ট সব ধরনের পরীক্ষা প্রতিস্থাপন করে না। আপনার অ্যাপে নিম্ন-স্তরের লজিক বাগগুলি ধরতে আপনার এখনও ইউনিট পরীক্ষার প্রয়োজন; এই পরীক্ষাগুলির জন্য সাধারণত Android বা iOS পরিবেশের প্রয়োজন হয় না। আমরা সুপারিশ করি যে আপনি লক্ষ্যযুক্ত ইন্সট্রুমেন্টেশন পরীক্ষার সাথে রোবো স্ক্রিপ্ট পরীক্ষাগুলি সম্পূরক করুন যাতে ব্যবসায়িক যুক্তি সম্পর্কে নির্দিষ্ট, বিশদ দাবি থাকতে পারে, যা কোডে সর্বোত্তমভাবে প্রকাশ করা হয়।
পরবর্তী পদক্ষেপ
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-15 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-15 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["\u003cbr /\u003e\n\nThis document describes how to use *Robo scripts* , which are tests that automate\nmanual QA tasks for mobile apps, and enable continuous integration (CI) and\npre-launch testing strategies. For example, you can use Robo scripts to test a\ncommon user journey or provide specific user interface (UI) input, like a\nusername and password. Robo scripts are a feature of [Robo\ntest](/docs/test-lab/ios/robo-ux-test).\n\nRobo scripts use [Robo test](/docs/test-lab/android/robo-ux-test)\nas the test engine. In its most basic form, a Robo script consists of a\nsequence of UI actions like *enter text 'username'* and\nthen *tap the OK button* . Robo scripts can also include actions like waiting\nfor an element to appear, tapping at a specific point within an element, and\nexecuting Android Debug Bridge (`adb`) shell commands.\n\nRobo scripts have the following advantages over traditional testing frameworks:\n\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Capability** | **Description** |\n| Highly robust | Robo scripts can tolerate significant structural and behavioral differences between app versions and app flakiness. |\n| Open-ended | After a Robo script completes, the base Robo test can take over and continue testing the app. This continued testing approach enables several key use cases. For example, you can use a Robo script to bring an app into a particular state by performing a custom sign-in flow. |\n| Recordable | You don't need to code Robo scripts manually. They can be recorded using the Robo script recorder in Android Studio. Creating or modifying Robo scripts typically doesn't require any knowledge of mobile development. |\n| Flexible | Robo scripts can interact with non-native UI elements that are common in games. |\n\nRobo scripts are conditionally triggered during a Robo test, which lets users\naugment Robo's behavior - typically to achieve greater coverage or target\nspecific functionality. In contrast to traditional testing frameworks,\nRobo scripts support the following:\n\n- Various triggering conditions, for example, a particular app package name being active (or not) or a specific element being displayed on the screen (or not).\n- Execution controls, for example, a maximum number of executions, priority, relevant crawl stage.\n- Unconventional action types (conditional, element-ignoring, screen-closing).\n\nWe recommend that you use Robo scripts whenever possible because they can be\nmaintained effortlessly. For example, you can use a Robo script to do the\nfollowing:\n\n- Navigate significant workflows to get to the core of an app's functionality. For example, you can perform a sign-in, set up an app's state after the first launch, and register a new user.\n- Focus Robo on a particular part of an app to get the most out of Robo test time. Robo script guides Robo test to reach the relevant part of an app, where Robo test resumes a fully automated crawl.\n- Bring an app into a specific state or screen to perform an analysis, for example, to analyze an in-app message, privacy policy, or specific level of a game.\n- Perform an end-to-end instrumentation test, with or without Robo test resuming a fully automated crawl after the Robo script is complete.\n\nUse more advanced Robo script features to do the following:\n\n- Perform actions before Robo starts crawling the app-under-test or after a crawl is finished, for example, clean the app-under-test data before a crawl, or change device settings.\n- Change aspects of Robo behavior during a crawl, in particular:\n - Make Robo ignore some UI widgets or app screens.\n - Provide a custom action for Robo to perform when backtracking from a particular screen.\n - Make Robo perform specific actions whenever a particular app screen is encountered during a crawl.\n- Completely customize how Robo performs a crawl. For example, use a combination of conditional and non-conditional actions to keep the app-under-test in the background throughout the crawl, while performing device manipulations and dismissing any popup dialogs that appear along the way.\n\nKeep in mind that Robo scripts don't replace all kinds of tests. You still\nneed unit tests to catch low-level logic bugs in your app; these tests\ntypically don't require an Android or iOS environment. We recommend that you\nsupplement Robo script tests with targeted instrumentation tests that can have\nspecific, detailed assertions about business logic, which are best expressed\nin code.\n\nNext steps\n\n- To learn about Robo scripts structure, capabilities, usage, and actions, see\n the [Robo scripts reference guide](/docs/test-lab/android/robo-scripts-reference#ios-support-for-robo-scripts).\n\n- [Run a Robo test](/docs/test-lab/ios/robo-ux-test)."]]