Apps Script के Google Workspace ऐड-ऑन की जांच करना और उन्हें डीबग करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ऐड-ऑन पब्लिश करने पर, उपयोगकर्ता उसे होस्ट ऐप्लिकेशन या Google Workspace Marketplace से इंस्टॉल कर सकते हैं. पब्लिश करने से पहले, उन ऐड-ऑन की जांच करें जिन्हें आपने उन होस्ट ऐप्लिकेशन के लिए डेवलप किया है जिनमें उन्हें जोड़ा जाता है.
इस पेज पर, टेस्टिंग या निजी इस्तेमाल के लिए, ऐसे ऐड-ऑन को इंस्टॉल करने का तरीका बताया गया है जो अभी डेवलप किया जा रहा है. इसे पब्लिश नहीं किया गया या डेवलपर ऐड-ऑन कहा जाता है. Apps Script IDE के डीबगर और ब्रेकपॉइंट का इस्तेमाल करके भी ऐड-ऑन डीबग किए जा सकते हैं.
ज़रूरी शर्तें
आपके पास ऐड-ऑन के स्क्रिप्ट प्रोजेक्ट के लिए, एडिटर ऐक्सेस होना चाहिए.
अपने संगठन के अन्य लोगों को ऐड-ऑन की जांच करने की अनुमति देने के लिए, उन्हें स्क्रिप्ट प्रोजेक्ट का एडिटर ऐक्सेस दें. ऐक्सेस देने के बारे में ज़्यादा जानने के लिए, दूसरे डेवलपर के साथ मिलकर काम करना लेख पढ़ें.
अनपब्लिश किया गया ऐड-ऑन इंस्टॉल करना
पब्लिश नहीं किए गए ऐड-ऑन, Apps Script के डिप्लॉयमेंट डायलॉग से इंस्टॉल किए जा सकते हैं.
टेस्ट करने के लिए, पब्लिश नहीं किए गए Google Workspace ऐड-ऑन को इंस्टॉल करने के लिए, यह तरीका अपनाएं:
Apps Script एडिटर में स्क्रिप्ट प्रोजेक्ट खोलें.
डिप्लॉय करें > डिप्लॉयमेंट की जांच करें पर क्लिक करें.
इंस्टॉल करें क्लिक करें
सबसे नीचे, हो गया पर क्लिक करें.
अन्य उपयोगकर्ताओं को ऐड-ऑन की जांच करने की अनुमति दी जा सकती है. इसके लिए, उनके खाते के साथ Apps Script प्रोजेक्ट शेयर करें. इसके लिए, बदलाव करने का ऐक्सेस ज़रूरी है. इसके बाद, उपयोगकर्ताओं से ऊपर दिया गया तरीका अपनाने के लिए कहें.
इंस्टॉल होने के बाद, ऐड-ऑन उन होस्ट ऐप्लिकेशन में तुरंत उपलब्ध हो जाता है जिनमें इसे जोड़ा गया है. ऐड-ऑन दिखने से पहले, होस्ट ऐप्लिकेशन टैब को रीफ़्रेश करना पड़ सकता है. ऐड-ऑन का इस्तेमाल करने से पहले, आपको उसे अनुमति भी देनी होगी.
अनपब्लिश किए गए ऐड-ऑन को अनइंस्टॉल करना
पब्लिश नहीं किए गए ऐड-ऑन डिप्लॉयमेंट को अनइंस्टॉल करने के लिए, यह तरीका अपनाएं:
Apps Script एडिटर में स्क्रिप्ट प्रोजेक्ट खोलें.
डिप्लॉय करें > डिप्लॉयमेंट की जांच करें पर क्लिक करें.
अनइंस्टॉल करें पर क्लिक करें.
सबसे नीचे, हो गया पर क्लिक करें.
इन चरणों से डिप्लॉयमेंट तुरंत हट जाता है और ऐड-ऑन किसी भी होस्ट ऐप्लिकेशन में नहीं दिखता. इंस्टॉल करने की प्रोसेस को दोहराकर, डिप्लॉयमेंट को कभी भी फिर से इंस्टॉल किया जा सकता है.
टेस्टिंग के सबसे सही तरीके
Google Workspace के लिए बनाए गए ऐड-ऑन की जांच करते समय, ऐड-ऑन डेवलप करने के लिए सबसे सही तरीकों का पालन करना न भूलें. इसके अलावा, ये काम भी ज़रूर करें:
उन सभी होस्ट ऐप्लिकेशन में कार्ड नेविगेशन फ़्लो की पूरी तरह से जांच करें जिनमें ऐड-ऑन काम करता है. पक्का करें कि उपयोगकर्ता के एक कॉन्टेक्स्ट से दूसरे कॉन्टेक्स्ट पर जाने और बिना कॉन्टेक्स्ट वाले और कॉन्टेक्स्ट वाले कार्ड के बीच स्विच करने पर, ऐड-ऑन का व्यवहार सही हो.
अगर आपका ऐड-ऑन, तीसरे पक्ष के एपीआई या किसी अन्य सेवा से कनेक्ट होता है, तो पुष्टि करें कि सेवा को ऐक्सेस किया जा सकता है और वह उम्मीद के मुताबिक काम करती है. पक्का करें कि आपका ऐड-ऑन, अनुमति और लॉग-इन की जानकारी को सही तरीके से मैनेज कर रहा हो.
पक्का करें कि गड़बड़ी की किसी भी स्थिति को आसानी से मैनेज किया जा सके. जहां ज़रूरी हो वहां गड़बड़ी के कार्ड इस्तेमाल करें.
ध्यान दें कि ऐड-ऑन की परफ़ॉर्मेंस कैसी है. अगर कोड में बदलाव करने पर, ऐड-ऑन की परफ़ॉर्मेंस खराब हो जाती है, तो आपको उस सुविधा को हटाना पड़ सकता है या उसमें फिर से काम करना पड़ सकता है.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2024-12-22 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eUnpublished Google Workspace add-ons can be installed for testing and personal use directly from the Apps Script project.\u003c/p\u003e\n"],["\u003cp\u003eUsers need editor access to the script project to install and test the unpublished add-on.\u003c/p\u003e\n"],["\u003cp\u003eUninstalling an unpublished add-on removes it from all host applications and requires reinstallation for further use.\u003c/p\u003e\n"],["\u003cp\u003eThorough testing is crucial, including card navigation, data handling, external service integrations, error management, and performance evaluation.\u003c/p\u003e\n"]]],["To test an unpublished add-on, open its script project in the Apps Script editor and navigate to **Deploy \u003e Test deployments**. Click **Install**, then **Done** to make it available in host applications. Share the project for others to test. Uninstall by repeating the process and selecting **Uninstall**. Testing should include card navigation, example data evaluation, third-party service verification, error handling, and performance monitoring.\n"],null,["# Test and debug Apps Script Google Workspace add-ons\n\nWhen you publish an add-on, users can install it\nthrough the host application\nor the [Google Workspace Marketplace](https://workspace.google.com/marketplace/). Before you publish, test the\nadd-ons that you develop within the host applications that\nthey extend.\n\nThis page describes how to install an add-on that is\nunder development (called an *unpublished* or *developer*\nadd-on) for testing or\npersonal use. You can also debug add-ons using the\nApps Script\nIDE's [debugger and breakpoints](/apps-script/guides/support/troubleshooting#use-debugger).\n\nPrerequisites\n-------------\n\n- You must have editor access to the add-on's script project.\n- To let other people in your organization test the add-on, grant them editor access to the script project. For details about granting access, see [Collaborating with Other Developers](/apps-script/guides/collaborating).\n\nInstall an unpublished add-on\n-----------------------------\n\nYou can install unpublished add-ons from Apps Script's **Deployments**\ndialog.\n\nFollow these steps to install an unpublished\nGoogle Workspace add-on for testing:\n\n1. Open the script project in the Apps Script editor.\n2. Click **Deploy \\\u003e Test deployments**.\n3. Click **Install**.\n4. At the bottom, click **Done**.\n\nYou can let other users test the add-on by sharing the Apps Script project\nwith their account (edit access is required). Then prompt the users to\nfollow the above steps.\n\nOnce installed, the add-on is immediately available in host applications it\nextends. You may need to refresh the host application tab before the add-on\nappears. You must also\n[authorize](/workspace/add-ons/how-tos/authorizing-addons#authorizing_unpublished_g_suite_add-ons)\nthe add-on before using it.\n\nUninstall an unpublished add-on\n-------------------------------\n\nTo uninstall an unpublished add-on deployment, follow these steps:\n\n1. Open the script project in the Apps Script editor.\n2. Click **Deploy \\\u003e Test deployments**.\n3. Click **Uninstall**.\n4. At the bottom, click **Done**.\n\nThese steps immediately remove the deployment and the add-on no longer appears\nin any host application. You can reinstall the deployment at any time by\nrepeating the [install procedure](#install_an_unpublished_add-on).\n\nTesting best practices\n----------------------\n\nWhile testing your Google Workspace add-on, be sure\nto follow the\n[Best practices](/workspace/add-ons/guides/workspace-best-practices)\nfor add-on development. In addition, be sure to do the following:\n\n1. Test card navigation flows thoroughly in all the host applications the\n add-on extends. Make sure the add-on behavior is correct as the user moves\n from context to context, and between non-contextual and contextual cards.\n\n2. [Use example test data](/workspace/add-ons/guides/workspace-best-practices#_write_tests_and_test_messages)\n to evaluate your add-on's behavior.\n\n3. If your add-on connects to a third-party API or other service, verify\n that the service can be accessed and behaves as expected. Make sure\n your add-on is handling the\n [authorization and log-in details](/workspace/add-ons/how-tos/non-google-services)\n correctly.\n\n4. Make sure any error conditions are handled gracefully. [Use error cards](/workspace/add-ons/guides/workspace-best-practices#_use_error_cards)\n where needed.\n\n5. Pay attention to how performant the add-on is. If you make a change to the\n code and the add-on starts slowing down, you may need to remove or rework\n that feature."]]