पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv1.2.0

flutter_test_robots

मानव-कंप्यूटर इंटरैक्शन को सिमुलेट करने के लिए Flutter टेस्ट टूल्स और एक्सटेंशन

30-दिन डाउनलोड
63.5 हज़ार
लाइक
34
Pub अंक
150

पैकेज इंस्टॉल करें

flutter pub add flutter_test_robots

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

Flutter Test Robots एक परीक्षण टूलकिट है जो Flutter ऐप परीक्षण को सरल और बेहतर बनाने के लिए वास्तविक मानव-कंप्यूटर अंतरक्रिया का अनुकरण करने वाले विस्तार प्रदान करता है। यह विकासकर्ताओं को अधिक प्राकृतिक, पठनीय परीक्षण स्क्रिप्ट लिखने की अनुमति देता है जो टैप करने, टाइप करने और स्क्रॉल करने जैसे उपयोगकर्ता क्रियाकलापों का अनुकरण करते हैं। Flutter के परीक्षण फ्रेमवर्क के साथ एकीकरण के लिए बनाया गया, यह परीक्षण विश्वसनीयता और रखरखाव में सुधार करता है। यह पैकेज विजेट और एकीकरण परीक्षण दोनों का समर्थन करता है, जिससे बॉइलरप्लेट कोड के बिना जटिल UI व्यवहार की जांच करना आसान हो जाता है।

उपयोग

  • UI इंटरैक्शन परीक्षण स्वचालित करना
  • परीक्षण में उपयोगकर्ता कार्य प्रवाह का अनुकरण करना
  • परीक्षण की पठनीयता और रखरखाव में सुधार करना
  • फॉर्म इनपुट्स और नेविगेशन की जाँच करना
  • डायनामिक यूआई कंपोनेंट्स का परीक्षण

मुख्य विशेषताएँ

  • मानव-जैसी इंटरैक्शन सिमुलेशन
  • पठनीय और व्यक्त करने वाला परीक्षण सिंटैक्स
  • Flutter के टेस्ट फ्रेमवर्क के साथ एकीकरण
  • विजेट और एंटीग्रेशन परीक्षण का समर्थन
  • विस्तारयोग्य और संयोज्य क्रिया श्रृंखला

इनके लिए उपयुक्त

  • फ्लटर विकासकर्मी स्वचालित परीक्षण लिख रहे हैं
  • परीक्षण गुणवत्ता और स्पष्टता को प्राथमिकता देने वाली टीमें
  • जटिल UI इंटरैक्शन सत्यापन की आवश्यकता वाले प्रोजेक्ट्स
  • Flutter का उपयोग करने वाले परीक्षण स्वचालन इंजीनियर
  • परीक्षण अस्थिरता कम करने की खोज कर रहे विकासकर्ता

विचार योग्य बातें

  • Flutter परीक्षण के साथ परिचित होना आवश्यक है
  • थोड़ा बढ़ सकता है परीक्षण सूट का आकार
  • गैर-UI परीक्षण परिदृश्य के लिए उपयुक्त नहीं
  • मूल उदाहरणों के अलावा सीमित दस्तावेज़न
  • मौजूदा परीक्षण फ्रेमवर्क के साथ उपयोग किया जाना चाहिए

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Flutter Test Robots - Easily simulate human behaviors in tests

Built by the Flutter Bounty Hunters



Check out our Usage Guide


Easy keyboard shortcuts

flutter_test_robots adds methods to WidgetTester for many common keyboard shortcuts.

void main() {
  testWidgets("easy shortcuts", (tester) async {
    await tester.pressEnter();

    await tester.pressShiftEnter();
    
    await tester.pressAltLeftArrow();
  });
}

Simulate hardware keyboard text input

flutter_test_robots presses key combos for every character in a given string.

void main() {
  testWidgets("type with a hardware keyboard", (tester) async {
    // Simulate every key press that's needed to type "Hello, world!".
    await tester.typeKeyboardText("Hello, world!");
  });
}

Simulate IME text input

flutter_test_robots breaks strings into text editing deltas and sends the deltas through the standard DeltaTextInputClient API.

void main() {
  testWidgets("type with the IME", (tester) async {
    // Simulate every IME delta needed to type "Hello, world!".
    await tester.ime.typeText("Hello, world!");
  });
}

Simulate popular mobile devices

flutter_test_robots can configure a WidgetTester viewport like popular recent phones.

void main() {
  testWidgets("renders on iPhone 16 Pro Max", (tester) async {
    tester.asIPhone16ProMax();

    await tester.pumpWidget(MyApp());
  });

  testWidgets("renders on every built-in test device", (tester) async {
    for (final device in TestDevices.all) {
      tester.configureForDevice(device);

      await tester.pumpWidget(MyApp());
    }
  });
}

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।

रैंकिंग