Forum Discussion
william_roe
Super Contributor
That would work but it would be cleaner if a date could be passed as a code expression.
Thanks.
Marsha_R
9 years agoChampion Level 3
You can have three project variables
Daily
Weekly
Monthly
and also
DayCalc with default = your aqDateTime.AddDays
MonthCalc with default = your aqDateTime.AddMonths
at the top of your tests, set the Daily, Weekly, Monthly variables to the eval(DayCalc) or eval(MonthCalc) and then use those variables for the parameters
- william_roe9 years agoSuper Contributor
This doesn't seem like a substaintial improvement. The test is only ever called with one of the time periods (Daily, Weekly, or Monthly). Ideally the date could be passed as a code expression.
Thanks for taking a look.
Related Content
- 4 months agoTestQA1