Christoph_Schwa
16 years agoContributor
changing date in xQuery assertion
i am haveing a requirement where we create entries depending on todays date for the next x days every day in a nightly build
when i am doing a xquery assertion i need to verify the correct values for tomorrow for example where tomorrow of course is always changing
this is an example of the resultset xquery:
I001 | ALOFTGPU | ALOFTGPU | AMEX | 110 | 2009-02-06T00:00:00| CXL1 | DP1 | true | PerAdult
I001 | ALOFTGPU | ALOFTGPU | AMEX | 115 | 2009-02-07T00:00:00 | CXL2 | DP1 | true | PerAdult
I001 | ALOFTGPU | ALOFTGPU | AMEX | 95 | 2009-02-08T00:00:00| CXL1 | DP6 | true | PerAdult
I001 | ALOFTGPU | ALOFTGPU | AMEX | 56 | 2009-02-09T00:00:00 | CXL1 | DP1 | true | PerAdult
so when running the testcase tomorrow the result would look like this:
I001 | ALOFTGPU | ALOFTGPU | AMEX | 110 | 2009-02-07T00:00:00| CXL1 | DP1 | true | PerAdult
I001 | ALOFTGPU | ALOFTGPU | AMEX | 115 | 2009-02-08T00:00:00 | CXL2 | DP1 | true | PerAdult
I001 | ALOFTGPU | ALOFTGPU | AMEX | 95 | 2009-02-09T00:00:00| CXL1 | DP6 | true | PerAdult
I001 | ALOFTGPU | ALOFTGPU | AMEX | 56 | 2009-02-10T00:00:00 | CXL1 | DP1 | true | PerAdult
how can i dynamically change the date in the expected resultset to always start with either todays date or todaysdate plus 7 days
thanks for the help
christoph
when i am doing a xquery assertion i need to verify the correct values for tomorrow for example where tomorrow of course is always changing
this is an example of the resultset xquery:
so when running the testcase tomorrow the result would look like this:
how can i dynamically change the date in the expected resultset to always start with either todays date or todaysdate plus 7 days
thanks for the help
christoph