Forum Discussion
prateek_goyal
11 years agoOccasional Contributor
Hi Alexei,
I have tried this method too "aqDateTime.AddMethod" but i need to verify that DataGrid Contains Column <CurrentMonth-1>/<CorrespondingYear>
Please check the screenshot with the attachments.
DataGrid Contains Column 2/2014
So here we need to validate that column which is coming dynamically.
If we run this test case in January 2015 then it will be failed because the
Column Value <CurrentMonth>-1 will be coming December than our year must be the same as 2015 if we using aqDateTime.Today(%y) to calculate current year . But here we need to verify that if month is less than January than year must be the corresponding to it.
I have tried this method too "aqDateTime.AddMethod" but i need to verify that DataGrid Contains Column <CurrentMonth-1>/<CorrespondingYear>
Please check the screenshot with the attachments.
DataGrid Contains Column 2/2014
So here we need to validate that column which is coming dynamically.
If we run this test case in January 2015 then it will be failed because the
Column Value <CurrentMonth>-1 will be coming December than our year must be the same as 2015 if we using aqDateTime.Today(%y) to calculate current year . But here we need to verify that if month is less than January than year must be the corresponding to it.
Related Content
Recent Discussions
- 19 hours ago
- 7 days ago
- 10 days ago