Feature: Tests the date_diff transform Background: Given the job is 'DateDiff' And the job source 'Source Data' And the job target 'Target Data' And the source 'Source Data' And the target 'Target Data' Scenario Outline: Calculating date difference in days. Given the job parameter 'measure' is "days" And the source field 'Date1' has the value "" And the source field 'Date2' has the value "" Then the target field 'Difference' is set to the value "" Examples: | Date1 | Date2 | Difference | | 2015-12-31 | 2016-01-02 | 2 | | 2014-12-31 | 2015-12-31 | 365 | | 2016-01-02 | 2015-12-31 | -2 | | 2015-02-28 | 2015-03-01 | 1 | | 2016-02-28 | 2016-03-01 | 2 | # leap day Scenario Outline: Calculating date difference in months. Given the job parameter 'measure' is "months" And the source field 'Date1' has the value "" And the source field 'Date2' has the value "" Then the target field 'Difference' is set to the value "" Examples: | Date1 | Date2 | Difference | | 2015-12-31 | 2016-01-02 | 1 | | 2015-12-31 | 2016-02-02 | 2 | | 2015-12-31 | 2017-02-02 | 14 | | 2016-02-02 | 2015-12-31 | -2 | Scenario Outline: Calculating date difference in years. Given the job parameter 'measure' is "years" And the source field 'Date1' has the value "" And the source field 'Date2' has the value "" Then the target field 'Difference' is set to the value "" Examples: | Date1 | Date2 | Difference | | 2015-12-31 | 2016-01-02 | 1 | | 2015-01-01 | 2015-12-31 | 0 | | 2015-12-31 | 2017-02-02 | 2 | | 2016-02-02 | 2015-12-31 | -1 |