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

> cd shell
> 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

> php scheduler.php --action listAllCodes
aggregate_sales_report_bestsellers_data            0 0 * * *            disabled
aggregate_sales_report_coupons_data                0 0 * * *            disabled
aggregate_sales_report_invoiced_data               0 0 * * *            enabled
aggregate_sales_report_order_data                  0 0 * * *            disabled
aggregate_sales_report_refunded_data               0 0 * * *            enabled
aggregate_sales_report_shipment_data               0 0 * * *            disabled
aggregate_sales_report_tax_data                    0 0 * * *            enabled
aoeasynccache                                      */15 * * * *         enabled
aoecachecleaner                                    17 * * * *           enabled
catalog_product_alert                              0 0 * * *            enabled
catalog_product_index_price_reindex_all            0 2 * * *            enabled
catalogrule_apply_all                              0 1 * * *            enabled
currency_rates_update                              0 0 * * *            enabled
log_clean                                                               enabled
newsletter_send_all                                */5 * * * *          disabled
paypal_fetch_settlement_reports                                         enabled
sales_clean_quotes                                 0 0 * * *            enabled
sitemap_generate                                   0 17 * * *           enabled

4 Example of executing and testing a cron job directly:

> php scheduler.php --action runNow --code sitemap_generate

5: Reading execution time:

Go 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.