{"id":407118,"date":"2024-07-08T15:03:47","date_gmt":"2024-07-08T15:03:47","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=407118"},"modified":"2024-07-08T15:03:50","modified_gmt":"2024-07-08T15:03:50","slug":"odoo-testing-using-odoo-cli","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/","title":{"rendered":"Odoo testing using ODOO CLI"},"content":{"rendered":"\n<ol class=\"wp-block-list\">\n<li>This article offers a comprehensive overview of conducting module testing using the Odoo CLI for developers.<\/li>\n\n\n\n<li>Before starting this tutorial, we assume that you have a foundational understanding of the Command Line Interface (CLI) in Odoo. If you lack this fundamental knowledge, it is advisable to acquaint yourself with a beginner&#8217;s guide to <a href=\"https:\/\/webkul.com\/blog\/beginner-guide-odoo-clicommand-line-interface\/\">Odoo CLI.<\/a><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What is the significance of utilizing the Command Line Interface (CLI) for conducting Odoo testing?<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Performing Odoo testing with the help of the Command Line Interface (CLI) offers several advantages:<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Automation:<\/strong> CLI automation streamlines various testing tasks, enabling tests to run automatically, which saves time and effort compared to manual testing.<\/li>\n\n\n\n<li><strong>Integration with Continuous Integration (CI) Tools:<\/strong> CLI integrates seamlessly with many Continuous Integration (CI) tools like Jenkins, GitLab CI\/CD, etc., facilitating the integration of testing processes into larger development pipelines.<\/li>\n\n\n\n<li><strong>Headless Operation:<\/strong> You can use CLI in headless mode, meaning it operates without requiring a graphical user interface. This makes it suitable for running tests on servers or in environments without a graphical interface.<\/li>\n\n\n\n<li><strong>Reproducibility:<\/strong> CLI testing allows for consistent and reproducible results. Running tests consistently across different environments ensures reliable results.<\/li>\n\n\n\n<li><strong>Customization:<\/strong> Developers can customize test runs by specifying various parameters and options through the CLI.<\/li>\n<\/ul>\n\n\n\n<p>Before moving ahead, check out our&nbsp;<a href=\"https:\/\/webkul.com\/odoo-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">Odoo development<\/a>&nbsp;services &amp; an extensive range of quality&nbsp;<a href=\"https:\/\/store.webkul.com\/Odoo.html\" target=\"_blank\" rel=\"noreferrer noopener\">Odoo Apps<\/a><em>.<\/em><\/p>\n\n\n\n<p style=\"font-size:29px\"><strong>How to perform testing using Odoo CLI?<\/strong><\/p>\n\n\n\n<p><strong>Write Tests<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To write tests, create a <strong>tests<\/strong> sub-package in your module.The system will automatically inspect it for test modules. Test modules should have a name starting with <code><strong>test_<\/strong><\/code> and should be imported from <code><strong>tests\/__init__.py<\/strong><\/code>.<\/li>\n<\/ul>\n\n\n\n<p>Example directory structure:<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">your_module\n\u251c\u2500\u2500 ...\n\u251c\u2500\u2500 tests\n|   \u251c\u2500\u2500 __init__.py\n|   \u251c\u2500\u2500 test_bar.py\n|   \u2514\u2500\u2500 test_foo.py<\/pre>\n<\/div><\/div>\n\n\n\n<p><strong>Contents of <code>__init__.py<\/code>:<\/strong><\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from . import test_foo, test_bar<\/pre>\n<\/div><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Run Tests After Module Installation<\/strong> :<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>To run tests automatically after module installation, use the<strong> <code>--test-enable<\/code><\/strong> flag. Here<strong> &#8220;.&#8221;<\/strong> represents the current directory (where the executable file odoo-bin is present).  <\/li>\n\n\n\n<li>&#8220;-d&#8221; or &#8220;-database&#8221; specifies the particular database you want to automatically run tests for after module installation.<\/li>\n\n\n\n<li>The <code><strong>--logfile=\/<\/strong><\/code> option specifies the file path and name where the Odoo server will write its log output.<\/li>\n<\/ol>\n\n\n\n<p><strong>Syntax:-<\/strong><\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.\/odoo-bin -d cli_database --test-enable --logfile=\/<\/pre>\n<\/div><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Output for the above command<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"153\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11-1200x153.png\" alt=\"Screenshot-from-2023-10-23-11-05-11\" class=\"wp-image-407153\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11-1200x153.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11-300x38.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11-250x32.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11-768x98.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11-1536x196.png 1536w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11.png 1541w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Run Specific Test Files<\/strong> :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you have specific test files you want to execute, use the <code>--test-file &lt;file&gt;<\/code> option<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.\/odoo-bin -d cli_database --test-file addons\/account\/tests\/test_account_account.py<\/pre>\n<\/div><\/div>\n\n\n\n<p><strong>Output for the above command<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"324\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/1-13-1200x324.png\" alt=\"1-13\" class=\"wp-image-407160\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/1-13-1200x324.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/1-13-300x81.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/1-13-250x68.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/1-13-768x207.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/1-13-1536x415.png 1536w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/1-13.png 1540w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Apply Test Tags for Filtering<\/strong> :<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>So if you want to test the&nbsp;<code>stock_account<\/code>&nbsp;module, you can use:<br><strong>&#8220;.\/odoo-bin &#8211;test-tags \/stock_account&#8221;<\/strong><\/li>\n\n\n\n<li><strong><code>--test-tags<\/code>:<\/strong> This Odoo command-line option specifies which tests to execute. In this case, the tests you specify after this option are the ones that will be run.<\/li>\n\n\n\n<li><strong><code>:TestAccountMove.test_out_invoice_auto_post_monthly,TestAccountMove.test_included_tax<\/code>:<\/strong> These are the test tags or labels. They are used to categorize and identify specific tests in Odoo. In this command, it&#8217;s telling Odoo to run two specific tests:\n<ol class=\"wp-block-list\">\n<li><strong><code>TestAccountMove.test_out_invoice_auto_post_monthly<\/code>: <\/strong>This likely refers to a specific test method named <code>test_out_invoice_auto_post_monthly<\/code> inside a class named <code>TestAccountMove<\/code>.<\/li>\n\n\n\n<li><strong><code>TestAccountMove.test_included_tax<\/code>:<\/strong> Similarly, this likely refers to a specific test method named <code>test_included_tax<\/code> inside a class named <code>TestAccountMove<\/code>.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.\/odoo-bin -d cli_database --test-tags :TestAccountMove.test_out_invoice_auto_post_monthly,TestAccountMove.test_included_tax<\/pre>\n<\/div><\/div>\n\n\n\n<p><strong>Output for the above command<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"318\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/3-10-1200x318.png\" alt=\"3-10\" class=\"wp-image-407175\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/3-10-1200x318.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/3-10-300x79.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/3-10-250x66.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/3-10-768x204.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/3-10.png 1468w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Generate Screenshots of Test Failures<\/strong>:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When running tests that use<strong>\u00a0<code>HttpCase.browser_js<\/code>\u00a0<\/strong>from the command line, the Chrome browser is used in headless mode. The system takes a PNG screenshot at the moment of a test failure by default and writes it in &#8216;\/tmp\/odoo_tests\/{db_name}\/screenshots\/&#8217;.<\/li>\n\n\n\n<li>Two new command line arguments were added since Odoo 13.0 to control this behavior:&nbsp;<a href=\"https:\/\/www.odoo.com\/documentation\/16.0\/developer\/reference\/cli.html#cmdoption-odoo-bin-screenshots\"><code>--screenshots<\/code><\/a>&nbsp;and&nbsp;<a href=\"https:\/\/www.odoo.com\/documentation\/16.0\/developer\/reference\/cli.html#cmdoption-odoo-bin-screencasts\"><code>--screencasts<\/code><\/a><\/li>\n\n\n\n<li>Recording a video for the test case requires the ffmpeg package.<\/li>\n<\/ul>\n\n\n\n<p>&#8220;For further details on Odoo testing procedures, including advanced testing techniques and best practices, please refer to the official Odoo developer documentation on testing: <a href=\"https:\/\/www.odoo.com\/documentation\/16.0\/developer\/reference\/backend\/testing.html\">Odoo Testing Documentation<\/a>&#8220;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><strong>NEED HELP?<\/strong><\/strong><\/h2>\n\n\n\n<p>Hope you find the guide helpful! Please feel free to share your feedback in the comments below.<\/p>\n\n\n\n<p>If you still have any issues\/queries regarding the same, please raise a ticket at the&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\">UV Desk<\/a>.<\/p>\n\n\n\n<p>For any doubt, contact us at our&nbsp;<a href=\"mailto:support@webkul.com\" target=\"_blank\" rel=\"noreferrer noopener\">support mail<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is the significance of utilizing the Command Line Interface (CLI) for conducting Odoo testing? Performing Odoo testing with the help of the Command Line Interface (CLI) offers several advantages: Before moving ahead, check out our&nbsp;Odoo development&nbsp;services &amp; an extensive range of quality&nbsp;Odoo Apps. How to perform testing using Odoo CLI? Write Tests: Example directory <a href=\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":602,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2007],"tags":[],"class_list":["post-407118","post","type-post","status-publish","format-standard","hentry","category-odoo"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Odoo testing using ODOO CLI<\/title>\n<meta name=\"description\" content=\"This article offers a comprehensive overview of conducting module testing using the Odoo CLI for developers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Odoo testing using ODOO CLI\" \/>\n<meta property=\"og:description\" content=\"This article offers a comprehensive overview of conducting module testing using the Odoo CLI for developers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-08T15:03:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-08T15:03:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11-1200x153.png\" \/>\n<meta name=\"author\" content=\"Akshat Jindal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Akshat Jindal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/\"},\"author\":{\"name\":\"Akshat Jindal\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/22aa2b4b9ed2adced1652d5c1d1d69dc\"},\"headline\":\"Odoo testing using ODOO CLI\",\"datePublished\":\"2024-07-08T15:03:47+00:00\",\"dateModified\":\"2024-07-08T15:03:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/\"},\"wordCount\":626,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11-1200x153.png\",\"articleSection\":[\"Odoo\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/\",\"url\":\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/\",\"name\":\"Odoo testing using ODOO CLI\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11-1200x153.png\",\"datePublished\":\"2024-07-08T15:03:47+00:00\",\"dateModified\":\"2024-07-08T15:03:50+00:00\",\"description\":\"This article offers a comprehensive overview of conducting module testing using the Odoo CLI for developers.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11.png\",\"width\":1541,\"height\":197,\"caption\":\"Screenshot-from-2023-10-23-11-05-11\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Odoo testing using ODOO CLI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/22aa2b4b9ed2adced1652d5c1d1d69dc\",\"name\":\"Akshat Jindal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/04f956bf3cba34e3155a81b6ee5af8caa7d17da2405215280345b74c4860c459?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/04f956bf3cba34e3155a81b6ee5af8caa7d17da2405215280345b74c4860c459?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Akshat Jindal\"},\"description\":\"Akshat is a skilled Business Analyst with expertise in the Odoo platform. He excels in streamlining business processes, delivering actionable insights, and ensuring seamless system integration. His analytical approach and strategic mindset empower businesses to achieve operational excellence and drive growth.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/akshatjindal-int786\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Odoo testing using ODOO CLI","description":"This article offers a comprehensive overview of conducting module testing using the Odoo CLI for developers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/","og_locale":"en_US","og_type":"article","og_title":"Odoo testing using ODOO CLI","og_description":"This article offers a comprehensive overview of conducting module testing using the Odoo CLI for developers.","og_url":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2024-07-08T15:03:47+00:00","article_modified_time":"2024-07-08T15:03:50+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11-1200x153.png","type":"","width":"","height":""}],"author":"Akshat Jindal","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Akshat Jindal","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/"},"author":{"name":"Akshat Jindal","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/22aa2b4b9ed2adced1652d5c1d1d69dc"},"headline":"Odoo testing using ODOO CLI","datePublished":"2024-07-08T15:03:47+00:00","dateModified":"2024-07-08T15:03:50+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/"},"wordCount":626,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11-1200x153.png","articleSection":["Odoo"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/","url":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/","name":"Odoo testing using ODOO CLI","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11-1200x153.png","datePublished":"2024-07-08T15:03:47+00:00","dateModified":"2024-07-08T15:03:50+00:00","description":"This article offers a comprehensive overview of conducting module testing using the Odoo CLI for developers.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-from-2023-10-23-11-05-11.png","width":1541,"height":197,"caption":"Screenshot-from-2023-10-23-11-05-11"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/odoo-testing-using-odoo-cli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Odoo testing using ODOO CLI"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/22aa2b4b9ed2adced1652d5c1d1d69dc","name":"Akshat Jindal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/04f956bf3cba34e3155a81b6ee5af8caa7d17da2405215280345b74c4860c459?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/04f956bf3cba34e3155a81b6ee5af8caa7d17da2405215280345b74c4860c459?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Akshat Jindal"},"description":"Akshat is a skilled Business Analyst with expertise in the Odoo platform. He excels in streamlining business processes, delivering actionable insights, and ensuring seamless system integration. His analytical approach and strategic mindset empower businesses to achieve operational excellence and drive growth.","url":"https:\/\/webkul.com\/blog\/author\/akshatjindal-int786\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/407118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/602"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=407118"}],"version-history":[{"count":15,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/407118\/revisions"}],"predecessor-version":[{"id":451973,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/407118\/revisions\/451973"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=407118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=407118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=407118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}