{"id":4484,"date":"2017-03-01T09:27:00","date_gmt":"2017-03-01T08:27:00","guid":{"rendered":"https:\/\/www.utilewebsites.nl\/knowledgebase\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\/"},"modified":"2023-04-06T06:47:16","modified_gmt":"2023-04-06T05:47:16","slug":"individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time","status":"publish","type":"wz_knowledgebase","link":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\/","title":{"rendered":"Individual (manual) testing by cron job in Magento 1.9.3 + measuring execution time"},"content":{"rendered":"<p>In some cases, one wants to run tests by cron job. Only how to do this in Magento 1.9.3 ?<\/p>\n<p>First, install Aoe_Scheduler : <span style=\"color: #0000ff;\"><br \/>\n<a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/AOEpeople\/Aoe_Scheduler\">https:\/\/github.com\/AOEpeople\/Aoe_Scheduler<\/a><br \/>\n<\/span><\/p>\n<p>You can then run the following via the command line :<\/p>\n<pre>1 : Go to the root of your Magento installation.\n\n<\/pre>\n<pre>2: overview of possibilities\n<span style=\"font-size: 12px;\">\n&gt; cd shell\n&gt; php scheduler.php\nAvailable actions:\n    --action listAllCodes\n    --action scheduleNow --code code    Schedule a job to be executed as soon as possible\n    --action runNow --code code       Run a job directly\n<\/span>\n<\/pre>\n<pre>3: overzicht cronjobs\n\n&gt; php scheduler.php --action listAllCodes\naggregate_sales_report_bestsellers_data            0 0 * * *            disabled\naggregate_sales_report_coupons_data                0 0 * * *            disabled\naggregate_sales_report_invoiced_data               0 0 * * *            enabled\naggregate_sales_report_order_data                  0 0 * * *            disabled\naggregate_sales_report_refunded_data               0 0 * * *            enabled\naggregate_sales_report_shipment_data               0 0 * * *            disabled\naggregate_sales_report_tax_data                    0 0 * * *            enabled\naoeasynccache                                      *\/15 * * * *         enabled\naoecachecleaner                                    17 * * * *           enabled\ncatalog_product_alert                              0 0 * * *            enabled\ncatalog_product_index_price_reindex_all            0 2 * * *            enabled\ncatalogrule_apply_all                              0 1 * * *            enabled\ncurrency_rates_update                              0 0 * * *            enabled\nlog_clean                                                               enabled\nnewsletter_send_all                                *\/5 * * * *          disabled\npaypal_fetch_settlement_reports                                         enabled\nsales_clean_quotes                                 0 0 * * *            enabled\nsitemap_generate                                   0 17 * * *           enabled\n\n<\/pre>\n<pre>4 Example of executing and testing a cron job directly:\n\n&gt; php scheduler.php --action runNow --code sitemap_generate\n\n<\/pre>\n<pre>5: Reading execution time:\n\nGo to your database (phpMyAdmin) and open the table \"cron_schedule\". Empty the table first (using \"Truncate\") and then execute step 4. After this is completed, you can read the \"executed_at\" and \"finished_at\" for the corresponding cronjob in this table. You can determine the execution time based on the start and end time.\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In some cases, one wants to run tests by cron job. Only how to do this in Magento 1.9.3 ? First, install Aoe_Scheduler : https:\/\/github.com\/AOEpeople\/Aoe_Scheduler You can then run the following via the command line : 1 : Go to the root of your Magento installation. 2: overview of possibilities &gt; cd shell &gt; php scheduler.php Available actions: --action listAllCodes --action scheduleNow --code code Schedule a job to be executed as soon as possible --action runNow --code code Run a job directly 3: overzicht cronjobs &gt; php scheduler.php --action listAllCodes aggregate_sales_report_bestsellers_data 0 0 * * * disabled aggregate_sales_report_coupons_data 0 0&nbsp;<a href=\"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\/\" class=\"read-more\">Continue Reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"wzkb_category":[58],"wzkb_tag":[],"class_list":["post-4484","wz_knowledgebase","type-wz_knowledgebase","status-publish","hentry","wzkb_category-magento-1-9-x"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Individual (manual) testing by cron job in Magento 1.9.3 + measuring execution time - Utilewebsites<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Individual (manual) testing by cron job in Magento 1.9.3 + measuring execution time - Utilewebsites\" \/>\n<meta property=\"og:description\" content=\"In some cases, one wants to run tests by cron job. Only how to do this in Magento 1.9.3 ? First, install Aoe_Scheduler : https:\/\/github.com\/AOEpeople\/Aoe_Scheduler You can then run the following via the command line : 1 : Go to the root of your Magento installation. 2: overview of possibilities &gt; cd shell &gt; php scheduler.php Available actions: --action listAllCodes --action scheduleNow --code code Schedule a job to be executed as soon as possible --action runNow --code code Run a job directly 3: overzicht cronjobs &gt; php scheduler.php --action listAllCodes aggregate_sales_report_bestsellers_data 0 0 * * * disabled aggregate_sales_report_coupons_data 0 0&nbsp;Continue Reading\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\/\" \/>\n<meta property=\"og:site_name\" content=\"Utilewebsites\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-06T05:47:16+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\\\/\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\\\/\",\"name\":\"Individual (manual) testing by cron job in Magento 1.9.3 + measuring execution time - Utilewebsites\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#website\"},\"datePublished\":\"2017-03-01T08:27:00+00:00\",\"dateModified\":\"2023-04-06T05:47:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge Base\",\"item\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Individual (manual) testing by cron job in Magento 1.9.3 + measuring execution time\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/\",\"name\":\"Utilewebsites\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#organization\",\"name\":\"Utilewebsites\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/logo-Utilewebsites-2017.png\",\"contentUrl\":\"https:\\\/\\\/www.utilewebsites.nl\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/logo-Utilewebsites-2017.png\",\"width\":3000,\"height\":593,\"caption\":\"Utilewebsites\"},\"image\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Individual (manual) testing by cron job in Magento 1.9.3 + measuring execution time - Utilewebsites","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:\/\/www.utilewebsites.nl\/en\/knowledgebase\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\/","og_locale":"en_US","og_type":"article","og_title":"Individual (manual) testing by cron job in Magento 1.9.3 + measuring execution time - Utilewebsites","og_description":"In some cases, one wants to run tests by cron job. Only how to do this in Magento 1.9.3 ? First, install Aoe_Scheduler : https:\/\/github.com\/AOEpeople\/Aoe_Scheduler You can then run the following via the command line : 1 : Go to the root of your Magento installation. 2: overview of possibilities &gt; cd shell &gt; php scheduler.php Available actions: --action listAllCodes --action scheduleNow --code code Schedule a job to be executed as soon as possible --action runNow --code code Run a job directly 3: overzicht cronjobs &gt; php scheduler.php --action listAllCodes aggregate_sales_report_bestsellers_data 0 0 * * * disabled aggregate_sales_report_coupons_data 0 0&nbsp;Continue Reading","og_url":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\/","og_site_name":"Utilewebsites","article_modified_time":"2023-04-06T05:47:16+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\/","url":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\/","name":"Individual (manual) testing by cron job in Magento 1.9.3 + measuring execution time - Utilewebsites","isPartOf":{"@id":"https:\/\/www.utilewebsites.nl\/en\/#website"},"datePublished":"2017-03-01T08:27:00+00:00","dateModified":"2023-04-06T05:47:16+00:00","breadcrumb":{"@id":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/individual-manual-testing-by-cron-job-in-magento-1-9-3-measuring-execution-time\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.utilewebsites.nl\/en\/"},{"@type":"ListItem","position":2,"name":"Knowledge Base","item":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/"},{"@type":"ListItem","position":3,"name":"Individual (manual) testing by cron job in Magento 1.9.3 + measuring execution time"}]},{"@type":"WebSite","@id":"https:\/\/www.utilewebsites.nl\/en\/#website","url":"https:\/\/www.utilewebsites.nl\/en\/","name":"Utilewebsites","description":"","publisher":{"@id":"https:\/\/www.utilewebsites.nl\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.utilewebsites.nl\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.utilewebsites.nl\/en\/#organization","name":"Utilewebsites","url":"https:\/\/www.utilewebsites.nl\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.utilewebsites.nl\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.utilewebsites.nl\/wp-content\/uploads\/2019\/08\/logo-Utilewebsites-2017.png","contentUrl":"https:\/\/www.utilewebsites.nl\/wp-content\/uploads\/2019\/08\/logo-Utilewebsites-2017.png","width":3000,"height":593,"caption":"Utilewebsites"},"image":{"@id":"https:\/\/www.utilewebsites.nl\/en\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase\/4484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase"}],"about":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/types\/wz_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/comments?post=4484"}],"version-history":[{"count":1,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase\/4484\/revisions"}],"predecessor-version":[{"id":4486,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase\/4484\/revisions\/4486"}],"wp:attachment":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/media?parent=4484"}],"wp:term":[{"taxonomy":"wzkb_category","embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wzkb_category?post=4484"},{"taxonomy":"wzkb_tag","embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wzkb_tag?post=4484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}