Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop Testing Forum : Testing Tools @ OneStopTesting : Rational Robot @ OneStopTesting |
Topic: Regular Expressions in RFT |
|
Author | Message |
AnithaRaman
Newbie Joined: 03Mar2009 Online Status: Offline Posts: 1 |
Topic: Regular Expressions in RFT Posted: 03Mar2009 at 5:15am |
In RFT, regular expressions are helpful in validating dynamic data. Suppose in your application you have a text that shows the current calendar date like this Today's date - 03-03-2009. Your test case is to validate that this information appears in the welcome page of your application each time you login. The current date is dynamic and changes each day. So the verification point as is cannot be used as it would fail when you playback the script the next day. In this scenario you can apply a data verification point to this text object on the application. Then convert the value into regular expression. So the regular expression would be something similar to this (0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d. Now when you playback the script the next day the verification point would continue to pass as it is been customized to accept dynamic or changing data. This is an example for the usage of Regular expressions. Regular expressions can be used in many such scenarios. Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
IP Logged | |
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.