कॉन्टेंट-ड्रिवन वेब ऐप्लिकेशन फ़्रंटएंड की जांच करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
कॉन्टेंट पर चलने वाले आपके वेब ऐप्लिकेशन के फ़ंक्शन, क्वालिटी, सुलभता, सुरक्षा, और परफ़ॉर्मेंस को पक्का करने के लिए टेस्टिंग ज़रूरी है. टेस्टिंग से
उपयोगकर्ता अनुभव का आकलन किया जा सकता है. साथ ही, यह तय किया जा सकता है कि
आगे और बेहतर करने की ज़रूरत है या नहीं. आपके वेब ऐप्लिकेशन को क्वालिटी स्टैंडर्ड के मुताबिक होना चाहिए और उम्मीद के मुताबिक
परफ़ॉर्म करना चाहिए.
इससे आपको जांच के लिए बुनियादी दिशा-निर्देश मिलते हैं, ताकि आप अपने वेब ऐप्लिकेशन को आसानी से इस्तेमाल करने लायक और उपयोगकर्ता के लिए आसान बना सकें.
घटक |
कलर कंट्रास्ट |
यह पक्का करता है कि कंट्रास्ट अनुपात को पढ़ने के हिसाब से ऑप्टिमाइज़ किया गया है. अलग-अलग तरह के कलर ब्लाइंडनेस और उपयोगकर्ताओं की ओर से तय किए गए हाई कंट्रास्ट वाले रंगों के लिए जांच की ज़रूरत होती है.
|
टाइपाेग्राफ़ी |
तय करें कि क्या ऐप्लिकेशन अलग-अलग डिवाइसों और सेटिंग के साथ काम करता है. मिलते-जुलते फ़ॉन्ट साइज़ और नॉन लीनियर स्केलिंग का इस्तेमाल करके, टाइपोग्राफ़ी को अब भी ज़्यादा से ज़्यादा साइज़ के लिए इस्तेमाल किया जा सकता है.
|
इमेज |
यह पक्का करता है कि इमेज अच्छी क्वालिटी की हों और तेज़ी से लोड हो सकें. ज़्यादा रिज़ॉल्यूशन के लिए, बिना नेटवर्क वाले सही फ़ॉलबैक और ऑप्टिमाइज़ की गई एसेट की जांच करना ज़रूरी है.
|
नेविगेशन |
पक्का करता है कि नेविगेशन साफ़ है और माउस, टच, और कीबोर्ड नेविगेशन से इस्तेमाल किया जा सकता है.
इतिहास एपीआई की जांच करने से यह पक्का होता है कि बैक और फ़ॉरवर्ड नेविगेशन को भी सही तरीके से सुरक्षित रखा गया है.
|
रिपोर्ट में खोजना |
यूआरएल क्वेरी पैरामीटर और खोज फ़ील्ड में, क्वेरी के जवाब देने में लगने वाले समय को कम करने के लिए जांच
करें.
|
फ़ॉर्म |
यह पक्का किया जाता है कि सभी फ़ॉर्म, उपयोगकर्ता के लिए आसानी से भरे जा सकें और उन्हें सबमिट किया जा सके. अगर डिफ़ॉल्ट फ़ॉर्म सबमिशन को बदला जाता है, तो सही इवेंट को ध्यान से सुनना चाहिए और उनकी जांच करनी चाहिए, ताकि फ़ॉर्म को सही तरीके से रीसेट किया जा सके. साथ ही, नुकसान पहुंचाने वाले उपयोगकर्ता इनपुट से सुरक्षा की जा सके.
|
परफ़ॉर्मेंस |
यह पक्का करता है कि ऐप्लिकेशन तेज़ी से लोड होने के साथ-साथ बेहतर और रिस्पॉन्सिव हो. यह रिग्रेशन टेस्टिंग का भी एक अहम हिस्सा होना चाहिए.
|
ऐसे कई टूल हैं जिनका इस्तेमाल करके
वेब सुलभता की जांच की जा सकती है. सुलभता कॉम्पोनेंट की रेंज को कवर करने के लिए, कई तरीकों का इस्तेमाल करना ज़रूरी है. ARIA लेबल, DOM एलिमेंट पर a11y, कीबोर्ड नेविगेशन, और स्क्रीन रीडर के इस्तेमाल की जांच ज़रूर करें.
फ़्रंट एंड टेस्टिंग फ़्रेमवर्क, जैसे कि Jest, Vitest,
Cypress,
Mocha या
Jasmin, की मदद से आपको टेस्ट को बेहतर तरीके से लिखने में मदद मिलती है. साथ ही, ये टेस्ट व्यवहार के आधार पर होने वाले डेवलपमेंट में भी मदद करते हैं. सीआई/सीडी पाइपलाइन को इंटिग्रेट करने से, अपने टेस्ट को ऑटोमेट किया जा सकता है. साथ ही, रिग्रेशन से जुड़ी गड़बड़ियों को रोका जा सकता है.
रनर फ़्रेमवर्क, जैसे कि वेब टेस्ट
रनर,
Playwright, वेब
ड्राइवर या Node.js में
टेस्ट रनर, की मदद से आप ये जांच बेहतर तरीके से कर सकते हैं. साथ ही, इससे कई एनवायरमेंट और प्लैटफ़ॉर्म पर टेस्ट करने में भी मदद मिलती है. यह पूरी सूची नहीं है. इस्तेमाल किए जा रहे फ़्रेमवर्क के आधार पर, यह बिल्ट-इन टेस्टिंग हो सकता है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eTesting is essential for ensuring the functionality, quality, accessibility, security, and performance of your web application, ultimately enhancing user experience.\u003c/p\u003e\n"],["\u003cp\u003eKey components of web application testing include color contrast, typography, images, navigation, search, forms, and performance.\u003c/p\u003e\n"],["\u003cp\u003eUtilize a variety of accessibility testing tools and methods to cover a comprehensive range of components like ARIA labels, keyboard navigation, and screen reader compatibility.\u003c/p\u003e\n"],["\u003cp\u003eLeverage front-end testing frameworks such as Jest, Vitest, Cypress, Mocha, or Jasmine to efficiently write and automate tests, supporting both behavior-driven and test-driven development.\u003c/p\u003e\n"],["\u003cp\u003eEmploy runner frameworks like Web Test Runner, Playwright, Web Driver, or Node.js's Test Runner for executing tests across multiple environments and platforms.\u003c/p\u003e\n"]]],["Testing should evaluate web application accessibility, functionality, and performance. Key actions include checking color contrast for readability, ensuring relative typography scaling, and verifying image quality and load times. Navigation should be usable via mouse, touch, and keyboard. Search response times should be fast, and forms must be user-friendly with appropriate event handling. Performance, including fast load times, is vital. Multiple tools and front-end frameworks (e.g., Jest, Cypress) can aid in this process, and automation via CI/CD pipelines is recommended.\n"],null,["# Testing a content-driven web app frontend\n\nTesting is crucial to ensuring the functionality, quality, accessibility,\nsecurity, and performance of your content driven web application. Testing lets\nyou assess the user experience and determine if further development is\nnecessary. Your web application should meet quality standards and perform as\nexpected.\n\nThis provides basic testing guidance for you to consider to make your web\napplication accessible and user-friendly.\n\n| Components ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Color contrast | Ensures that the contrast ratio is optimized for readability. Checks need to be done for various types of color blindness and user defined high contrast forced colors. |\n| Typography | Determines if the application accommodates different devices and settings. By using relative font size and non linear scaling the typography can still be usable on the max size. |\n| Images | Ensures that the images are high quality and can load quickly. It is important to check for correct fallbacks with no network and optimized assets for higher resolutions. |\n| Navigation | Ensures that the navigation is clear and usable by mouse, touch and keyboard navigation. Checking the history api ensures the back and forward navigation is also preserved correctly. |\n| Search | Check for low latency in response times to queries in the URL query parameters and search field. |\n| Form | Ensures that all forms are user-friendly to complete and submit. If overriding the default form submission the correct events need to be listened to and checked for proper form reset and protection against malicious user input. |\n| Performance | Ensures that the application is efficient and responsive, with fast load times. This should be an important part of regression testing too. |\n\nThere are [many tools](https://www.w3.org/WAI/ER/tools/) you can\nuse to check web accessibility. It is important to use multiple methods in order\nto cover the range of accessibility components. Be sure to check for ARIA\nlabels, a11y on DOM elements, keyboard navigation, and screen reader use.\n\nFront end testing frameworks, such as [Jest](https://jestjs.io/),\n[Vitest](https://vitest.dev/),\n[Cypress](https://www.cypress.io/),\n[Mocha](https://mochajs.org/) or\n[Jasmine](https://jasmine.github.io/) help you write tests\nefficiently and support behavior-driven and test-driven development. With\nintegrations into CI/CD pipelines you can also automate your tests and help\nprevent regression bugs in commits.\n\nRunner frameworks, such as [Web Test\nRunner](https://modern-web.dev/docs/test-runner/overview/),\n[Playwright](https://playwright.dev/), [Web\nDriver](https://webdriver.io/) or the [Test Runner in\nNode.js](https://nodejs.org/api/test.html) let you execute these\ntests efficiently and support testing across multiple environments and\nplatforms. This is not an exhaustive list and depending on the framework you are\nusing there could be testing built-in."]]