This is a migrated thread and some comments may be shown as answers.

Current Date Verifiaction

1 Answer 126 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ritesh
Top achievements
Rank 1
Ritesh asked on 25 Feb 2012, 05:22 AM
Hello,

Is there any way in test studio to verify the date appearing in the date field is same as current system date without using any codded step?

1 Answer, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 27 Feb 2012, 02:27 PM
Hello Ritesh,

Unfortunately without using codded step you cannot verify the date appearing in a date field with the current system date. In order to proceed you should use SetExtractedValue() function and Data Binding described in the following articles:

http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/extracted-variables-in-code.aspx 
and
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/verifications/data-bind-an-extraction-step.aspx 

The coded step itself is quite simple and shouldn't be a problem for you to proceed. I am providing you an attachment with test example.

Should you have any additional questions please let us know.

All the best,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Ritesh
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Share this question
or